@smartytalent/mcp-tools 0.7.5 → 0.7.7
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/dist/tools.json +36 -11
- package/package.json +1 -1
package/dist/tools.json
CHANGED
|
@@ -22737,6 +22737,15 @@
|
|
|
22737
22737
|
"description": "Color theme for the notification avatar",
|
|
22738
22738
|
"default": "primary"
|
|
22739
22739
|
},
|
|
22740
|
+
"messageKey": {
|
|
22741
|
+
"type": "string",
|
|
22742
|
+
"description": "Identifier of the message to render, e.g. `user.pendingApproval`. The bell looks it up in the client's own dictionaries and substitutes messageParams, so the sentence is produced in whatever language the reader has set AT DISPLAY TIME - switching language re-renders the whole history, and adding a platform language needs no backend change and no migration of stored rows. Same shape the mobile platforms use natively (APNs loc-key/loc-args, FCM loc_key/loc_args). Absent on producers that have not migrated yet; `title`/`subtitle` remain the English fallback, so a client that does not recognise a key must fall back to them rather than render nothing."
|
|
22743
|
+
},
|
|
22744
|
+
"messageParams": {
|
|
22745
|
+
"type": "object",
|
|
22746
|
+
"additionalProperties": true,
|
|
22747
|
+
"description": "Variable parts of the message, substituted into the dictionary entry for messageKey - e.g. {name, email} for `user.pendingApproval`. Names must match what the client dictionary expects: a mismatch surfaces as an untranslated placeholder, so the agreed keys and parameter names belong in the FE task, not in tribal memory."
|
|
22748
|
+
},
|
|
22740
22749
|
"created": {
|
|
22741
22750
|
"type": "string",
|
|
22742
22751
|
"format": "date-time",
|
|
@@ -22752,21 +22761,37 @@
|
|
|
22752
22761
|
"relationships": {
|
|
22753
22762
|
"title": "NotificationRelationshipsSchema",
|
|
22754
22763
|
"type": "object",
|
|
22764
|
+
"description": "Declared in the WIRE shape, not the storage shape. Rows keep to-many entries as arrays, but transform_all_relationships serialises `users` to-ONE (RELATIONSHIP_TYPES says cardinality one) and renames it `user` - a spec written from the row therefore matches nothing and the generated client silently drops the whole relationship.",
|
|
22755
22765
|
"properties": {
|
|
22756
|
-
"
|
|
22766
|
+
"user": {
|
|
22757
22767
|
"type": "object",
|
|
22768
|
+
"description": "Who the notification is FOR. Singular and to-one on the wire.",
|
|
22758
22769
|
"properties": {
|
|
22759
22770
|
"data": {
|
|
22760
|
-
"type": "
|
|
22761
|
-
"
|
|
22762
|
-
"type":
|
|
22763
|
-
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
|
|
22767
|
-
|
|
22768
|
-
|
|
22769
|
-
|
|
22771
|
+
"type": "object",
|
|
22772
|
+
"properties": {
|
|
22773
|
+
"type": {
|
|
22774
|
+
"type": "string"
|
|
22775
|
+
},
|
|
22776
|
+
"id": {
|
|
22777
|
+
"type": "string"
|
|
22778
|
+
}
|
|
22779
|
+
}
|
|
22780
|
+
}
|
|
22781
|
+
}
|
|
22782
|
+
},
|
|
22783
|
+
"subject": {
|
|
22784
|
+
"type": "object",
|
|
22785
|
+
"description": "What the notification is ABOUT - the target of the bell's deep link. Always this name, whatever the resource is, and it carries its own `type` so the client routes on that. Producers used to key this by resource type (`tasks`, `jobs`, ...), which cannot be declared here without enumerating every type any producer might ever use, so the typed client dropped all of them; it also collided with `user` outright when the subject was itself a user, overwriting the recipient. Absent when the notification is about nothing in particular.",
|
|
22786
|
+
"properties": {
|
|
22787
|
+
"data": {
|
|
22788
|
+
"type": "object",
|
|
22789
|
+
"properties": {
|
|
22790
|
+
"type": {
|
|
22791
|
+
"type": "string"
|
|
22792
|
+
},
|
|
22793
|
+
"id": {
|
|
22794
|
+
"type": "string"
|
|
22770
22795
|
}
|
|
22771
22796
|
}
|
|
22772
22797
|
}
|