import { FEAInfo } from "../../FEA"; import { AuthenticationToken } from "../Interop/types"; import { RouterTransportSettings } from "../routerClient"; import { AppDefinition, FinsembleComponentConfig } from "../../platform/services/Interop/types"; /** * This is startup data that is passed to FSBLJSAdapter.startApp(). This is a public interface * used in freestanding mode. */ export type StartupData = { /** * If the windowName is provided then it will be used, otherwise the document's url * will be used as the window name. The window name will not change if the document navigates to another url. */ windowName?: string; /** * If the webContentsName is provided then it will be used, otherwise the windowName will be used. * When running under FEA, the webContentsName can be different from the windowName depending on whether * the window is a BrowserviewWindow (titlebar) or a BrowserView. */ webContentsName?: string; /** * Deprecated: If appId is not set, then will be used to identify app. * */ appName?: string; /** * Required: The id of the app. This will be used to match up to an app config entry in Finsemble's apps.json * (lookup by appId). If no app id is provided then the app will be treated anonymously. */ appId?: string; /** * A key for creating digital signatures may be generated for an app using Finsemble's SmartDesktop designer. * That key can be provided here so that Finsemble can verify the app's identify. Verified apps can participate * in advanced FDC3 interop (such as DIAM). */ digitalSigningKey?: JsonWebKey; /** * A JSON Web Token used in place of the digitalSigningKey. This token is typically generated externally. * It must be a legal JWT generated with the private key that corresponds to the apps pubic key in AppD. * If provided here it will verify the app's identify. Verified apps can participate * in advanced FDC3 interop (such as DIAM). */ jwt?: string; /** * IAC (FinsembleTransport) is used by default. If an address is not provided then Finsemble will use the * default address of http://127.0.0.1:3375. */ routerAddress?: string; }; /** * Freestanding apps do not need to pass in windowName or authentication, but FSBL entry points are * required to derive these values when not provided by the app's code. The CompleteStartupData type * ensures that FSBL entry points set these values. * * > Note that the app's name can be found in authenticationToken.meta.name. */ export type CompleteStartupData = { windowName: string; webContentsName: string; authenticationToken: AuthenticationToken; routerConfig?: RouterTransportSettings; }; /** * Placeholder type for this data which comes from an initial call to FSBL.System.getOptions() */ export type SystemStartupData = Record; export type FSBLInfo = { FSBLVersion: string; gitHash: string; } & FEAInfo; /** * The launcher takes the component config and adds some pieces. */ export type ExtendedComponentConfig = FinsembleComponentConfig & { type: string; appDConfig?: AppDefinition; component: FinsembleComponentConfig["component"] & { type: string; }; waitForInitialization: boolean; }; //# sourceMappingURL=types.d.ts.map