@docyrus/signin 0.15.0 → 0.16.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/README.md +193 -0
- package/dist/{constants-BoAqIz2O.d.ts → constants-BhPyFHNf.d.ts} +27 -1
- package/dist/core-index.d.ts +4 -102
- package/dist/core-index.js +284 -1
- package/dist/core-index.js.map +1 -1
- package/dist/index.d.ts +41 -6
- package/dist/index.js +337 -1
- package/dist/index.js.map +1 -1
- package/dist/nextjs/index.js.map +1 -1
- package/dist/react-native/index.d.ts +4 -4
- package/dist/react-native/index.js +316 -0
- package/dist/react-native/index.js.map +1 -1
- package/dist/types-C_i-KhUS.d.ts +773 -0
- package/dist/{use-docyrus-client-pU5z5ZHe.d.ts → use-docyrus-client-BfbEowBC.d.ts} +1 -1
- package/dist/vue/index.d.ts +8 -3
- package/dist/vue/index.js +303 -1
- package/dist/vue/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/types-DzwC4Dk7.d.ts +0 -367
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docyrus/signin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Authentication provider for Docyrus apps (React, Vue, React Native, Electron, Next.js SSR)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"tsup": "8.5.1",
|
|
50
50
|
"typescript": "6.0.3",
|
|
51
51
|
"vue": "3.5.35",
|
|
52
|
-
"@docyrus/api-client": "0.3.
|
|
52
|
+
"@docyrus/api-client": "0.3.6"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@docyrus/api-client": ">=0.3.0",
|
package/dist/types-DzwC4Dk7.d.ts
DELETED
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
import { OAuth2TokenStorage, OAuth2Tokens, CryptoProvider, RestApiClient } from '@docyrus/api-client';
|
|
2
|
-
|
|
3
|
-
/** Authentication mode detected at runtime */
|
|
4
|
-
type AuthMode = 'standalone' | 'iframe' | 'react-native';
|
|
5
|
-
/** Result from the native auth session (e.g., expo-web-browser) */
|
|
6
|
-
interface AuthSessionResult {
|
|
7
|
-
type: string;
|
|
8
|
-
url?: string;
|
|
9
|
-
}
|
|
10
|
-
/** Function signature for opening an auth session in a native browser */
|
|
11
|
-
type OpenAuthSessionFn = (url: string, redirectUri: string) => Promise<AuthSessionResult>;
|
|
12
|
-
/** Authentication state exposed to consumers */
|
|
13
|
-
type AuthStatus = 'loading' | 'authenticated' | 'unauthenticated';
|
|
14
|
-
/** Configuration for the DocyrusAuthProvider */
|
|
15
|
-
interface DocyrusAuthConfig {
|
|
16
|
-
/** OAuth2 client ID. Defaults to the Docyrus public client ID */
|
|
17
|
-
clientId?: string;
|
|
18
|
-
/** API base URL. Defaults to https://alpha-api.docyrus.com */
|
|
19
|
-
apiUrl?: string;
|
|
20
|
-
/** OAuth2 scopes. Defaults to offline_access Read.All Users.Read Users.Read.All DS.Read.All */
|
|
21
|
-
scopes?: string[];
|
|
22
|
-
/** The redirect URI for OAuth2 callback. Defaults to `${window.location.origin}/auth/callback` */
|
|
23
|
-
redirectUri?: string;
|
|
24
|
-
/** The path where the OAuth2 callback is handled. Defaults to '/auth/callback' */
|
|
25
|
-
callbackPath?: string;
|
|
26
|
-
/** Allowed host origins for iframe mode. Used alongside the default *.docyrus.app pattern */
|
|
27
|
-
allowedHostOrigins?: string[];
|
|
28
|
-
/** localStorage key prefix for token storage. Defaults to 'docyrus_oauth2' */
|
|
29
|
-
storageKeyPrefix?: string;
|
|
30
|
-
/** Custom token storage implementation (e.g., Electron IPC storage). Overrides storageKeyPrefix */
|
|
31
|
-
tokenStorage?: OAuth2TokenStorage;
|
|
32
|
-
/** Override auto-detection: force a specific auth mode */
|
|
33
|
-
forceMode?: AuthMode;
|
|
34
|
-
/**
|
|
35
|
-
* Bootstrap an authenticated session from tokens obtained elsewhere
|
|
36
|
-
* (for example, a prior device flow). When provided, these tokens
|
|
37
|
-
* replace any currently stored standalone/react-native session.
|
|
38
|
-
*/
|
|
39
|
-
initialTokens?: OAuth2Tokens;
|
|
40
|
-
/**
|
|
41
|
-
* Automatically refresh the access token before/at expiry. Default: true.
|
|
42
|
-
*
|
|
43
|
-
* When `false`, the provider never refreshes tokens on its own — it
|
|
44
|
-
* disables the proactive pre-expiry timer, the pre-request refresh in
|
|
45
|
-
* the API client's token getter, and the reactive 401 refresh. The
|
|
46
|
-
* current access token is used as-is until replaced via
|
|
47
|
-
* `signInWithTokens`. Use this when an external system owns the token
|
|
48
|
-
* lifecycle (e.g. a Supabase session whose refresh token is not a valid
|
|
49
|
-
* Docyrus OAuth2 grant) and pushes fresh tokens in through
|
|
50
|
-
* `signInWithTokens`.
|
|
51
|
-
*/
|
|
52
|
-
autoRefresh?: boolean;
|
|
53
|
-
/** Enable SSR: sync access token to a cookie readable by server components. Default: false */
|
|
54
|
-
ssr?: boolean;
|
|
55
|
-
/** Cookie name for SSR token sync. Default: 'docyrus-token' */
|
|
56
|
-
ssrCookieKey?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Iframe/WebView mode: post a `route-change` message to the host on
|
|
59
|
-
* every history change so the host can reflect the embedded app's
|
|
60
|
-
* route in its address bar. Patches `history.pushState/replaceState`
|
|
61
|
-
* and listens for `popstate`/`hashchange`. No-op outside iframe mode.
|
|
62
|
-
* Default: false.
|
|
63
|
-
*/
|
|
64
|
-
syncRouteToHost?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Iframe mode: let the host assistant (Guidy) inspect and drive this app's
|
|
67
|
-
* visible UI — scan its clickable elements, highlight/annotate them, and
|
|
68
|
-
* click them on the user's behalf — over the existing postMessage channel.
|
|
69
|
-
*
|
|
70
|
-
* Opt-in: the app must consent to being driven. The bridge only exposes
|
|
71
|
-
* already-visible interactive elements and only runs a fixed command
|
|
72
|
-
* vocabulary (scan / point / click); no arbitrary script is accepted from
|
|
73
|
-
* the host. No-op outside iframe mode. Default: false.
|
|
74
|
-
*/
|
|
75
|
-
enableGuidyBridge?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Iframe mode: routes the host assistant (Guidy) may navigate the user to
|
|
78
|
-
* inside this app. The host turns each into a deep link it can drive via the
|
|
79
|
-
* existing host→app `navigation` message. Update at runtime with
|
|
80
|
-
* `setGuidyRoutes` (e.g. when routes depend on permissions). Requires
|
|
81
|
-
* `enableGuidyBridge`. Default: none.
|
|
82
|
-
*/
|
|
83
|
-
guidyRoutes?: GuidyRoute[];
|
|
84
|
-
/** React Native: custom URI scheme redirect (e.g., 'myapp://auth/callback'). Required when forceMode is 'react-native' */
|
|
85
|
-
nativeRedirectUri?: string;
|
|
86
|
-
/** React Native: function to open an in-app browser auth session (e.g., WebBrowser.openAuthSessionAsync from expo-web-browser) */
|
|
87
|
-
openAuthSession?: OpenAuthSessionFn;
|
|
88
|
-
/** Custom crypto provider for PKCE operations in non-browser environments (e.g., ReactNativeCryptoProvider from @docyrus/api-client/react-native) */
|
|
89
|
-
cryptoProvider?: CryptoProvider;
|
|
90
|
-
}
|
|
91
|
-
/** The shape of the React context value */
|
|
92
|
-
interface DocyrusAuthContextValue {
|
|
93
|
-
/** Current auth state */
|
|
94
|
-
status: AuthStatus;
|
|
95
|
-
/** The detected authentication mode */
|
|
96
|
-
mode: AuthMode | null;
|
|
97
|
-
/** Pre-configured RestApiClient with valid tokens */
|
|
98
|
-
client: RestApiClient | null;
|
|
99
|
-
/** Current tokens (null when unauthenticated) */
|
|
100
|
-
tokens: OAuth2Tokens | null;
|
|
101
|
-
/** Current user data (null when not authenticated or not yet fetched) */
|
|
102
|
-
user: DocyrusUser | null;
|
|
103
|
-
/** Initiate sign-in (only relevant in standalone mode) */
|
|
104
|
-
signIn: () => void;
|
|
105
|
-
/** Bootstrap an authenticated session from existing tokens */
|
|
106
|
-
signInWithTokens: (tokens: OAuth2Tokens) => Promise<void>;
|
|
107
|
-
/** Get the OAuth2 authorization URL without navigating. For Electron apps */
|
|
108
|
-
getAuthorizationUrl: () => Promise<string | null>;
|
|
109
|
-
/** Sign out and clear tokens */
|
|
110
|
-
signOut: () => Promise<void>;
|
|
111
|
-
/** Check if the current user has a specific role (by slug or uid) */
|
|
112
|
-
hasRole: (role: string | string[] | null | undefined) => boolean;
|
|
113
|
-
/** Check if the current user has permission for an operation on a data source */
|
|
114
|
-
hasPermission: (operation: string, dataSourceId?: string | null) => boolean;
|
|
115
|
-
/** Re-fetch the current user from the API */
|
|
116
|
-
refreshUser: () => Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* Subscribe to host `navigation` messages (iframe/WebView mode only).
|
|
119
|
-
* Returns an unsubscribe function. No-op in non-iframe modes.
|
|
120
|
-
*/
|
|
121
|
-
onHostNavigation: (handler: HostNavigationHandler) => () => void;
|
|
122
|
-
/**
|
|
123
|
-
* Subscribe to host `notification` messages (iframe/WebView mode only).
|
|
124
|
-
* Returns an unsubscribe function. No-op in non-iframe modes.
|
|
125
|
-
*/
|
|
126
|
-
onHostNotification: (handler: HostNotificationHandler) => () => void;
|
|
127
|
-
/**
|
|
128
|
-
* Iframe/WebView mode: start auto-syncing the embedded app's route
|
|
129
|
-
* to the host. Patches `history.pushState/replaceState` and listens
|
|
130
|
-
* for `popstate`/`hashchange`. Safe to call multiple times. No-op in
|
|
131
|
-
* non-iframe modes.
|
|
132
|
-
*/
|
|
133
|
-
enableHostRouteSync: () => void;
|
|
134
|
-
/**
|
|
135
|
-
* Iframe/WebView mode: post a single `route-change` message to the host.
|
|
136
|
-
* When called with no argument, the current `window.location` is read.
|
|
137
|
-
* Pass a payload to report a specific route (useful with router
|
|
138
|
-
* subscriptions). No-op in non-iframe modes.
|
|
139
|
-
*/
|
|
140
|
-
notifyRouteChange: (payload?: RouteChangePayload) => void;
|
|
141
|
-
/**
|
|
142
|
-
* Iframe/WebView mode: ask the host shell to navigate to a path/URL.
|
|
143
|
-
* The reverse of `onHostNavigation` — lets an in-app action drive the
|
|
144
|
-
* host's own routing (deep link, switch view, open a sibling app). The
|
|
145
|
-
* host decides how to honour the request. No-op in non-iframe modes.
|
|
146
|
-
*/
|
|
147
|
-
requestHostNavigation: (url: string, options?: HostNavigationRequestOptions) => void;
|
|
148
|
-
/**
|
|
149
|
-
* Iframe mode (Guidy bridge): replace the routes the host assistant may
|
|
150
|
-
* navigate the user to inside this app. No-op unless `enableGuidyBridge`
|
|
151
|
-
* is set. Use for routes that depend on runtime state (e.g. permissions).
|
|
152
|
-
*/
|
|
153
|
-
setGuidyRoutes: (routes: GuidyRoute[]) => void;
|
|
154
|
-
/** Any error that occurred during auth */
|
|
155
|
-
error: Error | null;
|
|
156
|
-
}
|
|
157
|
-
/** PostMessage payload: host sends tokens to the embedded app */
|
|
158
|
-
interface HostSignInMessage {
|
|
159
|
-
type: 'signin';
|
|
160
|
-
accessToken: string;
|
|
161
|
-
refreshToken: string;
|
|
162
|
-
}
|
|
163
|
-
/** PostMessage payload: app requests fresh tokens from the host */
|
|
164
|
-
interface TokenRefreshRequestMessage {
|
|
165
|
-
type: 'token-refresh-request';
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* PostMessage payload: app reports its current route to the host.
|
|
169
|
-
* Sent on every history change so the host can reflect it in the
|
|
170
|
-
* browser address bar.
|
|
171
|
-
*/
|
|
172
|
-
interface AppRouteChangeMessage {
|
|
173
|
-
type: 'route-change';
|
|
174
|
-
/** location.pathname (e.g. "/customers/123") */
|
|
175
|
-
path: string;
|
|
176
|
-
/** location.search including leading "?" — empty string if none */
|
|
177
|
-
search: string;
|
|
178
|
-
/** location.hash including leading "#" — empty string if none */
|
|
179
|
-
hash: string;
|
|
180
|
-
/** Convenience: `path + search + hash` */
|
|
181
|
-
url: string;
|
|
182
|
-
}
|
|
183
|
-
/** Payload for manual `notifyRouteChange` calls */
|
|
184
|
-
interface RouteChangePayload {
|
|
185
|
-
path?: string;
|
|
186
|
-
search?: string;
|
|
187
|
-
hash?: string;
|
|
188
|
-
}
|
|
189
|
-
/** PostMessage payload: host asks the embedded app to navigate to a URL */
|
|
190
|
-
interface HostNavigationMessage {
|
|
191
|
-
type: 'navigation';
|
|
192
|
-
url: string;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* PostMessage payload: the embedded app asks the host shell to navigate to a
|
|
196
|
-
* path/URL. The reverse of `HostNavigationMessage` — used when an in-app action
|
|
197
|
-
* needs to drive the host's own routing (deep link, switch view, open a
|
|
198
|
-
* sibling app). The host decides how to honour it. Unlike `route-change`, which
|
|
199
|
-
* passively reports the app's current route, this is an explicit request.
|
|
200
|
-
*/
|
|
201
|
-
interface AppNavigationRequestMessage {
|
|
202
|
-
type: 'navigation-request';
|
|
203
|
-
/** Target path or absolute URL for the host shell to navigate to. */
|
|
204
|
-
url: string;
|
|
205
|
-
/** Hint the host to replace the current history entry instead of pushing. */
|
|
206
|
-
replace?: boolean;
|
|
207
|
-
/** Hint the host to open the target in a new tab/window instead of in place. */
|
|
208
|
-
newTab?: boolean;
|
|
209
|
-
}
|
|
210
|
-
/** Options for `requestHostNavigation` (app → host navigation request). */
|
|
211
|
-
interface HostNavigationRequestOptions {
|
|
212
|
-
/** Hint the host to replace the current history entry instead of pushing. */
|
|
213
|
-
replace?: boolean;
|
|
214
|
-
/** Hint the host to open the target in a new tab/window instead of in place. */
|
|
215
|
-
newTab?: boolean;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Notification payload pushed from the host into the embedded app.
|
|
219
|
-
* Mirrors the NotificationEntity API contract.
|
|
220
|
-
*/
|
|
221
|
-
interface DocyrusNotification {
|
|
222
|
-
id: string;
|
|
223
|
-
subject: string;
|
|
224
|
-
message: string;
|
|
225
|
-
status: string;
|
|
226
|
-
seen: boolean;
|
|
227
|
-
created_on: string;
|
|
228
|
-
notify_on: string;
|
|
229
|
-
created_by: string;
|
|
230
|
-
record_owner: string;
|
|
231
|
-
created_by_id: string;
|
|
232
|
-
created_by_fullname: string;
|
|
233
|
-
created_by_photo: string;
|
|
234
|
-
params?: Record<string, unknown> | null;
|
|
235
|
-
tenant_app_id?: string | null;
|
|
236
|
-
output_render_template?: Record<string, unknown> | null;
|
|
237
|
-
}
|
|
238
|
-
/** PostMessage payload: host pushes a notification to the embedded app */
|
|
239
|
-
interface HostNotificationMessage {
|
|
240
|
-
type: 'notification';
|
|
241
|
-
notification: DocyrusNotification;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* A visible, interactive element the host assistant (Guidy) can target by id.
|
|
245
|
-
* Mirrors the host-side clickable inventory so the model can reference real
|
|
246
|
-
* in-app buttons and links the same way it references shell chrome.
|
|
247
|
-
*/
|
|
248
|
-
interface GuidyElement {
|
|
249
|
-
/** Stable DOM id used as the target for `guidy:point`. */
|
|
250
|
-
id: string;
|
|
251
|
-
/** Human-readable label (aria-label, text, or title). */
|
|
252
|
-
label: string;
|
|
253
|
-
/** Element kind, so the model can phrase guidance naturally. */
|
|
254
|
-
tag: 'a' | 'button';
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* App → Host: the embedded app's current clickable inventory.
|
|
258
|
-
* Pushed proactively on mount, route change, and DOM mutation so the host
|
|
259
|
-
* can keep a fresh snapshot without a request round-trip.
|
|
260
|
-
*/
|
|
261
|
-
interface GuidyElementsMessage {
|
|
262
|
-
type: 'guidy:elements';
|
|
263
|
-
/** The app's current `location.pathname` when the scan was taken. */
|
|
264
|
-
path: string;
|
|
265
|
-
elements: GuidyElement[];
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* A navigable route the host assistant (Guidy) can send the user to. Unlike
|
|
269
|
-
* elements, routes cannot be auto-discovered from the DOM, so the app declares
|
|
270
|
-
* them (via `guidyRoutes` / `setGuidyRoutes`). The host turns these into deep
|
|
271
|
-
* links it can drive through the existing host→app `navigation` message.
|
|
272
|
-
*/
|
|
273
|
-
interface GuidyRoute {
|
|
274
|
-
/** App-internal path, e.g. `/leads` or `leads/new`. */
|
|
275
|
-
path: string;
|
|
276
|
-
/** Human-readable label, e.g. `Leads`. */
|
|
277
|
-
label: string;
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* App → Host: the embedded app's declared navigable routes.
|
|
281
|
-
* Pushed on start and whenever the app updates its route catalog.
|
|
282
|
-
*/
|
|
283
|
-
interface GuidyRoutesMessage {
|
|
284
|
-
type: 'guidy:routes';
|
|
285
|
-
routes: GuidyRoute[];
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Host → App: scroll to, highlight, and optionally annotate/click an element.
|
|
289
|
-
* The app renders the highlight/annotation itself — the host cannot draw into
|
|
290
|
-
* a cross-origin iframe.
|
|
291
|
-
*/
|
|
292
|
-
interface GuidyPointMessage {
|
|
293
|
-
type: 'guidy:point';
|
|
294
|
-
/** Target element id (must match a `GuidyElement.id`). */
|
|
295
|
-
id: string;
|
|
296
|
-
/** When true, dispatch a click after highlighting. Default: false. */
|
|
297
|
-
click?: boolean;
|
|
298
|
-
/** Optional short message shown in an annotation bubble near the element. */
|
|
299
|
-
message?: string;
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Host → App: request a fresh element inventory. Used to recover from a late
|
|
303
|
-
* host mount that missed the app's proactive push. The app replies with a
|
|
304
|
-
* `guidy:elements` message.
|
|
305
|
-
*/
|
|
306
|
-
interface GuidyScanMessage {
|
|
307
|
-
type: 'guidy:scan';
|
|
308
|
-
}
|
|
309
|
-
/** App → Host: result of a `guidy:point` command. */
|
|
310
|
-
interface GuidyPointAckMessage {
|
|
311
|
-
type: 'guidy:point-ack';
|
|
312
|
-
/** The id that was targeted. */
|
|
313
|
-
id: string;
|
|
314
|
-
/** Whether the element was found and acted upon. */
|
|
315
|
-
ok: boolean;
|
|
316
|
-
}
|
|
317
|
-
/** Host → App: commands the Guidy bridge runtime handles. */
|
|
318
|
-
type GuidyCommandMessage = GuidyPointMessage | GuidyScanMessage;
|
|
319
|
-
/** Handler invoked when the host sends a Guidy command. */
|
|
320
|
-
type GuidyCommandHandler = (message: GuidyCommandMessage) => void;
|
|
321
|
-
type AppToHostMessage = TokenRefreshRequestMessage | AppRouteChangeMessage | AppNavigationRequestMessage | GuidyElementsMessage | GuidyRoutesMessage | GuidyPointAckMessage;
|
|
322
|
-
/** Handler invoked when the host sends a navigation message */
|
|
323
|
-
type HostNavigationHandler = (message: HostNavigationMessage) => void;
|
|
324
|
-
/** Handler invoked when the host sends a notification message */
|
|
325
|
-
type HostNotificationHandler = (notification: DocyrusNotification) => void;
|
|
326
|
-
/** A role object as returned by GET /v1/users/me */
|
|
327
|
-
interface DocyrusRole {
|
|
328
|
-
uid: string;
|
|
329
|
-
slug: string;
|
|
330
|
-
rules: DocyrusAclRule[];
|
|
331
|
-
}
|
|
332
|
-
/** An ACL rule — maps a data source to its allowed operations */
|
|
333
|
-
interface DocyrusAclRule {
|
|
334
|
-
dataSourceId: string;
|
|
335
|
-
allowedOperations: string[];
|
|
336
|
-
}
|
|
337
|
-
/** The user object as returned by GET /v1/users/me */
|
|
338
|
-
interface DocyrusUser {
|
|
339
|
-
id: string;
|
|
340
|
-
email: string;
|
|
341
|
-
firstname?: string | null;
|
|
342
|
-
lastname?: string | null;
|
|
343
|
-
photo?: string | null;
|
|
344
|
-
primaryRole: DocyrusRole | null;
|
|
345
|
-
roles: DocyrusRole[];
|
|
346
|
-
aclRules: DocyrusAclRule[];
|
|
347
|
-
tenant?: {
|
|
348
|
-
id: string;
|
|
349
|
-
name: string;
|
|
350
|
-
no: number;
|
|
351
|
-
logo_url?: string | null;
|
|
352
|
-
} | null;
|
|
353
|
-
[key: string]: unknown;
|
|
354
|
-
}
|
|
355
|
-
/** ACL operation identifier */
|
|
356
|
-
type AclOperation = 'view' | 'create' | 'edit' | 'delete' | 'create_bulk' | 'delete_bulk' | 'export' | 'export_bulk' | 'import' | 'print' | 'print_bulk';
|
|
357
|
-
/** Configuration for permission checking behavior */
|
|
358
|
-
interface PermissionConfig {
|
|
359
|
-
/**
|
|
360
|
-
* Data sources that are always permitted for certain operations,
|
|
361
|
-
* keyed by data source UUID to an array of allowed operations.
|
|
362
|
-
* Defaults to the standard Docyrus system data sources.
|
|
363
|
-
*/
|
|
364
|
-
alwaysPermittedDataSources?: Record<string, AclOperation[]>;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
export type { AclOperation as A, DocyrusAuthConfig as D, GuidyRoute as G, HostNavigationHandler as H, OpenAuthSessionFn as O, PermissionConfig as P, RouteChangePayload as R, TokenRefreshRequestMessage as T, AuthMode as a, AuthSessionResult as b, AuthStatus as c, DocyrusAclRule as d, DocyrusAuthContextValue as e, DocyrusRole as f, DocyrusUser as g, HostNotificationHandler as h, HostNavigationRequestOptions as i, AppNavigationRequestMessage as j, AppRouteChangeMessage as k, DocyrusNotification as l, GuidyCommandHandler as m, GuidyCommandMessage as n, GuidyElement as o, GuidyElementsMessage as p, GuidyPointAckMessage as q, GuidyPointMessage as r, GuidyRoutesMessage as s, GuidyScanMessage as t, HostNavigationMessage as u, HostNotificationMessage as v, HostSignInMessage as w, AppToHostMessage as x };
|