@happyvertical/smrt-chat 0.40.70 → 0.41.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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-chat",
5
- "packageVersion": "0.40.70",
5
+ "packageVersion": "0.41.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-chat:AgentSessionCollection": {
8
8
  "name": "agentsessioncollection",
@@ -142,12 +142,6 @@
142
142
  }
143
143
  },
144
144
  "indexes": [
145
- {
146
- "name": "agent_sessions_id_idx",
147
- "columns": [
148
- "id"
149
- ]
150
- },
151
145
  {
152
146
  "name": "agent_sessions_slug_context_idx",
153
147
  "columns": [
@@ -155,6 +149,12 @@
155
149
  "context"
156
150
  ],
157
151
  "unique": true
152
+ },
153
+ {
154
+ "name": "agent_sessions_created_at_idx",
155
+ "columns": [
156
+ "created_at"
157
+ ]
158
158
  }
159
159
  ],
160
160
  "version": "e5de0db6"
@@ -327,12 +327,6 @@
327
327
  }
328
328
  },
329
329
  "indexes": [
330
- {
331
- "name": "chat_messages_id_idx",
332
- "columns": [
333
- "id"
334
- ]
335
- },
336
330
  {
337
331
  "name": "chat_messages_slug_context_idx",
338
332
  "columns": [
@@ -340,6 +334,12 @@
340
334
  "context"
341
335
  ],
342
336
  "unique": true
337
+ },
338
+ {
339
+ "name": "chat_messages_created_at_idx",
340
+ "columns": [
341
+ "created_at"
342
+ ]
343
343
  }
344
344
  ],
345
345
  "version": "13b2dccb"
@@ -535,12 +535,6 @@
535
535
  }
536
536
  },
537
537
  "indexes": [
538
- {
539
- "name": "chat_participants_id_idx",
540
- "columns": [
541
- "id"
542
- ]
543
- },
544
538
  {
545
539
  "name": "chat_participants_slug_context_idx",
546
540
  "columns": [
@@ -548,6 +542,12 @@
548
542
  "context"
549
543
  ],
550
544
  "unique": true
545
+ },
546
+ {
547
+ "name": "chat_participants_created_at_idx",
548
+ "columns": [
549
+ "created_at"
550
+ ]
551
551
  }
552
552
  ],
553
553
  "version": "f70abec0"
@@ -658,12 +658,6 @@
658
658
  }
659
659
  },
660
660
  "indexes": [
661
- {
662
- "name": "chat_reactions_id_idx",
663
- "columns": [
664
- "id"
665
- ]
666
- },
667
661
  {
668
662
  "name": "chat_reactions_slug_context_idx",
669
663
  "columns": [
@@ -671,6 +665,12 @@
671
665
  "context"
672
666
  ],
673
667
  "unique": true
668
+ },
669
+ {
670
+ "name": "chat_reactions_created_at_idx",
671
+ "columns": [
672
+ "created_at"
673
+ ]
674
674
  }
675
675
  ],
676
676
  "version": "0ea62683"
@@ -810,12 +810,6 @@
810
810
  }
811
811
  },
812
812
  "indexes": [
813
- {
814
- "name": "chat_rooms_id_idx",
815
- "columns": [
816
- "id"
817
- ]
818
- },
819
813
  {
820
814
  "name": "chat_rooms_slug_context_idx",
821
815
  "columns": [
@@ -823,6 +817,12 @@
823
817
  "context"
824
818
  ],
825
819
  "unique": true
820
+ },
821
+ {
822
+ "name": "chat_rooms_created_at_idx",
823
+ "columns": [
824
+ "created_at"
825
+ ]
826
826
  }
827
827
  ],
828
828
  "version": "40be4b86"
@@ -912,12 +912,6 @@
912
912
  }
913
913
  },
914
914
  "indexes": [
915
- {
916
- "name": "chat_threads_id_idx",
917
- "columns": [
918
- "id"
919
- ]
920
- },
921
915
  {
922
916
  "name": "chat_threads_slug_context_idx",
923
917
  "columns": [
@@ -925,6 +919,12 @@
925
919
  "context"
926
920
  ],
927
921
  "unique": true
922
+ },
923
+ {
924
+ "name": "chat_threads_created_at_idx",
925
+ "columns": [
926
+ "created_at"
927
+ ]
928
928
  }
929
929
  ],
