@lunora/client 1.0.0-alpha.290 → 1.0.0-alpha.291
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/admin/index.d.mts +3 -1
- package/dist/admin/index.d.ts +3 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/auth/index.d.mts +30 -2
- package/dist/auth/index.d.ts +30 -2
- package/dist/auth/index.mjs +1 -1
- package/dist/packem_shared/ADMIN_AUTH_DEFAULT_PAGE_SIZE-aKbm8N1z.mjs +1 -0
- package/dist/packem_shared/LunoraAdminClient-BkGFB5ra.mjs +1 -0
- package/package.json +1 -1
- package/dist/packem_shared/ADMIN_AUTH_DEFAULT_PAGE_SIZE-V9c3bHU1.mjs +0 -1
- package/dist/packem_shared/LunoraAdminClient-aBcOpYpI.mjs +0 -1
package/dist/admin/index.d.mts
CHANGED
|
@@ -684,4 +684,6 @@ declare class LunoraAdminClient extends LunoraClient {
|
|
|
684
684
|
* `instanceof`, so a client from a second copy of this package still passes.
|
|
685
685
|
*/
|
|
686
686
|
declare const isLunoraAdminClient: (client: LunoraClient) => client is LunoraAdminClient;
|
|
687
|
-
|
|
687
|
+
/** The provider's client as a `LunoraAdminClient`, or a throw naming the class the caller must construct. */
|
|
688
|
+
declare const requireAdminAuthClient: (client: LunoraClient) => LunoraAdminClient;
|
|
689
|
+
export { LunoraAdminClient, isLunoraAdminClient, requireAdminAuthClient };
|
package/dist/admin/index.d.ts
CHANGED
|
@@ -684,4 +684,6 @@ declare class LunoraAdminClient extends LunoraClient {
|
|
|
684
684
|
* `instanceof`, so a client from a second copy of this package still passes.
|
|
685
685
|
*/
|
|
686
686
|
declare const isLunoraAdminClient: (client: LunoraClient) => client is LunoraAdminClient;
|
|
687
|
-
|
|
687
|
+
/** The provider's client as a `LunoraAdminClient`, or a throw naming the class the caller must construct. */
|
|
688
|
+
declare const requireAdminAuthClient: (client: LunoraClient) => LunoraAdminClient;
|
|
689
|
+
export { LunoraAdminClient, isLunoraAdminClient, requireAdminAuthClient };
|
package/dist/admin/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{LunoraAdminClient as
|
|
1
|
+
import{LunoraAdminClient as e,isLunoraAdminClient as r,requireAdminAuthClient as t}from"../packem_shared/LunoraAdminClient-BkGFB5ra.mjs";export{e as LunoraAdminClient,r as isLunoraAdminClient,t as requireAdminAuthClient};
|
package/dist/auth/index.d.mts
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
*/
|
|
50
50
|
import { L as LunoraClient, U as User } from "../packem_shared/lunora-client.d-Ezp1eG81.mjs";
|
|
51
51
|
import { LunoraAdminClient } from "../admin/index.mjs";
|
|
52
|
-
import { AuthPage, AuthSession, AuthUser } from '@lunora/runtime';
|
|
52
|
+
import { AuthPage, AuthImpersonation, AuthSession, AuthUser } from '@lunora/runtime';
|
|
53
53
|
import '@lunora/errors';
|
|
54
54
|
import "../packem_shared/function-reference.d-Br_hsKje.mjs";
|
|
55
55
|
/** Default page size for the first read; a "load more" grows the requested window by the page size. */
|
|
@@ -104,6 +104,34 @@ declare const adminAuthListQueryKey: (identity: string | null, list: AdminAuthLi
|
|
|
104
104
|
declare const subscribeAdminAuthIdentity: (client: LunoraClient, onChange: () => void) => (() => void);
|
|
105
105
|
/** `true` when the server reports rows beyond the loaded window; `false` before the first page resolves, so "load more" past the end is a no-op. */
|
|
106
106
|
declare const adminAuthListHasMore: (page: AuthPage<unknown> | undefined) => boolean;
|
|
107
|
+
/** Query options for one window of an admin list, spread into a TanStack hook (the `lunoraQueryOptions` pattern). */
|
|
108
|
+
interface AdminAuthListQueryOptions<T> {
|
|
109
|
+
readonly queryFn: () => Promise<AuthPage<T>>;
|
|
110
|
+
readonly queryKey: ReadonlyArray<unknown>;
|
|
111
|
+
readonly staleTime: number;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Options for one `{ limit }` window of an admin list. `staleTime` is `0`, not the
|
|
115
|
+
* provider's `Infinity`: this is a one-shot HTTP read, so a remount or a window
|
|
116
|
+
* refocus should re-fetch rather than serve the cached page indefinitely.
|
|
117
|
+
*/
|
|
118
|
+
declare const adminAuthListQueryOptions: <T>(list: AdminAuthList<T>, identity: string | null, limit: number) => AdminAuthListQueryOptions<T>;
|
|
119
|
+
/**
|
|
120
|
+
* The page to show while a larger window of the same list loads. Only the previous
|
|
121
|
+
* window from the same identity may stand in: another identity's rows must never be
|
|
122
|
+
* shown while its first read is in flight.
|
|
123
|
+
*/
|
|
124
|
+
declare const adminAuthListPlaceholder: <T>(previous: AuthPage<T> | undefined, previousKey: ReadonlyArray<unknown> | undefined, queryKey: ReadonlyArray<unknown>) => AuthPage<T> | undefined;
|
|
125
|
+
/** The `limit` after a "load more": one page larger, and unchanged past the end of the collection. */
|
|
126
|
+
declare const nextAdminAuthLimit: (current: number, pageSize: number, hasMore: boolean) => number;
|
|
127
|
+
/**
|
|
128
|
+
* Mutation options for minting an impersonation session. It deliberately does not call
|
|
129
|
+
* `client.setAuthToken`: swapping the acting client's own token would sign the admin out
|
|
130
|
+
* of their admin session without a visible transition.
|
|
131
|
+
*/
|
|
132
|
+
declare const adminAuthImpersonateMutation: (client: LunoraAdminClient) => {
|
|
133
|
+
readonly mutationFn: (userId: string) => Promise<AuthImpersonation>;
|
|
134
|
+
};
|
|
107
135
|
/**
|
|
108
136
|
* Every {@link AuthStatus}, as a value — the contract table in this module's
|
|
109
137
|
* header, and the `@lunora/client` docs table that restates it for consumers,
|
|
@@ -150,4 +178,4 @@ interface IdentityStore {
|
|
|
150
178
|
* returns the same store, keeping the single-fetch / fan-out invariant.
|
|
151
179
|
*/
|
|
152
180
|
declare const getIdentityStore: (client: LunoraClient) => IdentityStore;
|
|
153
|
-
export { ADMIN_AUTH_DEFAULT_PAGE_SIZE, AUTH_STATUSES, type AdminAuthList, type AuthStatus, type AuthUsersListFilter, type IdentityStore, adminAuthListHasMore, adminAuthListQueryKey, authOrganizationsList, authSessionsList, authSignUpInvitationsList, authUsersList, getIdentityStore, isAuthenticatedStatus, isLoadingStatus, subscribeAdminAuthIdentity };
|
|
181
|
+
export { ADMIN_AUTH_DEFAULT_PAGE_SIZE, AUTH_STATUSES, type AdminAuthList, type AdminAuthListQueryOptions, type AuthStatus, type AuthUsersListFilter, type IdentityStore, adminAuthImpersonateMutation, adminAuthListHasMore, adminAuthListPlaceholder, adminAuthListQueryKey, adminAuthListQueryOptions, authOrganizationsList, authSessionsList, authSignUpInvitationsList, authUsersList, getIdentityStore, isAuthenticatedStatus, isLoadingStatus, nextAdminAuthLimit, subscribeAdminAuthIdentity };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
*/
|
|
50
50
|
import { L as LunoraClient, U as User } from "../packem_shared/lunora-client.d-DKfDdnjJ.js";
|
|
51
51
|
import { LunoraAdminClient } from "../admin/index.js";
|
|
52
|
-
import { AuthPage, AuthSession, AuthUser } from '@lunora/runtime';
|
|
52
|
+
import { AuthPage, AuthImpersonation, AuthSession, AuthUser } from '@lunora/runtime';
|
|
53
53
|
import '@lunora/errors';
|
|
54
54
|
import "../packem_shared/function-reference.d-Br_hsKje.js";
|
|
55
55
|
/** Default page size for the first read; a "load more" grows the requested window by the page size. */
|
|
@@ -104,6 +104,34 @@ declare const adminAuthListQueryKey: (identity: string | null, list: AdminAuthLi
|
|
|
104
104
|
declare const subscribeAdminAuthIdentity: (client: LunoraClient, onChange: () => void) => (() => void);
|
|
105
105
|
/** `true` when the server reports rows beyond the loaded window; `false` before the first page resolves, so "load more" past the end is a no-op. */
|
|
106
106
|
declare const adminAuthListHasMore: (page: AuthPage<unknown> | undefined) => boolean;
|
|
107
|
+
/** Query options for one window of an admin list, spread into a TanStack hook (the `lunoraQueryOptions` pattern). */
|
|
108
|
+
interface AdminAuthListQueryOptions<T> {
|
|
109
|
+
readonly queryFn: () => Promise<AuthPage<T>>;
|
|
110
|
+
readonly queryKey: ReadonlyArray<unknown>;
|
|
111
|
+
readonly staleTime: number;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Options for one `{ limit }` window of an admin list. `staleTime` is `0`, not the
|
|
115
|
+
* provider's `Infinity`: this is a one-shot HTTP read, so a remount or a window
|
|
116
|
+
* refocus should re-fetch rather than serve the cached page indefinitely.
|
|
117
|
+
*/
|
|
118
|
+
declare const adminAuthListQueryOptions: <T>(list: AdminAuthList<T>, identity: string | null, limit: number) => AdminAuthListQueryOptions<T>;
|
|
119
|
+
/**
|
|
120
|
+
* The page to show while a larger window of the same list loads. Only the previous
|
|
121
|
+
* window from the same identity may stand in: another identity's rows must never be
|
|
122
|
+
* shown while its first read is in flight.
|
|
123
|
+
*/
|
|
124
|
+
declare const adminAuthListPlaceholder: <T>(previous: AuthPage<T> | undefined, previousKey: ReadonlyArray<unknown> | undefined, queryKey: ReadonlyArray<unknown>) => AuthPage<T> | undefined;
|
|
125
|
+
/** The `limit` after a "load more": one page larger, and unchanged past the end of the collection. */
|
|
126
|
+
declare const nextAdminAuthLimit: (current: number, pageSize: number, hasMore: boolean) => number;
|
|
127
|
+
/**
|
|
128
|
+
* Mutation options for minting an impersonation session. It deliberately does not call
|
|
129
|
+
* `client.setAuthToken`: swapping the acting client's own token would sign the admin out
|
|
130
|
+
* of their admin session without a visible transition.
|
|
131
|
+
*/
|
|
132
|
+
declare const adminAuthImpersonateMutation: (client: LunoraAdminClient) => {
|
|
133
|
+
readonly mutationFn: (userId: string) => Promise<AuthImpersonation>;
|
|
134
|
+
};
|
|
107
135
|
/**
|
|
108
136
|
* Every {@link AuthStatus}, as a value — the contract table in this module's
|
|
109
137
|
* header, and the `@lunora/client` docs table that restates it for consumers,
|
|
@@ -150,4 +178,4 @@ interface IdentityStore {
|
|
|
150
178
|
* returns the same store, keeping the single-fetch / fan-out invariant.
|
|
151
179
|
*/
|
|
152
180
|
declare const getIdentityStore: (client: LunoraClient) => IdentityStore;
|
|
153
|
-
export { ADMIN_AUTH_DEFAULT_PAGE_SIZE, AUTH_STATUSES, type AdminAuthList, type AuthStatus, type AuthUsersListFilter, type IdentityStore, adminAuthListHasMore, adminAuthListQueryKey, authOrganizationsList, authSessionsList, authSignUpInvitationsList, authUsersList, getIdentityStore, isAuthenticatedStatus, isLoadingStatus, subscribeAdminAuthIdentity };
|
|
181
|
+
export { ADMIN_AUTH_DEFAULT_PAGE_SIZE, AUTH_STATUSES, type AdminAuthList, type AdminAuthListQueryOptions, type AuthStatus, type AuthUsersListFilter, type IdentityStore, adminAuthImpersonateMutation, adminAuthListHasMore, adminAuthListPlaceholder, adminAuthListQueryKey, adminAuthListQueryOptions, authOrganizationsList, authSessionsList, authSignUpInvitationsList, authUsersList, getIdentityStore, isAuthenticatedStatus, isLoadingStatus, nextAdminAuthLimit, subscribeAdminAuthIdentity };
|
package/dist/auth/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ADMIN_AUTH_DEFAULT_PAGE_SIZE as
|
|
1
|
+
import{ADMIN_AUTH_DEFAULT_PAGE_SIZE as T,adminAuthImpersonateMutation as p,adminAuthListHasMore as U,adminAuthListPlaceholder as k,adminAuthListQueryKey as _,adminAuthListQueryOptions as v,authOrganizationsList as E,authSessionsList as M,authSignUpInvitationsList as w,authUsersList as C,nextAdminAuthLimit as H,subscribeAdminAuthIdentity as D}from"../packem_shared/ADMIN_AUTH_DEFAULT_PAGE_SIZE-aKbm8N1z.mjs";const S=["authenticated","loading","unauthenticated","unreachable"],y=t=>t==="authenticated"||t==="unreachable",L=t=>t==="loading",f=new WeakMap,g=t=>{const n=new Set;let u=null,r="loading",h=!1,c=!1,a;const A=()=>{for(const e of n)e()};let o=0;const i=(e,s)=>{(r!==e||u!==s)&&(r=e,u=s,A())},d=(e=!1)=>{o+=1;const s=o;if(!e&&t.getAuthToken()===null&&c){i("unauthenticated",null);return}i(u===null?"loading":"authenticated",u),t.getCurrentUser().then(l=>{s===o&&(c=!0,i(l===null?"unauthenticated":"authenticated",l),l!==null&&a===`subj:${l.id}`&&(a=void 0))}).catch(()=>{a=void 0,s===o&&i("unreachable",u)})};return t.expectIdentityResolution(),t.onAuthTokenChange(()=>{d()}),t.onIdentityChange(()=>{if(!h||t.getAuthToken()!==null)return;const e=t.currentIdentity();e===null?i("unauthenticated",null):e!==a&&(a=e,d(!0))}),t.onConnectionStatus(e=>{e==="connected"&&r==="unreachable"&&d(!0)}),{getStatus:()=>r,getUser:()=>u,subscribe:e=>(n.add(e),h||(h=!0,d()),()=>{n.delete(e)})}},m=t=>{let n=f.get(t);return n||(n=g(t),f.set(t,n)),n};export{T as ADMIN_AUTH_DEFAULT_PAGE_SIZE,S as AUTH_STATUSES,p as adminAuthImpersonateMutation,U as adminAuthListHasMore,k as adminAuthListPlaceholder,_ as adminAuthListQueryKey,v as adminAuthListQueryOptions,E as authOrganizationsList,M as authSessionsList,w as authSignUpInvitationsList,C as authUsersList,m as getIdentityStore,y as isAuthenticatedStatus,L as isLoadingStatus,H as nextAdminAuthLimit,D as subscribeAdminAuthIdentity};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const h="lunora-admin-auth-list",A=50,d=(t,n={})=>{const{filterField:s,filterValue:e,search:i,searchField:o,sortBy:r,sortDirection:a}=n;return{fetchPage:u=>t.listAuthUsers({filterField:s,filterValue:e,limit:u,search:i,searchField:o,sortBy:r,sortDirection:a}),key:["users",{filterField:s,filterValue:e,search:i,searchField:o,sortBy:r,sortDirection:a}]}},y=t=>({fetchPage:n=>t.listAuthOrganizations({limit:n}),key:["organizations"]}),l=t=>({fetchPage:n=>t.listAuthSignUpInvitations({limit:n}),key:["sign-up-invitations"]}),m=(t,n={})=>{const{userId:s}=n;return{fetchPage:e=>t.listAuthSessions({limit:e,userId:s}),key:["sessions",{userId:s}]}},c=(t,n,s)=>[h,t??"anon",...n.key,s],f=(t,n)=>{const s=t.onAuthTokenChange(n),e=t.onIdentityChange(n);return()=>{s(),e()}},g=t=>t!==void 0&&t.rows.length<t.total,I=(t,n,s)=>({queryFn:()=>t.fetchPage(s),queryKey:c(n,t,s),staleTime:0}),L=(t,n,s)=>n!==void 0&&n[1]===s[1]?t:void 0,P=(t,n,s)=>s?t+n:t,U=t=>({mutationFn:n=>t.impersonateAuthUser({userId:n})});export{A as ADMIN_AUTH_DEFAULT_PAGE_SIZE,U as adminAuthImpersonateMutation,g as adminAuthListHasMore,L as adminAuthListPlaceholder,c as adminAuthListQueryKey,I as adminAuthListQueryOptions,y as authOrganizationsList,m as authSessionsList,l as authSignUpInvitationsList,d as authUsersList,P as nextAdminAuthLimit,f as subscribeAdminAuthIdentity};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{LunoraError as A}from"@lunora/errors";import{A as r,F as u,C as O,a as l,O as y,b as _,c as E,G as P,d as S,e as p,K as f,f as w,g as c,S as U,h as F,i as o,j as b,k as I,V as g,l as R,L as G,m as k,s as C,n as N,o as M,p as L,q as v,r as V,t as D,u as K,v as B,w as J,x,y as $,z as W,B as z,D as j,E as q,H as Y,I as Q,J as X,M as Z,N as tt,P as at,Q as st,R as et,T as nt,U as it,W as rt,X as ct,Y as ot,Z as dt,_ as mt,$ as ht,a0 as Tt,a1 as Ht,a2 as At,a3 as ut,a4 as Ot,a5 as lt,a6 as yt,a7 as _t,a8 as Et,a9 as Pt,aa as St,ab as pt,ac as ft,ad as wt,ae as Ut,af as Ft,ag as bt,ah as It,ai as gt,aj as Rt,ak as Gt,al as kt,am as Ct,an as Nt,ao as Mt,ap as Lt,aq as vt,ar as Vt,as as Dt}from"./lunora-client-joBzs47U.mjs";import{w as e,b as d}from"./client-urls-BHLUjjcG.mjs";import{encodeWire as h,decodeWire as T}from"@lunora/wire";const Kt=async a=>(a.assertOpen(),(await a.adminFetch(r,"GET")).tokens??[]),Bt=async(a,t)=>(a.assertOpen(),await a.adminFetch(r,"POST",t)),Jt=async(a,t)=>{a.assertOpen(),await a.adminFetch(e(r,{name:t}),"DELETE")},xt=async a=>(a.assertOpen(),(await a.adminFetch(u,"GET")).functions??[]),$t=async a=>(a.assertOpen(),(await a.adminFetch(O,"GET")).jobs??[]),Wt=async(a,t)=>{a.assertOpen();const s=await a.adminFetch(l,"POST",{name:t});return{name:s.name??t,ran:s.ran===!0}},zt=async a=>(a.assertOpen(),await a.adminFetch(y,"GET")),jt=async a=>(a.assertOpen(),await a.adminFetch(_,"GET")),qt=async a=>(a.assertOpen(),await a.adminFetch(E,"GET")),Yt=async a=>(a.assertOpen(),await a.adminFetch(P,"GET")),Qt=async(a,t)=>{a.assertOpen();const s=new URLSearchParams({table:t.table});return t.limit!==void 0&&s.set("limit",String(t.limit)),t.offset!==void 0&&s.set("offset",String(t.offset)),t.filters!==void 0&&t.filters.length>0&&s.set("filters",JSON.stringify(h(t.filters))),T(await a.adminFetch(`${S}?${s.toString()}`,"GET"))},Xt=async(a,t)=>{a.assertOpen();const s=new URLSearchParams({column:t.column,table:t.table});return t.limit!==void 0&&s.set("limit",String(t.limit)),t.filters!==void 0&&t.filters.length>0&&s.set("filters",JSON.stringify(h(t.filters))),T(await a.adminFetch(`${p}?${s.toString()}`,"GET"))},Zt=async a=>(a.assertOpen(),(await a.adminFetch(f,"GET")).namespaces??[]),ta=async(a,t)=>{a.assertOpen();const s=e(w,{cursor:t.cursor,limit:t.limit,namespace:t.namespace,prefix:t.prefix});return await a.adminFetch(s,"GET")},aa=async(a,t)=>{a.assertOpen();const s=e(c,{key:t.key,namespace:t.namespace});return await a.adminFetch(s,"GET")},sa=async(a,t)=>{a.assertOpen(),await a.adminFetch(c,"PUT",t)},ea=async(a,t)=>{a.assertOpen();const s=e(c,{key:t.key,namespace:t.namespace});await a.adminFetch(s,"DELETE")},na=async(a,t)=>{a.assertOpen();const s=await a.adminFetch(U,"POST",{table:t});return{failed:s.failed??0,ok:s.ok??0,shards:s.shards??[]}},ia=async(a,t={})=>{a.assertOpen();const s=await a.adminFetch(F,"POST",t);return{nextCursor:s.nextCursor,rows:s.rows??[]}},ra=async(a,t={})=>{a.assertOpen();const s=e(o,{bucket:t.bucket,cursor:t.cursor,limit:t.limit,prefix:t.prefix}),n=await a.adminFetch(s,"GET");return{cursor:n.cursor,objects:n.objects??[]}},ca=async(a,t,s)=>{a.assertOpen();const n=`${o}?key=${encodeURIComponent(t)}${d(s?.bucket)}`,i=await a.adminFetch(n,"DELETE");return{deleted:i.deleted===!0,key:i.key??t}},oa=async a=>(a.assertOpen(),(await a.adminFetch(b,"GET")).buckets??[]),da=async(a,t)=>{a.assertOpen();const s=`${o}?key=${encodeURIComponent(t.key)}${d(t.bucket)}`,n=await a.adminFetch(s,"PUT",t.body,t.contentType);return{etag:n.etag,key:n.key??t.key}},ma=async(a,t,s)=>{a.assertOpen();const n=s?.expiresInSeconds,i=n===void 0?"":`&expiresIn=${encodeURIComponent(n.toString())}`,H=`${I}?key=${encodeURIComponent(t)}${i}${d(s?.bucket)}`,m=await a.adminFetch(H,"GET");if(typeof m.url!="string")throw new TypeError("LunoraClient: storage URL endpoint returned no `url`");return m.url},ha=async a=>(a.assertOpen(),(await a.adminFetch(g,"GET")).indexes??[]),Ta=async(a,t)=>(a.assertOpen(),(await a.adminFetch(R,"POST",t)).matches??[]);class ya extends G{async shardTraffic(t){return na(this.adminHost,t)}async getDeploymentPause(){return k(this.adminHost)}async setDeploymentPause(t,s){return C(this.adminHost,t,s)}async listScheduledJobs(){return N(this.adminHost)}async schedulerStatus(){return M(this.adminHost)}async getScheduledJob(t){return L(this.adminHost,t)}async listScheduledHistory(t={}){return v(this.adminHost,t)}async listCronRuns(){return V(this.adminHost)}async cancelScheduledJob(t){return D(this.adminHost,t)}async listDeadJobs(){return K(this.adminHost)}async retryDeadJob(t){return B(this.adminHost,t)}async removeDeadJob(t){return J(this.adminHost,t)}async listWorkflowInstances(t){return x(this.adminHost,t)}async getWorkflowInstance(t){return $(this.adminHost,t)}async createWorkflowInstance(t){return W(this.adminHost,t)}async sendWorkflowEvent(t){return z(this.adminHost,t)}async setWorkflowInstanceStatus(t){return j(this.adminHost,t)}async listFunctions(){return xt(this.adminHost)}async getCronJobs(){return $t(this.adminHost)}async runCronJob(t){return Wt(this.adminHost,t)}async fetchOpenApi(){return zt(this.adminHost)}async fetchArchitecture(){return jt(this.adminHost)}async fetchOpenRpc(){return qt(this.adminHost)}async listStorageObjects(t={}){return ra(this.adminHost,t)}async deleteStorageObject(t,s){return ca(this.adminHost,t,s)}async listStorageBuckets(){return oa(this.adminHost)}async uploadStorageObject(t){return da(this.adminHost,t)}async signedStorageUrl(t,s){return ma(this.adminHost,t,s)}async listGlobalTables(){return Yt(this.adminHost)}async readGlobalTablePage(t){return Qt(this.adminHost,t)}async facetGlobalColumn(t){return Xt(this.adminHost,t)}async listVectorIndexes(){return ha(this.adminHost)}async queryVectorIndex(t){return Ta(this.adminHost,t)}async queryLogArchive(t={}){return ia(this.adminHost,t)}async listAdminTokens(){return Kt(this.adminHost)}async createAdminToken(t){return Bt(this.adminHost,t)}async revokeAdminToken(t){return Jt(this.adminHost,t)}async listKvNamespaces(){return Zt(this.adminHost)}async listKvKeys(t){return ta(this.adminHost,t)}async getKvValue(t){return aa(this.adminHost,t)}async putKvValue(t){return sa(this.adminHost,t)}async deleteKvKey(t){return ea(this.adminHost,t)}async listAuthUsers(t={}){this.adminHost.assertOpen();const s=e(q,{filterField:t.filterField,filterValue:t.filterValue,limit:t.limit,offset:t.offset,search:t.search,searchField:t.searchField,sortBy:t.sortBy,sortDirection:t.sortDirection});return await this.adminHost.adminFetch(s,"GET")}async createAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Y,"POST",t)}async setAuthUserRole(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Q,"POST",t)}async banAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(X,"POST",t)}async unbanAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Z,"POST",t)}async setAuthUserPassword(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(tt,"POST",t)}async removeAuthUser(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(at,"POST",t)}async impersonateAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(st,"POST",t)}async revokeAuthSession(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(et,"POST",t)}async revokeAuthUserSessions(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(nt,"POST",t)}async getAuthCapabilities(){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(it,"GET")}async updateAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(rt,"POST",t)}async listAuthAccounts(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(e(ct,{userId:t.userId}),"GET")}async unlinkAuthAccount(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(ot,"POST",t)}async listAuthApiKeys(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(e(dt,{userId:t.userId}),"GET")}async deleteAuthApiKey(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(mt,"POST",t)}async listAuthPasskeys(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(e(ht,{userId:t.userId}),"GET")}async deleteAuthPasskey(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Tt,"POST",t)}async disableAuthTwoFactor(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Ht,"POST",t)}async listAuthOrganizations(t={}){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(e(At,{limit:t.limit,offset:t.offset}),"GET")}async listAuthOrgMembers(t){this.adminHost.assertOpen();const s=e(ut,{limit:t.limit,offset:t.offset,organizationId:t.organizationId});return await this.adminHost.adminFetch(s,"GET")}async listAuthOrgInvitations(t){this.adminHost.assertOpen();const s=e(Ot,{limit:t.limit,offset:t.offset,organizationId:t.organizationId});return await this.adminHost.adminFetch(s,"GET")}async listAuthSignUpInvitations(t={}){this.adminHost.assertOpen();const s=e(lt,{limit:t.limit,offset:t.offset});return await this.adminHost.adminFetch(s,"GET")}async createAuthSignUpInvitation(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(yt,"POST",t)}async revokeAuthSignUpInvitation(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(_t,"POST",t)}async removeAuthOrgMember(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Et,"POST",t)}async cancelAuthOrgInvitation(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Pt,"POST",t)}async getAuthConfig(){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(St,"GET")}async createAuthOrganization(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(pt,"POST",t)}async updateAuthOrganization(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(ft,"POST",t)}async deleteAuthOrganization(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(wt,"POST",t)}async addAuthOrgMember(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Ut,"POST",t)}async inviteAuthOrgMember(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Ft,"POST",t)}async setAuthOrgMemberRole(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(bt,"POST",t)}async listAuthOrgTeams(t){this.adminHost.assertOpen();const s=e(It,{limit:t.limit,offset:t.offset,organizationId:t.organizationId});return await this.adminHost.adminFetch(s,"GET")}async createAuthOrgTeam(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(gt,"POST",t)}async updateAuthOrgTeam(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Rt,"POST",t)}async removeAuthOrgTeam(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Gt,"POST",t)}async listAuthOrgTeamMembers(t){this.adminHost.assertOpen();const s=e(kt,{limit:t.limit,offset:t.offset,teamId:t.teamId});return await this.adminHost.adminFetch(s,"GET")}async addAuthOrgTeamMember(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Ct,"POST",t)}async removeAuthOrgTeamMember(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Nt,"POST",t)}async listAuthOrgRoles(t){this.adminHost.assertOpen();const s=e(Mt,{limit:t.limit,offset:t.offset,organizationId:t.organizationId});return await this.adminHost.adminFetch(s,"GET")}async createAuthOrgRole(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Lt,"POST",t)}async updateAuthOrgRole(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(vt,"POST",t)}async deleteAuthOrgRole(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Vt,"POST",t)}async listAuthSessions(t={}){this.adminHost.assertOpen();const s=e(Dt,{limit:t.limit,offset:t.offset,userId:t.userId});return await this.adminHost.adminFetch(s,"GET")}}const Ha=a=>"listAuthUsers"in a,_a=a=>{if(!Ha(a))throw new A("INTERNAL","The admin auth hooks need a LunoraAdminClient: construct the provider's client with `new LunoraAdminClient(...)` from `@lunora/client/admin`.");return a};export{ya as LunoraAdminClient,Ha as isLunoraAdminClient,_a as requireAdminAuthClient};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const h="lunora-admin-auth-list",c=50,A=(t,s={})=>{const{filterField:n,filterValue:i,search:e,searchField:o,sortBy:r,sortDirection:a}=s;return{fetchPage:u=>t.listAuthUsers({filterField:n,filterValue:i,limit:u,search:e,searchField:o,sortBy:r,sortDirection:a}),key:["users",{filterField:n,filterValue:i,search:e,searchField:o,sortBy:r,sortDirection:a}]}},l=t=>({fetchPage:s=>t.listAuthOrganizations({limit:s}),key:["organizations"]}),d=t=>({fetchPage:s=>t.listAuthSignUpInvitations({limit:s}),key:["sign-up-invitations"]}),y=(t,s={})=>{const{userId:n}=s;return{fetchPage:i=>t.listAuthSessions({limit:i,userId:n}),key:["sessions",{userId:n}]}},f=(t,s,n)=>[h,t??"anon",...s.key,n],g=(t,s)=>{const n=t.onAuthTokenChange(s),i=t.onIdentityChange(s);return()=>{n(),i()}},I=t=>t!==void 0&&t.rows.length<t.total;export{c as ADMIN_AUTH_DEFAULT_PAGE_SIZE,I as adminAuthListHasMore,f as adminAuthListQueryKey,l as authOrganizationsList,y as authSessionsList,d as authSignUpInvitationsList,A as authUsersList,g as subscribeAdminAuthIdentity};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as r,F as A,C as u,a as O,O as y,b as l,c as _,G as E,d as P,e as S,K as p,f,g as c,S as U,h as w,i as d,j as F,k as b,V as I,l as g,L as R,m as G,s as k,n as C,o as N,p as M,q as v,r as L,t as V,u as D,v as K,w as B,x as J,y as x,z as $,B as W,D as z,E as j,H as Y,I as q,J as Q,M as X,N as Z,P as tt,Q as st,R as at,T as et,U as nt,W as it,X as rt,Y as ct,Z as dt,_ as ot,$ as mt,a0 as ht,a1 as Tt,a2 as Ht,a3 as At,a4 as ut,a5 as Ot,a6 as yt,a7 as lt,a8 as _t,a9 as Et,aa as Pt,ab as St,ac as pt,ad as ft,ae as Ut,af as wt,ag as Ft,ah as bt,ai as It,aj as gt,ak as Rt,al as Gt,am as kt,an as Ct,ao as Nt,ap as Mt,aq as vt,ar as Lt,as as Vt}from"./lunora-client-joBzs47U.mjs";import{w as e,b as o}from"./client-urls-BHLUjjcG.mjs";import{encodeWire as h,decodeWire as T}from"@lunora/wire";const Dt=async s=>(s.assertOpen(),(await s.adminFetch(r,"GET")).tokens??[]),Kt=async(s,t)=>(s.assertOpen(),await s.adminFetch(r,"POST",t)),Bt=async(s,t)=>{s.assertOpen(),await s.adminFetch(e(r,{name:t}),"DELETE")},Jt=async s=>(s.assertOpen(),(await s.adminFetch(A,"GET")).functions??[]),xt=async s=>(s.assertOpen(),(await s.adminFetch(u,"GET")).jobs??[]),$t=async(s,t)=>{s.assertOpen();const a=await s.adminFetch(O,"POST",{name:t});return{name:a.name??t,ran:a.ran===!0}},Wt=async s=>(s.assertOpen(),await s.adminFetch(y,"GET")),zt=async s=>(s.assertOpen(),await s.adminFetch(l,"GET")),jt=async s=>(s.assertOpen(),await s.adminFetch(_,"GET")),Yt=async s=>(s.assertOpen(),await s.adminFetch(E,"GET")),qt=async(s,t)=>{s.assertOpen();const a=new URLSearchParams({table:t.table});return t.limit!==void 0&&a.set("limit",String(t.limit)),t.offset!==void 0&&a.set("offset",String(t.offset)),t.filters!==void 0&&t.filters.length>0&&a.set("filters",JSON.stringify(h(t.filters))),T(await s.adminFetch(`${P}?${a.toString()}`,"GET"))},Qt=async(s,t)=>{s.assertOpen();const a=new URLSearchParams({column:t.column,table:t.table});return t.limit!==void 0&&a.set("limit",String(t.limit)),t.filters!==void 0&&t.filters.length>0&&a.set("filters",JSON.stringify(h(t.filters))),T(await s.adminFetch(`${S}?${a.toString()}`,"GET"))},Xt=async s=>(s.assertOpen(),(await s.adminFetch(p,"GET")).namespaces??[]),Zt=async(s,t)=>{s.assertOpen();const a=e(f,{cursor:t.cursor,limit:t.limit,namespace:t.namespace,prefix:t.prefix});return await s.adminFetch(a,"GET")},ts=async(s,t)=>{s.assertOpen();const a=e(c,{key:t.key,namespace:t.namespace});return await s.adminFetch(a,"GET")},ss=async(s,t)=>{s.assertOpen(),await s.adminFetch(c,"PUT",t)},as=async(s,t)=>{s.assertOpen();const a=e(c,{key:t.key,namespace:t.namespace});await s.adminFetch(a,"DELETE")},es=async(s,t)=>{s.assertOpen();const a=await s.adminFetch(U,"POST",{table:t});return{failed:a.failed??0,ok:a.ok??0,shards:a.shards??[]}},ns=async(s,t={})=>{s.assertOpen();const a=await s.adminFetch(w,"POST",t);return{nextCursor:a.nextCursor,rows:a.rows??[]}},is=async(s,t={})=>{s.assertOpen();const a=e(d,{bucket:t.bucket,cursor:t.cursor,limit:t.limit,prefix:t.prefix}),n=await s.adminFetch(a,"GET");return{cursor:n.cursor,objects:n.objects??[]}},rs=async(s,t,a)=>{s.assertOpen();const n=`${d}?key=${encodeURIComponent(t)}${o(a?.bucket)}`,i=await s.adminFetch(n,"DELETE");return{deleted:i.deleted===!0,key:i.key??t}},cs=async s=>(s.assertOpen(),(await s.adminFetch(F,"GET")).buckets??[]),ds=async(s,t)=>{s.assertOpen();const a=`${d}?key=${encodeURIComponent(t.key)}${o(t.bucket)}`,n=await s.adminFetch(a,"PUT",t.body,t.contentType);return{etag:n.etag,key:n.key??t.key}},os=async(s,t,a)=>{s.assertOpen();const n=a?.expiresInSeconds,i=n===void 0?"":`&expiresIn=${encodeURIComponent(n.toString())}`,H=`${b}?key=${encodeURIComponent(t)}${i}${o(a?.bucket)}`,m=await s.adminFetch(H,"GET");if(typeof m.url!="string")throw new TypeError("LunoraClient: storage URL endpoint returned no `url`");return m.url},ms=async s=>(s.assertOpen(),(await s.adminFetch(I,"GET")).indexes??[]),hs=async(s,t)=>(s.assertOpen(),(await s.adminFetch(g,"POST",t)).matches??[]);class us extends R{async shardTraffic(t){return es(this.adminHost,t)}async getDeploymentPause(){return G(this.adminHost)}async setDeploymentPause(t,a){return k(this.adminHost,t,a)}async listScheduledJobs(){return C(this.adminHost)}async schedulerStatus(){return N(this.adminHost)}async getScheduledJob(t){return M(this.adminHost,t)}async listScheduledHistory(t={}){return v(this.adminHost,t)}async listCronRuns(){return L(this.adminHost)}async cancelScheduledJob(t){return V(this.adminHost,t)}async listDeadJobs(){return D(this.adminHost)}async retryDeadJob(t){return K(this.adminHost,t)}async removeDeadJob(t){return B(this.adminHost,t)}async listWorkflowInstances(t){return J(this.adminHost,t)}async getWorkflowInstance(t){return x(this.adminHost,t)}async createWorkflowInstance(t){return $(this.adminHost,t)}async sendWorkflowEvent(t){return W(this.adminHost,t)}async setWorkflowInstanceStatus(t){return z(this.adminHost,t)}async listFunctions(){return Jt(this.adminHost)}async getCronJobs(){return xt(this.adminHost)}async runCronJob(t){return $t(this.adminHost,t)}async fetchOpenApi(){return Wt(this.adminHost)}async fetchArchitecture(){return zt(this.adminHost)}async fetchOpenRpc(){return jt(this.adminHost)}async listStorageObjects(t={}){return is(this.adminHost,t)}async deleteStorageObject(t,a){return rs(this.adminHost,t,a)}async listStorageBuckets(){return cs(this.adminHost)}async uploadStorageObject(t){return ds(this.adminHost,t)}async signedStorageUrl(t,a){return os(this.adminHost,t,a)}async listGlobalTables(){return Yt(this.adminHost)}async readGlobalTablePage(t){return qt(this.adminHost,t)}async facetGlobalColumn(t){return Qt(this.adminHost,t)}async listVectorIndexes(){return ms(this.adminHost)}async queryVectorIndex(t){return hs(this.adminHost,t)}async queryLogArchive(t={}){return ns(this.adminHost,t)}async listAdminTokens(){return Dt(this.adminHost)}async createAdminToken(t){return Kt(this.adminHost,t)}async revokeAdminToken(t){return Bt(this.adminHost,t)}async listKvNamespaces(){return Xt(this.adminHost)}async listKvKeys(t){return Zt(this.adminHost,t)}async getKvValue(t){return ts(this.adminHost,t)}async putKvValue(t){return ss(this.adminHost,t)}async deleteKvKey(t){return as(this.adminHost,t)}async listAuthUsers(t={}){this.adminHost.assertOpen();const a=e(j,{filterField:t.filterField,filterValue:t.filterValue,limit:t.limit,offset:t.offset,search:t.search,searchField:t.searchField,sortBy:t.sortBy,sortDirection:t.sortDirection});return await this.adminHost.adminFetch(a,"GET")}async createAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Y,"POST",t)}async setAuthUserRole(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(q,"POST",t)}async banAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Q,"POST",t)}async unbanAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(X,"POST",t)}async setAuthUserPassword(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Z,"POST",t)}async removeAuthUser(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(tt,"POST",t)}async impersonateAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(st,"POST",t)}async revokeAuthSession(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(at,"POST",t)}async revokeAuthUserSessions(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(et,"POST",t)}async getAuthCapabilities(){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(nt,"GET")}async updateAuthUser(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(it,"POST",t)}async listAuthAccounts(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(e(rt,{userId:t.userId}),"GET")}async unlinkAuthAccount(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(ct,"POST",t)}async listAuthApiKeys(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(e(dt,{userId:t.userId}),"GET")}async deleteAuthApiKey(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(ot,"POST",t)}async listAuthPasskeys(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(e(mt,{userId:t.userId}),"GET")}async deleteAuthPasskey(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(ht,"POST",t)}async disableAuthTwoFactor(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Tt,"POST",t)}async listAuthOrganizations(t={}){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(e(Ht,{limit:t.limit,offset:t.offset}),"GET")}async listAuthOrgMembers(t){this.adminHost.assertOpen();const a=e(At,{limit:t.limit,offset:t.offset,organizationId:t.organizationId});return await this.adminHost.adminFetch(a,"GET")}async listAuthOrgInvitations(t){this.adminHost.assertOpen();const a=e(ut,{limit:t.limit,offset:t.offset,organizationId:t.organizationId});return await this.adminHost.adminFetch(a,"GET")}async listAuthSignUpInvitations(t={}){this.adminHost.assertOpen();const a=e(Ot,{limit:t.limit,offset:t.offset});return await this.adminHost.adminFetch(a,"GET")}async createAuthSignUpInvitation(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(yt,"POST",t)}async revokeAuthSignUpInvitation(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(lt,"POST",t)}async removeAuthOrgMember(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(_t,"POST",t)}async cancelAuthOrgInvitation(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Et,"POST",t)}async getAuthConfig(){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Pt,"GET")}async createAuthOrganization(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(St,"POST",t)}async updateAuthOrganization(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(pt,"POST",t)}async deleteAuthOrganization(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(ft,"POST",t)}async addAuthOrgMember(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Ut,"POST",t)}async inviteAuthOrgMember(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(wt,"POST",t)}async setAuthOrgMemberRole(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Ft,"POST",t)}async listAuthOrgTeams(t){this.adminHost.assertOpen();const a=e(bt,{limit:t.limit,offset:t.offset,organizationId:t.organizationId});return await this.adminHost.adminFetch(a,"GET")}async createAuthOrgTeam(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(It,"POST",t)}async updateAuthOrgTeam(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(gt,"POST",t)}async removeAuthOrgTeam(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Rt,"POST",t)}async listAuthOrgTeamMembers(t){this.adminHost.assertOpen();const a=e(Gt,{limit:t.limit,offset:t.offset,teamId:t.teamId});return await this.adminHost.adminFetch(a,"GET")}async addAuthOrgTeamMember(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(kt,"POST",t)}async removeAuthOrgTeamMember(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Ct,"POST",t)}async listAuthOrgRoles(t){this.adminHost.assertOpen();const a=e(Nt,{limit:t.limit,offset:t.offset,organizationId:t.organizationId});return await this.adminHost.adminFetch(a,"GET")}async createAuthOrgRole(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(Mt,"POST",t)}async updateAuthOrgRole(t){return this.adminHost.assertOpen(),await this.adminHost.adminFetch(vt,"POST",t)}async deleteAuthOrgRole(t){this.adminHost.assertOpen(),await this.adminHost.adminFetch(Lt,"POST",t)}async listAuthSessions(t={}){this.adminHost.assertOpen();const a=e(Vt,{limit:t.limit,offset:t.offset,userId:t.userId});return await this.adminHost.adminFetch(a,"GET")}}const Os=s=>"listAuthUsers"in s;export{us as LunoraAdminClient,Os as isLunoraAdminClient};
|