@happyvertical/smrt-support 0.55.0 → 0.55.2

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-support",
5
- "packageVersion": "0.55.0",
5
+ "packageVersion": "0.55.2",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-support:ServiceTimeEntry": {
8
8
  "name": "servicetimeentry",
@@ -869,12 +869,25 @@
869
869
  "phase": {
870
870
  "type": "text",
871
871
  "required": false,
872
- "_meta": {}
872
+ "_meta": {},
873
+ "enum": [
874
+ "acknowledge",
875
+ "classify",
876
+ "answer",
877
+ "troubleshoot",
878
+ "resolve"
879
+ ]
873
880
  },
874
881
  "outcome": {
875
882
  "type": "text",
876
883
  "required": false,
877
- "_meta": {}
884
+ "_meta": {},
885
+ "enum": [
886
+ "completed",
887
+ "skipped",
888
+ "failed",
889
+ "handed_off"
890
+ ]
878
891
  },
879
892
  "confidence": {
880
893
  "type": "decimal",
@@ -1453,12 +1466,38 @@
1453
1466
  "eventType": {
1454
1467
  "type": "text",
1455
1468
  "required": false,
1456
- "_meta": {}
1469
+ "_meta": {},
1470
+ "enum": [
1471
+ "created",
1472
+ "interaction",
1473
+ "transition",
1474
+ "assignment",
1475
+ "ai_run",
1476
+ "handoff",
1477
+ "human_requested",
1478
+ "escalation",
1479
+ "target_scheduled",
1480
+ "target_satisfied",
1481
+ "target_breached",
1482
+ "target_paused",
1483
+ "target_resumed",
1484
+ "work_linked",
1485
+ "reopened",
1486
+ "plan_applied",
1487
+ "time_recorded",
1488
+ "note"
1489
+ ]
1457
1490
  },
1458
1491
  "actorKind": {
1459
1492
  "type": "text",
1460
1493
  "required": false,
1461
- "_meta": {}
1494
+ "_meta": {},
1495
+ "enum": [
1496
+ "client",
1497
+ "specialist",
1498
+ "agent",
1499
+ "system"
1500
+ ]
1462
1501
  },
1463
1502
  "actorProfileId": {
1464
1503
  "type": "crossPackageRef",
@@ -1857,7 +1896,17 @@
1857
1896
  "status": {
1858
1897
  "type": "text",
1859
1898
  "required": false,
1860
- "_meta": {}
1899
+ "_meta": {},
1900
+ "enum": [
1901
+ "new",
1902
+ "triaged",
1903
+ "assigned",
1904
+ "in_progress",
1905
+ "waiting_on_client",
1906
+ "escalated",
1907
+ "resolved",
1908
+ "closed"
1909
+ ]
1861
1910
  },
1862
1911
  "priority": {
1863
1912
  "type": "text",
@@ -2830,12 +2879,24 @@
2830
2879
  "bindingKind": {
2831
2880
  "type": "text",
2832
2881
  "required": false,
2833
- "_meta": {}
2882
+ "_meta": {},
2883
+ "enum": [
2884
+ "chat_room",
2885
+ "email_account"
2886
+ ]
2834
2887
  },
2835
2888
  "channelKind": {
2836
2889
  "type": "text",
2837
2890
  "required": false,
2838
- "_meta": {}
2891
+ "_meta": {},
2892
+ "enum": [
2893
+ "chat",
2894
+ "email",
2895
+ "phone",
2896
+ "voice",
2897
+ "web",
2898
+ "api"
2899
+ ]
2839
2900
  },
2840
2901
  "targetType": {
2841
2902
  "type": "text",
@@ -2963,6 +3024,7 @@
2963
3024
  "extends": "SmrtObject",
2964
3025
  "exportName": "SupportChannelBinding",
2965
3026
  "collectionExportName": "SupportChannelBindingCollection",
3027
+ "displayLabelField": "name",
2966
3028
  "schema": {
2967
3029
  "tableName": "support_channel_bindings",
2968
3030
  "ddl": "CREATE TABLE IF NOT EXISTS \"support_channel_bindings\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"binding_kind\" TEXT,\n \"channel_kind\" TEXT,\n \"target_type\" TEXT,\n \"target_id\" TEXT,\n \"client_profile_id\" UUID,\n \"project_id\" TEXT,\n \"plan_id\" UUID,\n \"enabled\" BOOLEAN,\n \"self_addresses\" TEXT,\n \"metadata\" TEXT\n);",
@@ -3416,6 +3478,7 @@
3416
3478
  "extends": "SmrtObject",
3417
3479
  "exportName": "SupportCompensationPlan",
3418
3480
  "collectionExportName": "SupportCompensationPlanCollection",
3481
+ "displayLabelField": "name",
3419
3482
  "schema": {
3420
3483
  "tableName": "support_compensation_plans",
3421
3484
  "ddl": "CREATE TABLE IF NOT EXISTS \"support_compensation_plans\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"hourly_rate\" REAL DEFAULT 0,\n \"currency\" TEXT,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"status\" TEXT,\n \"terms\" TEXT\n);",
@@ -3739,17 +3802,36 @@
3739
3802
  "direction": {
3740
3803
  "type": "text",
3741
3804
  "required": false,
3742
- "_meta": {}
3805
+ "_meta": {},
3806
+ "enum": [
3807
+ "inbound",
3808
+ "outbound",
3809
+ "internal"
3810
+ ]
3743
3811
  },
3744
3812
  "channelKind": {
3745
3813
  "type": "text",
3746
3814
  "required": false,
3747
- "_meta": {}
3815
+ "_meta": {},
3816
+ "enum": [
3817
+ "chat",
3818
+ "email",
3819
+ "phone",
3820
+ "voice",
3821
+ "web",
3822
+ "api"
3823
+ ]
3748
3824
  },
3749
3825
  "actorKind": {
3750
3826
  "type": "text",
3751
3827
  "required": false,
3752
- "_meta": {}
3828
+ "_meta": {},
3829
+ "enum": [
3830
+ "client",
3831
+ "specialist",
3832
+ "agent",
3833
+ "system"
3834
+ ]
3753
3835
  },
3754
3836
  "authorProfileId": {
3755
3837
  "type": "crossPackageRef",
@@ -4586,6 +4668,7 @@
4586
4668
  "extends": "SmrtObject",
4587
4669
  "exportName": "SupportPlan",
4588
4670
  "collectionExportName": "SupportPlanCollection",
4671
+ "displayLabelField": "name",
4589
4672
  "schema": {
4590
4673
  "tableName": "support_plans",
4591
4674
  "ddl": "CREATE TABLE IF NOT EXISTS \"support_plans\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"plan_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"status\" TEXT,\n \"channels\" TEXT,\n \"timezone\" TEXT,\n \"coverage\" TEXT,\n \"holidays\" TEXT,\n \"severity_definitions\" TEXT,\n \"targets\" TEXT,\n \"pause_statuses\" TEXT,\n \"escalation_policy\" TEXT,\n \"availability_fee_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"included_minutes\" INTEGER DEFAULT 0,\n \"overage_hourly_rate\" REAL DEFAULT 0,\n \"on_call_hourly_rate\" REAL DEFAULT 0,\n \"time_approval_policy\" TEXT,\n \"subscription_plan_key\" TEXT,\n \"metadata\" TEXT\n);",
@@ -5203,6 +5286,7 @@
5203
5286
  "extends": "SmrtObject",
5204
5287
  "exportName": "SupportPolicy",
5205
5288
  "collectionExportName": "SupportPolicyCollection",
5289
+ "displayLabelField": "name",
5206
5290
  "schema": {
5207
5291
  "tableName": "support_policies",
5208
5292
  "ddl": "CREATE TABLE IF NOT EXISTS \"support_policies\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"plan_id\" UUID,\n \"project_id\" TEXT,\n \"enabled\" BOOLEAN,\n \"auto_acknowledge\" BOOLEAN,\n \"auto_classify\" BOOLEAN,\n \"auto_answer\" BOOLEAN,\n \"auto_troubleshoot\" BOOLEAN,\n \"auto_resolve\" BOOLEAN,\n \"auto_resolve_max_severity\" TEXT,\n \"confidence_threshold\" REAL DEFAULT 0.7,\n \"max_auto_attempts\" INTEGER DEFAULT 1,\n \"auto_send_email_replies\" BOOLEAN,\n \"sensitive_categories\" TEXT,\n \"allowed_categories\" TEXT,\n \"allowed_tools\" TEXT,\n \"metadata\" TEXT\n);",
@@ -5606,7 +5690,13 @@
5606
5690
  "targetType": {
5607
5691
  "type": "text",
5608
5692
  "required": false,
5609
- "_meta": {}
5693
+ "_meta": {},
5694
+ "enum": [
5695
+ "acknowledgement",
5696
+ "response",
5697
+ "update",
5698
+ "resolution"
5699
+ ]
5610
5700
  },
5611
5701
  "cycle": {
5612
5702
  "type": "integer",
@@ -5634,7 +5724,14 @@
5634
5724
  "status": {
5635
5725
  "type": "text",
5636
5726
  "required": false,
5637
- "_meta": {}
5727
+ "_meta": {},
5728
+ "enum": [
5729
+ "pending",
5730
+ "paused",
5731
+ "satisfied",
5732
+ "breached",
5733
+ "cancelled"
5734
+ ]
5638
5735
  },
5639
5736
  "pausedAt": {
5640
5737
  "type": "datetime",
@@ -6152,7 +6249,13 @@
6152
6249
  "reason": {
6153
6250
  "type": "text",
6154
6251
  "required": false,
6155
- "_meta": {}
6252
+ "_meta": {},
6253
+ "enum": [
6254
+ "target_breach",
6255
+ "target_risk",
6256
+ "manual",
6257
+ "ai_trigger"
6258
+ ]
6156
6259
  },
6157
6260
  "targetId": {
6158
6261
  "type": "foreignKey",
@@ -6694,7 +6797,13 @@
6694
6797
  "status": {
6695
6798
  "type": "text",
6696
6799
  "required": false,
6697
- "_meta": {}
6800
+ "_meta": {},
6801
+ "enum": [
6802
+ "pending",
6803
+ "final",
6804
+ "corrected",
6805
+ "voided"
6806
+ ]
6698
6807
  },
6699
6808
  "finalizedAt": {
6700
6809
  "type": "datetime",
@@ -7187,7 +7296,13 @@
7187
7296
  "status": {
7188
7297
  "type": "text",
7189
7298
  "required": false,
7190
- "_meta": {}
7299
+ "_meta": {},
7300
+ "enum": [
7301
+ "pending",
7302
+ "final",
7303
+ "corrected",
7304
+ "voided"
7305
+ ]
7191
7306
  },
7192
7307
  "finalizedAt": {
7193
7308
  "type": "datetime",
@@ -7640,7 +7755,11 @@
7640
7755
  "status": {
7641
7756
  "type": "text",
7642
7757
  "required": false,
7643
- "_meta": {}
7758
+ "_meta": {},
7759
+ "enum": [
7760
+ "active",
7761
+ "inactive"
7762
+ ]
7644
7763
  },
7645
7764
  "languages": {
7646
7765
  "type": "text",
@@ -8087,7 +8206,12 @@
8087
8206
  "level": {
8088
8207
  "type": "text",
8089
8208
  "required": false,
8090
- "_meta": {}
8209
+ "_meta": {},
8210
+ "enum": [
8211
+ "trainee",
8212
+ "qualified",
8213
+ "expert"
8214
+ ]
8091
8215
  },
8092
8216
  "effectiveFrom": {
8093
8217
  "type": "datetime",
@@ -8478,7 +8602,12 @@
8478
8602
  "kind": {
8479
8603
  "type": "text",
8480
8604
  "required": false,
8481
- "_meta": {}
8605
+ "_meta": {},
8606
+ "enum": [
8607
+ "weekly",
8608
+ "on_call",
8609
+ "time_off"
8610
+ ]
8482
8611
  },
8483
8612
  "weekday": {
8484
8613
  "type": "integer",
@@ -8850,7 +8979,11 @@
8850
8979
  "linkKind": {
8851
8980
  "type": "text",
8852
8981
  "required": false,
8853
- "_meta": {}
8982
+ "_meta": {},
8983
+ "enum": [
8984
+ "support_work_item",
8985
+ "development_work_item"
8986
+ ]
8854
8987
  },
8855
8988
  "targetType": {
8856
8989
  "type": "text",
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-support",
6
- "packageVersion": "0.55.0",
6
+ "packageVersion": "0.55.2",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "69877a424a0beed45f1f0c0ffa877544a5f72a8c33fabb1a7d6edabd9e667f49",
11
- "packageJson": "662624c2ac1ce12a9efb0d5406315835796adf4ca742771aeb5b10560a74b8fb",
10
+ "manifest": "5dfa7073a3d12629135e1924be4a875d5a92045803e0f789158d0206e2b58288",
11
+ "packageJson": "d337906bb6aac419aa1490987669c9c1ae3e27f6cbf039cc312a6f2971c93865",
12
12
  "agents": "2ad2109ce8b2880f6144b97076a94ed185c68e84dfcd468f368d6a571ece0ef7"
13
13
  },
14
14
  "exports": [
@@ -1664,6 +1664,7 @@
1664
1664
  {
1665
1665
  "name": "SupportChannelBinding",
1666
1666
  "qualifiedName": "@happyvertical/smrt-support:SupportChannelBinding",
1667
+ "displayLabelField": "name",
1667
1668
  "collection": "supportchannelbindings",
1668
1669
  "tableName": "support_channel_bindings",
1669
1670
  "packageName": "@happyvertical/smrt-support",
@@ -1958,6 +1959,7 @@
1958
1959
  {
1959
1960
  "name": "SupportCompensationPlan",
1960
1961
  "qualifiedName": "@happyvertical/smrt-support:SupportCompensationPlan",
1962
+ "displayLabelField": "name",
1961
1963
  "collection": "supportcompensationplans",
1962
1964
  "tableName": "support_compensation_plans",
1963
1965
  "packageName": "@happyvertical/smrt-support",
@@ -2496,6 +2498,7 @@
2496
2498
  {
2497
2499
  "name": "SupportPlan",
2498
2500
  "qualifiedName": "@happyvertical/smrt-support:SupportPlan",
2501
+ "displayLabelField": "name",
2499
2502
  "collection": "supportplans",
2500
2503
  "tableName": "support_plans",
2501
2504
  "packageName": "@happyvertical/smrt-support",
@@ -3020,6 +3023,7 @@
3020
3023
  {
3021
3024
  "name": "SupportPolicy",
3022
3025
  "qualifiedName": "@happyvertical/smrt-support:SupportPolicy",
3026
+ "displayLabelField": "name",
3023
3027
  "collection": "supportpolicies",
3024
3028
  "tableName": "support_policies",
3025
3029
  "packageName": "@happyvertical/smrt-support",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-support",
3
- "version": "0.55.0",
3
+ "version": "0.55.2",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "AI-first Support Cases: channel-neutral intake, lifecycle, routing, service targets, and service time for the SMRT framework",
6
6
  "type": "module",
@@ -26,17 +26,17 @@
26
26
  "./manifest.json": "./dist/manifest.json"
27
27
  },
28
28
  "dependencies": {
29
- "@happyvertical/logger": "^0.102.1",
30
- "@happyvertical/smrt-chat": "0.55.0",
31
- "@happyvertical/smrt-core": "0.55.0",
32
- "@happyvertical/smrt-jobs": "0.55.0",
33
- "@happyvertical/smrt-messages": "0.55.0",
34
- "@happyvertical/smrt-projects": "0.55.0",
35
- "@happyvertical/smrt-tenancy": "0.55.0",
36
- "@happyvertical/smrt-timesheets": "0.55.0",
37
- "@happyvertical/smrt-ui": "0.55.0",
38
- "@happyvertical/smrt-users": "0.55.0",
39
- "@happyvertical/sql": "^0.102.1"
29
+ "@happyvertical/logger": "^0.102.2",
30
+ "@happyvertical/smrt-chat": "0.55.2",
31
+ "@happyvertical/smrt-core": "0.55.2",
32
+ "@happyvertical/smrt-jobs": "0.55.2",
33
+ "@happyvertical/smrt-messages": "0.55.2",
34
+ "@happyvertical/smrt-projects": "0.55.2",
35
+ "@happyvertical/smrt-tenancy": "0.55.2",
36
+ "@happyvertical/smrt-timesheets": "0.55.2",
37
+ "@happyvertical/smrt-ui": "0.55.2",
38
+ "@happyvertical/smrt-users": "0.55.2",
39
+ "@happyvertical/sql": "^0.102.2"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "svelte": "^5.57.0"
@@ -47,7 +47,7 @@
47
47
  }
48
48
  },
49
49
  "devDependencies": {
50
- "@happyvertical/smrt-vitest": "0.55.0",
50
+ "@happyvertical/smrt-vitest": "0.55.2",
51
51
  "@sveltejs/package": "^2.5.8",
52
52
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
53
53
  "@types/node": "24.13.6",