@kivacore/signin 0.21.4 → 0.21.5

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/README.md CHANGED
@@ -1184,6 +1184,7 @@ Users stay signed in after the upgrade:
1184
1184
 
1185
1185
  - Tokens saved under `docyrus_oauth2_*` move to `kiva_oauth2_*` the first time they are read (browser and Electron storage).
1186
1186
  - The SSR cookie is now `kiva-token`. With the default cookie name, `getSession`, `createServerClient`, `getMiddlewareSession`, `createMiddlewareClient` and `authMiddleware` still read the old `docyrus-token` cookie, and the client deletes it on its next token sync. If your own code reads the cookie by name, read `kiva-token`.
1187
+ - The default `apiUrl` is now `https://api.kiva.app` (it was `https://alpha-api.docyrus.com`). Set `apiUrl` to keep using another backend.
1187
1188
  - Iframe mode trusts `*.kiva.app` hosts as well as `*.docyrus.app`, and a host-provided `apiUrl` on `kiva.app` is accepted alongside `docyrus.com`.
1188
1189
 
1189
1190
  ## Development
@@ -1,5 +1,5 @@
1
1
  import { OAuth2Tokens } from '@kivacore/api-client';
2
- import { a as KivaAuthConfig, y as GuidyElementsMessage, H as GuidyRoutesMessage, z as GuidyPointAckMessage, F as GuidyRoute, w as GuidyCommandMessage, p as AuthMode } from './types-YWGPWMCI.js';
2
+ import { a as KivaAuthConfig, y as GuidyElementsMessage, H as GuidyRoutesMessage, z as GuidyPointAckMessage, F as GuidyRoute, w as GuidyCommandMessage, p as AuthMode } from './types-B_mbBNfZ.js';
3
3
 
