@aikaara/chat-sdk 0.8.3 → 0.8.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.
@@ -1366,6 +1366,20 @@ export declare interface SsoDescriptor {
1366
1366
  name?: string;
1367
1367
  phone?: string;
1368
1368
  };
1369
+ /**
1370
+ * Name of the field inside the `{credentials: {...}}` body posted to
1371
+ * `/sso_exchange`. Default `"credential"`. Set to match what the partner's
1372
+ * `/auth` leg expects — e.g. `"idToken"` for legacy Google flows, `"token"`
1373
+ * for partner JWTs.
1374
+ */
1375
+ credentialFieldName?: string;
1376
+ /**
1377
+ * Key under `user.properties` that the sso_exchange response carries the
1378
+ * tenant session token in. Set by `user_provisioning.response_map.properties`
1379
+ * server-side. Default `"partner_token"`. The browser uses this token as
1380
+ * the Bearer for `descriptor.auth.endpoint` (e.g. `chatbuddy/auth`).
1381
+ */
1382
+ tenantTokenProperty?: string;
1369
1383
  }
1370
1384
 
1371
1385
  export declare class SsoExchangeAdapter {
package/dist/index.d.ts CHANGED
@@ -1267,6 +1267,20 @@ export declare interface SsoDescriptor {
1267
1267
  name?: string;
1268
1268
  phone?: string;
1269
1269
  };
1270
+ /**
1271
+ * Name of the field inside the `{credentials: {...}}` body posted to
1272
+ * `/sso_exchange`. Default `"credential"`. Set to match what the partner's
1273
+ * `/auth` leg expects — e.g. `"idToken"` for legacy Google flows, `"token"`
1274
+ * for partner JWTs.
1275
+ */
1276
+ credentialFieldName?: string;
1277
+ /**
1278
+ * Key under `user.properties` that the sso_exchange response carries the
1279
+ * tenant session token in. Set by `user_provisioning.response_map.properties`
1280
+ * server-side. Default `"partner_token"`. The browser uses this token as
1281
+ * the Bearer for `descriptor.auth.endpoint` (e.g. `chatbuddy/auth`).
1282
+ */
1283
+ tenantTokenProperty?: string;
1270
1284
  }
1271
1285
 
1272
1286
  export declare class SsoExchangeAdapter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikaara/chat-sdk",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "type": "module",
5
5
  "description": "Aikaara Chat SDK — embeddable chat widget and headless client",
6
6
  "license": "MIT",