@smartytalent/openai-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
|
@@ -22057,6 +22057,15 @@
|
|
|
22057
22057
|
"description": "Color theme for the notification avatar",
|
|
22058
22058
|
"default": "primary"
|
|
22059
22059
|
},
|
|
22060
|
+
"messageKey": {
|
|
22061
|
+
"type": "string",
|
|
22062
|
+
"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."
|
|
22063
|
+
},
|
|
22064
|
+
"messageParams": {
|
|
22065
|
+
"type": "object",
|
|
22066
|
+
"additionalProperties": true,
|
|
22067
|
+
"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."
|
|
22068
|
+
},
|
|
22060
22069
|
"created": {
|
|
22061
22070
|
"type": "string",
|
|
22062
22071
|
"format": "date-time",
|
|
@@ -22072,21 +22081,37 @@
|
|
|
22072
22081
|
"relationships": {
|
|
22073
22082
|
"title": "NotificationRelationshipsSchema",
|
|
22074
22083
|
"type": "object",
|
|
22084
|
+
"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.",
|
|
22075
22085
|
"properties": {
|
|
22076
|
-
"
|
|
22086
|
+
"user": {
|
|
22077
22087
|
"type": "object",
|
|
22088
|
+
"description": "Who the notification is FOR. Singular and to-one on the wire.",
|
|
22078
22089
|
"properties": {
|
|
22079
22090
|
"data": {
|
|
22080
|
-
"type": "
|
|
22081
|
-
"
|
|
22082
|
-
"type":
|
|
22083
|
-
|
|
22084
|
-
|
|
22085
|
-
|
|
22086
|
-
|
|
22087
|
-
|
|
22088
|
-
|
|
22089
|
-
|
|
22091
|
+
"type": "object",
|
|
22092
|
+
"properties": {
|
|
22093
|
+
"type": {
|
|
22094
|
+
"type": "string"
|
|
22095
|
+
},
|
|
22096
|
+
"id": {
|
|
22097
|
+
"type": "string"
|
|
22098
|
+
}
|
|
22099
|
+
}
|
|
22100
|
+
}
|
|
22101
|
+
}
|
|
22102
|
+
},
|
|
22103
|
+
"subject": {
|
|
22104
|
+
"type": "object",
|
|
22105
|
+
"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.",
|
|
22106
|
+
"properties": {
|
|
22107
|
+
"data": {
|
|
22108
|
+
"type": "object",
|
|
22109
|
+
"properties": {
|
|
22110
|
+
"type": {
|
|
22111
|
+
"type": "string"
|
|
22112
|
+
},
|
|
22113
|
+
"id": {
|
|
22114
|
+
"type": "string"
|
|
22090
22115
|
}
|
|
22091
22116
|
}
|
|
22092
22117
|
}
|