@smartytalent/openai-tools 0.8.9 → 0.8.11

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 +15 -3
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -242,7 +242,9 @@
242
242
  }
243
243
  },
244
244
  "language": {
245
- "type": "string"
245
+ "type": "string",
246
+ "pattern": "^[a-z]{2}-[A-Z]{2}$",
247
+ "description": "THE ORGANISATION'S OWN LANGUAGE - the tenant-level default\nevery surface falls back to when nothing more specific says\notherwise. BCP-47 (`pl-PL`, not `pl`). Supported today:\nen-US, pl-PL, de-DE, it-IT, fr-FR, cs-CZ, he-IL.\n\nDistinct from `activeLanguages`, which is an UNORDERED SET of\nthe locales a tenant publishes in and carries no notion of a\nprimary one - never read `activeLanguages[0]` as the default.\nAlso distinct from a user's Cognito `locale`, which is one\nrecruiter's interface language.\n\nRead by the outbound-email locale chain, conversation\nlanguage, meeting lobby locale, careers `sourceLanguage` at\ncreate, and the translation target of the file/talent/\npersona/timeline/report AI paths. Onboarding seeds every new\nuser's Cognito locale from it.\n\nClient-writable through tenant create/PATCH (settings merge\nis shallow, so sending only `language` preserves the other\nsettings keys). NOTE: the server does not yet enforce this\npattern on write - consumers validate defensively and fall\nback to en-US."
246
248
  },
247
249
  "calling": {
248
250
  "type": "object",
@@ -704,7 +706,9 @@
704
706
  }
705
707
  },
706
708
  "language": {
707
- "type": "string"
709
+ "type": "string",
710
+ "pattern": "^[a-z]{2}-[A-Z]{2}$",
711
+ "description": "THE ORGANISATION'S OWN LANGUAGE - the tenant-level default\nevery surface falls back to when nothing more specific says\notherwise. BCP-47 (`pl-PL`, not `pl`). Supported today:\nen-US, pl-PL, de-DE, it-IT, fr-FR, cs-CZ, he-IL.\n\nDistinct from `activeLanguages`, which is an UNORDERED SET of\nthe locales a tenant publishes in and carries no notion of a\nprimary one - never read `activeLanguages[0]` as the default.\nAlso distinct from a user's Cognito `locale`, which is one\nrecruiter's interface language.\n\nRead by the outbound-email locale chain, conversation\nlanguage, meeting lobby locale, careers `sourceLanguage` at\ncreate, and the translation target of the file/talent/\npersona/timeline/report AI paths. Onboarding seeds every new\nuser's Cognito locale from it.\n\nClient-writable through tenant create/PATCH (settings merge\nis shallow, so sending only `language` preserves the other\nsettings keys). NOTE: the server does not yet enforce this\npattern on write - consumers validate defensively and fall\nback to en-US."
708
712
  },
709
713
  "calling": {
710
714
  "type": "object",
@@ -10798,7 +10802,15 @@
10798
10802
  },
10799
10803
  "translate": {
10800
10804
  "type": "boolean",
10801
- "description": "Write-only: async-fill missing locale entries of the draft from sourceLanguage."
10805
+ "description": "Write-only: async-fill missing locale entries of the draft from sourceLanguage. Sent with `generate`, it runs AFTER the generator instead of racing it."
10806
+ },
10807
+ "generate": {
10808
+ "type": "boolean",
10809
+ "description": "Write-only: async-compose a WHOLE draft from the tenant's brand and its published live roles. Cannot ride a status change; refused on an archived page; a draft that already carries authored text is a 409 SM_CAREERS_DRAFT_NOT_EMPTY without generateOverwrite. Progress in meta.generation."
10810
+ },
10811
+ "generateOverwrite": {
10812
+ "type": "boolean",
10813
+ "description": "Write-only: consent to replace a draft that already has text. Meaningless without `generate`."
10802
10814
  },
10803
10815
  "content": {
10804
10816
  "title": "CareersContentSchema",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.8.9",
3
+ "version": "0.8.11",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",