@smartytalent/openai-tools 0.7.4 → 0.7.6

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 (2) hide show
  1. package/dist/tools.json +12 -2
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -1462,10 +1462,11 @@
1462
1462
  "properties": {
1463
1463
  "filterStatus": {
1464
1464
  "type": "string",
1465
- "description": "Returns users with the current status (active, archived). If not provided, the default value will be set to 'active'.",
1465
+ "description": "Returns users with this status. Omitting it returns EVERY status - the server applies no default, so `pending` accounts already appear in an unfiltered list. `pending` is the approval queue: a JIT user provisioned through enterprise SSO lands there and holds no tenant claims at all until an owner or admin flips them to active.",
1466
1466
  "enum": [
1467
1467
  "active",
1468
- "archived"
1468
+ "archived",
1469
+ "pending"
1469
1470
  ]
1470
1471
  },
1471
1472
  "filterCreatedFrom": {
@@ -22056,6 +22057,15 @@
22056
22057
  "description": "Color theme for the notification avatar",
22057
22058
  "default": "primary"
22058
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
+ },
22059
22069
  "created": {
22060
22070
  "type": "string",
22061
22071
  "format": "date-time",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",