@seamapi/http 1.29.0 → 1.30.1
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.
- package/dist/connect.cjs +9 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +5 -1
- package/lib/seam/connect/auth.js +1 -1
- package/lib/seam/connect/auth.js.map +1 -1
- package/lib/seam/connect/routes/user-identities.d.ts +4 -0
- package/lib/seam/connect/routes/user-identities.js +8 -0
- package/lib/seam/connect/routes/user-identities.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/auth.ts +1 -1
- package/src/lib/seam/connect/routes/user-identities.ts +20 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -284,7 +284,7 @@ var isPersonalAccessToken = (token) => isAccessToken(token);
|
|
|
284
284
|
|
|
285
285
|
// src/lib/seam/connect/auth.ts
|
|
286
286
|
var getAuthHeaders = (options) => {
|
|
287
|
-
if ("publishableKey" in options) {
|
|
287
|
+
if ("publishableKey" in options && options.publishableKey !== null) {
|
|
288
288
|
return getAuthHeadersForPublishableKey(options.publishableKey);
|
|
289
289
|
}
|
|
290
290
|
if (isSeamHttpOptionsWithApiKey(options)) {
|
|
@@ -4582,6 +4582,14 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
4582
4582
|
responseKey: void 0
|
|
4583
4583
|
});
|
|
4584
4584
|
}
|
|
4585
|
+
generateInstantKey(body) {
|
|
4586
|
+
return new SeamHttpRequest(this, {
|
|
4587
|
+
pathname: "/user_identities/generate_instant_key",
|
|
4588
|
+
method: "post",
|
|
4589
|
+
body,
|
|
4590
|
+
responseKey: "instant_key"
|
|
4591
|
+
});
|
|
4592
|
+
}
|
|
4585
4593
|
get(body) {
|
|
4586
4594
|
return new SeamHttpRequest(this, {
|
|
4587
4595
|
pathname: "/user_identities/get",
|