930
930
  "version": "760b62bd"
@@ -992,12 +992,6 @@
992
992
  }
993
993
  },
994
994
  "indexes": [
995
- {
996
- "name": "voice_gateway_turns_id_idx",
997
- "columns": [
998
- "id"
999
- ]
1000
- },
1001
995
  {
1002
996
  "name": "voice_gateway_turns_slug_context_idx",
1003
997
  "columns": [
@@ -1005,6 +999,12 @@
1005
999
  "context"
1006
1000
  ],
1007
1001
  "unique": true
1002
+ },
1003
+ {
1004
+ "name": "voice_gateway_turns_created_at_idx",
1005
+ "columns": [
1006
+ "created_at"
1007
+ ]
1008
1008
  }
1009
1009
  ],
1010
1010
  "version": "b0808d94"
@@ -1097,12 +1097,6 @@
1097
1097
  }
1098
1098
  },
1099
1099
  "indexes": [
1100
- {
1101
- "name": "voice_sessions_id_idx",
1102
- "columns": [
1103
- "id"
1104
- ]
1105
- },
1106
1100
  {
1107
1101
  "name": "voice_sessions_slug_context_idx",
1108
1102
  "columns": [
@@ -1110,6 +1104,12 @@
1110
1104
  "context"
1111
1105
  ],
1112
1106
  "unique": true
1107
+ },
1108
+ {
1109
+ "name": "voice_sessions_created_at_idx",
1110
+ "columns": [
1111
+ "created_at"
1112
+ ]
1113
1113
  }
1114
1114
  ],
1115
1115
  "version": "d9f462ed"
@@ -1360,7 +1360,12 @@
1360
1360
  "cli": true,
1361
1361
  "tenantScoped": {
1362
1362
  "mode": "optional"
1363
- }
1363
+ },
1364
+ "conflictColumns": [
1365
+ "tenant_id",
1366
+ "slug",
1367
+ "context"
1368
+ ]
1364
1369
  },
1365
1370
  "extends": "SmrtObject",
1366
1371
  "exportName": "AgentSession",
@@ -1500,24 +1505,32 @@
1500
1505
  }
1501
1506
  },
1502
1507
  "indexes": [
1503
- {
1504
- "name": "agent_sessions_id_idx",
1505
- "columns": [
1506
- "id"
1507
- ]
1508
- },
1509
1508
  {
1510
1509
  "name": "agent_sessions_slug_context_idx",
1511
1510
  "columns": [
1511
+ "tenant_id",
1512
1512
  "slug",
1513
1513
  "context"
1514
1514
  ],
1515
1515
  "unique": true
1516
1516
  },
1517
1517
  {
1518
- "name": "agent_sessions_tenant_id_idx",
1518
+ "name": "agent_sessions_tenant_id_created_at_idx",
1519
+ "columns": [
1520
+ "tenant_id",
1521
+ "created_at"
1522
+ ]
1523
+ },
1524
+ {
1525
+ "name": "agent_sessions_participant_profile_id_idx",
1526
+ "columns": [
1527
+ "participant_profile_id"
1528
+ ]
1529
+ },
1530
+ {
1531
+ "name": "agent_sessions_chat_room_id_idx",
1519
1532
  "columns": [
1520
- "tenant_id"
1533
+ "chat_room_id"
1521
1534
  ]
1522
1535
  }
1523
1536
  ],
@@ -1788,7 +1801,12 @@
1788
1801
  "cli": true,
1789
1802
  "tenantScoped": {
1790
1803
  "mode": "required"
1791
- }
1804
+ },
1805
+ "conflictColumns": [
1806
+ "tenant_id",
1807
+ "slug",
1808
+ "context"
1809
+ ]
1792
1810
  },
1793
1811
  "extends": "SmrtObject",
1794
1812
  "exportName": "ChatMessage",
@@ -1939,24 +1957,50 @@
1939
1957
  }
