@smartytalent/openai-tools 0.7.1 → 0.7.3

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 +27 -3
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -349,7 +349,15 @@
349
349
  "plan": {
350
350
  "type": "string",
351
351
  "minLength": 1,
352
- "maxLength": 255
352
+ "maxLength": 255,
353
+ "enum": [
354
+ "startup",
355
+ "growth",
356
+ "expansion",
357
+ "corporate",
358
+ "system"
359
+ ],
360
+ "description": "Billing plan. The API Gateway authorizer maps custom:userPlan onto a usage plan key and falls back to `system` - the PLATFORM's own plan - for anything it does not recognise, so an invented name does not fail, it silently meters that customer against our internal quota. `enterprise` was such a name (a second word for `corporate`) and was folded into it 2026-07-27. NOTE: the server checks this list explicitly, because validate_item honours type/pattern/length but IGNORES enum."
353
361
  },
354
362
  "activeLanguages": {
355
363
  "type": "array",
@@ -803,7 +811,15 @@
803
811
  "plan": {
804
812
  "type": "string",
805
813
  "minLength": 1,
806
- "maxLength": 255
814
+ "maxLength": 255,
815
+ "enum": [
816
+ "startup",
817
+ "growth",
818
+ "expansion",
819
+ "corporate",
820
+ "system"
821
+ ],
822
+ "description": "Billing plan. The API Gateway authorizer maps custom:userPlan onto a usage plan key and falls back to `system` - the PLATFORM's own plan - for anything it does not recognise, so an invented name does not fail, it silently meters that customer against our internal quota. `enterprise` was such a name (a second word for `corporate`) and was folded into it 2026-07-27. NOTE: the server checks this list explicitly, because validate_item honours type/pattern/length but IGNORES enum."
807
823
  },
808
824
  "activeLanguages": {
809
825
  "type": "array",
@@ -1284,6 +1300,14 @@
1284
1300
  "type": "string",
1285
1301
  "description": "The admin-consent link an operator sends to the customer's IT. Built server-side so the app registration id is never hardcoded in a client. Absent if the platform Microsoft provider cannot be read."
1286
1302
  },
1303
+ "sessionsRevoked": {
1304
+ "type": "integer",
1305
+ "description": "POST response, present ONLY on the transition to required=true: how many accounts were signed out everywhere. The PreAuthentication gate stops new password sign-ins but never fires on token refresh, and a refresh token lives 30 days - so without this sweep the switch would take a month to take effect for anyone already signed in. Nobody is exempt, including the break-glass roles: they keep their password and simply sign in again."
1306
+ },
1307
+ "sessionsFailed": {
1308
+ "type": "integer",
1309
+ "description": "POST response, alongside sessionsRevoked: accounts the sweep could not sign out. Non-zero means the door is partially open - those sessions keep working until their refresh token expires - and the operator is the only one positioned to see it, which is why it is returned rather than only logged."
1310
+ },
1287
1311
  "idpDeleted": {
1288
1312
  "type": "boolean",
1289
1313
  "description": "DELETE response only: whether the customer's Cognito identity provider was actually removed. False when it was already gone, so a retry of the teardown reads as success rather than an error."
@@ -1297,7 +1321,7 @@
1297
1321
  },
1298
1322
  "loginUrl": {
1299
1323
  "type": "string",
1300
- "description": "Ready-made login link for this customer's employees (a tile in their Entra My Apps, an intranet bookmark, the welcome email). Carries identity_provider so Cognito goes straight to their Entra. There is deliberately no email-domain discovery endpoint: Cognito's own domain routing is SAML-only, and a public discovery endpoint would be an oracle for whether a given company is our customer. Lands in the myaccount app, which every role can reach - a JIT employee in the pending state has no role yet, so a role-scoped app would refuse them and the link would look broken. Derived on read, never stored. Absent if the enterprise app client cannot be read."
1324
+ "description": "Ready-made login link for this customer's employees (a tile in their Entra My Apps, an intranet bookmark, the welcome email), of the form https://myaccount.{domain}/sso?idp=ms-{shortCode}. It points at the APP, never at Cognito's authorize endpoint: nextauth refuses a callback it did not initiate, because the state, nonce and PKCE verifier it validates against live in cookies it sets while building the authorize URL itself - a hand-assembled Cognito link fails with 'State cookie was missing' however correct its parameters are. The page forwards idp as identity_provider, which also keeps the enterprise client's hosted page from drawing a button for every customer IdP on it. There is deliberately no email-domain discovery endpoint: Cognito's own domain routing is SAML-only, and a public discovery endpoint would be an oracle for whether a given company is our customer. Lands in the myaccount app, which every role can reach - a JIT employee in the pending state has no role yet, so a role-scoped app would refuse them and the link would look broken. Derived on read, never stored."
1301
1325
  }
1302
1326
  }
1303
1327
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",