tmex-cli 0.1.4

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.
@@ -0,0 +1,515 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "e732d466-ee77-402f-9b0b-98dacad60671",
5
+ "prevId": "25e820fb-f95f-46de-ae52-10b67c645ae4",
6
+ "tables": {
7
+ "device_runtime_status": {
8
+ "name": "device_runtime_status",
9
+ "columns": {
10
+ "device_id": {
11
+ "name": "device_id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "last_seen_at": {
18
+ "name": "last_seen_at",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": false,
22
+ "autoincrement": false
23
+ },
24
+ "tmux_available": {
25
+ "name": "tmux_available",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false,
30
+ "default": false
31
+ },
32
+ "last_error": {
33
+ "name": "last_error",
34
+ "type": "text",
35
+ "primaryKey": false,
36
+ "notNull": false,
37
+ "autoincrement": false
38
+ }
39
+ },
40
+ "indexes": {},
41
+ "foreignKeys": {
42
+ "device_runtime_status_device_id_devices_id_fk": {
43
+ "name": "device_runtime_status_device_id_devices_id_fk",
44
+ "tableFrom": "device_runtime_status",
45
+ "tableTo": "devices",
46
+ "columnsFrom": [
47
+ "device_id"
48
+ ],
49
+ "columnsTo": [
50
+ "id"
51
+ ],
52
+ "onDelete": "cascade",
53
+ "onUpdate": "no action"
54
+ }
55
+ },
56
+ "compositePrimaryKeys": {},
57
+ "uniqueConstraints": {},
58
+ "checkConstraints": {}
59
+ },
60
+ "devices": {
61
+ "name": "devices",
62
+ "columns": {
63
+ "id": {
64
+ "name": "id",
65
+ "type": "text",
66
+ "primaryKey": true,
67
+ "notNull": true,
68
+ "autoincrement": false
69
+ },
70
+ "name": {
71
+ "name": "name",
72
+ "type": "text",
73
+ "primaryKey": false,
74
+ "notNull": true,
75
+ "autoincrement": false
76
+ },
77
+ "type": {
78
+ "name": "type",
79
+ "type": "text",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "autoincrement": false
83
+ },
84
+ "host": {
85
+ "name": "host",
86
+ "type": "text",
87
+ "primaryKey": false,
88
+ "notNull": false,
89
+ "autoincrement": false
90
+ },
91
+ "port": {
92
+ "name": "port",
93
+ "type": "integer",
94
+ "primaryKey": false,
95
+ "notNull": false,
96
+ "autoincrement": false,
97
+ "default": 22
98
+ },
99
+ "username": {
100
+ "name": "username",
101
+ "type": "text",
102
+ "primaryKey": false,
103
+ "notNull": false,
104
+ "autoincrement": false
105
+ },
106
+ "ssh_config_ref": {
107
+ "name": "ssh_config_ref",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": false,
111
+ "autoincrement": false
112
+ },
113
+ "session": {
114
+ "name": "session",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": false,
118
+ "autoincrement": false,
119
+ "default": "'tmex'"
120
+ },
121
+ "auth_mode": {
122
+ "name": "auth_mode",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true,
126
+ "autoincrement": false
127
+ },
128
+ "password_enc": {
129
+ "name": "password_enc",
130
+ "type": "text",
131
+ "primaryKey": false,
132
+ "notNull": false,
133
+ "autoincrement": false
134
+ },
135
+ "private_key_enc": {
136
+ "name": "private_key_enc",
137
+ "type": "text",
138
+ "primaryKey": false,
139
+ "notNull": false,
140
+ "autoincrement": false
141
+ },
142
+ "private_key_passphrase_enc": {
143
+ "name": "private_key_passphrase_enc",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": false,
147
+ "autoincrement": false
148
+ },
149
+ "created_at": {
150
+ "name": "created_at",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": true,
154
+ "autoincrement": false
155
+ },
156
+ "updated_at": {
157
+ "name": "updated_at",
158
+ "type": "text",
159
+ "primaryKey": false,
160
+ "notNull": true,
161
+ "autoincrement": false
162
+ }
163
+ },
164
+ "indexes": {},
165
+ "foreignKeys": {},
166
+ "compositePrimaryKeys": {},
167
+ "uniqueConstraints": {},
168
+ "checkConstraints": {
169
+ "devices_type_check": {
170
+ "name": "devices_type_check",
171
+ "value": "\"devices\".\"type\" in ('local', 'ssh')"
172
+ },
173
+ "devices_auth_mode_check": {
174
+ "name": "devices_auth_mode_check",
175
+ "value": "\"devices\".\"auth_mode\" in ('password', 'key', 'agent', 'configRef', 'auto')"
176
+ }
177
+ }
178
+ },
179
+ "site_settings": {
180
+ "name": "site_settings",
181
+ "columns": {
182
+ "id": {
183
+ "name": "id",
184
+ "type": "integer",
185
+ "primaryKey": true,
186
+ "notNull": true,
187
+ "autoincrement": false
188
+ },
189
+ "site_name": {
190
+ "name": "site_name",
191
+ "type": "text",
192
+ "primaryKey": false,
193
+ "notNull": true,
194
+ "autoincrement": false
195
+ },
196
+ "site_url": {
197
+ "name": "site_url",
198
+ "type": "text",
199
+ "primaryKey": false,
200
+ "notNull": true,
201
+ "autoincrement": false
202
+ },
203
+ "bell_throttle_seconds": {
204
+ "name": "bell_throttle_seconds",
205
+ "type": "integer",
206
+ "primaryKey": false,
207
+ "notNull": true,
208
+ "autoincrement": false
209
+ },
210
+ "enable_browser_bell_toast": {
211
+ "name": "enable_browser_bell_toast",
212
+ "type": "integer",
213
+ "primaryKey": false,
214
+ "notNull": true,
215
+ "autoincrement": false,
216
+ "default": true
217
+ },
218
+ "enable_telegram_bell_push": {
219
+ "name": "enable_telegram_bell_push",
220
+ "type": "integer",
221
+ "primaryKey": false,
222
+ "notNull": true,
223
+ "autoincrement": false,
224
+ "default": true
225
+ },
226
+ "ssh_reconnect_max_retries": {
227
+ "name": "ssh_reconnect_max_retries",
228
+ "type": "integer",
229
+ "primaryKey": false,
230
+ "notNull": true,
231
+ "autoincrement": false
232
+ },
233
+ "ssh_reconnect_delay_seconds": {
234
+ "name": "ssh_reconnect_delay_seconds",
235
+ "type": "integer",
236
+ "primaryKey": false,
237
+ "notNull": true,
238
+ "autoincrement": false
239
+ },
240
+ "language": {
241
+ "name": "language",
242
+ "type": "text",
243
+ "primaryKey": false,
244
+ "notNull": true,
245
+ "autoincrement": false,
246
+ "default": "'en_US'"
247
+ },
248
+ "updated_at": {
249
+ "name": "updated_at",
250
+ "type": "text",
251
+ "primaryKey": false,
252
+ "notNull": true,
253
+ "autoincrement": false
254
+ }
255
+ },
256
+ "indexes": {},
257
+ "foreignKeys": {},
258
+ "compositePrimaryKeys": {},
259
+ "uniqueConstraints": {},
260
+ "checkConstraints": {
261
+ "site_settings_singleton_check": {
262
+ "name": "site_settings_singleton_check",
263
+ "value": "\"site_settings\".\"id\" = 1"
264
+ },
265
+ "site_settings_language_check": {
266
+ "name": "site_settings_language_check",
267
+ "value": "\"site_settings\".\"language\" in ('en_US', 'zh_CN')"
268
+ }
269
+ }
270
+ },
271
+ "telegram_bot_chats": {
272
+ "name": "telegram_bot_chats",
273
+ "columns": {
274
+ "id": {
275
+ "name": "id",
276
+ "type": "text",
277
+ "primaryKey": true,
278
+ "notNull": true,
279
+ "autoincrement": false
280
+ },
281
+ "bot_id": {
282
+ "name": "bot_id",
283
+ "type": "text",
284
+ "primaryKey": false,
285
+ "notNull": true,
286
+ "autoincrement": false
287
+ },
288
+ "chat_id": {
289
+ "name": "chat_id",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": true,
293
+ "autoincrement": false
294
+ },
295
+ "chat_type": {
296
+ "name": "chat_type",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": true,
300
+ "autoincrement": false
301
+ },
302
+ "display_name": {
303
+ "name": "display_name",
304
+ "type": "text",
305
+ "primaryKey": false,
306
+ "notNull": true,
307
+ "autoincrement": false
308
+ },
309
+ "status": {
310
+ "name": "status",
311
+ "type": "text",
312
+ "primaryKey": false,
313
+ "notNull": true,
314
+ "autoincrement": false
315
+ },
316
+ "applied_at": {
317
+ "name": "applied_at",
318
+ "type": "text",
319
+ "primaryKey": false,
320
+ "notNull": true,
321
+ "autoincrement": false
322
+ },
323
+ "authorized_at": {
324
+ "name": "authorized_at",
325
+ "type": "text",
326
+ "primaryKey": false,
327
+ "notNull": false,
328
+ "autoincrement": false
329
+ },
330
+ "updated_at": {
331
+ "name": "updated_at",
332
+ "type": "text",
333
+ "primaryKey": false,
334
+ "notNull": true,
335
+ "autoincrement": false
336
+ }
337
+ },
338
+ "indexes": {
339
+ "telegram_bot_chats_bot_chat_unique": {
340
+ "name": "telegram_bot_chats_bot_chat_unique",
341
+ "columns": [
342
+ "bot_id",
343
+ "chat_id"
344
+ ],
345
+ "isUnique": true
346
+ }
347
+ },
348
+ "foreignKeys": {
349
+ "telegram_bot_chats_bot_id_telegram_bots_id_fk": {
350
+ "name": "telegram_bot_chats_bot_id_telegram_bots_id_fk",
351
+ "tableFrom": "telegram_bot_chats",
352
+ "tableTo": "telegram_bots",
353
+ "columnsFrom": [
354
+ "bot_id"
355
+ ],
356
+ "columnsTo": [
357
+ "id"
358
+ ],
359
+ "onDelete": "cascade",
360
+ "onUpdate": "no action"
361
+ }
362
+ },
363
+ "compositePrimaryKeys": {},
364
+ "uniqueConstraints": {},
365
+ "checkConstraints": {
366
+ "telegram_bot_chats_status_check": {
367
+ "name": "telegram_bot_chats_status_check",
368
+ "value": "\"telegram_bot_chats\".\"status\" in ('pending', 'authorized')"
369
+ },
370
+ "telegram_bot_chats_chat_type_check": {
371
+ "name": "telegram_bot_chats_chat_type_check",
372
+ "value": "\"telegram_bot_chats\".\"chat_type\" in ('private', 'group', 'supergroup', 'channel', 'unknown')"
373
+ }
374
+ }
375
+ },
376
+ "telegram_bots": {
377
+ "name": "telegram_bots",
378
+ "columns": {
379
+ "id": {
380
+ "name": "id",
381
+ "type": "text",
382
+ "primaryKey": true,
383
+ "notNull": true,
384
+ "autoincrement": false
385
+ },
386
+ "name": {
387
+ "name": "name",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": true,
391
+ "autoincrement": false
392
+ },
393
+ "token_enc": {
394
+ "name": "token_enc",
395
+ "type": "text",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "autoincrement": false
399
+ },
400
+ "enabled": {
401
+ "name": "enabled",
402
+ "type": "integer",
403
+ "primaryKey": false,
404
+ "notNull": true,
405
+ "autoincrement": false,
406
+ "default": true
407
+ },
408
+ "allow_auth_requests": {
409
+ "name": "allow_auth_requests",
410
+ "type": "integer",
411
+ "primaryKey": false,
412
+ "notNull": true,
413
+ "autoincrement": false,
414
+ "default": true
415
+ },
416
+ "last_update_id": {
417
+ "name": "last_update_id",
418
+ "type": "integer",
419
+ "primaryKey": false,
420
+ "notNull": false,
421
+ "autoincrement": false
422
+ },
423
+ "created_at": {
424
+ "name": "created_at",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": true,
428
+ "autoincrement": false
429
+ },
430
+ "updated_at": {
431
+ "name": "updated_at",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": true,
435
+ "autoincrement": false
436
+ }
437
+ },
438
+ "indexes": {},
439
+ "foreignKeys": {},
440
+ "compositePrimaryKeys": {},
441
+ "uniqueConstraints": {},
442
+ "checkConstraints": {}
443
+ },
444
+ "webhook_endpoints": {
445
+ "name": "webhook_endpoints",
446
+ "columns": {
447
+ "id": {
448
+ "name": "id",
449
+ "type": "text",
450
+ "primaryKey": true,
451
+ "notNull": true,
452
+ "autoincrement": false
453
+ },
454
+ "enabled": {
455
+ "name": "enabled",
456
+ "type": "integer",
457
+ "primaryKey": false,
458
+ "notNull": true,
459
+ "autoincrement": false,
460
+ "default": true
461
+ },
462
+ "url": {
463
+ "name": "url",
464
+ "type": "text",
465
+ "primaryKey": false,
466
+ "notNull": true,
467
+ "autoincrement": false
468
+ },
469
+ "secret": {
470
+ "name": "secret",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": true,
474
+ "autoincrement": false
475
+ },
476
+ "event_mask": {
477
+ "name": "event_mask",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": true,
481
+ "autoincrement": false
482
+ },
483
+ "created_at": {
484
+ "name": "created_at",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": true,
488
+ "autoincrement": false
489
+ },
490
+ "updated_at": {
491
+ "name": "updated_at",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "autoincrement": false
496
+ }
497
+ },
498
+ "indexes": {},
499
+ "foreignKeys": {},
500
+ "compositePrimaryKeys": {},
501
+ "uniqueConstraints": {},
502
+ "checkConstraints": {}
503
+ }
504
+ },
505
+ "views": {},
506
+ "enums": {},
507
+ "_meta": {
508
+ "schemas": {},
509
+ "tables": {},
510
+ "columns": {}
511
+ },
512
+ "internal": {
513
+ "indexes": {}
514
+ }
515
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "6",
8
+ "when": 1770830216996,
9
+ "tag": "0000_busy_starjammers",
10
+ "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "6",
15
+ "when": 1770838678181,
16
+ "tag": "0001_lowly_the_twelve",
17
+ "breakpoints": true
18
+ }
19
+ ]
20
+ }