@palbase/web 7.1.0 → 7.2.0
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/{analytics-facade-CZIwbsvG.d.ts → analytics-facade-DLfnVVwL.d.ts} +39 -0
- package/dist/{analytics-facade-esr6cOBN.d.cts → analytics-facade-jyXv7Cu4.d.cts} +39 -0
- package/dist/{chunk-P6TWUWZC.js → chunk-VXQUBBHG.js} +36 -2
- package/dist/chunk-VXQUBBHG.js.map +1 -0
- package/dist/index.cjs +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +35 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +3 -3
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +1 -1
- package/dist/next/client.cjs +35 -1
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.js +1 -1
- package/dist/next/index.cjs +35 -1
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.d.cts +2 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/{pb-BT-vKA4j.d.cts → pb-CfYQGEn0.d.cts} +1 -1
- package/dist/{pb-AWwslm5m.d.ts → pb-DdzpEkPY.d.ts} +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-P6TWUWZC.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { f as AnalyticsProperties, g as AuthChangeEvent, h as AuthState, i as AuthSuccess, A as AuthUser, j as Call, k as CallChangeCallback, l as CallParticipant, m as CallState, C as Chat, n as ChatBackend, o as ChatDraft, p as ChatKind, b as ChatMember, c as ChatMessage, q as ChatMessageKind, r as ChatRole, s as ChatState, t as CommsPrefs, F as FlagsView, M as MagicLinkResult, u as MentionRange, v as MessageDirection, N as NotifyScope, O as OAuthExchangeResult, w as PalbeAnalytics, x as PalbeAuth, y as PalbeCalls, P as PalbeConfig, z as PalbeFlags, B as PalbeMessaging, D as PalbeOAuthConfig, E as PalbeRealtime, G as PresenceState, H as RealtimeChannel, R as RealtimeConnectionState, I as RealtimeHandler, a as RealtimePayload, J as RealtimeStatus, K as RealtimeStatusSnapshot, L as RealtimeSubscription, Q as ResolvedMention, S as ResolvedReply, T as SentReceipt, U as SignInMethods, V as UnreadView, W as Unsubscribe } from './analytics-facade-
|
|
1
|
+
export { f as AnalyticsProperties, g as AuthChangeEvent, h as AuthState, i as AuthSuccess, A as AuthUser, j as Call, k as CallChangeCallback, l as CallParticipant, m as CallState, C as Chat, n as ChatBackend, o as ChatDraft, p as ChatKind, b as ChatMember, c as ChatMessage, q as ChatMessageKind, r as ChatRole, s as ChatState, t as CommsPrefs, F as FlagsView, M as MagicLinkResult, u as MentionRange, v as MessageDirection, N as NotifyScope, O as OAuthExchangeResult, w as PalbeAnalytics, x as PalbeAuth, y as PalbeCalls, P as PalbeConfig, z as PalbeFlags, B as PalbeMessaging, D as PalbeOAuthConfig, E as PalbeRealtime, G as PresenceState, H as RealtimeChannel, R as RealtimeConnectionState, I as RealtimeHandler, a as RealtimePayload, J as RealtimeStatus, K as RealtimeStatusSnapshot, L as RealtimeSubscription, Q as ResolvedMention, S as ResolvedReply, T as SentReceipt, U as SignInMethods, V as UnreadView, W as Unsubscribe } from './analytics-facade-jyXv7Cu4.cjs';
|
|
2
2
|
export { B as BackendError, a as BackendErrorKind, F as FieldError, i as isBackendError } from './errors-fDoNdTrJ.cjs';
|
|
3
|
-
export { C as CallOptions, P as PB, U as UploadOptions, a as UploadProgress, p as pb } from './pb-
|
|
3
|
+
export { C as CallOptions, P as PB, U as UploadOptions, a as UploadProgress, p as pb } from './pb-CfYQGEn0.cjs';
|
|
4
4
|
export { P as PersistedSession, S as SessionStorageAdapter, l as localStorageSessionStorage, m as memorySessionStorage } from './storage-BPaeSG8K.cjs';
|
|
5
5
|
export { F as FlagValue } from './pooled-flags-4GtDtsiu.js';
|
|
6
6
|
|
|
@@ -206,6 +206,6 @@ interface MlsGlue {
|
|
|
206
206
|
*/
|
|
207
207
|
declare function initMls(): Promise<MlsGlue>;
|
|
208
208
|
|
|
209
|
-
declare const VERSION = "7.
|
|
209
|
+
declare const VERSION = "7.2.0";
|
|
210
210
|
|
|
211
211
|
export { VERSION, initMls };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { f as AnalyticsProperties, g as AuthChangeEvent, h as AuthState, i as AuthSuccess, A as AuthUser, j as Call, k as CallChangeCallback, l as CallParticipant, m as CallState, C as Chat, n as ChatBackend, o as ChatDraft, p as ChatKind, b as ChatMember, c as ChatMessage, q as ChatMessageKind, r as ChatRole, s as ChatState, t as CommsPrefs, F as FlagsView, M as MagicLinkResult, u as MentionRange, v as MessageDirection, N as NotifyScope, O as OAuthExchangeResult, w as PalbeAnalytics, x as PalbeAuth, y as PalbeCalls, P as PalbeConfig, z as PalbeFlags, B as PalbeMessaging, D as PalbeOAuthConfig, E as PalbeRealtime, G as PresenceState, H as RealtimeChannel, R as RealtimeConnectionState, I as RealtimeHandler, a as RealtimePayload, J as RealtimeStatus, K as RealtimeStatusSnapshot, L as RealtimeSubscription, Q as ResolvedMention, S as ResolvedReply, T as SentReceipt, U as SignInMethods, V as UnreadView, W as Unsubscribe } from './analytics-facade-
|
|
1
|
+
export { f as AnalyticsProperties, g as AuthChangeEvent, h as AuthState, i as AuthSuccess, A as AuthUser, j as Call, k as CallChangeCallback, l as CallParticipant, m as CallState, C as Chat, n as ChatBackend, o as ChatDraft, p as ChatKind, b as ChatMember, c as ChatMessage, q as ChatMessageKind, r as ChatRole, s as ChatState, t as CommsPrefs, F as FlagsView, M as MagicLinkResult, u as MentionRange, v as MessageDirection, N as NotifyScope, O as OAuthExchangeResult, w as PalbeAnalytics, x as PalbeAuth, y as PalbeCalls, P as PalbeConfig, z as PalbeFlags, B as PalbeMessaging, D as PalbeOAuthConfig, E as PalbeRealtime, G as PresenceState, H as RealtimeChannel, R as RealtimeConnectionState, I as RealtimeHandler, a as RealtimePayload, J as RealtimeStatus, K as RealtimeStatusSnapshot, L as RealtimeSubscription, Q as ResolvedMention, S as ResolvedReply, T as SentReceipt, U as SignInMethods, V as UnreadView, W as Unsubscribe } from './analytics-facade-DLfnVVwL.js';
|
|
2
2
|
export { B as BackendError, a as BackendErrorKind, F as FieldError, i as isBackendError } from './errors-fDoNdTrJ.js';
|
|
3
|
-
export { C as CallOptions, P as PB, U as UploadOptions, a as UploadProgress, p as pb } from './pb-
|
|
3
|
+
export { C as CallOptions, P as PB, U as UploadOptions, a as UploadProgress, p as pb } from './pb-DdzpEkPY.js';
|
|
4
4
|
export { P as PersistedSession, S as SessionStorageAdapter, l as localStorageSessionStorage, m as memorySessionStorage } from './storage-BPaeSG8K.js';
|
|
5
5
|
export { F as FlagValue } from './pooled-flags-4GtDtsiu.js';
|
|
6
6
|
|
|
@@ -206,6 +206,6 @@ interface MlsGlue {
|
|
|
206
206
|
*/
|
|
207
207
|
declare function initMls(): Promise<MlsGlue>;
|
|
208
208
|
|
|
209
|
-
declare const VERSION = "7.
|
|
209
|
+
declare const VERSION = "7.2.0";
|
|
210
210
|
|
|
211
211
|
export { VERSION, initMls };
|
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -935,6 +935,20 @@ var AuthClient = class {
|
|
|
935
935
|
body: params
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
|
+
/**
|
|
939
|
+
* Give a PASSWORDLESS account its first password.
|
|
940
|
+
*
|
|
941
|
+
* Separate from `changePassword` because that one cannot serve the case: it
|
|
942
|
+
* sends a current password and palauth answers an account that has none with
|
|
943
|
+
* 401. Requires a RECENT sign-in (403 `reauthentication_required` otherwise,
|
|
944
|
+
* the same gate passkey enrollment carries); an account that already has a
|
|
945
|
+
* password gets 409 `password_already_set`.
|
|
946
|
+
*/
|
|
947
|
+
async setPassword(params) {
|
|
948
|
+
return this.httpClient.request("POST", "/auth/password/set", {
|
|
949
|
+
body: params
|
|
950
|
+
});
|
|
951
|
+
}
|
|
938
952
|
// ── Token ───────────────────────────────────────────────
|
|
939
953
|
async refresh() {
|
|
940
954
|
const refreshToken = this.tokenManager.getRefreshToken();
|
|
@@ -1965,6 +1979,26 @@ var PalbeAuth = class {
|
|
|
1965
1979
|
})
|
|
1966
1980
|
);
|
|
1967
1981
|
}
|
|
1982
|
+
/**
|
|
1983
|
+
* Give a passwordless account its FIRST password, in-app.
|
|
1984
|
+
*
|
|
1985
|
+
* For accounts created with a passkey or a social provider: they have no
|
|
1986
|
+
* current password, so `updatePassword` cannot serve them — it sends one and
|
|
1987
|
+
* the server answers 401. Before this existed the only route was the
|
|
1988
|
+
* password-RESET e-mail, which asks someone already signed in to go find
|
|
1989
|
+
* their inbox.
|
|
1990
|
+
*
|
|
1991
|
+
* Requires a RECENT sign-in, not merely a session: a first password is a
|
|
1992
|
+
* credential that outlives the rest, so the server answers 403
|
|
1993
|
+
* `reauthentication_required` on a stale one — the same gate
|
|
1994
|
+
* `registerPasskey` carries. An account that already has a password gets 409
|
|
1995
|
+
* `password_already_set`; change it with `updatePassword` instead.
|
|
1996
|
+
*
|
|
1997
|
+
* The session stays valid — no re-login.
|
|
1998
|
+
*/
|
|
1999
|
+
async setPassword(newPassword) {
|
|
2000
|
+
unwrap(await this.rt.authClient.setPassword({ new_password: newPassword }));
|
|
2001
|
+
}
|
|
1968
2002
|
async verifyEmail(params) {
|
|
1969
2003
|
unwrap(await this.rt.authClient.verifyEmail(params));
|
|
1970
2004
|
}
|
|
@@ -9264,7 +9298,7 @@ function defaultSessionStorage(key) {
|
|
|
9264
9298
|
}
|
|
9265
9299
|
|
|
9266
9300
|
// src/version.ts
|
|
9267
|
-
var VERSION = "7.
|
|
9301
|
+
var VERSION = "7.2.0";
|
|
9268
9302
|
|
|
9269
9303
|
// src/runtime.ts
|
|
9270
9304
|
function buildRuntime(config) {
|