1940
1958
  },
1941
1959
  "indexes": [
1942
- {
1943
- "name": "chat_messages_id_idx",
1944
- "columns": [
1945
- "id"
1946
- ]
1947
- },
1948
1960
  {
1949
1961
  "name": "chat_messages_slug_context_idx",
1950
1962
  "columns": [
1963
+ "tenant_id",
1951
1964
  "slug",
1952
1965
  "context"
1953
1966
  ],
1954
1967
  "unique": true
1955
1968
  },
1956
1969
  {
1957
- "name": "chat_messages_tenant_id_idx",
1970
+ "name": "chat_messages_tenant_id_created_at_idx",
1971
+ "columns": [
1972
+ "tenant_id",
1973
+ "created_at"
1974
+ ]
1975
+ },
1976
+ {
1977
+ "name": "chat_messages_room_id_idx",
1978
+ "columns": [
1979
+ "room_id"
1980
+ ]
1981
+ },
1982
+ {
1983
+ "name": "chat_messages_thread_id_idx",
1984
+ "columns": [
1985
+ "thread_id"
1986
+ ]
1987
+ },
1988
+ {
1989
+ "name": "chat_messages_sender_profile_id_idx",
1990
+ "columns": [
1991
+ "sender_profile_id"
1992
+ ]
1993
+ },
1994
+ {
1995
+ "name": "chat_messages_agent_session_id_idx",
1996
+ "columns": [
1997
+ "agent_session_id"
1998
+ ]
1999
+ },
2000
+ {
2001
+ "name": "chat_messages_reply_to_message_id_idx",
1958
2002
  "columns": [
1959
- "tenant_id"
2003
+ "reply_to_message_id"
1960
2004
  ]
1961
2005
  }
1962
2006
  ],
@@ -2133,7 +2177,12 @@
2133
2177
  "cli": true,
2134
2178
  "tenantScoped": {
2135
2179
  "mode": "required"
2136
- }
2180
+ },
2181
+ "conflictColumns": [
2182
+ "tenant_id",
2183
+ "slug",
2184
+ "context"
2185
+ ]
2137
2186
  },
2138
2187
  "extends": "SmrtObject",
2139
2188
  "exportName": "ChatParticipant",
@@ -2271,24 +2320,38 @@
2271
2320
  }
2272
2321
  },
2273
2322
  "indexes": [
2274
- {
2275
- "name": "chat_participants_id_idx",
2276
- "columns": [
2277
- "id"
2278
- ]
2279
- },
2280
2323
  {
2281
2324
  "name": "chat_participants_slug_context_idx",
2282
2325
  "columns": [
2326
+ "tenant_id",
2283
2327
  "slug",
2284
2328
  "context"
2285
2329
  ],
2286
2330
  "unique": true
2287
2331
  },
2288
2332
  {
2289
- "name": "chat_participants_tenant_id_idx",
2333
+ "name": "chat_participants_tenant_id_created_at_idx",
2334
+ "columns": [
2335
+ "tenant_id",
2336
+ "created_at"
2337
+ ]
2338
+ },
2339
+ {
2340
+ "name": "chat_participants_room_id_idx",
2290
2341
  "columns": [
2291
- "tenant_id"
2342
+ "room_id"
2343
+ ]
2344
+ },
2345
+ {
2346
+ "name": "chat_participants_profile_id_idx",
2347
+ "columns": [
2348
+ "profile_id"
2349
+ ]
2350
+ },
2351
+ {
2352
+ "name": "chat_participants_last_read_message_id_idx",
2353
+ "columns": [
2354
+ "last_read_message_id"
2292
2355
  ]
2293
2356
  }
2294
2357
  ],
@@ -2358,7 +2421,12 @@
2358
2421
  "cli": false,
2359
2422
  "tenantScoped": {
2360
2423
  "mode": "required"
2361
- }
2424
+ },
2425
+ "conflictColumns": [
2426
+ "tenant_id",
2427
+ "slug",
2428
+ "context"
2429
+ ]
2362
2430
  },
2363
2431
  "extends": "SmrtObject",
