@opengeni/api-router 0.23.1 → 0.26.1
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/app.d.ts +2 -2
- package/dist/app.js +1 -1
- package/dist/browser-controller-authority.d.ts +43 -0
- package/dist/browser-state-authority.d.ts +27 -0
- package/dist/{chunk-T4T2PGU4.js → chunk-JIKNR5YL.js} +26181 -14408
- package/dist/chunk-JIKNR5YL.js.map +1 -0
- package/dist/codemode.d.ts +23 -0
- package/dist/editable-artifact-live-hints.d.ts +11 -0
- package/dist/editable-artifact-native-kernel.d.ts +37 -0
- package/dist/editable-artifact-office-import.d.ts +22 -0
- package/dist/editable-artifact-production.d.ts +29 -0
- package/dist/editable-artifact-websocket.d.ts +49 -0
- package/dist/editable-artifact-workspace-files.d.ts +23 -0
- package/dist/github-browser-flow.d.ts +6 -0
- package/dist/http/cors.d.ts +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1796 -22
- package/dist/index.js.map +1 -1
- package/dist/integrations/api-integrations.d.ts +24 -0
- package/dist/integrations/atlassian.d.ts +176 -0
- package/dist/integrations/github-skill-source.d.ts +5 -0
- package/dist/integrations/google-drive.d.ts +85 -0
- package/dist/integrations/oauth-client.d.ts +22 -1
- package/dist/integrations/provider-oauth.d.ts +19 -0
- package/dist/integrations/slack-bot.d.ts +4 -0
- package/dist/integrations/slack-interactions.d.ts +8 -2
- package/dist/integrations/social-api.d.ts +2 -1
- package/dist/mcp/editable-artifact-query-schema.d.ts +4 -0
- package/dist/mcp/editable-artifacts.d.ts +13 -0
- package/dist/mcp/scheduled-task-view.d.ts +168 -0
- package/dist/mcp/server.d.ts +14 -3
- package/dist/memory-slack-delivery.d.ts +9 -0
- package/dist/routes/api-integrations.d.ts +8 -0
- package/dist/routes/browser-identities.d.ts +5 -0
- package/dist/routes/browser-sessions.d.ts +6 -0
- package/dist/routes/company-profile.d.ts +3 -0
- package/dist/routes/computer-sessions.d.ts +6 -0
- package/dist/routes/editable-artifacts.d.ts +44 -0
- package/dist/routes/integration-features.d.ts +3 -0
- package/dist/routes/memory-slack-publications.d.ts +6 -0
- package/dist/routes/plugins.d.ts +8 -0
- package/dist/routes/sessions.d.ts +17 -2
- package/dist/routes/skills.d.ts +6 -0
- package/dist/routes/video-generation.d.ts +3 -0
- package/dist/sandbox/channel-a.d.ts +55 -2
- package/dist/sandbox/metrics-ingestion.d.ts +6 -1
- package/dist/sandbox/viewer.d.ts +4 -2
- package/dist/temporal-schedule-cleanup.d.ts +26 -0
- package/package.json +19 -14
- package/src/app.ts +274 -37
- package/src/browser-controller-authority.ts +137 -0
- package/src/browser-state-authority.ts +236 -0
- package/src/codemode.ts +186 -0
- package/src/editable-artifact-live-hints.ts +64 -0
- package/src/editable-artifact-native-kernel.ts +659 -0
- package/src/editable-artifact-office-import.ts +230 -0
- package/src/editable-artifact-production.ts +419 -0
- package/src/editable-artifact-websocket.ts +311 -0
- package/src/editable-artifact-workspace-files.ts +186 -0
- package/src/github-browser-flow.ts +35 -6
- package/src/http/auth.ts +2 -0
- package/src/http/cors.ts +3 -0
- package/src/index.ts +119 -20
- package/src/integrations/api-integrations.ts +350 -0
- package/src/integrations/atlassian.ts +1621 -0
- package/src/integrations/github-skill-source.ts +142 -0
- package/src/integrations/google-drive.ts +1000 -64
- package/src/integrations/oauth-client.ts +123 -33
- package/src/integrations/provider-oauth.ts +777 -0
- package/src/integrations/slack-bot.ts +31 -2
- package/src/integrations/slack-interactions.ts +487 -27
- package/src/integrations/social-api.ts +11 -0
- package/src/mcp/documents.ts +32 -1
- package/src/mcp/editable-artifact-query-schema.ts +236 -0
- package/src/mcp/editable-artifacts.ts +448 -0
- package/src/mcp/scheduled-task-view.ts +34 -0
- package/src/mcp/server.ts +923 -145
- package/src/memory-slack-delivery.ts +209 -0
- package/src/routes/api-integrations.ts +407 -0
- package/src/routes/browser-identities.ts +136 -0
- package/src/routes/browser-sessions.ts +2543 -0
- package/src/routes/company-profile.ts +255 -0
- package/src/routes/computer-sessions.ts +1247 -0
- package/src/routes/connections.ts +284 -99
- package/src/routes/documents.ts +22 -3
- package/src/routes/editable-artifacts.ts +1159 -0
- package/src/routes/files.ts +106 -4
- package/src/routes/github.ts +18 -2
- package/src/routes/install.ts +7 -1
- package/src/routes/integration-features.ts +258 -0
- package/src/routes/memory-slack-publications.ts +216 -0
- package/src/routes/packs.ts +437 -7
- package/src/routes/plugins.ts +751 -0
- package/src/routes/rigs.ts +77 -20
- package/src/routes/scheduled-tasks.ts +67 -40
- package/src/routes/sessions.ts +421 -245
- package/src/routes/skills.ts +174 -0
- package/src/routes/video-generation.ts +132 -0
- package/src/routes/workspaces.ts +46 -24
- package/src/sandbox/channel-a.ts +723 -116
- package/src/sandbox/metrics-ingestion.ts +121 -3
- package/src/sandbox/rematerialize.ts +35 -47
- package/src/sandbox/viewer.ts +29 -9
- package/src/temporal-schedule-cleanup.ts +135 -0
- package/dist/chunk-T4T2PGU4.js.map +0 -1
- package/dist/mcp/toolspace.d.ts +0 -71
- package/src/mcp/toolspace.ts +0 -1190
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type AccessGrant, type AttemptToolCatalog, type CodemodeCallSubmission as CodemodeCallSubmissionValue, type CodemodeOperation } from "@opengeni/contracts";
|
|
2
|
+
import type { ApiRouteDeps } from "@opengeni/core";
|
|
3
|
+
export type CodemodeGrantAuthority = {
|
|
4
|
+
accountId: string;
|
|
5
|
+
workspaceId: string;
|
|
6
|
+
sessionId: string;
|
|
7
|
+
turnId: string;
|
|
8
|
+
attemptId: string;
|
|
9
|
+
executionGeneration: number;
|
|
10
|
+
subjectId: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class CodemodeAuthorityError extends Error {
|
|
13
|
+
readonly code = "codemode_authority_invalid";
|
|
14
|
+
constructor();
|
|
15
|
+
}
|
|
16
|
+
export declare function codemodeAuthorityForGrant(grant: AccessGrant): CodemodeGrantAuthority | null;
|
|
17
|
+
export declare function isCodemodeGrant(grant: AccessGrant): boolean;
|
|
18
|
+
export declare function requireActiveCodemodeCatalog(deps: ApiRouteDeps, grant: AccessGrant): Promise<{
|
|
19
|
+
authority: CodemodeGrantAuthority;
|
|
20
|
+
catalog: AttemptToolCatalog;
|
|
21
|
+
}>;
|
|
22
|
+
export declare function submitAndDispatchCodemodeCall(deps: ApiRouteDeps, grant: AccessGrant, rawRequest: unknown): Promise<CodemodeCallSubmissionValue>;
|
|
23
|
+
export declare function readCodemodeOperation(deps: ApiRouteDeps, grant: AccessGrant, operationId: string): Promise<CodemodeOperation | null>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type EditableArtifactLiveHintPort } from "@opengeni/core";
|
|
2
|
+
import type { EventBus } from "@opengeni/events";
|
|
3
|
+
/**
|
|
4
|
+
* Uses the API's existing resilient NATS connection. Hints carry no operation
|
|
5
|
+
* bytes; every callback causes a durable DB head read and contiguous gap-fill.
|
|
6
|
+
*/
|
|
7
|
+
export declare class EventBusEditableArtifactLiveHints implements EditableArtifactLiveHintPort {
|
|
8
|
+
private readonly bus;
|
|
9
|
+
constructor(bus: Pick<EventBus, "getOpStreamConnection">);
|
|
10
|
+
subscribe(input: Parameters<EditableArtifactLiveHintPort["subscribe"]>[0]): Promise<() => void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ArtifactKernelRuntime } from "@opengeni/artifact-tool/runtime";
|
|
2
|
+
import { type ConfiguredArtifactRuntimeLocation } from "@opengeni/artifact-tool/runtime/development";
|
|
3
|
+
import { type ApplyAuthoritativeEditableArtifactKernelRequest, type ApplyAuthoritativeEditableArtifactKernelResult, type AuthoritativeEditableArtifactCompactionKernelPort, type AuthoritativeEditableArtifactCompactionKernelResult, type AuthoritativeEditableArtifactGenesisKernelPort, type AuthoritativeEditableArtifactGenesisKernelResult, type AuthoritativeEditableArtifactKernelPort, type EditableArtifactAgentInspectionKernelPort, type EditableArtifactKernelState, type IsolatedEditableArtifactSnapshotKernelPort, type IsolatedEditableArtifactSnapshotKernelResult } from "@opengeni/core";
|
|
4
|
+
import type { BoundedObjectReadPort } from "@opengeni/storage";
|
|
5
|
+
type RuntimeFacadeModule = Readonly<{
|
|
6
|
+
getConfiguredArtifactRuntime?: () => unknown;
|
|
7
|
+
}> & Readonly<Record<string, unknown>>;
|
|
8
|
+
export type VerifiedNativeArtifactRuntimeBinding = Readonly<{
|
|
9
|
+
runtime: ArtifactKernelRuntime;
|
|
10
|
+
location: ConfiguredArtifactRuntimeLocation;
|
|
11
|
+
facade: RuntimeFacadeModule;
|
|
12
|
+
}>;
|
|
13
|
+
/** Loads only the manifest-pinned, byte-verified native runtime. */
|
|
14
|
+
export declare function loadVerifiedNativeArtifactRuntime(): Promise<ArtifactKernelRuntime>;
|
|
15
|
+
/** Same verified load plus the pinned package identity used by export profiles. */
|
|
16
|
+
export declare function loadVerifiedNativeArtifactRuntimeBinding(): Promise<VerifiedNativeArtifactRuntimeBinding>;
|
|
17
|
+
/** Exact native authority shared by mutation, genesis, and snapshot verification. */
|
|
18
|
+
export declare class NativeEditableArtifactKernelAdapter implements AuthoritativeEditableArtifactKernelPort, AuthoritativeEditableArtifactGenesisKernelPort, AuthoritativeEditableArtifactCompactionKernelPort, IsolatedEditableArtifactSnapshotKernelPort, EditableArtifactAgentInspectionKernelPort {
|
|
19
|
+
readonly runtime: ArtifactKernelRuntime;
|
|
20
|
+
private readonly objects;
|
|
21
|
+
constructor(runtime: ArtifactKernelRuntime, objects: BoundedObjectReadPort);
|
|
22
|
+
applyTransaction(request: ApplyAuthoritativeEditableArtifactKernelRequest): Promise<ApplyAuthoritativeEditableArtifactKernelResult>;
|
|
23
|
+
query(input: Parameters<EditableArtifactAgentInspectionKernelPort["query"]>[0]): ReturnType<EditableArtifactAgentInspectionKernelPort["query"]>;
|
|
24
|
+
private openCurrentState;
|
|
25
|
+
createCanonicalEmptySnapshot(input: {
|
|
26
|
+
scope: Parameters<AuthoritativeEditableArtifactGenesisKernelPort["createCanonicalEmptySnapshot"]>[0]["scope"];
|
|
27
|
+
artifactId: Parameters<AuthoritativeEditableArtifactGenesisKernelPort["createCanonicalEmptySnapshot"]>[0]["artifactId"];
|
|
28
|
+
modality: Parameters<AuthoritativeEditableArtifactGenesisKernelPort["createCanonicalEmptySnapshot"]>[0]["modality"];
|
|
29
|
+
signal?: AbortSignal;
|
|
30
|
+
}): Promise<AuthoritativeEditableArtifactGenesisKernelResult>;
|
|
31
|
+
createCanonicalSnapshot(input: {
|
|
32
|
+
state: EditableArtifactKernelState;
|
|
33
|
+
signal?: AbortSignal;
|
|
34
|
+
}): Promise<AuthoritativeEditableArtifactCompactionKernelResult>;
|
|
35
|
+
verifyAndReconstruct(input: Parameters<IsolatedEditableArtifactSnapshotKernelPort["verifyAndReconstruct"]>[0]): Promise<IsolatedEditableArtifactSnapshotKernelResult>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { prepareArtifactOfficeImport } from "@opengeni/artifact-tool/office-import";
|
|
2
|
+
import { type EditableArtifactOfficeImportPort } from "@opengeni/core/editable-artifacts";
|
|
3
|
+
import { getFile } from "@opengeni/db";
|
|
4
|
+
import { type BoundedImmutableObjectWritePort, type ObjectStorage } from "@opengeni/storage";
|
|
5
|
+
import type { Database } from "@opengeni/db";
|
|
6
|
+
import type { VerifiedNativeArtifactRuntimeBinding } from "./editable-artifact-native-kernel.js";
|
|
7
|
+
export type EditableArtifactOfficeImportAdapterDependencies = Readonly<{
|
|
8
|
+
db: Database;
|
|
9
|
+
objectStorage: ObjectStorage;
|
|
10
|
+
runtime: VerifiedNativeArtifactRuntimeBinding;
|
|
11
|
+
sourceObjects: BoundedImmutableObjectWritePort;
|
|
12
|
+
snapshotObjects: BoundedImmutableObjectWritePort;
|
|
13
|
+
readFile?: typeof getFile;
|
|
14
|
+
prepareOffice?: typeof prepareArtifactOfficeImport;
|
|
15
|
+
}>;
|
|
16
|
+
/** Trusted import boundary from one ready workspace file into native sequence-zero state. */
|
|
17
|
+
export declare class EditableArtifactOfficeImportAdapter implements EditableArtifactOfficeImportPort {
|
|
18
|
+
private readonly dependencies;
|
|
19
|
+
private readonly readFile;
|
|
20
|
+
constructor(dependencies: EditableArtifactOfficeImportAdapterDependencies);
|
|
21
|
+
prepare(input: Parameters<EditableArtifactOfficeImportPort["prepare"]>[0]): ReturnType<EditableArtifactOfficeImportPort["prepare"]>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EditableArtifactDurableExportService, EditableArtifactAgentApplication, type EditableArtifactAuthorizationDecision, type EditableArtifactAuthorizationPort, type EditableArtifactAuthorizationRequest } from "@opengeni/core/editable-artifacts";
|
|
2
|
+
import { type EditableArtifactApplicationPort } from "@opengeni/core/editable-artifact-live";
|
|
3
|
+
import { type Database } from "@opengeni/db";
|
|
4
|
+
import type { EventBus } from "@opengeni/events";
|
|
5
|
+
import { type ObjectStorage } from "@opengeni/storage";
|
|
6
|
+
import { EditableArtifactOfficeImportAdapter } from "./editable-artifact-office-import.js";
|
|
7
|
+
export type StandaloneEditableArtifactApplication = Readonly<{
|
|
8
|
+
application: EditableArtifactApplicationPort;
|
|
9
|
+
durableExports: EditableArtifactDurableExportService;
|
|
10
|
+
agent: EditableArtifactAgentApplication;
|
|
11
|
+
officeImports: EditableArtifactOfficeImportAdapter;
|
|
12
|
+
kernelVersion: string;
|
|
13
|
+
close(): void;
|
|
14
|
+
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Standalone production composition. Every authority is durable: PostgreSQL
|
|
17
|
+
* owns admission/authorization/history, object storage owns immutable model
|
|
18
|
+
* bytes, and NATS carries wake-up hints only.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createStandaloneEditableArtifactApplication(input: {
|
|
21
|
+
db: Database;
|
|
22
|
+
bus: EventBus;
|
|
23
|
+
objectStorage: ObjectStorage;
|
|
24
|
+
}): Promise<StandaloneEditableArtifactApplication>;
|
|
25
|
+
export declare class PostgresEditableArtifactAuthorization implements EditableArtifactAuthorizationPort {
|
|
26
|
+
private readonly db;
|
|
27
|
+
constructor(db: Database);
|
|
28
|
+
authorize(request: EditableArtifactAuthorizationRequest): Promise<EditableArtifactAuthorizationDecision>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type EditableArtifactApplicationPort, type EditableArtifactLiveClose, type EditableArtifactLiveServerFrame, type EditableArtifactLiveSinkPort } from "@opengeni/core";
|
|
2
|
+
export declare const EDITABLE_ARTIFACT_LIVE_WEBSOCKET_PATH = "/v1/editable-artifacts/live";
|
|
3
|
+
export declare const EDITABLE_ARTIFACT_LIVE_WEBSOCKET_PROTOCOL = "opengeni-artifact-v1";
|
|
4
|
+
export declare const EDITABLE_ARTIFACT_LIVE_WEBSOCKET_MAX_MESSAGE_BYTES: number;
|
|
5
|
+
export type EditableArtifactWebSocketLike = Readonly<{
|
|
6
|
+
data: EditableArtifactWebSocketConnection;
|
|
7
|
+
send(data: Uint8Array, compress?: boolean): number;
|
|
8
|
+
close(code?: number, reason?: string): void;
|
|
9
|
+
readonly bufferedAmount?: number;
|
|
10
|
+
getBufferedAmount?(): number;
|
|
11
|
+
}>;
|
|
12
|
+
export type EditableArtifactWebSocketUpgradeServer = Readonly<{
|
|
13
|
+
upgrade(request: Request, options: Readonly<{
|
|
14
|
+
data: EditableArtifactWebSocketConnection;
|
|
15
|
+
headers: HeadersInit;
|
|
16
|
+
}>): boolean;
|
|
17
|
+
}>;
|
|
18
|
+
export type EditableArtifactWebSocketHandler = Readonly<{
|
|
19
|
+
open(socket: EditableArtifactWebSocketLike): void;
|
|
20
|
+
message(socket: EditableArtifactWebSocketLike, message: string | Uint8Array | ArrayBuffer): void;
|
|
21
|
+
close(socket: EditableArtifactWebSocketLike): void;
|
|
22
|
+
}>;
|
|
23
|
+
export declare class EditableArtifactWebSocketTransport {
|
|
24
|
+
private readonly application;
|
|
25
|
+
readonly websocket: EditableArtifactWebSocketHandler;
|
|
26
|
+
constructor(application: EditableArtifactApplicationPort | undefined);
|
|
27
|
+
handles(request: Request): boolean;
|
|
28
|
+
upgrade(request: Request, server: EditableArtifactWebSocketUpgradeServer): Response | undefined;
|
|
29
|
+
}
|
|
30
|
+
/** One socket, one consumed ticket, one stream epoch. */
|
|
31
|
+
export declare class EditableArtifactWebSocketConnection implements EditableArtifactLiveSinkPort {
|
|
32
|
+
private readonly application;
|
|
33
|
+
private socket;
|
|
34
|
+
private session;
|
|
35
|
+
private work;
|
|
36
|
+
private queuedMessages;
|
|
37
|
+
private queuedBytes;
|
|
38
|
+
private terminal;
|
|
39
|
+
constructor(application: EditableArtifactApplicationPort);
|
|
40
|
+
attach(socket: EditableArtifactWebSocketLike): void;
|
|
41
|
+
receive(message: string | Uint8Array | ArrayBuffer): void;
|
|
42
|
+
send(frame: EditableArtifactLiveServerFrame): Promise<void>;
|
|
43
|
+
bufferedBytes(): number;
|
|
44
|
+
close(close: EditableArtifactLiveClose): void;
|
|
45
|
+
transportClosed(): void;
|
|
46
|
+
private process;
|
|
47
|
+
private handleFailure;
|
|
48
|
+
private fail;
|
|
49
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type EditableArtifactAgentWorkspaceFilePort, type EditableArtifactDurableExportService } from "@opengeni/core/editable-artifacts";
|
|
2
|
+
import { completeFileUpload, prepareGeneratedWorkspaceFile, type Database } from "@opengeni/db";
|
|
3
|
+
import type { ObjectStorage } from "@opengeni/storage";
|
|
4
|
+
export type EditableArtifactWorkspaceFileAdapterDependencies = Readonly<{
|
|
5
|
+
db: Database;
|
|
6
|
+
objectStorage: ObjectStorage;
|
|
7
|
+
durableExports: EditableArtifactDurableExportService;
|
|
8
|
+
now?: () => Date;
|
|
9
|
+
prepareFile?: typeof prepareGeneratedWorkspaceFile;
|
|
10
|
+
completeFile?: typeof completeFileUpload;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* Promotes one immutable materialization into the normal workspace-file domain.
|
|
14
|
+
* The returned file ID is the only artifact export handle exposed to agents.
|
|
15
|
+
*/
|
|
16
|
+
export declare class EditableArtifactWorkspaceFileAdapter implements EditableArtifactAgentWorkspaceFilePort {
|
|
17
|
+
private readonly dependencies;
|
|
18
|
+
private readonly now;
|
|
19
|
+
private readonly prepareFile;
|
|
20
|
+
private readonly completeFile;
|
|
21
|
+
constructor(dependencies: EditableArtifactWorkspaceFileAdapterDependencies);
|
|
22
|
+
ensureMaterializationFile(input: Parameters<EditableArtifactAgentWorkspaceFilePort["ensureMaterializationFile"]>[0]): ReturnType<EditableArtifactAgentWorkspaceFilePort["ensureMaterializationFile"]>;
|
|
23
|
+
}
|
|
@@ -10,5 +10,11 @@ import type { GitHubSignedStatePayload } from "@opengeni/github";
|
|
|
10
10
|
export declare const githubBrowserGrantMaxAgeSeconds: number;
|
|
11
11
|
export declare function githubBrowserGrantClaims(settings: Pick<Settings, "productAccessMode">, grant: AccessGrant, nowSeconds?: number): Record<string, unknown>;
|
|
12
12
|
export declare function continuedGitHubBrowserGrantClaims(payload: GitHubSignedStatePayload): Record<string, unknown>;
|
|
13
|
+
/**
|
|
14
|
+
* GitHub may return only to the session that initiated setup. This rejects
|
|
15
|
+
* absolute/protocol-relative URLs and paths for another workspace before the
|
|
16
|
+
* value is signed into provider state.
|
|
17
|
+
*/
|
|
18
|
+
export declare function githubSessionReturnPath(value: string | undefined | null, workspaceId: string): string | null;
|
|
13
19
|
export declare function githubBrowserGrantFromState(settings: Pick<Settings, "productAccessMode">, payload: GitHubSignedStatePayload, workspaceId: string, nowSeconds?: number): AccessGrant | null;
|
|
14
20
|
export declare function githubBrowserBaseUrl(settings: Pick<Settings, "githubAppManifestBaseUrl" | "publicBaseUrl">, requestOrigin?: string | null): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function allowedCorsOrigin(pattern: string, origin: string): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,15 @@ import type { ScheduledTaskOverlapPolicy, ScheduledTaskScheduleSpec } from "@ope
|
|
|
3
3
|
import { type Database } from "@opengeni/db";
|
|
4
4
|
import { ScheduleOverlapPolicy } from "@temporalio/client";
|
|
5
5
|
import type { ScheduleSpec } from "@temporalio/client";
|
|
6
|
-
import { type DocumentIndexClient, type SessionWorkflowClient } from "./app";
|
|
6
|
+
import { type DocumentIndexClient, type SessionWorkflowClient } from "./app.js";
|
|
7
|
+
import { type EditableArtifactWebSocketConnection } from "./editable-artifact-websocket.js";
|
|
7
8
|
export declare function createTemporalWorkflowClient(settings: ReturnType<typeof getSettings>, db: Database): Promise<{
|
|
8
9
|
client: SessionWorkflowClient;
|
|
9
10
|
documentIndexer: DocumentIndexClient;
|
|
10
11
|
close: () => Promise<void>;
|
|
11
12
|
}>;
|
|
12
13
|
export declare function startApi(): Promise<{
|
|
13
|
-
server: Bun.Server<
|
|
14
|
+
server: Bun.Server<EditableArtifactWebSocketConnection>;
|
|
14
15
|
close: () => Promise<void>;
|
|
15
16
|
}>;
|
|
16
17
|
export declare function temporalOverlapPolicy(policy: ScheduledTaskOverlapPolicy): ScheduleOverlapPolicy;
|