@smartytalent/openai-tools 0.7.2 → 0.7.4

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 +51 -1
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -1240,7 +1240,7 @@
1240
1240
  "attributes": {
1241
1241
  "title": "TenantSsoAttributesSchema",
1242
1242
  "type": "object",
1243
- "description": "Enterprise SSO configuration for one tenant. Written only by the /v1/tenants/{tenantId}/sso doors (sysowner); the generic tenant PATCH strips settings.sso.",
1243
+ "description": "Enterprise SSO configuration for one tenant. The connection itself is written only by POST /v1/tenants/{tenantId}/sso (sysowner); the policy subset in TenantSsoPolicySchema is also reachable by the tenant's owner through PATCH. The generic tenant PATCH strips settings.sso.",
1244
1244
  "properties": {
1245
1245
  "provider": {
1246
1246
  "type": "string",
@@ -1300,6 +1300,14 @@
1300
1300
  "type": "string",
1301
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."
1302
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
+ },
1303
1311
  "idpDeleted": {
1304
1312
  "type": "boolean",
1305
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."
@@ -1323,6 +1331,48 @@
1323
1331
  }
1324
1332
  }
1325
1333
  },
1334
+ {
1335
+ "type": "function",
1336
+ "function": {
1337
+ "name": "update_tenant_sso",
1338
+ "description": "Update Tenant Enterprise SSO Policy",
1339
+ "parameters": {
1340
+ "type": "object",
1341
+ "properties": {
1342
+ "data": {
1343
+ "type": "object",
1344
+ "properties": {
1345
+ "type": {
1346
+ "type": "string",
1347
+ "enum": [
1348
+ "tenant-sso"
1349
+ ]
1350
+ },
1351
+ "attributes": {
1352
+ "title": "TenantSsoPolicySchema",
1353
+ "type": "object",
1354
+ "description": "The policy a customer's OWNER may set on top of an existing SSO connection (PATCH /v1/tenants/{tenantId}/sso). Deliberately a subset: these three fields reach nothing outside the tenant, whereas `domains` claims a name in a GLOBAL registry that phase 1 verifies by hand, and `entraTenantId`/`idpName` identify the connection itself - those stay on the sysowner-only POST. Every field is optional; whatever is omitted keeps its stored value.",
1355
+ "properties": {
1356
+ "required": {
1357
+ "type": "boolean",
1358
+ "description": "When true, password login is refused for this tenant's users. Owner and sysowner are always exempt (a break-glass account: an outage at the customer's IdP must not lock them out of the product, or out of this door), as is any user carrying meta.ssoExempt. Switching it from false to true also signs every account out - the enforcement trigger never sees a token refresh, and a refresh token lives 30 days."
1359
+ },
1360
+ "autoApprove": {
1361
+ "type": "boolean",
1362
+ "description": "When true, a JIT user is activated immediately with defaultRole instead of landing in a pending state. Off by default: domain-gated JIT makes the customer's whole workforce eligible, so this hands an operational role to anyone who can authenticate at their IdP."
1363
+ },
1364
+ "defaultRole": {
1365
+ "type": "string",
1366
+ "description": "Role granted when a pending JIT user is APPROVED - never granted by the act of signing in."
1367
+ }
1368
+ }
1369
+ }
1370
+ }
1371
+ }
1372
+ }
1373
+ }
1374
+ }
1375
+ },
1326
1376
  {
1327
1377
  "type": "function",
1328
1378
  "function": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",