@lunora/client 1.0.0-alpha.14 → 1.0.0-alpha.15
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/auth/index.d.mts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/{LunoraClient-DEEhIPi_.mjs → LunoraClient-ClBd8JUG.mjs} +69 -0
- package/dist/packem_shared/{createServerClient-DgJaS1_M.mjs → createServerClient-BUEYFHjp.mjs} +1 -1
- package/dist/packem_shared/{lunora-client.d-DTwbfUWF.d.mts → lunora-client.d-CtSRWJJ7.d.mts} +50 -1
- package/dist/packem_shared/{lunora-client.d-DTwbfUWF.d.ts → lunora-client.d-CtSRWJJ7.d.ts} +50 -1
- package/dist/packem_shared/{preload.d-BEp0JJeu.d.mts → preload.d-GjXaOwY9.d.mts} +1 -1
- package/dist/packem_shared/{preload.d-CK2IYf5B.d.ts → preload.d-NMFbch9j.d.ts} +1 -1
- package/dist/query/index.d.mts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/ssr/index.d.mts +3 -3
- package/dist/ssr/index.d.ts +3 -3
- package/dist/ssr/index.mjs +1 -1
- package/package.json +1 -1
package/dist/auth/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-
|
|
1
|
+
import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-CtSRWJJ7.mjs";
|
|
2
2
|
import '@lunora/runtime';
|
|
3
3
|
interface IdentityStore {
|
|
4
4
|
/** Read the current resolved user, or `null` when signed out / not yet resolved. */
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-
|
|
1
|
+
import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-CtSRWJJ7.js";
|
|
2
2
|
import '@lunora/runtime';
|
|
3
3
|
interface IdentityStore {
|
|
4
4
|
/** Read the current resolved user, or `null` when signed out / not yet resolved. */
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as PersistenceAdapter, B as BookmarkStorage, F as FunctionReference, A as ArgsOf, M as MutationCallOptions, R as ReturnOf, O as OfflineQueueOptions, Q as QueryCacheAdapter, d as ReconnectOptions } from "./packem_shared/lunora-client.d-
|
|
2
|
-
export { type e as BatchSlot, type C as CachedQuery, type f as ClientMessage, type g as ClientShapeSubscribeMessage, type h as ClientShapeUnsubscribeMessage, type i as ConnectionStatus, D as DEFAULT_MAX_BUFFER, type j as FunctionArgumentDescriptor, type k as FunctionDescriptor, type G as GlobalFacetResult, type l as GlobalFacetValue, type m as GlobalFilterClause, type n as GlobalTableInfo, type o as GlobalTablePage, L as LunoraClient, type p as LunoraClientError, type q as LunoraClientOptions, type r as MutationSettledEvent, type s as OptimisticLocalStore, type t as OptimisticUpdate, type u as OutboxMutation, type v as OutboxSink, type w as PersistedMutation, type P as Preloaded, type x as RowOp, type y as RpcEnvelope, type z as RpcResponseBody, type E as ScheduleRecord, type H as SchedulerPoolStatus, type I as SchedulerStatus, type J as ServerMessage, type K as ServerPokeEndMessage, type N as ServerPokePartMessage, type T as ServerPokeStartMessage, type V as ShardTrafficEntry, type W as ShardTrafficResult, type X as StorageListPage, type Y as StorageObject, type Z as StreamHandle, type _ as StreamIterable, type $ as SubscriptionCallback, type S as SubscriptionError, type b as SubscriptionErrorCallback, a0 as SubscriptionRegistry, type a1 as SubscriptionState, type a2 as SyncWatermark, type a as Unsubscribe, type U as User, type a3 as WorkflowInstanceAction, type a4 as WorkflowInstanceDetail, type a5 as WorkflowInstancePage, type a6 as WorkflowInstanceStatus, type a7 as WorkflowInstanceSummary, type a8 as WorkflowStepDetail, a9 as createLocalStore, aa as createStream } from "./packem_shared/lunora-client.d-
|
|
3
|
-
export { p as preloadQuery, a as preloadedQueryResult } from "./packem_shared/preload.d-
|
|
4
|
-
export type { AuthCapabilities, AuthImpersonation, AuthPage, AuthSession, AuthUser, CronJobInfo, VectorIndexSummary, VectorQueryMatch } from '@lunora/runtime';
|
|
1
|
+
import { c as PersistenceAdapter, B as BookmarkStorage, F as FunctionReference, A as ArgsOf, M as MutationCallOptions, R as ReturnOf, O as OfflineQueueOptions, Q as QueryCacheAdapter, d as ReconnectOptions } from "./packem_shared/lunora-client.d-CtSRWJJ7.mjs";
|
|
2
|
+
export { type e as BatchSlot, type C as CachedQuery, type f as ClientMessage, type g as ClientShapeSubscribeMessage, type h as ClientShapeUnsubscribeMessage, type i as ConnectionStatus, D as DEFAULT_MAX_BUFFER, type j as FunctionArgumentDescriptor, type k as FunctionDescriptor, type G as GlobalFacetResult, type l as GlobalFacetValue, type m as GlobalFilterClause, type n as GlobalTableInfo, type o as GlobalTablePage, L as LunoraClient, type p as LunoraClientError, type q as LunoraClientOptions, type r as MutationSettledEvent, type s as OptimisticLocalStore, type t as OptimisticUpdate, type u as OutboxMutation, type v as OutboxSink, type w as PersistedMutation, type P as Preloaded, type x as RowOp, type y as RpcEnvelope, type z as RpcResponseBody, type E as ScheduleRecord, type H as SchedulerPoolStatus, type I as SchedulerStatus, type J as ServerMessage, type K as ServerPokeEndMessage, type N as ServerPokePartMessage, type T as ServerPokeStartMessage, type V as ShardTrafficEntry, type W as ShardTrafficResult, type X as StorageListPage, type Y as StorageObject, type Z as StreamHandle, type _ as StreamIterable, type $ as SubscriptionCallback, type S as SubscriptionError, type b as SubscriptionErrorCallback, a0 as SubscriptionRegistry, type a1 as SubscriptionState, type a2 as SyncWatermark, type a as Unsubscribe, type U as User, type a3 as WorkflowInstanceAction, type a4 as WorkflowInstanceDetail, type a5 as WorkflowInstancePage, type a6 as WorkflowInstanceStatus, type a7 as WorkflowInstanceSummary, type a8 as WorkflowStepDetail, a9 as createLocalStore, aa as createStream } from "./packem_shared/lunora-client.d-CtSRWJJ7.mjs";
|
|
3
|
+
export { p as preloadQuery, a as preloadedQueryResult } from "./packem_shared/preload.d-GjXaOwY9.mjs";
|
|
4
|
+
export type { AuthCapabilities, AuthImpersonation, AuthPage, AuthSession, AuthUser, CronJobInfo, KvKeyEntry, KvKeyListResult, KvNamespaceSummary, KvValueResult, VectorIndexSummary, VectorQueryMatch } from '@lunora/runtime';
|
|
5
5
|
/**
|
|
6
6
|
* The slice of React Native's `AsyncStorage` (or any async key/value store —
|
|
7
7
|
* Expo `SecureStore`, a wrapped `localForage`, an in-memory map in tests) this
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as PersistenceAdapter, B as BookmarkStorage, F as FunctionReference, A as ArgsOf, M as MutationCallOptions, R as ReturnOf, O as OfflineQueueOptions, Q as QueryCacheAdapter, d as ReconnectOptions } from "./packem_shared/lunora-client.d-
|
|
2
|
-
export { type e as BatchSlot, type C as CachedQuery, type f as ClientMessage, type g as ClientShapeSubscribeMessage, type h as ClientShapeUnsubscribeMessage, type i as ConnectionStatus, D as DEFAULT_MAX_BUFFER, type j as FunctionArgumentDescriptor, type k as FunctionDescriptor, type G as GlobalFacetResult, type l as GlobalFacetValue, type m as GlobalFilterClause, type n as GlobalTableInfo, type o as GlobalTablePage, L as LunoraClient, type p as LunoraClientError, type q as LunoraClientOptions, type r as MutationSettledEvent, type s as OptimisticLocalStore, type t as OptimisticUpdate, type u as OutboxMutation, type v as OutboxSink, type w as PersistedMutation, type P as Preloaded, type x as RowOp, type y as RpcEnvelope, type z as RpcResponseBody, type E as ScheduleRecord, type H as SchedulerPoolStatus, type I as SchedulerStatus, type J as ServerMessage, type K as ServerPokeEndMessage, type N as ServerPokePartMessage, type T as ServerPokeStartMessage, type V as ShardTrafficEntry, type W as ShardTrafficResult, type X as StorageListPage, type Y as StorageObject, type Z as StreamHandle, type _ as StreamIterable, type $ as SubscriptionCallback, type S as SubscriptionError, type b as SubscriptionErrorCallback, a0 as SubscriptionRegistry, type a1 as SubscriptionState, type a2 as SyncWatermark, type a as Unsubscribe, type U as User, type a3 as WorkflowInstanceAction, type a4 as WorkflowInstanceDetail, type a5 as WorkflowInstancePage, type a6 as WorkflowInstanceStatus, type a7 as WorkflowInstanceSummary, type a8 as WorkflowStepDetail, a9 as createLocalStore, aa as createStream } from "./packem_shared/lunora-client.d-
|
|
3
|
-
export { p as preloadQuery, a as preloadedQueryResult } from "./packem_shared/preload.d-
|
|
4
|
-
export type { AuthCapabilities, AuthImpersonation, AuthPage, AuthSession, AuthUser, CronJobInfo, VectorIndexSummary, VectorQueryMatch } from '@lunora/runtime';
|
|
1
|
+
import { c as PersistenceAdapter, B as BookmarkStorage, F as FunctionReference, A as ArgsOf, M as MutationCallOptions, R as ReturnOf, O as OfflineQueueOptions, Q as QueryCacheAdapter, d as ReconnectOptions } from "./packem_shared/lunora-client.d-CtSRWJJ7.js";
|
|
2
|
+
export { type e as BatchSlot, type C as CachedQuery, type f as ClientMessage, type g as ClientShapeSubscribeMessage, type h as ClientShapeUnsubscribeMessage, type i as ConnectionStatus, D as DEFAULT_MAX_BUFFER, type j as FunctionArgumentDescriptor, type k as FunctionDescriptor, type G as GlobalFacetResult, type l as GlobalFacetValue, type m as GlobalFilterClause, type n as GlobalTableInfo, type o as GlobalTablePage, L as LunoraClient, type p as LunoraClientError, type q as LunoraClientOptions, type r as MutationSettledEvent, type s as OptimisticLocalStore, type t as OptimisticUpdate, type u as OutboxMutation, type v as OutboxSink, type w as PersistedMutation, type P as Preloaded, type x as RowOp, type y as RpcEnvelope, type z as RpcResponseBody, type E as ScheduleRecord, type H as SchedulerPoolStatus, type I as SchedulerStatus, type J as ServerMessage, type K as ServerPokeEndMessage, type N as ServerPokePartMessage, type T as ServerPokeStartMessage, type V as ShardTrafficEntry, type W as ShardTrafficResult, type X as StorageListPage, type Y as StorageObject, type Z as StreamHandle, type _ as StreamIterable, type $ as SubscriptionCallback, type S as SubscriptionError, type b as SubscriptionErrorCallback, a0 as SubscriptionRegistry, type a1 as SubscriptionState, type a2 as SyncWatermark, type a as Unsubscribe, type U as User, type a3 as WorkflowInstanceAction, type a4 as WorkflowInstanceDetail, type a5 as WorkflowInstancePage, type a6 as WorkflowInstanceStatus, type a7 as WorkflowInstanceSummary, type a8 as WorkflowStepDetail, a9 as createLocalStore, aa as createStream } from "./packem_shared/lunora-client.d-CtSRWJJ7.js";
|
|
3
|
+
export { p as preloadQuery, a as preloadedQueryResult } from "./packem_shared/preload.d-NMFbch9j.js";
|
|
4
|
+
export type { AuthCapabilities, AuthImpersonation, AuthPage, AuthSession, AuthUser, CronJobInfo, KvKeyEntry, KvKeyListResult, KvNamespaceSummary, KvValueResult, VectorIndexSummary, VectorQueryMatch } from '@lunora/runtime';
|
|
5
5
|
/**
|
|
6
6
|
* The slice of React Native's `AsyncStorage` (or any async key/value store —
|
|
7
7
|
* Expo `SecureStore`, a wrapped `localForage`, an in-memory map in tests) this
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export { default as createInMemoryBookmarkStorage } from './packem_shared/create
|
|
|
3
3
|
export { applyDelta, isMutationDelta } from './packem_shared/applyDelta-4jFGTPA3.mjs';
|
|
4
4
|
export { CONFLICT_ERROR_CODE, isConflictError } from './packem_shared/CONFLICT_ERROR_CODE-aUdVbEDw.mjs';
|
|
5
5
|
export { c as createLocalStore } from './packem_shared/local-store-BNgN3Dw3.mjs';
|
|
6
|
-
export { LunoraClient } from './packem_shared/LunoraClient-
|
|
6
|
+
export { LunoraClient } from './packem_shared/LunoraClient-ClBd8JUG.mjs';
|
|
7
7
|
export { createMutationRunner } from './packem_shared/createMutationRunner-BqsavzvG.mjs';
|
|
8
8
|
export { createMutatorRunner } from './packem_shared/createMutatorRunner-BETvCd0p.mjs';
|
|
9
9
|
export { O as OfflineQueue } from './packem_shared/offline-queue-B9vfdSqp.mjs';
|
|
@@ -298,6 +298,9 @@ const GLOBAL_TABLE_PATH = "/_lunora/admin/global/table";
|
|
|
298
298
|
const GLOBAL_FACET_PATH = "/_lunora/admin/global/facet";
|
|
299
299
|
const VECTOR_INDEXES_PATH = "/_lunora/admin/vector/indexes";
|
|
300
300
|
const VECTOR_QUERY_PATH = "/_lunora/admin/vector/query";
|
|
301
|
+
const KV_NAMESPACES_PATH = "/_lunora/admin/kv/namespaces";
|
|
302
|
+
const KV_KEYS_PATH = "/_lunora/admin/kv/keys";
|
|
303
|
+
const KV_VALUE_PATH = "/_lunora/admin/kv/value";
|
|
301
304
|
const AUTH_USERS_PATH = "/_lunora/admin/auth/users";
|
|
302
305
|
const AUTH_SESSIONS_PATH = "/_lunora/admin/auth/sessions";
|
|
303
306
|
const AUTH_CREATE_USER_PATH = "/_lunora/admin/auth/users/create";
|
|
@@ -1562,6 +1565,72 @@ class LunoraClient {
|
|
|
1562
1565
|
const body = await this.adminFetch(VECTOR_QUERY_PATH, "POST", options);
|
|
1563
1566
|
return body.matches ?? [];
|
|
1564
1567
|
}
|
|
1568
|
+
// --- KV namespace admin -------------------------------------------------
|
|
1569
|
+
/**
|
|
1570
|
+
* List the worker's registered Workers KV namespaces (binding names). Hits
|
|
1571
|
+
* the admin-gated `GET /_lunora/admin/kv/namespaces` endpoint — the worker
|
|
1572
|
+
* must be built with a `kvIntrospector` and `adminToken`. Powers the
|
|
1573
|
+
* studio's KV browser.
|
|
1574
|
+
*/
|
|
1575
|
+
async listKvNamespaces() {
|
|
1576
|
+
if (this.closed) {
|
|
1577
|
+
throw new Error("LunoraClient is closed");
|
|
1578
|
+
}
|
|
1579
|
+
const body = await this.adminFetch(KV_NAMESPACES_PATH, "GET");
|
|
1580
|
+
return body.namespaces ?? [];
|
|
1581
|
+
}
|
|
1582
|
+
/**
|
|
1583
|
+
* List keys in a KV namespace, optionally filtered by `prefix` and
|
|
1584
|
+
* paginated via `cursor`. Hits the admin-gated
|
|
1585
|
+
* `GET /_lunora/admin/kv/keys` endpoint.
|
|
1586
|
+
*/
|
|
1587
|
+
async listKvKeys(options) {
|
|
1588
|
+
if (this.closed) {
|
|
1589
|
+
throw new Error("LunoraClient is closed");
|
|
1590
|
+
}
|
|
1591
|
+
const path = withQuery(KV_KEYS_PATH, {
|
|
1592
|
+
cursor: options.cursor,
|
|
1593
|
+
limit: options.limit,
|
|
1594
|
+
namespace: options.namespace,
|
|
1595
|
+
prefix: options.prefix
|
|
1596
|
+
});
|
|
1597
|
+
return await this.adminFetch(path, "GET");
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* Read a KV value (as text) and its metadata. Hits the admin-gated
|
|
1601
|
+
* `GET /_lunora/admin/kv/value` endpoint. Returns `{ value: null, metadata: null }`
|
|
1602
|
+
* when the key is absent.
|
|
1603
|
+
*/
|
|
1604
|
+
async getKvValue(options) {
|
|
1605
|
+
if (this.closed) {
|
|
1606
|
+
throw new Error("LunoraClient is closed");
|
|
1607
|
+
}
|
|
1608
|
+
const path = withQuery(KV_VALUE_PATH, { key: options.key, namespace: options.namespace });
|
|
1609
|
+
return await this.adminFetch(path, "GET");
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Write a string value to a KV namespace. Accepts an absolute `expiration`
|
|
1613
|
+
* (Unix seconds) or a relative `expirationTtl`, plus optional `metadata` —
|
|
1614
|
+
* re-send the loaded values on edit so a save preserves rather than clears
|
|
1615
|
+
* them. Hits the admin-gated `PUT /_lunora/admin/kv/value` endpoint.
|
|
1616
|
+
*/
|
|
1617
|
+
async putKvValue(options) {
|
|
1618
|
+
if (this.closed) {
|
|
1619
|
+
throw new Error("LunoraClient is closed");
|
|
1620
|
+
}
|
|
1621
|
+
await this.adminFetch(KV_VALUE_PATH, "PUT", options);
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* Delete a key from a KV namespace. No-op when the key is absent. Hits the
|
|
1625
|
+
* admin-gated `DELETE /_lunora/admin/kv/value` endpoint.
|
|
1626
|
+
*/
|
|
1627
|
+
async deleteKvKey(options) {
|
|
1628
|
+
if (this.closed) {
|
|
1629
|
+
throw new Error("LunoraClient is closed");
|
|
1630
|
+
}
|
|
1631
|
+
const path = withQuery(KV_VALUE_PATH, { key: options.key, namespace: options.namespace });
|
|
1632
|
+
await this.adminFetch(path, "DELETE");
|
|
1633
|
+
}
|
|
1565
1634
|
// --- Auth admin ---------------------------------------------------------
|
|
1566
1635
|
/**
|
|
1567
1636
|
* List authenticated users, paged and optionally searched / filtered / sorted.
|
package/dist/packem_shared/{lunora-client.d-DTwbfUWF.d.mts → lunora-client.d-CtSRWJJ7.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CronJobInfo, VectorIndexSummary, VectorQueryMatch, AuthUser, AuthPage, AuthImpersonation, AuthCapabilities, AuthSession } from '@lunora/runtime';
|
|
1
|
+
import { CronJobInfo, VectorIndexSummary, VectorQueryMatch, KvNamespaceSummary, KvKeyListResult, KvValueResult, AuthUser, AuthPage, AuthImpersonation, AuthCapabilities, AuthSession } from '@lunora/runtime';
|
|
2
2
|
/** The registered function kinds a {@link FunctionReference} can describe. `stream` is a query that yields multiple frames over the WS. */
|
|
3
3
|
type FunctionKind = "action" | "mutation" | "query" | "stream";
|
|
4
4
|
/**
|
|
@@ -1810,6 +1810,55 @@ declare class LunoraClient {
|
|
|
1810
1810
|
topK?: number;
|
|
1811
1811
|
}): Promise<VectorQueryMatch[]>;
|
|
1812
1812
|
/**
|
|
1813
|
+
* List the worker's registered Workers KV namespaces (binding names). Hits
|
|
1814
|
+
* the admin-gated `GET /_lunora/admin/kv/namespaces` endpoint — the worker
|
|
1815
|
+
* must be built with a `kvIntrospector` and `adminToken`. Powers the
|
|
1816
|
+
* studio's KV browser.
|
|
1817
|
+
*/
|
|
1818
|
+
listKvNamespaces(): Promise<KvNamespaceSummary[]>;
|
|
1819
|
+
/**
|
|
1820
|
+
* List keys in a KV namespace, optionally filtered by `prefix` and
|
|
1821
|
+
* paginated via `cursor`. Hits the admin-gated
|
|
1822
|
+
* `GET /_lunora/admin/kv/keys` endpoint.
|
|
1823
|
+
*/
|
|
1824
|
+
listKvKeys(options: {
|
|
1825
|
+
cursor?: string;
|
|
1826
|
+
limit?: number;
|
|
1827
|
+
namespace: string;
|
|
1828
|
+
prefix?: string;
|
|
1829
|
+
}): Promise<KvKeyListResult>;
|
|
1830
|
+
/**
|
|
1831
|
+
* Read a KV value (as text) and its metadata. Hits the admin-gated
|
|
1832
|
+
* `GET /_lunora/admin/kv/value` endpoint. Returns `{ value: null, metadata: null }`
|
|
1833
|
+
* when the key is absent.
|
|
1834
|
+
*/
|
|
1835
|
+
getKvValue(options: {
|
|
1836
|
+
key: string;
|
|
1837
|
+
namespace: string;
|
|
1838
|
+
}): Promise<KvValueResult>;
|
|
1839
|
+
/**
|
|
1840
|
+
* Write a string value to a KV namespace. Accepts an absolute `expiration`
|
|
1841
|
+
* (Unix seconds) or a relative `expirationTtl`, plus optional `metadata` —
|
|
1842
|
+
* re-send the loaded values on edit so a save preserves rather than clears
|
|
1843
|
+
* them. Hits the admin-gated `PUT /_lunora/admin/kv/value` endpoint.
|
|
1844
|
+
*/
|
|
1845
|
+
putKvValue(options: {
|
|
1846
|
+
expiration?: number;
|
|
1847
|
+
expirationTtl?: number;
|
|
1848
|
+
key: string;
|
|
1849
|
+
metadata?: unknown;
|
|
1850
|
+
namespace: string;
|
|
1851
|
+
value: string;
|
|
1852
|
+
}): Promise<void>;
|
|
1853
|
+
/**
|
|
1854
|
+
* Delete a key from a KV namespace. No-op when the key is absent. Hits the
|
|
1855
|
+
* admin-gated `DELETE /_lunora/admin/kv/value` endpoint.
|
|
1856
|
+
*/
|
|
1857
|
+
deleteKvKey(options: {
|
|
1858
|
+
key: string;
|
|
1859
|
+
namespace: string;
|
|
1860
|
+
}): Promise<void>;
|
|
1861
|
+
/**
|
|
1813
1862
|
* List authenticated users, paged and optionally searched / filtered / sorted.
|
|
1814
1863
|
* Hits the admin-gated `GET /_lunora/admin/auth/users` endpoint — the worker
|
|
1815
1864
|
* must be built with an `authAdmin` and `adminToken`. Powers the studio's
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CronJobInfo, VectorIndexSummary, VectorQueryMatch, AuthUser, AuthPage, AuthImpersonation, AuthCapabilities, AuthSession } from '@lunora/runtime';
|
|
1
|
+
import { CronJobInfo, VectorIndexSummary, VectorQueryMatch, KvNamespaceSummary, KvKeyListResult, KvValueResult, AuthUser, AuthPage, AuthImpersonation, AuthCapabilities, AuthSession } from '@lunora/runtime';
|
|
2
2
|
/** The registered function kinds a {@link FunctionReference} can describe. `stream` is a query that yields multiple frames over the WS. */
|
|
3
3
|
type FunctionKind = "action" | "mutation" | "query" | "stream";
|
|
4
4
|
/**
|
|
@@ -1810,6 +1810,55 @@ declare class LunoraClient {
|
|
|
1810
1810
|
topK?: number;
|
|
1811
1811
|
}): Promise<VectorQueryMatch[]>;
|
|
1812
1812
|
/**
|
|
1813
|
+
* List the worker's registered Workers KV namespaces (binding names). Hits
|
|
1814
|
+
* the admin-gated `GET /_lunora/admin/kv/namespaces` endpoint — the worker
|
|
1815
|
+
* must be built with a `kvIntrospector` and `adminToken`. Powers the
|
|
1816
|
+
* studio's KV browser.
|
|
1817
|
+
*/
|
|
1818
|
+
listKvNamespaces(): Promise<KvNamespaceSummary[]>;
|
|
1819
|
+
/**
|
|
1820
|
+
* List keys in a KV namespace, optionally filtered by `prefix` and
|
|
1821
|
+
* paginated via `cursor`. Hits the admin-gated
|
|
1822
|
+
* `GET /_lunora/admin/kv/keys` endpoint.
|
|
1823
|
+
*/
|
|
1824
|
+
listKvKeys(options: {
|
|
1825
|
+
cursor?: string;
|
|
1826
|
+
limit?: number;
|
|
1827
|
+
namespace: string;
|
|
1828
|
+
prefix?: string;
|
|
1829
|
+
}): Promise<KvKeyListResult>;
|
|
1830
|
+
/**
|
|
1831
|
+
* Read a KV value (as text) and its metadata. Hits the admin-gated
|
|
1832
|
+
* `GET /_lunora/admin/kv/value` endpoint. Returns `{ value: null, metadata: null }`
|
|
1833
|
+
* when the key is absent.
|
|
1834
|
+
*/
|
|
1835
|
+
getKvValue(options: {
|
|
1836
|
+
key: string;
|
|
1837
|
+
namespace: string;
|
|
1838
|
+
}): Promise<KvValueResult>;
|
|
1839
|
+
/**
|
|
1840
|
+
* Write a string value to a KV namespace. Accepts an absolute `expiration`
|
|
1841
|
+
* (Unix seconds) or a relative `expirationTtl`, plus optional `metadata` —
|
|
1842
|
+
* re-send the loaded values on edit so a save preserves rather than clears
|
|
1843
|
+
* them. Hits the admin-gated `PUT /_lunora/admin/kv/value` endpoint.
|
|
1844
|
+
*/
|
|
1845
|
+
putKvValue(options: {
|
|
1846
|
+
expiration?: number;
|
|
1847
|
+
expirationTtl?: number;
|
|
1848
|
+
key: string;
|
|
1849
|
+
metadata?: unknown;
|
|
1850
|
+
namespace: string;
|
|
1851
|
+
value: string;
|
|
1852
|
+
}): Promise<void>;
|
|
1853
|
+
/**
|
|
1854
|
+
* Delete a key from a KV namespace. No-op when the key is absent. Hits the
|
|
1855
|
+
* admin-gated `DELETE /_lunora/admin/kv/value` endpoint.
|
|
1856
|
+
*/
|
|
1857
|
+
deleteKvKey(options: {
|
|
1858
|
+
key: string;
|
|
1859
|
+
namespace: string;
|
|
1860
|
+
}): Promise<void>;
|
|
1861
|
+
/**
|
|
1813
1862
|
* List authenticated users, paged and optionally searched / filtered / sorted.
|
|
1814
1863
|
* Hits the admin-gated `GET /_lunora/admin/auth/users` endpoint — the worker
|
|
1815
1864
|
* must be built with an `authAdmin` and `adminToken`. Powers the studio's
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FunctionReference, L as LunoraClient, A as ArgsOf, R as ReturnOf, P as Preloaded } from "./lunora-client.d-
|
|
1
|
+
import { F as FunctionReference, L as LunoraClient, A as ArgsOf, R as ReturnOf, P as Preloaded } from "./lunora-client.d-CtSRWJJ7.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* Run a query once on the server (during SSR) and capture its result in a
|
|
4
4
|
* serializable {@link Preloaded} token. Embed the token in the rendered HTML and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FunctionReference, L as LunoraClient, A as ArgsOf, R as ReturnOf, P as Preloaded } from "./lunora-client.d-
|
|
1
|
+
import { F as FunctionReference, L as LunoraClient, A as ArgsOf, R as ReturnOf, P as Preloaded } from "./lunora-client.d-CtSRWJJ7.js";
|
|
2
2
|
/**
|
|
3
3
|
* Run a query once on the server (during SSR) and capture its result in a
|
|
4
4
|
* serializable {@link Preloaded} token. Embed the token in the rendered HTML and
|
package/dist/query/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SubscriptionError, F as FunctionReference, A as ArgsOf, R as ReturnOf, L as LunoraClient, a as Unsubscribe } from "../packem_shared/lunora-client.d-
|
|
2
|
-
export type { b as SubscriptionErrorCallback } from "../packem_shared/lunora-client.d-
|
|
1
|
+
import { S as SubscriptionError, F as FunctionReference, A as ArgsOf, R as ReturnOf, L as LunoraClient, a as Unsubscribe } from "../packem_shared/lunora-client.d-CtSRWJJ7.mjs";
|
|
2
|
+
export type { b as SubscriptionErrorCallback } from "../packem_shared/lunora-client.d-CtSRWJJ7.mjs";
|
|
3
3
|
import '@lunora/runtime';
|
|
4
4
|
/**
|
|
5
5
|
* The sentinel a framework adapter resolves its reactive args to when it wants
|
package/dist/query/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SubscriptionError, F as FunctionReference, A as ArgsOf, R as ReturnOf, L as LunoraClient, a as Unsubscribe } from "../packem_shared/lunora-client.d-
|
|
2
|
-
export type { b as SubscriptionErrorCallback } from "../packem_shared/lunora-client.d-
|
|
1
|
+
import { S as SubscriptionError, F as FunctionReference, A as ArgsOf, R as ReturnOf, L as LunoraClient, a as Unsubscribe } from "../packem_shared/lunora-client.d-CtSRWJJ7.js";
|
|
2
|
+
export type { b as SubscriptionErrorCallback } from "../packem_shared/lunora-client.d-CtSRWJJ7.js";
|
|
3
3
|
import '@lunora/runtime';
|
|
4
4
|
/**
|
|
5
5
|
* The sentinel a framework adapter resolves its reactive args to when it wants
|
package/dist/ssr/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as Preloaded, L as LunoraClient } from "../packem_shared/lunora-client.d-
|
|
2
|
-
export type { A as ArgsOf, F as FunctionReference, R as ReturnOf } from "../packem_shared/lunora-client.d-
|
|
3
|
-
export { p as preloadQuery, a as preloadedQueryResult } from "../packem_shared/preload.d-
|
|
1
|
+
import { P as Preloaded, L as LunoraClient } from "../packem_shared/lunora-client.d-CtSRWJJ7.mjs";
|
|
2
|
+
export type { A as ArgsOf, F as FunctionReference, R as ReturnOf } from "../packem_shared/lunora-client.d-CtSRWJJ7.mjs";
|
|
3
|
+
export { p as preloadQuery, a as preloadedQueryResult } from "../packem_shared/preload.d-GjXaOwY9.mjs";
|
|
4
4
|
import '@lunora/runtime';
|
|
5
5
|
/**
|
|
6
6
|
* Structural shape of a better-auth `getSession` call's resolved value.
|
package/dist/ssr/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as Preloaded, L as LunoraClient } from "../packem_shared/lunora-client.d-
|
|
2
|
-
export type { A as ArgsOf, F as FunctionReference, R as ReturnOf } from "../packem_shared/lunora-client.d-
|
|
3
|
-
export { p as preloadQuery, a as preloadedQueryResult } from "../packem_shared/preload.d-
|
|
1
|
+
import { P as Preloaded, L as LunoraClient } from "../packem_shared/lunora-client.d-CtSRWJJ7.js";
|
|
2
|
+
export type { A as ArgsOf, F as FunctionReference, R as ReturnOf } from "../packem_shared/lunora-client.d-CtSRWJJ7.js";
|
|
3
|
+
export { p as preloadQuery, a as preloadedQueryResult } from "../packem_shared/preload.d-NMFbch9j.js";
|
|
4
4
|
import '@lunora/runtime';
|
|
5
5
|
/**
|
|
6
6
|
* Structural shape of a better-auth `getSession` call's resolved value.
|
package/dist/ssr/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { getServerSession } from '../packem_shared/getServerSession-8jXewqxd.mjs';
|
|
2
2
|
export { deserializePreloaded, serializePreloaded } from '../packem_shared/deserializePreloaded-C0eJTY_W.mjs';
|
|
3
|
-
export { createServerClient } from '../packem_shared/createServerClient-
|
|
3
|
+
export { createServerClient } from '../packem_shared/createServerClient-BUEYFHjp.mjs';
|
|
4
4
|
export { preloadQuery, preloadedQueryResult } from '../packem_shared/preloadQuery-lobFkD2Z.mjs';
|