@crombolo/data 0.37.0 → 0.39.0

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.
Files changed (76) hide show
  1. package/package.json +3 -2
  2. package/src/audit.ts +164 -134
  3. package/src/change-report.ts +66 -43
  4. package/src/cluster.ts +119 -59
  5. package/src/content-query.ts +205 -200
  6. package/src/{bundle-tables → custom-tables}/builder.ts +104 -12
  7. package/src/custom-tables/chain.ts +150 -0
  8. package/src/custom-tables/ddl.ts +159 -0
  9. package/src/custom-tables/handle.ts +141 -0
  10. package/src/{bundle-tables → custom-tables}/index.ts +3 -2
  11. package/src/custom-tables/names.ts +94 -0
  12. package/src/custom-tables/owners.ts +299 -0
  13. package/src/{bundle-tables → custom-tables}/schema.ts +263 -90
  14. package/src/custom-tables/values.ts +181 -0
  15. package/src/database.ts +40 -5
  16. package/src/dialect.ts +43 -16
  17. package/src/index.ts +9 -1
  18. package/src/migrations.ts +130 -88
  19. package/src/query.ts +158 -0
  20. package/src/relations.ts +49 -28
  21. package/src/repositories/approvals.ts +130 -89
  22. package/src/repositories/bundle-grants.ts +105 -0
  23. package/src/repositories/bundles.ts +85 -76
  24. package/src/repositories/content-applied.ts +47 -28
  25. package/src/repositories/content-events.ts +114 -67
  26. package/src/repositories/content-notifications.ts +102 -74
  27. package/src/repositories/content-types.ts +449 -320
  28. package/src/repositories/data-types.ts +105 -56
  29. package/src/repositories/delivery-member-tokens.ts +37 -28
  30. package/src/repositories/dictionary.ts +77 -58
  31. package/src/repositories/documents.ts +956 -580
  32. package/src/repositories/domains.ts +28 -16
  33. package/src/repositories/dynamic-roots.ts +32 -17
  34. package/src/repositories/external-logins.ts +38 -24
  35. package/src/repositories/folders.ts +7 -4
  36. package/src/repositories/form-entries.ts +120 -103
  37. package/src/repositories/form-workflows.ts +87 -62
  38. package/src/repositories/jobs.ts +296 -0
  39. package/src/repositories/languages.ts +51 -38
  40. package/src/repositories/log-searches.ts +7 -5
  41. package/src/repositories/media-access.ts +173 -123
  42. package/src/repositories/media-listing.ts +155 -92
  43. package/src/repositories/members.ts +189 -162
  44. package/src/repositories/nodes.ts +227 -181
  45. package/src/repositories/notifications.ts +22 -17
  46. package/src/repositories/public-access.ts +77 -61
  47. package/src/repositories/redirects.ts +113 -70
  48. package/src/repositories/references.ts +55 -44
  49. package/src/repositories/remote-jobs.ts +45 -35
  50. package/src/repositories/tags.ts +11 -10
  51. package/src/repositories/templates.ts +24 -14
  52. package/src/repositories/transfer-answers.ts +58 -50
  53. package/src/repositories/transfer-runs.ts +93 -75
  54. package/src/repositories/two-factor.ts +74 -55
  55. package/src/repositories/user-data.ts +54 -36
  56. package/src/repositories/users.ts +345 -300
  57. package/src/repositories/webhooks.ts +196 -137
  58. package/src/schema/bundle-grants.ts +32 -0
  59. package/src/schema/bundles-disabled.ts +29 -0
  60. package/src/schema/jobs.ts +56 -0
  61. package/src/schema/plan.ts +6 -0
  62. package/src/schema-ops.ts +15 -12
  63. package/src/schema-state.ts +53 -38
  64. package/src/search.ts +175 -129
  65. package/src/setup.ts +17 -13
  66. package/src/site-search.ts +134 -83
  67. package/src/table-types.ts +152 -0
  68. package/src/tables.gen.ts +861 -0
  69. package/src/tree-invariants.ts +21 -12
  70. package/src/url-options.ts +17 -13
  71. package/src/workflow-store.ts +17 -13
  72. package/src/bundle-tables/capability.ts +0 -377
  73. package/src/bundle-tables/chain.ts +0 -105
  74. package/src/bundle-tables/ddl.ts +0 -124
  75. package/src/bundle-tables/guard.ts +0 -116
  76. package/src/bundle-tables/names.ts +0 -58