2364
2432
  "exportName": "ChatReaction",
@@ -2440,24 +2508,32 @@
2440
2508
  }
2441
2509
  },
2442
2510
  "indexes": [
2443
- {
2444
- "name": "chat_reactions_id_idx",
2445
- "columns": [
2446
- "id"
2447
- ]
2448
- },
2449
2511
  {
2450
2512
  "name": "chat_reactions_slug_context_idx",
2451
2513
  "columns": [
2514
+ "tenant_id",
2452
2515
  "slug",
2453
2516
  "context"
2454
2517
  ],
2455
2518
  "unique": true
2456
2519
  },
2457
2520
  {
2458
- "name": "chat_reactions_tenant_id_idx",
2521
+ "name": "chat_reactions_tenant_id_created_at_idx",
2459
2522
  "columns": [
2460
- "tenant_id"
2523
+ "tenant_id",
2524
+ "created_at"
2525
+ ]
2526
+ },
2527
+ {
2528
+ "name": "chat_reactions_message_id_idx",
2529
+ "columns": [
2530
+ "message_id"
2531
+ ]
2532
+ },
2533
+ {
2534
+ "name": "chat_reactions_profile_id_idx",
2535
+ "columns": [
2536
+ "profile_id"
2461
2537
  ]
2462
2538
  }
2463
2539
  ],
@@ -2653,7 +2729,12 @@
2653
2729
  "cli": true,
2654
2730
  "tenantScoped": {
2655
2731
  "mode": "required"
2656
- }
2732
+ },
2733
+ "conflictColumns": [
2734
+ "tenant_id",
2735
+ "slug",
2736
+ "context"
2737
+ ]
2657
2738
  },
2658
2739
  "extends": "SmrtObject",
2659
2740
  "exportName": "ChatRoom",
@@ -2777,24 +2858,26 @@
2777
2858
  }
2778
2859
  },
2779
2860
  "indexes": [
2780
- {
2781
- "name": "chat_rooms_id_idx",
2782
- "columns": [
2783
- "id"
2784
- ]
2785
- },
2786
2861
  {
2787
2862
  "name": "chat_rooms_slug_context_idx",
2788
2863
  "columns": [
2864
+ "tenant_id",
2789
2865
  "slug",
2790
2866
  "context"
2791
2867
  ],
2792
2868
  "unique": true
2793
2869
  },
2794
2870
  {
2795
- "name": "chat_rooms_tenant_id_idx",
2871
+ "name": "chat_rooms_tenant_id_created_at_idx",
2796
2872
  "columns": [
2797
- "tenant_id"
2873
+ "tenant_id",
2874
+ "created_at"
2875
+ ]
2876
+ },
2877
+ {
2878
+ "name": "chat_rooms_created_by_profile_id_idx",
2879
+ "columns": [
2880
+ "created_by_profile_id"
2798
2881
  ]
2799
2882
  }
2800
2883
  ],
@@ -2902,7 +2985,12 @@
2902
2985
  "cli": true,
2903
2986
  "tenantScoped": {
2904
2987
  "mode": "required"
2905
- }
2988
+ },
2989
+ "conflictColumns": [
2990
+ "tenant_id",
2991
+ "slug",
2992
+ "context"
2993
+ ]
2906
2994
  },
2907
2995
  "extends": "SmrtObject",
2908
2996
  "exportName": "ChatThread",
@@ -2997,24 +3085,32 @@
2997
3085
  }
2998
3086
  },
2999
3087
  "indexes": [
3000
- {
3001
- "name": "chat_threads_id_idx",
3002
- "columns": [
3003
- "id"
3004
- ]
3005
- },
3006
3088
  {
3007
3089
  "name": "chat_threads_slug_context_idx",
3008
3090
  "columns": [
3091
+ "tenant_id",
3009
3092
  "slug",
3010
3093
  "context"
3011
3094
  ],
3012
3095
  "unique": true
3013
3096
  },
3014
3097
  {
3015
- "name": "chat_threads_tenant_id_idx",
3098
+ "name": "chat_threads_tenant_id_created_at_idx",
3016
3099
  "columns": [
3017
- "tenant_id"
3100
+ "tenant_id",
3101
+ "created_at"
3102
+ ]
3103
+ },
3104
+ {
3105
+ "name": "chat_threads_room_id_idx",
3106
+ "columns": [
3107
+ "room_id"
3108
+ ]
3109
+ },
3110
+ {
3111
+ "name": "chat_threads_root_message_id_idx",
3112
+ "columns": [
3113
+ "root_message_id"
3018
3114
  ]
3019
3115
  }
3020
3116
  ],