4
4
  /**
5
5
  * Standalone OAuth2 authorization code flow with PKCE via page redirect.
@@ -111,7 +111,7 @@ declare class GuidyBridge {
111
111
  }
112
112
 
113
113
  /**
114
- * Detect whether the app is inside an iframe from a trusted *.docyrus.app host
114
+ * Detect whether the app is inside an iframe from a trusted *.kiva.app or *.docyrus.app host
115
115
  * or running as a standalone page.
116
116
  *
117
117
  * If we are in an iframe but NOT from a trusted origin, we fall back
@@ -1,5 +1,5 @@
1
1
  import { OAuth2Tokens, RestApiClient } from '@kivacore/api-client';
2
- import { a as KivaAuthConfig, p as AuthMode, q as AuthStatus, k as KivaUser, F as GuidyRoute, a1 as RouteChangePayload, M as HostNavigationRequestOptions, i as KivaSharePayload, d as KivaEmailPayload, c as KivaCalendarEventPayload, S as MsGraphClient, J as HostNavigationHandler, N as HostNotificationHandler, g as KivaRole, a0 as PermissionScope, $ as PermissionConfig } from './types-YWGPWMCI.js';
2
+ import { a as KivaAuthConfig, p as AuthMode, q as AuthStatus, k as KivaUser, F as GuidyRoute, a1 as RouteChangePayload, M as HostNavigationRequestOptions, i as KivaSharePayload, d as KivaEmailPayload, c as KivaCalendarEventPayload, S as MsGraphClient, J as HostNavigationHandler, N as HostNotificationHandler, g as KivaRole, a0 as PermissionScope, $ as PermissionConfig } from './types-B_mbBNfZ.js';
3
3
 
4
4
  type AuthStateListener = (state: {
5
5
  status: AuthStatus;
@@ -1,7 +1,7 @@
1
- export { A as AuthManager, a as AuthStateListener, D as DEFAULT_API_URL, b as DEFAULT_CALLBACK_PATH, c as DEFAULT_OAUTH_SCOPES, g as getAllRoles, d as getAllowedOperations, h as hasPermission, e as hasRole } from './constants-BKT0xwxH.js';
2
- export { G as GuidyBridge, S as StandaloneOAuth2Auth, d as detectAuthMode } from './auth-detector-C_j4lGr4.js';
3
- import { K as KivaAclRule, a as KivaAuthConfig, b as KivaAuthContextValue, c as KivaCalendarEventPayload, d as KivaEmailPayload, e as KivaNotification, f as KivaPermission, g as KivaRole, h as KivaShareAdaptiveCardPayload, i as KivaSharePayload, j as KivaShareTextPayload, k as KivaUser } from './types-YWGPWMCI.js';
4
- export { A as AclOperation, l as AclTargetType, m as AdaptiveCard, n as AppNavigationRequestMessage, o as AppRouteChangeMessage, p as AuthMode, q as AuthStatus, C as CalendarSendAckMessage, r as CalendarSendMessage, s as ChatSendAckMessage, t as ChatSendMessage, D as DocySendAckMessage, u as DocySendMessage, E as EmailSendAckMessage, v as EmailSendMessage, G as GuidyCommandHandler, w as GuidyCommandMessage, x as GuidyElement, y as GuidyElementsMessage, z as GuidyPointAckMessage, B as GuidyPointMessage, F as GuidyRoute, H as GuidyRoutesMessage, I as GuidyScanMessage, J as HostNavigationHandler, L as HostNavigationMessage, M as HostNavigationRequestOptions, N as HostNotificationHandler, O as HostNotificationMessage, P as HostSignInMessage, Q as IframeAuth, R as MsGraphAccount, S as MsGraphClient, T as MsGraphRequest, U as MsGraphRequestMessage, V as MsGraphRequestOptions, W as MsGraphResponse, X as MsGraphResponseMessage, Y as MsGraphStatus, Z as MsGraphStatusRequestMessage, _ as MsGraphStatusResponseMessage, $ as PermissionConfig, a0 as PermissionScope, a1 as RouteChangePayload, a2 as TokenRefreshRequestMessage } from './types-YWGPWMCI.js';
1
+ export { A as AuthManager, a as AuthStateListener, D as DEFAULT_API_URL, b as DEFAULT_CALLBACK_PATH, c as DEFAULT_OAUTH_SCOPES, g as getAllRoles, d as getAllowedOperations, h as hasPermission, e as hasRole } from './constants-DPPp-OS1.js';
2
+ export { G as GuidyBridge, S as StandaloneOAuth2Auth, d as detectAuthMode } from './auth-detector-CwwXUC1O.js';
3
+ import { K as KivaAclRule, a as KivaAuthConfig, b as KivaAuthContextValue, c as KivaCalendarEventPayload, d as KivaEmailPayload, e as KivaNotification, f as KivaPermission, g as KivaRole, h as KivaShareAdaptiveCardPayload, i as KivaSharePayload, j as KivaShareTextPayload, k as KivaUser } from './types-B_mbBNfZ.js';
4
+ export { A as AclOperation, l as AclTargetType, m as AdaptiveCard, n as AppNavigationRequestMessage, o as AppRouteChangeMessage, p as AuthMode, q as AuthStatus, C as CalendarSendAckMessage, r as CalendarSendMessage, s as ChatSendAckMessage, t as ChatSendMessage, D as DocySendAckMessage, u as DocySendMessage, E as EmailSendAckMessage, v as EmailSendMessage, G as GuidyCommandHandler, w as GuidyCommandMessage, x as GuidyElement, y as GuidyElementsMessage, z as GuidyPointAckMessage, B as GuidyPointMessage, F as GuidyRoute, H as GuidyRoutesMessage, I as GuidyScanMessage, J as HostNavigationHandler, L as HostNavigationMessage, M as HostNavigationRequestOptions, N as HostNotificationHandler, O as HostNotificationMessage, P as HostSignInMessage, Q as IframeAuth, R as MsGraphAccount, S as MsGraphClient, T as MsGraphRequest, U as MsGraphRequestMessage, V as MsGraphRequestOptions, W as MsGraphResponse, X as MsGraphResponseMessage, Y as MsGraphStatus, Z as MsGraphStatusRequestMessage, _ as MsGraphStatusResponseMessage, $ as PermissionConfig, a0 as PermissionScope, a1 as RouteChangePayload, a2 as TokenRefreshRequestMessage } from './types-B_mbBNfZ.js';
5
5
  import '@kivacore/api-client';
6
6
 
7
7
  /** @deprecated Use `KivaAuthConfig` instead. */