@@ -0,0 +1,861 @@
1
+ // Generated by `bun run db:types` from freshly migrated SQLite and Postgres
2
+ // databases (story 221). Do not edit: add a migration and regenerate.
3
+ import type { ColumnType, Generated } from 'kysely'
4
+
5
+ /** SQLite answers 0 or 1; write `dialect.boolValue(…)`, read through `fromDbBool`. */
6
+ type Bool = ColumnType<boolean | number, boolean | number, boolean | number>
7
+ /** Postgres answers a Date, SQLite an ISO string; write `DbDate.toDb`, read through `DbDate.fromDb`. */
8
+ type Timestamp = ColumnType<Date | string, string, string>
9
+ type Decimal = ColumnType<string | number, string | number, string | number>
10
+ type BigInteger = ColumnType<number | string | bigint, number | bigint, number | bigint>
11
+ type Bytes = Uint8Array
12
+ /** A column with a default, so an insert may leave it out, whatever its read and write types. */
13
+ type Default<C> = C extends ColumnType<infer S, infer I, infer U>
14
+ ? ColumnType<S, I | undefined, U>
15
+ : Generated<C>
16
+
17
+ export interface CoreTables {
18
+ approval_history: {
19
+ comment: string | null
20
+ create_date: Timestamp
21
+ id: Generated<number>
22
+ kind: string
23
+ request_id: number
24
+ stage: string | null
25
+ step_id: number | null
26
+ user_key: string | null
27
+ }
28
+ approval_request: {
29
+ action: string
30
+ cultures: string | null
31
+ event_id: BigInteger | null
32
+ finished_at: Timestamp | null
33
+ id: Generated<number>
34
+ key: string
35
+ node_key: string
36
+ requested_at: Timestamp
37
+ requested_by: string
38
+ schedule: string | null
39
+ state: string
40
+ workflow: string
41
+ workflow_key: string
42
+ workflow_version: string
43
+ }
44
+ approval_step: {
45
+ done_at: Timestamp | null
46
+ id: Generated<number>
47
+ reached_at: Timestamp
48
+ request_id: number
49
+ stage: string
50
+ state: string
51
+ }
52
+ audit_entry: {
53
+ action: string
54
+ category: string
55
+ detail: string | null
56
+ entity_key: string | null
57
+ entity_name: string | null
58
+ entity_type: string | null
59
+ forwarded_for: string | null
60
+ id: Generated<number>
61
+ ip_address: string | null
62
+ occurred_at: Timestamp
63
+ source: string
64
+ user_key: string | null
65
+ user_name: string | null
66
+ }
67
+ auth_code: {
68
+ client_id: string
69
+ code_challenge: string
70
+ code_challenge_method: string
71
+ code_hash: string
72
+ consumed_at: Timestamp | null
73
+ create_date: Timestamp
74
+ expires_at: Timestamp
75
+ redirect_uri: string
76
+ scope: string
77
+ session_id: string
78
+ user_id: number
79
+ }
80
+ auth_token: {
81
+ client_id: string
82
+ create_date: Timestamp
83
+ expires_at: Timestamp
84
+ id: Generated<number>
85
+ parent_id: number | null
86
+ revoked_at: Timestamp | null
87
+ scope: string
88
+ session_id: string
89
+ token_hash: string
90
+ token_type: string
91
+ user_id: number
92
+ }
93
+ bundle: {
94
+ components: string
95
+ content_load_child_nodes: Bool
96
+ content_node_id: string | null
97
+ content_types: string
98
+ create_date: Timestamp
99
+ data_types: string
100
+ dictionary_items: string
101
+ element_ids: string | null
102
+ id: string
103
+ languages: string
104
+ media_ids: string
105
+ media_load_child_nodes: Bool
106
+ media_types: string
107
+ name: string
108
+ package_name: string | null
109
+ package_version: string | null
110
+ scripts: string
111
+ stylesheets: string
112
+ update_date: Timestamp
113
+ }
114
+ bundle_grant: {
115
+ bundle_id: string
116
+ disabled_at: Timestamp | null
117
+ disabled_by: string | null
118
+ granted_at: Timestamp
119
+ granted_by: string | null
120
+ package_name: string
121
+ permissions: string
122
+ version: string
123
+ }
124
+ cache_instruction: {
125
+ checkpoint: BigInteger | null
126
+ created_at: Timestamp
127
+ created_by: string | null
128
+ id: Generated<number>
129
+ kind: string
130
+ payload: string | null
131
+ }
132
+ change_report: {
133
+ code: string
134
+ culture: string | null
135
+ first_seen: Timestamp
136
+ id: Generated<number>
137
+ kind: string
138
+ last_seen: Timestamp
139
+ link: string | null
140
+ message: string
141
+ property_alias: string | null
142
+ resolved_at: Timestamp | null
143
+ run_id: string
144
+ scope: string | null
145
+ source: Generated<string>
146
+ status: string
147
+ subject_key: string
148
+ subject_name: string | null
149
+ subject_type: string
150
+ }
151
+ content: {
152
+ content_type_id: number
153
+ creator_member_key: string | null
154
+ file_url: string | null
155
+ node_id: Generated<number>
156
+ read_policy: string | null
157
+ write_policy: string | null
158
+ }
159
+ content_applied: {
160
+ applied_at: Timestamp
161
+ node_key: string
162
+ previous_run_id: string | null
163
+ previous_state: string | null
164
+ run_id: string
165
+ state: string
166
+ }
167
+ content_checkpoint: {
168
+ id: Generated<number>
169
+ n: BigInteger
170
+ }
171
+ content_event: {
172
+ actor: string
173
+ attempts: number
174
+ create_date: Timestamp
175
+ entity_key: string | null
176
+ entity_type: string
177
+ facts: string
178
+ id: string
179
+ kind: string
180
+ last_error: string | null
181
+ occurred_at: Timestamp
182
+ run_after: Timestamp
183
+ state: string
184
+ update_date: Timestamp
185
+ }
186
+ content_notification: {
187
+ action_id: string
188
+ actor_name: string | null
189
+ actor_user_key: string | null
190
+ attempts: number
191
+ create_date: Timestamp
192
+ detail: string | null
193
+ event_id: string | null
194
+ id: string
195
+ last_error: string | null
196
+ node_key: string
197
+ node_name: string
198
+ occurred_at: Timestamp
199
+ recipient_user_key: string
200
+ run_after: Timestamp
201
+ state: string
202
+ update_date: Timestamp
203
+ }
204
+ content_schedule: {
205
+ action: string
206
+ date: Timestamp
207
+ id: Generated<number>
208
+ language_id: number | null
209
+ node_id: number
210
+ }
211
+ content_transfer_change: {
212
+ action: string
213
+ before_event_id: number | null
214
+ before_published_event_id: number | null
215
+ event_id: number | null
216
+ id: Generated<number>
217
+ kind: string
218
+ node_key: string
219
+ run_id: string
220
+ }
221
+ content_transfer_run: {
222
+ applied_by: string | null
223
+ bundle_id: string
224
+ bundle_label: string | null
225
+ direction: string
226
+ finished_at: Timestamp | null
227
+ id: string
228
+ node_count: number
229
+ package_name: string | null
230
+ package_version: string | null
231
+ reverts_run_id: string | null
232
+ schema_state_id: number
233
+ started_at: Timestamp
234
+ status: string
235
+ }
236
+ content_type: {
237
+ alias: string
238
+ allow_at_root: Bool
239
+ allow_in_library: Bool
240
+ description: string | null
241
+ icon: string | null
242
+ is_element: Bool
243
+ keep_all_versions_newer_than_days: number | null
244
+ keep_latest_version_per_day_for_days: number | null
245
+ list_view: string | null
246
+ node_id: Generated<number>
247
+ prevent_cleanup: Bool
248
+ retired_at: Timestamp | null
249
+ since_state_id: number | null
250
+ since_version: string | null
251
+ site_search: Default<Bool>
252
+ thumbnail: string | null
253
+ variations: number
254
+ }
255
+ content_type_allowed_child: {
256
+ allowed_content_type_id: number
257
+ content_type_id: Generated<number>
258
+ sort_order: number
259
+ }
260
+ content_type_composition: {
261
+ child_content_type_id: number
262
+ parent_content_type_id: Generated<number>
263
+ }
264
+ content_type_template: {
265
+ content_type_node_id: Generated<number>
266
+ is_default: Bool
267
+ template_node_id: number
268
+ }
269
+ content_version: {
270
+ current: Bool
271
+ id: Generated<number>
272
+ kind: string | null
273
+ node_id: number
274
+ prevent_cleanup: Bool
275
+ text: string | null
276
+ user_id: number | null
277
+ version_date: Timestamp
278
+ }
279
+ content_version_culture_variation: {
280
+ available_user_id: number | null
281
+ date: Timestamp
282
+ id: Generated<number>
283
+ language_id: number
284
+ name: string
285
+ version_id: number
286
+ }
287
+ data_type: {
288
+ alias: string | null
289
+ config: string | null
290
+ db_type: string
291
+ editor_alias: string
292
+ editor_ui_alias: string | null
293
+ node_id: Generated<number>
294
+ retired_at: Timestamp | null
295
+ since_state_id: number | null
296
+ since_version: string | null
297
+ }
298
+ delivery_member_token: {
299
+ client_id: string
300
+ code_challenge: string | null
301
+ create_date: Timestamp
302
+ expires_at: Timestamp
303
+ hash: string
304
+ kind: string
305
+ member_key: string
306
+ redeemed_at: Timestamp | null
307
+ redirect_uri: string | null
308
+ scopes: string
309
+ }
310
+ device_authorization: {
311
+ client_id: string
312
+ client_name: string | null
313
+ create_date: Timestamp
314
+ decided_at: Timestamp | null
315
+ device_code_hash: string
316
+ expires_at: Timestamp
317
+ id: Generated<number>
318
+ interval_seconds: number
319
+ last_polled_at: Timestamp | null
320
+ scope: string
321
+ session_id: string | null
322
+ status: string
323
+ user_code: string
324
+ user_id: number | null
325
+ }
326
+ dictionary_item: {
327
+ id: Generated<number>
328
+ item_key: string
329
+ key: string
330
+ parent_key: string | null
331
+ }
332
+ dictionary_text: {
333
+ dictionary_key: string
334
+ language_id: number
335
+ value: string
336
+ }
337
+ document: {
338
+ edited: Bool
339
+ node_id: Generated<number>
340
+ original_parent_id: number | null
341
+ published: Bool
342
+ trashed_date: Timestamp | null
343
+ }
344
+ document_culture_variation: {
345
+ available: Bool
346
+ edited: Bool
347
+ id: Generated<number>
348
+ language_id: number
349
+ name: string | null
350
+ node_id: number
351
+ published: Bool
352
+ published_event_id: number | null
353
+ published_name: string | null
354
+ }
355
+ document_version: {
356
+ id: Generated<number>
357
+ published: Bool
358
+ template_id: number | null
359
+ }
360
+ domain: {
361
+ domain_name: string
362
+ id: Generated<number>
363
+ language_id: number | null
364
+ node_id: number
365
+ sort_order: number
366
+ }
367
+ external_login: {
368
+ create_date: Timestamp
369
+ id: Generated<number>
370
+ login_provider: string
371
+ provider_key: string
372
+ user_data: string | null
373
+ user_or_member_key: string
374
+ }
375
+ external_login_token: {
376
+ create_date: Timestamp
377
+ external_login_id: number
378
+ id: Generated<number>
379
+ name: string
380
+ value: string
381
+ }
382
+ form_entry: {
383
+ create_date: Timestamp
384
+ culture: string | null
385
+ form_alias: string
386
+ form_key: string
387
+ id: string
388
+ ip_hash: string | null
389
+ page_key: string | null
390
+ spam: Bool
391
+ state: string
392
+ update_date: Timestamp
393
+ user_agent: string | null
394
+ }
395
+ form_entry_value: {
396
+ entry_id: string
397
+ field_alias: string
398
+ label: string | null
399
+ sort_order: number
400
+ value: string | null
401
+ }
402
+ form_workflow_run: {
403
+ attempts: number
404
+ create_date: Timestamp
405
+ entry_id: string | null
406
+ form_alias: string
407
+ form_key: string
408
+ id: string
409
+ last_error: string | null
410
+ payload: string
411
+ run_after: Timestamp
412
+ run_on: string
413
+ state: string
414
+ update_date: Timestamp
415
+ workflow_name: string
416
+ workflow_type: string
417
+ }
418
+ job: {
419
+ attempts: number
420
+ claimed_at: Timestamp | null
421
+ claimed_by: string | null
422
+ created_at: Timestamp
423
+ finished_at: Timestamp | null
424
+ id: string
425
+ last_error: string | null
426
+ max_attempts: number
427
+ name: string
428
+ next_attempt_at: Timestamp
429
+ owner: string
430
+ payload: string
431
+ progress: string | null
432
+ queued_by: string | null
433
+ state: string
434
+ }
435
+ job_schedule: {
436
+ last_occurrence: Timestamp
437
+ schedule_key: string
438
+ }
439
+ key_value: {
440
+ key: string
441
+ update_date: Timestamp
442
+ value: string | null
443
+ }
444
+ language: {
445
+ culture_name: string
446
+ fallback_language_id: number | null
447
+ id: Generated<number>
448
+ is_default: Bool
449
+ is_mandatory: Bool
450
+ iso_code: string
451
+ }
452
+ log_viewer_query: {
453
+ id: Generated<number>
454
+ name: string
455
+ query: string
456
+ }
457
+ media_access: {
458
+ create_date: Timestamp
459
+ id: Generated<number>
460
+ member_max_bytes: BigInteger | null
461
+ member_types: string | null
462
+ new_read: string | null
463
+ new_write: string | null
464
+ node_id: number
465
+ public_read: Bool
466
+ update_date: Timestamp
467
+ }
468
+ media_access_member: {
469
+ can_read: Bool
470
+ can_write: Bool
471
+ media_access_id: Generated<number>
472
+ member_key: string
473
+ }
474
+ media_access_rule: {
475
+ can_read: Bool
476
+ can_write: Bool
477
+ id: Generated<number>
478
+ media_access_id: number
479
+ member_group: string
480
+ }
481
+ member: {
482
+ email: string
483
+ email_confirmed_date: Timestamp | null
484
+ failed_password_attempts: number
485
+ is_approved: Bool
486
+ is_locked_out: Bool
487
+ last_lockout_date: Timestamp | null
488
+ last_login_date: Timestamp | null
489
+ last_password_change_date: Timestamp | null
490
+ login_name: string
491
+ node_id: Generated<number>
492
+ password: string | null
493
+ password_config: string | null
494
+ security_stamp_token: string | null
495
+ }
496
+ member_group_member: {
497
+ member_group_id: number
498
+ member_id: Generated<number>
499
+ }
500
+ member_property_type: {
501
+ is_sensitive: Bool
502
+ member_can_edit: Bool
503
+ member_can_view: Bool
504
+ property_type_id: Generated<number>
505
+ }
506
+ migration_history: {
507
+ applied_at: Timestamp
508
+ applied_by: string | null
509
+ bundle: string | null
510
+ checksum: string | null
511
+ duration_ms: number
512
+ from_state: string | null
513
+ id: Generated<number>
514
+ kind: string
515
+ name: string
516
+ note: string | null
517
+ to_state: string | null
518
+ }
519
+ node: {
520
+ create_date: Timestamp
521
+ id: Generated<number>
522
+ level: number
523
+ node_object_type: string | null
524
+ node_user: number | null
525
+ parent_id: number
526
+ path: string
527
+ sort_order: number
528
+ text: string | null
529
+ trashed: Bool
530
+ unique_id: string
531
+ }
532
+ node_file: {
533
+ node_id: number
534
+ url: string
535
+ }
536
+ property_type: {
537
+ alias: string
538
+ content_type_id: number
539
+ data_type_id: number
540
+ description: string | null
541
+ id: Generated<number>
542
+ label_on_top: Bool
543
+ mandatory: Bool
544
+ mandatory_message: string | null
545
+ name: string
546
+ property_type_group_id: number | null
547
+ retired_at: Timestamp | null
548
+ searchable: Default<Bool>
549
+ since_state_id: number | null
550
+ since_version: string | null
551
+ site_search: Generated<string>
552
+ sort_order: number
553
+ unique_id: string
554
+ validation_reg_exp: string | null
555
+ validation_reg_exp_message: string | null
556
+ variations: number
557
+ }
558
+ property_type_group: {
559
+ alias: string | null
560
+ content_type_node_id: number
561
+ id: Generated<number>
562
+ parent_id: number | null
563
+ sort_order: number
564
+ text: string | null
565
+ type: number
566
+ unique_id: string
567
+ }
568
+ property_value: {
569
+ date_value: Timestamp | null
570
+ decimal_value: Decimal | null
571
+ event_id: number
572
+ id: Generated<number>
573
+ int_value: number | null
574
+ is_current: Bool
575
+ language_id: number | null
576
+ node_id: number
577
+ property_type_id: number
578
+ schema_state_id: number
579
+ segment: string | null
580
+ sortable_value: string | null
581
+ text_value: string | null
582
+ varchar_value: string | null
583
+ }
584
+ public_access: {
585
+ create_date: Timestamp
586
+ error_node_id: number
587
+ id: Generated<number>
588
+ key: string
589
+ login_node_id: number
590
+ node_id: number
591
+ update_date: Timestamp
592
+ }
593
+ public_access_rule: {
594
+ create_date: Timestamp
595
+ id: Generated<number>
596
+ public_access_id: number
597
+ rule_type: string
598
+ rule_value: string
599
+ }
600
+ redirect_url: {
601
+ create_date: Timestamp
602
+ culture: string | null
603
+ id: Generated<number>
604
+ key: string
605
+ match_hash: string
606
+ match_kind: string
607
+ pattern: string
608
+ root_key: string | null
609
+ sort_order: number
610
+ source: string
611
+ status_code: number
612
+ target: string
613
+ target_kind: string
614
+ }
615
+ remote_job: {
616
+ create_date: Timestamp
617
+ decided_at: Timestamp | null
618
+ decided_by: string | null
619
+ environment: string
620
+ expires_at: Timestamp
621
+ file_key: string | null
622
+ file_size: BigInteger | null
623
+ heartbeat_at: Timestamp
624
+ id: string
625
+ kind: string
626
+ options: string
627
+ problem: string | null
628
+ progress: number | null
629
+ requested_by: string
630
+ requested_by_name: string
631
+ run_id: string | null
632
+ secret: string | null
633
+ sha256: string | null
634
+ stage: string | null
635
+ state: string
636
+ }
637
+ schema_state: {
638
+ hash: string | null
639
+ id: Generated<number>
640
+ revision: string
641
+ status: string
642
+ synced_at: Timestamp
643
+ synced_by: string | null
644
+ version: string
645
+ }
646
+ search_document: {
647
+ body: string
648
+ culture: string
649
+ field_count: number
650
+ fields: string
651
+ id: Generated<number>
652
+ indexed_at: Timestamp
653
+ name: string
654
+ node_id: number
655
+ terms: unknown | null
656
+ }
657
+ search_index_queue: {
658
+ generation: number
659
+ node_id: Generated<number>
660
+ queued_at: Timestamp
661
+ }
662
+ server: {
663
+ crombolo_version: string | null
664
+ last_seen: Timestamp
665
+ node_id: string
666
+ revision: string | null
667
+ role: string | null
668
+ served_at: Timestamp | null
669
+ served_checkpoint: BigInteger | null
670
+ version: string | null
671
+ }
672
+ site_search_document: {
673
+ culture: string
674
+ high: string
675
+ id: Generated<number>
676
+ indexed_at: Timestamp
677
+ low: string
678
+ name: string
679
+ node_id: number
680
+ normal: string
681
+ terms: unknown | null
682
+ text: string
683
+ }
684
+ template: {
685
+ alias: string
686
+ node_id: Generated<number>
687
+ }
688
+ transfer_answer: {
689
+ answered_at: Timestamp
690
+ answered_by: string | null
691
+ bundle_id: string
692
+ handle: string
693
+ node_key: string
694
+ resolution: string
695
+ }
696
+ transfer_pending: {
697
+ allow_missing_blobs: Bool
698
+ bundle_id: string
699
+ checked_at: Timestamp
700
+ checked_by: string | null
701
+ label: string | null
702
+ publish: Bool
703
+ target: string
704
+ target_kind: string
705
+ under_target: string | null
706
+ }
707
+ two_factor_login: {
708
+ create_date: Timestamp
709
+ id: Generated<number>
710
+ last_used_step: BigInteger | null
711
+ owner_key: string
712
+ provider_name: string
713
+ secret: string
714
+ }
715
+ two_factor_recovery_code: {
716
+ code_hash: string
717
+ id: Generated<number>
718
+ owner_key: string
719
+ used_date: Timestamp | null
720
+ }
721
+ user_account: {
722
+ avatar: string | null
723
+ create_date: Timestamp
724
+ email: string
725
+ email_confirmed_date: Timestamp | null
726
+ failed_login_attempts: number
727
+ id: Generated<number>
728
+ invited_date: Timestamp | null
729
+ is_approved: Bool
730
+ is_locked_out: Bool
731
+ key: string
732
+ kind: number
733
+ language: string | null
734
+ last_lockout_date: Timestamp | null
735
+ last_login_date: Timestamp | null
736
+ last_password_change_date: Timestamp | null
737
+ login: string
738
+ password_config: string | null
739
+ password_hash: string | null
740
+ security_stamp: string | null
741
+ update_date: Timestamp
742
+ user_name: string
743
+ }
744
+ user_client_credential: {
745
+ client_id: string
746
+ create_date: Timestamp
747
+ secret_hash: string
748
+ user_id: number
749
+ }
750
+ user_data: {
751
+ data_group: string
752
+ identifier: string
753
+ key: string
754
+ user_id: number
755
+ value: string
756
+ }
757
+ user_group: {
758
+ alias: string
759
+ create_date: Timestamp
760
+ description: string | null
761
+ has_access_to_all_languages: Bool
762
+ icon: string | null
763
+ id: Generated<number>
764
+ key: string
765
+ name: string
766
+ start_content_id: number | null
767
+ start_element_id: number | null
768
+ start_media_id: number | null
769
+ update_date: Timestamp
770
+ }
771
+ user_group_granular_permission: {
772
+ context: string
773
+ id: Generated<number>
774
+ permission: string
775
+ unique_id: string | null
776
+ user_group_key: string
777
+ }
778
+ user_group_language: {
779
+ language_id: number
780
+ user_group_id: Generated<number>
781
+ }
782
+ user_group_member: {
783
+ user_group_id: number
784
+ user_id: Generated<number>
785
+ }
786
+ user_group_permission: {
787
+ id: Generated<number>
788
+ permission: string
789
+ user_group_key: string
790
+ }
791
+ user_group_section: {
792
+ app_alias: string
793
+ user_group_id: Generated<number>
794
+ }
795
+ user_login_session: {
796
+ ip_address: string | null
797
+ last_validated_utc: Timestamp
798
+ logged_in_utc: Timestamp
799
+ logged_out_utc: Timestamp | null
800
+ session_id: string
801
+ user_id: number
802
+ }
803
+ user_notification: {
804
+ action: string
805
+ node_id: number
806
+ user_id: Generated<number>
807
+ }
808
+ user_start_node: {
809
+ id: Generated<number>
810
+ start_node: number
811
+ start_node_type: number
812
+ user_id: number
813
+ }
814
+ user_token: {
815
+ expires_at: Timestamp
816
+ purpose: string
817
+ token_hash: string
818
+ user_id: number
819
+ }
820
+ webhook: {
821
+ content_type_keys: string
822
+ create_date: Timestamp
823
+ description: string | null
824
+ enabled: Bool
825
+ events: string
826
+ headers: string | null
827
+ key: string
828
+ name: string | null
829
+ update_date: Timestamp
830
+ url: string
831
+ }
832
+ webhook_delivery: {
833
+ attempts: number
834
+ create_date: Timestamp
835
+ event_alias: string
836
+ event_id: string | null
837
+ id: string
838
+ last_error: string | null
839
+ payload: string
840
+ run_after: Timestamp
841
+ state: string
842
+ subscriber: string
843
+ update_date: Timestamp
844
+ }
845
+ webhook_log: {
846
+ delivery_id: string
847
+ event_alias: string
848
+ exception: Bool
849
+ key: string
850
+ log_date: Timestamp
851
+ request_body: string
852
+ request_headers: string
853
+ response_body: string
854
+ response_headers: string
855
+ retry_count: number
856
+ status_code: number | null
857
+ subscriber: string
858
+ success: Bool
859
+ url: string
860
+ }
861
+ }