@fallen-8/studio 0.0.32
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/LICENSE +21 -0
- package/README.md +93 -0
- package/dist-lib/Canvas3D-C5og4ZIQ.js +62011 -0
- package/dist-lib/F8GraphCanvas-Db7vzDtJ.js +11085 -0
- package/dist-lib/abap-Bs8kvjsq.js +1398 -0
- package/dist-lib/apex-Dspwrl5m.js +326 -0
- package/dist-lib/azcli-k1BiOau1.js +68 -0
- package/dist-lib/bat-BIP72KWc.js +100 -0
- package/dist-lib/bicep-VhQeYhS3.js +102 -0
- package/dist-lib/cameligo-DnuAXtHg.js +174 -0
- package/dist-lib/canvas.js +13 -0
- package/dist-lib/clojure-BAuDPsal.js +761 -0
- package/dist-lib/coffee-BV06qSnj.js +232 -0
- package/dist-lib/cpp-Cz8Jeyrf.js +389 -0
- package/dist-lib/csharp-F6hhlXFb.js +326 -0
- package/dist-lib/csp-KzlEHCyI.js +53 -0
- package/dist-lib/css-e4FKntZ3.js +187 -0
- package/dist-lib/cssMode-Czf2vRA3.js +1571 -0
- package/dist-lib/cypher-CpvDGKRr.js +263 -0
- package/dist-lib/dart-DdHeFWR0.js +281 -0
- package/dist-lib/dockerfile-aoNXDcio.js +130 -0
- package/dist-lib/ecl-C4Q0DYuA.js +456 -0
- package/dist-lib/elixir-C9X42b0T.js +569 -0
- package/dist-lib/f8-studio.css +1 -0
- package/dist-lib/f8-studio.js +16 -0
- package/dist-lib/flow9-Bff42pfB.js +142 -0
- package/dist-lib/freemarker2-BtInkOsd.js +989 -0
- package/dist-lib/fsharp-C6vPAsHG.js +217 -0
- package/dist-lib/go-DEr8zx9f.js +218 -0
- package/dist-lib/graphql-BiNBBRFh.js +151 -0
- package/dist-lib/handlebars-UwZ7mBGA.js +419 -0
- package/dist-lib/hcl-2T9lKuFg.js +183 -0
- package/dist-lib/html-BXX93YIe.js +308 -0
- package/dist-lib/htmlMode-BCqQu1PO.js +1581 -0
- package/dist-lib/index-DFm6T7Un.js +132450 -0
- package/dist-lib/ini-CZGtssYM.js +71 -0
- package/dist-lib/java-B260NeH3.js +232 -0
- package/dist-lib/javascript-CK1z7Ynl.js +70 -0
- package/dist-lib/jsonMode-C4Q3fVvV.js +1996 -0
- package/dist-lib/julia-kuNLM9c5.js +511 -0
- package/dist-lib/kotlin-Bz6kAefA.js +253 -0
- package/dist-lib/less-AZUtS89I.js +162 -0
- package/dist-lib/lexon-BcmgnyRb.js +157 -0
- package/dist-lib/liquid-BnCUERBj.js +240 -0
- package/dist-lib/lua-Dz1RbATg.js +162 -0
- package/dist-lib/m3-CIMooLFn.js +210 -0
- package/dist-lib/markdown-C1BsCK9P.js +229 -0
- package/dist-lib/mdx-D2enmFMs.js +165 -0
- package/dist-lib/mips-BovsnfLQ.js +198 -0
- package/dist-lib/msdax-CiRB2ZB-.js +375 -0
- package/dist-lib/mysql-BwdpPE19.js +878 -0
- package/dist-lib/objective-c-D4nfHfso.js +183 -0
- package/dist-lib/pascal--j5-PYtz.js +251 -0
- package/dist-lib/pascaligo-C7TcJxNL.js +164 -0
- package/dist-lib/perl-BzEWqUb5.js +626 -0
- package/dist-lib/pgsql-B_KZ0mGX.js +851 -0
- package/dist-lib/php-A19QHzQV.js +500 -0
- package/dist-lib/pla-COeKY1hA.js +137 -0
- package/dist-lib/postiats-BfMp7zJL.js +907 -0
- package/dist-lib/powerquery-B0TS_5Gb.js +890 -0
- package/dist-lib/powershell-5jSbKdYB.js +239 -0
- package/dist-lib/protobuf-YgnOutn3.js +420 -0
- package/dist-lib/pug-DLej6kn5.js +402 -0
- package/dist-lib/python-DJvSF53q.js +301 -0
- package/dist-lib/qsharp-AhjqtSHB.js +301 -0
- package/dist-lib/r-D-F4P80w.js +243 -0
- package/dist-lib/razor-RerkagjP.js +550 -0
- package/dist-lib/redis-hwwIlMnV.js +302 -0
- package/dist-lib/redshift-Bcm_kjEG.js +809 -0
- package/dist-lib/restructuredtext-CrdzfPP-.js +174 -0
- package/dist-lib/ruby-QC2UNm1s.js +511 -0
- package/dist-lib/rust-5aqiQ3L5.js +343 -0
- package/dist-lib/sb-B1g1ZfLJ.js +115 -0
- package/dist-lib/scala-C2U4R5Gb.js +370 -0
- package/dist-lib/scheme-DeFRbslr.js +108 -0
- package/dist-lib/scss-RSTCiCmI.js +262 -0
- package/dist-lib/shell-BpF-iNu8.js +221 -0
- package/dist-lib/solidity-C00r2mbQ.js +1367 -0
- package/dist-lib/sophia-DVW5ZKDB.js +199 -0
- package/dist-lib/sparql-B0nmpxeX.js +201 -0
- package/dist-lib/sql-CJwKPERn.js +853 -0
- package/dist-lib/st-DPlKG5DT.js +416 -0
- package/dist-lib/swift-YZBAbVHV.js +309 -0
- package/dist-lib/systemverilog-CDQSaH63.js +576 -0
- package/dist-lib/tcl-Dlu8sp6Q.js +232 -0
- package/dist-lib/tsMode-C-6d-f_-.js +886 -0
- package/dist-lib/twig-C5TO7-kw.js +392 -0
- package/dist-lib/types/api/changefeed.d.ts +113 -0
- package/dist-lib/types/api/client.d.ts +81 -0
- package/dist-lib/types/api/endpoints.d.ts +197 -0
- package/dist-lib/types/api/queries.d.ts +8 -0
- package/dist-lib/types/api/types.d.ts +1032 -0
- package/dist-lib/types/app/AppShell.d.ts +10 -0
- package/dist-lib/types/app/NamespaceScope.d.ts +11 -0
- package/dist-lib/types/app/applyStudioConfig.d.ts +18 -0
- package/dist-lib/types/app/mount.d.ts +19 -0
- package/dist-lib/types/app/nav.d.ts +91 -0
- package/dist-lib/types/app/routes.d.ts +9 -0
- package/dist-lib/types/app/studioConfig.d.ts +106 -0
- package/dist-lib/types/canvas/Canvas2D.d.ts +18 -0
- package/dist-lib/types/canvas/Canvas3D.d.ts +14 -0
- package/dist-lib/types/canvas/ConnectPanel.d.ts +10 -0
- package/dist-lib/types/canvas/FindPanel.d.ts +14 -0
- package/dist-lib/types/canvas/GraphCanvas.d.ts +66 -0
- package/dist-lib/types/canvas/StylePanel.d.ts +7 -0
- package/dist-lib/types/canvas/eclipse.d.ts +136 -0
- package/dist-lib/types/canvas/imageAssets.d.ts +3 -0
- package/dist-lib/types/canvas/styleConfig.d.ts +48 -0
- package/dist-lib/types/canvas/styleEngine.d.ts +125 -0
- package/dist-lib/types/canvas/styling.d.ts +15 -0
- package/dist-lib/types/components/AdjacencyPanel.d.ts +11 -0
- package/dist-lib/types/components/AnalyticsRunner.d.ts +1 -0
- package/dist-lib/types/components/ConfigurationPanel.d.ts +1 -0
- package/dist-lib/types/components/ConfirmDialog.d.ts +18 -0
- package/dist-lib/types/components/DurabilityNotice.d.ts +18 -0
- package/dist-lib/types/components/ElementDetail.d.ts +11 -0
- package/dist-lib/types/components/ElementTable.d.ts +19 -0
- package/dist-lib/types/components/EmbeddingsTab.d.ts +15 -0
- package/dist-lib/types/components/ErrorBox.d.ts +8 -0
- package/dist-lib/types/components/EventFeedBell.d.ts +16 -0
- package/dist-lib/types/components/EventFeedPanel.d.ts +10 -0
- package/dist-lib/types/components/Field.d.ts +14 -0
- package/dist-lib/types/components/GraphShapePanel.d.ts +1 -0
- package/dist-lib/types/components/InspectLink.d.ts +5 -0
- package/dist-lib/types/components/ListCapNote.d.ts +10 -0
- package/dist-lib/types/components/MutationsPanel.d.ts +1 -0
- package/dist-lib/types/components/NamespaceSwitcher.d.ts +22 -0
- package/dist-lib/types/components/NamespacesPanel.d.ts +11 -0
- package/dist-lib/types/components/NeighborhoodPreview.d.ts +10 -0
- package/dist-lib/types/components/PluginsPanel.d.ts +9 -0
- package/dist-lib/types/components/PropertiesTab.d.ts +4 -0
- package/dist-lib/types/components/PropertyListEditor.d.ts +26 -0
- package/dist-lib/types/components/SampleGraphsPanel.d.ts +3 -0
- package/dist-lib/types/components/SectionHelp.d.ts +11 -0
- package/dist-lib/types/components/SemanticBlockEditor.d.ts +29 -0
- package/dist-lib/types/components/SemanticQueryEditor.d.ts +15 -0
- package/dist-lib/types/components/SettingRow.d.ts +15 -0
- package/dist-lib/types/components/Stat.d.ts +10 -0
- package/dist-lib/types/components/StoredQueriesPanel.d.ts +14 -0
- package/dist-lib/types/components/StoredQueryControls.d.ts +29 -0
- package/dist-lib/types/components/Truncated.d.ts +17 -0
- package/dist-lib/types/components/TruncationBadge.d.ts +6 -0
- package/dist-lib/types/components/TypedLiteralEditor.d.ts +13 -0
- package/dist-lib/types/components/VertexFilterSlot.d.ts +25 -0
- package/dist-lib/types/delegate/DelegateEditor.d.ts +10 -0
- package/dist-lib/types/delegate/DelegateSlot.d.ts +18 -0
- package/dist-lib/types/delegate/editorOptions.d.ts +25 -0
- package/dist-lib/types/delegate/kinds.d.ts +19 -0
- package/dist-lib/types/delegate/markers.d.ts +21 -0
- package/dist-lib/types/delegate/monacoSetup.d.ts +3 -0
- package/dist-lib/types/delegate/nl/NlAssistPanel.d.ts +10 -0
- package/dist-lib/types/delegate/nl/NlBackendConfig.d.ts +12 -0
- package/dist-lib/types/delegate/nl/NlDraftList.d.ts +42 -0
- package/dist-lib/types/delegate/nl/config.d.ts +105 -0
- package/dist-lib/types/delegate/nl/feedback.d.ts +30 -0
- package/dist-lib/types/delegate/nl/format.d.ts +6 -0
- package/dist-lib/types/delegate/nl/generate.d.ts +57 -0
- package/dist-lib/types/delegate/nl/prompt.d.ts +21 -0
- package/dist-lib/types/delegate/nl/useNlRun.d.ts +24 -0
- package/dist-lib/types/delegate/providers.d.ts +26 -0
- package/dist-lib/types/delegate/snippets.d.ts +25 -0
- package/dist-lib/types/embed/F8GraphCanvas.d.ts +37 -0
- package/dist-lib/types/embed/canvas.d.ts +23 -0
- package/dist-lib/types/embed/index.d.ts +14 -0
- package/dist-lib/types/firstrun/FirstRunOverlay.d.ts +10 -0
- package/dist-lib/types/firstrun/FirstRunShow.d.ts +22 -0
- package/dist-lib/types/firstrun/beats.d.ts +23 -0
- package/dist-lib/types/firstrun/firstRunStore.d.ts +38 -0
- package/dist-lib/types/firstrun/mockGraph.d.ts +56 -0
- package/dist-lib/types/firstrun/useBeatTimeline.d.ts +35 -0
- package/dist-lib/types/firstrun/useReducedMotion.d.ts +7 -0
- package/dist-lib/types/instances/registry.d.ts +83 -0
- package/dist-lib/types/instances/types.d.ts +49 -0
- package/dist-lib/types/lib/canvasCap.d.ts +7 -0
- package/dist-lib/types/lib/connectPaths.d.ts +55 -0
- package/dist-lib/types/lib/embeddingProperties.d.ts +6 -0
- package/dist-lib/types/lib/fieldHelp.d.ts +139 -0
- package/dist-lib/types/lib/format.d.ts +16 -0
- package/dist-lib/types/lib/hydrate.d.ts +37 -0
- package/dist-lib/types/lib/indexCapabilities.d.ts +17 -0
- package/dist-lib/types/lib/jsonlGraph.d.ts +42 -0
- package/dist-lib/types/lib/listCaps.d.ts +48 -0
- package/dist-lib/types/lib/literals.d.ts +36 -0
- package/dist-lib/types/lib/namespaceName.d.ts +10 -0
- package/dist-lib/types/lib/neighborhood.d.ts +37 -0
- package/dist-lib/types/lib/patternValidation.d.ts +12 -0
- package/dist-lib/types/lib/restartCopy.d.ts +11 -0
- package/dist-lib/types/lib/sampleLoader.d.ts +95 -0
- package/dist-lib/types/lib/samples.d.ts +87 -0
- package/dist-lib/types/lib/sbomGraph.d.ts +58 -0
- package/dist-lib/types/lib/sectionHelp.d.ts +39 -0
- package/dist-lib/types/lib/semantic.d.ts +95 -0
- package/dist-lib/types/lib/storedQueries.d.ts +43 -0
- package/dist-lib/types/lib/truncate.d.ts +34 -0
- package/dist-lib/types/lib/truncation.d.ts +7 -0
- package/dist-lib/types/lib/vector.d.ts +13 -0
- package/dist-lib/types/main.d.ts +1 -0
- package/dist-lib/types/plugin/PluginEditor.d.ts +20 -0
- package/dist-lib/types/plugin/nl/PluginNlAssistPanel.d.ts +13 -0
- package/dist-lib/types/plugin/nl/pluginPrompt.d.ts +48 -0
- package/dist-lib/types/plugin/scaffolds.d.ts +26 -0
- package/dist-lib/types/screens/AnalyticsScreen.d.ts +8 -0
- package/dist-lib/types/screens/BenchmarkScreen.d.ts +1 -0
- package/dist-lib/types/screens/BrowserScreen.d.ts +6 -0
- package/dist-lib/types/screens/CanvasScreen.d.ts +10 -0
- package/dist-lib/types/screens/ConnectScreen.d.ts +1 -0
- package/dist-lib/types/screens/DashboardScreen.d.ts +13 -0
- package/dist-lib/types/screens/IndexesScreen.d.ts +8 -0
- package/dist-lib/types/screens/IntegrationsScreen.d.ts +14 -0
- package/dist-lib/types/screens/KnowledgeScreen.d.ts +1 -0
- package/dist-lib/types/screens/PathScreen.d.ts +9 -0
- package/dist-lib/types/screens/PluginsScreen.d.ts +1 -0
- package/dist-lib/types/screens/QueryScreen.d.ts +1 -0
- package/dist-lib/types/screens/SamplesScreen.d.ts +7 -0
- package/dist-lib/types/screens/SaveGamesScreen.d.ts +7 -0
- package/dist-lib/types/screens/SubgraphScreen.d.ts +1 -0
- package/dist-lib/types/state/eventFeed.d.ts +63 -0
- package/dist-lib/types/state/feedFilter.d.ts +42 -0
- package/dist-lib/types/state/graphShape.d.ts +37 -0
- package/dist-lib/types/state/instanceStore.d.ts +280 -0
- package/dist-lib/types/state/integrations.d.ts +25 -0
- package/dist-lib/types/state/liveFeed.d.ts +37 -0
- package/dist-lib/types/state/scopeKey.d.ts +8 -0
- package/dist-lib/types/state/status.d.ts +21 -0
- package/dist-lib/typescript-aCo3H3H0.js +343 -0
- package/dist-lib/typespec-BsmjDEu7.js +117 -0
- package/dist-lib/vb-ChHvIDrk.js +372 -0
- package/dist-lib/wgsl-XEp1ju8c.js +439 -0
- package/dist-lib/xml-CSt-F-dl.js +95 -0
- package/dist-lib/yaml-kSsc3ru_.js +206 -0
- package/package.json +98 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { InstanceConfig } from "../instances/types";
|
|
2
|
+
import type { AnalyticsResultREST, DocumentBinding, DocumentDetail, DocumentEntityList, DocumentList, DocumentSearchResult, DocumentSearchSpecification, DocumentSummary, IngestTextSpecification, IntegrationJobReport, IntegrationJobRequest, IntegrationProvider, NamespaceActivationREST, NamespaceEntry, NamespacesResponse, NamespaceTriState, AnalyticsSpecification, BenchmarkResult, BulkImportResultREST, GraphGenerationResult, AlgorithmPluginRegistration, DelegateKind, DelegateValidationResult, EdgeREST, EmbedElementSpecification, FunctionPluginRegistration, GraphFunctionResultREST, PluginAuthoringCategory, PluginDetailREST, PluginSummaryREST, PluginValidationResult, PluginValidationSpecification, ConfigREST, ConfigWriteREST, ConfigWriteSpec, ChatCompletionSpec, ChatCompletionResultREST, EmbeddingSearchSpecification, EmbeddingWriteSpecification, SaveGame, EdgeSpecification, FulltextIndexScanSpecification, FulltextSearchResultREST, GraphREST, GraphStatisticsREST, IndexAddToSpecification, IndexKeySpecification, IndexScanSpecification, PartitionMembersREST, PathREST, PathSpecification, PluginSpecification, PropertySearchSpecification, PropertySpecification, RangeIndexScanSpecification, ScanSpecification, SearchDistanceSpecification, GraphElementBatchREST, StatusREST, StoredQueryDetailREST, StoredQuerySpecification, StoredQuerySummaryREST, SubGraphSpecification, SubGraphSummary, VectorIndexAddSpecification, VectorIndexScanSpecification, VectorSearchResultREST, VertexREST, VertexSpecification } from "./types";
|
|
3
|
+
export declare const getStatus: (i: InstanceConfig, signal?: AbortSignal) => Promise<StatusREST | null>;
|
|
4
|
+
/**
|
|
5
|
+
* Instance configuration (feature instance-config): the read-only operator view of the
|
|
6
|
+
* semantic providers + observability posture. Fallen-8-level (bare /config, never per
|
|
7
|
+
* namespace) and API-key gated like /statistics; secrets are redacted server-side.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getConfig: (i: InstanceConfig, signal?: AbortSignal) => Promise<ConfigREST | null>;
|
|
10
|
+
/**
|
|
11
|
+
* Writes instance configuration (feature writable-instance-config). A null value CLEARS a stored
|
|
12
|
+
* override and restores whatever layer sits below it, which is the undo this surface ships instead of
|
|
13
|
+
* history. Every key is validated before any is stored, so a batch applies whole or changes nothing:
|
|
14
|
+
* a 400 names the key and why, and a 409 means either the environment declares that key (so a stored
|
|
15
|
+
* value could never win) or the instance has nowhere to persist.
|
|
16
|
+
*
|
|
17
|
+
* Needs TWO operator acts server-side, an API key AND Fallen8:Security:EnableConfigurationWrite, or
|
|
18
|
+
* it is refused (401 for an unauthenticated caller, 403 otherwise); ConfigREST.configWriteEnabled is
|
|
19
|
+
* how the panel knows not to offer the write at all.
|
|
20
|
+
*/
|
|
21
|
+
export declare const writeConfig: (i: InstanceConfig, spec: ConfigWriteSpec, signal?: AbortSignal) => Promise<ConfigWriteREST | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Chat completion proxied through the instance (feature instance-config): browser -> F8 ->
|
|
24
|
+
* the model backend. Fallen-8-level; the model is server-owned so the request carries none.
|
|
25
|
+
* This is the DEFAULT NL-assist transport (custom endpoints stay browser-direct, off this path).
|
|
26
|
+
*/
|
|
27
|
+
export declare const postChat: (i: InstanceConfig, spec: ChatCompletionSpec, signal?: AbortSignal) => Promise<ChatCompletionResultREST | null>;
|
|
28
|
+
/** Authorized iff the instance needs no key or accepted ours (server contract on StatusREST.ApiKeyRequired). */
|
|
29
|
+
export declare const isAuthorized: (s: StatusREST) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Graph-shape snapshot (feature studio-coverage): O(V+E), budgeted and rate-limited
|
|
32
|
+
* server-side — only ever fetched on explicit demand (the Graph shape panel's Compute).
|
|
33
|
+
*/
|
|
34
|
+
export declare const getStatistics: (i: InstanceConfig, signal?: AbortSignal) => Promise<GraphStatisticsREST | null>;
|
|
35
|
+
export declare const saveGraph: (i: InstanceConfig, path?: string) => Promise<SaveGame | null>;
|
|
36
|
+
/** Saves EVERY namespace into one spanning save-game entry (Fallen-8-level). */
|
|
37
|
+
export declare const saveAllNamespaces: (i: InstanceConfig) => Promise<SaveGame | null>;
|
|
38
|
+
/** Factory reset: drops every non-default namespace and erases "default" (Fallen-8-level). */
|
|
39
|
+
export declare const tabulaRasaAll: (i: InstanceConfig) => Promise<void | null>;
|
|
40
|
+
export declare const listNamespaces: (i: InstanceConfig, signal?: AbortSignal) => Promise<NamespacesResponse | null>;
|
|
41
|
+
export declare const createNamespace: (i: InstanceConfig, name: string) => Promise<NamespaceEntry | null>;
|
|
42
|
+
export declare const renameNamespace: (i: InstanceConfig, name: string, newName: string) => Promise<NamespaceEntry | null>;
|
|
43
|
+
/**
|
|
44
|
+
* Sets whether the NEXT boot loads this namespace (feature namespace-startup-load);
|
|
45
|
+
* "inherit" clears the override and falls back to the server's configured default. It never
|
|
46
|
+
* loads or unloads the running process's engine, so nothing observable changes until a
|
|
47
|
+
* restart. Its own function rather than a parameter on renameNamespace, because the server
|
|
48
|
+
* applies the whole PATCH body atomically: a shared caller would have to send a name it was
|
|
49
|
+
* not asked to change, and a stale one would rename the namespace as a side effect of a
|
|
50
|
+
* policy edit. The reserved "default" namespace refuses this field with 409.
|
|
51
|
+
*/
|
|
52
|
+
export declare const setNamespaceLoadOnStartup: (i: InstanceConfig, name: string, loadOnStartup: NamespaceTriState) => Promise<NamespaceEntry | null>;
|
|
53
|
+
/**
|
|
54
|
+
* Loads a cataloged-but-not-loaded namespace into the RUNNING process (feature
|
|
55
|
+
* namespace-startup-load): the server constructs its engine, restores its newest registered save
|
|
56
|
+
* game and replays the write-ahead-log tail on top before it serves anything, so a failed restore
|
|
57
|
+
* leaves it exactly as not-loaded as it was. Idempotent - activating a loaded namespace answers
|
|
58
|
+
* 200 with `activated: false`. It does NOT change the persisted policy, which is what the next
|
|
59
|
+
* boot honours: that is `setNamespaceLoadOnStartup`, and the two are separate on purpose.
|
|
60
|
+
*/
|
|
61
|
+
export declare const activateNamespace: (i: InstanceConfig, name: string) => Promise<NamespaceActivationREST | null>;
|
|
62
|
+
export declare const dropNamespace: (i: InstanceConfig, name: string) => Promise<void | null>;
|
|
63
|
+
export declare const listSaveGames: (i: InstanceConfig, signal?: AbortSignal) => Promise<SaveGame[] | null>;
|
|
64
|
+
export declare const getSaveGame: (i: InstanceConfig, id: string) => Promise<SaveGame | null>;
|
|
65
|
+
/** Restores the entry's namespaces — or exactly one of them via `namespaceName`. */
|
|
66
|
+
export declare const loadSaveGame: (i: InstanceConfig, id: string, namespaceName?: string) => Promise<SaveGame | null>;
|
|
67
|
+
export declare const deleteSaveGame: (i: InstanceConfig, id: string, deleteFiles: boolean) => Promise<void | null>;
|
|
68
|
+
export declare const loadGraph: (i: InstanceConfig, path: string, startServices?: boolean) => Promise<void | null>;
|
|
69
|
+
export declare const trimGraph: (i: InstanceConfig) => Promise<void | null>;
|
|
70
|
+
export declare const tabulaRasa: (i: InstanceConfig) => Promise<void | null>;
|
|
71
|
+
/**
|
|
72
|
+
* Generates a random benchmark graph server-side (edgeCount = out-edges PER VERTEX) INTO THE
|
|
73
|
+
* ACTIVE NAMESPACE. Namespace-scoped like every other write: the server refuses the bare form
|
|
74
|
+
* rather than generating into "default", so the /ns/{ns} prefix is not optional here.
|
|
75
|
+
*/
|
|
76
|
+
export declare const generateGraph: (i: InstanceConfig, nodeCount?: number, edgeCount?: number, distribution?: "uniform" | "preferential") => Promise<GraphGenerationResult | null>;
|
|
77
|
+
/** Runs the edge-traversal benchmark over the ACTIVE namespace's graph. */
|
|
78
|
+
export declare const runBenchmark: (i: InstanceConfig, iterations?: number) => Promise<BenchmarkResult | null>;
|
|
79
|
+
/** Streams the graph (or a filtered subset) to a Blob for a browser download. */
|
|
80
|
+
export declare function exportBulk(i: InstanceConfig, filters?: {
|
|
81
|
+
vertexLabel?: string;
|
|
82
|
+
edgeLabel?: string;
|
|
83
|
+
edgePropertyId?: string;
|
|
84
|
+
}, signal?: AbortSignal): Promise<Blob>;
|
|
85
|
+
/** Imports into an EMPTY graph (server 409s otherwise); fail-fast with a line number. */
|
|
86
|
+
export declare function importBulk(i: InstanceConfig, file: Blob): Promise<BulkImportResultREST | null>;
|
|
87
|
+
export declare const getGraph: (i: InstanceConfig, maxElements: number, signal?: AbortSignal) => Promise<GraphREST | null>;
|
|
88
|
+
export declare const getVertex: (i: InstanceConfig, id: number, signal?: AbortSignal) => Promise<VertexREST | null>;
|
|
89
|
+
export declare const getEdge: (i: InstanceConfig, id: number, signal?: AbortSignal) => Promise<EdgeREST | null>;
|
|
90
|
+
export declare const getGraphElement: (i: InstanceConfig, id: number, signal?: AbortSignal) => Promise<VertexREST | EdgeREST | null>;
|
|
91
|
+
/**
|
|
92
|
+
* A whole page of elements in ONE request. What comes back is a complete VertexREST for a vertex;
|
|
93
|
+
* an edge lacks its endpoints, because the route omits adjacency by design - see hydrateElements,
|
|
94
|
+
* which re-reads those singly.
|
|
95
|
+
*/
|
|
96
|
+
export declare const getGraphElements: (i: InstanceConfig, ids: number[], signal?: AbortSignal) => Promise<GraphElementBatchREST | null>;
|
|
97
|
+
export declare const getOutEdgeProperties: (i: InstanceConfig, id: number) => Promise<string[] | null>;
|
|
98
|
+
export declare const getInEdgeProperties: (i: InstanceConfig, id: number) => Promise<string[] | null>;
|
|
99
|
+
export declare const getOutEdges: (i: InstanceConfig, id: number, edgePropertyId: string) => Promise<number[] | null>;
|
|
100
|
+
export declare const getInEdges: (i: InstanceConfig, id: number, edgePropertyId: string) => Promise<number[] | null>;
|
|
101
|
+
export declare const getInDegree: (i: InstanceConfig, id: number) => Promise<number | null>;
|
|
102
|
+
export declare const getOutDegree: (i: InstanceConfig, id: number) => Promise<number | null>;
|
|
103
|
+
export declare const getEdgePropertyDegree: (i: InstanceConfig, id: number, direction: "in" | "out", edgePropertyId: string) => Promise<number | null>;
|
|
104
|
+
export declare const getEdgeSource: (i: InstanceConfig, id: number) => Promise<number | null>;
|
|
105
|
+
export declare const getEdgeTarget: (i: InstanceConfig, id: number) => Promise<number | null>;
|
|
106
|
+
export declare const scanProperty: (i: InstanceConfig, propertyId: string, spec: ScanSpecification) => Promise<number[] | null>;
|
|
107
|
+
export declare const scanProperties: (i: InstanceConfig, spec: PropertySearchSpecification) => Promise<number[] | null>;
|
|
108
|
+
export declare const scanIndex: (i: InstanceConfig, spec: IndexScanSpecification) => Promise<number[] | null>;
|
|
109
|
+
export declare const scanIndexRange: (i: InstanceConfig, spec: RangeIndexScanSpecification) => Promise<number[] | null>;
|
|
110
|
+
export declare const scanFulltext: (i: InstanceConfig, spec: FulltextIndexScanSpecification) => Promise<FulltextSearchResultREST | null>;
|
|
111
|
+
export declare const scanSpatial: (i: InstanceConfig, spec: SearchDistanceSpecification) => Promise<number[] | null>;
|
|
112
|
+
export declare const scanVector: (i: InstanceConfig, spec: VectorIndexScanSpecification) => Promise<VectorSearchResultREST | null>;
|
|
113
|
+
/** Single-element add/replace; bulk embedding ingestion is deliberately curl territory. */
|
|
114
|
+
export declare const addVectorToIndex: (i: InstanceConfig, indexId: string, spec: VectorIndexAddSpecification) => Promise<boolean | null>;
|
|
115
|
+
export declare const putElementEmbedding: (i: InstanceConfig, id: number, name: string, spec: EmbeddingWriteSpecification) => Promise<void | null>;
|
|
116
|
+
export declare const deleteElementEmbedding: (i: InstanceConfig, id: number, name: string) => Promise<void | null>;
|
|
117
|
+
/** Embed text and store it as the element's named embedding (+ model stamp), one txn. */
|
|
118
|
+
export declare const embedElement: (i: InstanceConfig, spec: EmbedElementSpecification) => Promise<boolean | null>;
|
|
119
|
+
/** Semantic search: embed the query text once, then kNN — same result shape as scanVector. */
|
|
120
|
+
export declare const embeddingSearch: (i: InstanceConfig, spec: EmbeddingSearchSpecification) => Promise<VectorSearchResultREST | null>;
|
|
121
|
+
export declare const createIndex: (i: InstanceConfig, spec: PluginSpecification) => Promise<boolean | null>;
|
|
122
|
+
export declare const addToIndex: (i: InstanceConfig, indexId: string, spec: IndexAddToSpecification) => Promise<boolean | null>;
|
|
123
|
+
export declare const removeIndexKey: (i: InstanceConfig, indexId: string, key: IndexKeySpecification) => Promise<boolean | null>;
|
|
124
|
+
export declare const removeFromIndex: (i: InstanceConfig, indexId: string, graphElementId: number) => Promise<boolean | null>;
|
|
125
|
+
export declare const deleteIndex: (i: InstanceConfig, indexId: string) => Promise<void | null>;
|
|
126
|
+
export declare const findPaths: (i: InstanceConfig, from: number, to: number, spec: PathSpecification, signal?: AbortSignal) => Promise<PathREST[] | null>;
|
|
127
|
+
/** GET /subgraph returns the registered NAMES; fetch summaries per name. */
|
|
128
|
+
export declare const listSubGraphNames: (i: InstanceConfig, signal?: AbortSignal) => Promise<string[] | null>;
|
|
129
|
+
export declare const listSubGraphSummaries: (i: InstanceConfig, signal?: AbortSignal) => Promise<SubGraphSummary[]>;
|
|
130
|
+
export declare const getSubGraph: (i: InstanceConfig, name: string) => Promise<SubGraphSummary | null>;
|
|
131
|
+
export declare const getSubGraphContents: (i: InstanceConfig, name: string) => Promise<GraphREST | null>;
|
|
132
|
+
/** `fromSubGraph` (optional nesting) travels as a query parameter per the API contract. */
|
|
133
|
+
export declare const createSubGraph: (i: InstanceConfig, spec: SubGraphSpecification, fromSubGraph?: string) => Promise<SubGraphSummary | null>;
|
|
134
|
+
export declare const recalculateSubGraph: (i: InstanceConfig, name: string) => Promise<SubGraphSummary | null>;
|
|
135
|
+
export declare const deleteSubGraph: (i: InstanceConfig, name: string) => Promise<void | null>;
|
|
136
|
+
/** Map of algorithm name → one-line description; the picker IS the discovery surface. */
|
|
137
|
+
export declare const listAnalyticsAlgorithms: (i: InstanceConfig, signal?: AbortSignal) => Promise<Record<string, string> | null>;
|
|
138
|
+
export declare const runAnalytics: (i: InstanceConfig, algorithmName: string, spec: AnalyticsSpecification) => Promise<AnalyticsResultREST | null>;
|
|
139
|
+
export declare const getPartitionMembers: (i: InstanceConfig, algorithmName: string, partitionId: number, spec: AnalyticsSpecification) => Promise<PartitionMembersREST | null>;
|
|
140
|
+
export declare const listStoredQueries: (i: InstanceConfig, signal?: AbortSignal) => Promise<StoredQuerySummaryREST[] | null>;
|
|
141
|
+
export declare const getStoredQuery: (i: InstanceConfig, name: string, signal?: AbortSignal) => Promise<StoredQueryDetailREST | null>;
|
|
142
|
+
/** Registration compiles C#, so it needs the API key when one is configured (401 otherwise). */
|
|
143
|
+
export declare const registerStoredQuery: (i: InstanceConfig, spec: StoredQuerySpecification) => Promise<StoredQuerySummaryREST | null>;
|
|
144
|
+
export declare const deleteStoredQuery: (i: InstanceConfig, name: string) => Promise<void | null>;
|
|
145
|
+
export declare const listPlugins: (i: InstanceConfig, signal?: AbortSignal) => Promise<PluginSummaryREST[] | null>;
|
|
146
|
+
export declare const getPlugin: (i: InstanceConfig, name: string, signal?: AbortSignal) => Promise<PluginDetailREST | null>;
|
|
147
|
+
/** Registration compiles C#, so it needs the API key when one is configured, plus the gate. */
|
|
148
|
+
export declare const registerAlgorithmPlugin: (i: InstanceConfig, spec: AlgorithmPluginRegistration) => Promise<PluginSummaryREST | null>;
|
|
149
|
+
export declare const registerFunctionPlugin: (i: InstanceConfig, spec: FunctionPluginRegistration) => Promise<PluginSummaryREST | null>;
|
|
150
|
+
export declare const deletePlugin: (i: InstanceConfig, name: string) => Promise<void | null>;
|
|
151
|
+
/** Runs a registered graph function by name; the result references existing elements. */
|
|
152
|
+
export declare const invokeGraphFunction: (i: InstanceConfig, name: string, parameters?: Record<string, string>) => Promise<GraphFunctionResultREST | null>;
|
|
153
|
+
/**
|
|
154
|
+
* Side-effect-free compile+contract check for the authoring editor. `category` selects the
|
|
155
|
+
* endpoint (`algorithm`/`function`); `contract` inside the spec is read only for algorithm.
|
|
156
|
+
*/
|
|
157
|
+
export declare const validatePlugin: (i: InstanceConfig, category: PluginAuthoringCategory, spec: PluginValidationSpecification, signal?: AbortSignal) => Promise<PluginValidationResult | null>;
|
|
158
|
+
export declare const createVertex: (i: InstanceConfig, spec: VertexSpecification) => Promise<void | null>;
|
|
159
|
+
export declare const createEdge: (i: InstanceConfig, spec: EdgeSpecification) => Promise<void | null>;
|
|
160
|
+
export declare const setProperty: (i: InstanceConfig, id: number, propertyId: string, spec: PropertySpecification) => Promise<void | null>;
|
|
161
|
+
export declare const removeProperty: (i: InstanceConfig, id: number, propertyId: string) => Promise<void | null>;
|
|
162
|
+
export declare const removeGraphElement: (i: InstanceConfig, id: number) => Promise<void | null>;
|
|
163
|
+
export declare const validateDelegate: (i: InstanceConfig, delegateKind: DelegateKind, fragment: string, signal?: AbortSignal) => Promise<DelegateValidationResult | null>;
|
|
164
|
+
export declare const listDocuments: (i: InstanceConfig, signal?: AbortSignal) => Promise<DocumentList | null>;
|
|
165
|
+
export declare const getDocument: (i: InstanceConfig, id: number, signal?: AbortSignal) => Promise<DocumentDetail | null>;
|
|
166
|
+
export declare const deleteDocument: (i: InstanceConfig, id: number) => Promise<void | null>;
|
|
167
|
+
export declare const ingestText: (i: InstanceConfig, spec: IngestTextSpecification) => Promise<DocumentSummary | null>;
|
|
168
|
+
/**
|
|
169
|
+
* Multipart upload; `embed=false` ingests without vectors (provider off). `link` is the
|
|
170
|
+
* multipart twin of the JSON body's link block: it rides as the `linkJson` form field, so a
|
|
171
|
+
* binary upload can request the same exact-match structural linking a text ingest can.
|
|
172
|
+
*/
|
|
173
|
+
export declare const ingestFile: (i: InstanceConfig, file: File, options?: {
|
|
174
|
+
name?: string;
|
|
175
|
+
embed?: boolean;
|
|
176
|
+
sourceUri?: string;
|
|
177
|
+
link?: {
|
|
178
|
+
indexIds: string[];
|
|
179
|
+
maxLinksPerChunk?: number;
|
|
180
|
+
};
|
|
181
|
+
}) => Promise<DocumentSummary | null>;
|
|
182
|
+
/** Fused (dense + lexical) chunk retrieval; hits are chunk vertex ids. */
|
|
183
|
+
export declare const searchDocuments: (i: InstanceConfig, spec: DocumentSearchSpecification) => Promise<DocumentSearchResult | null>;
|
|
184
|
+
/** The index binding state: which indices exist, are the right shape, and whether ingest is ready. */
|
|
185
|
+
export declare const getDocumentBinding: (i: InstanceConfig, signal?: AbortSignal) => Promise<DocumentBinding | null>;
|
|
186
|
+
/** Create the required indices (idempotent). The ONLY path that creates a bound index. */
|
|
187
|
+
export declare const ensureDocumentBinding: (i: InstanceConfig) => Promise<DocumentBinding | null>;
|
|
188
|
+
/** The deduplicated Entity network, ranked by mention count; each id is a graph seed. */
|
|
189
|
+
export declare const listEntities: (i: InstanceConfig, options?: {
|
|
190
|
+
type?: string;
|
|
191
|
+
contains?: string;
|
|
192
|
+
limit?: number;
|
|
193
|
+
}, signal?: AbortSignal) => Promise<DocumentEntityList | null>;
|
|
194
|
+
/** The integrations this instance's runtime ships. A 403 or 401 means the capability is off. */
|
|
195
|
+
export declare const listIntegrationProviders: (i: InstanceConfig, signal?: AbortSignal) => Promise<IntegrationProvider[] | null>;
|
|
196
|
+
/** Runs one job and returns its report. A job that RAN and failed still answers 200. */
|
|
197
|
+
export declare const submitIntegrationJob: (i: InstanceConfig, job: IntegrationJobRequest) => Promise<IntegrationJobReport | null>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { QueryClient } from "@tanstack/react-query";
|
|
2
|
+
/**
|
|
3
|
+
* Invalidates EVERY query of an instance — the raw-keyed Fallen-8-level ones
|
|
4
|
+
* (`[<id>, ...]`: save games, the namespace inventory) AND the per-namespace
|
|
5
|
+
* ones keyed by the bound view's compound id (`[<id>/<ns>, ...]`, feature
|
|
6
|
+
* graph-namespaces). Accepts either id shape.
|
|
7
|
+
*/
|
|
8
|
+
export declare function invalidateInstanceQueries(queryClient: QueryClient, instanceId: string): Promise<void>;
|