@@ -3260,12 +3356,6 @@
3260
3356
  }
3261
3357
  },
3262
3358
  "indexes": [
3263
- {
3264
- "name": "voice_gateway_turns_id_idx",
3265
- "columns": [
3266
- "id"
3267
- ]
3268
- },
3269
3359
  {
3270
3360
  "name": "voice_gateway_turns_voice_session_id_gateway_turn_id_idx",
3271
3361
  "columns": [
@@ -3275,9 +3365,17 @@
3275
3365
  "unique": true
3276
3366
  },
3277
3367
  {
3278
- "name": "voice_gateway_turns_tenant_id_idx",
3368
+ "name": "voice_gateway_turns_slug_context_idx",
3279
3369
  "columns": [
3280
- "tenant_id"
3370
+ "slug",
3371
+ "context"
3372
+ ]
3373
+ },
3374
+ {
3375
+ "name": "voice_gateway_turns_tenant_id_created_at_idx",
3376
+ "columns": [
3377
+ "tenant_id",
3378
+ "created_at"
3281
3379
  ]
3282
3380
  }
3283
3381
  ],
@@ -3551,7 +3649,12 @@
3551
3649
  "cli": true,
3552
3650
  "tenantScoped": {
3553
3651
  "mode": "required"
3554
- }
3652
+ },
3653
+ "conflictColumns": [
3654
+ "tenant_id",
3655
+ "slug",
3656
+ "context"
3657
+ ]
3555
3658
  },
3556
3659
  "extends": "SmrtObject",
3557
3660
  "exportName": "VoiceSession",
@@ -3727,24 +3830,56 @@
3727
3830
  }
3728
3831
  },
3729
3832
  "indexes": [
3730
- {
3731
- "name": "voice_sessions_id_idx",
3732
- "columns": [
3733
- "id"
3734
- ]
3735
- },
3736
3833
  {
3737
3834
  "name": "voice_sessions_slug_context_idx",
3738
3835
  "columns": [
3836
+ "tenant_id",
3739
3837
  "slug",
3740
3838
  "context"
3741
3839
  ],
3742
3840
  "unique": true
3743
3841
  },
3744
3842
  {
3745
- "name": "voice_sessions_tenant_id_idx",
3843
+ "name": "voice_sessions_tenant_id_created_at_idx",
3844
+ "columns": [
3845
+ "tenant_id",
3846
+ "created_at"
3847
+ ]
3848
+ },
3849
+ {
3850
+ "name": "voice_sessions_actor_profile_id_idx",
3851
+ "columns": [
3852
+ "actor_profile_id"
3853
+ ]
3854
+ },
3855
+ {
3856
+ "name": "voice_sessions_actor_user_id_idx",
3857
+ "columns": [
3858
+ "actor_user_id"
3859
+ ]
3860
+ },
3861
+ {
3862
+ "name": "voice_sessions_persona_id_idx",
3863
+ "columns": [
3864
+ "persona_id"
3865
+ ]
3866
+ },
3867
+ {
3868
+ "name": "voice_sessions_agent_session_id_idx",
3869
+ "columns": [
3870
+ "agent_session_id"
3871
+ ]
3872
+ },
3873
+ {
3874
+ "name": "voice_sessions_chat_room_id_idx",
3875
+ "columns": [
3876
+ "chat_room_id"
3877
+ ]
3878
+ },
3879
+ {
3880
+ "name": "voice_sessions_thread_id_idx",
3746
3881
  "columns": [
3747
- "tenant_id"
3882
+ "thread_id"
3748
3883
  ]
3749
3884
  }
3750
3885
  ],