@pptb/types 1.2.2-beta.1 → 1.2.2
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/package.json +1 -1
- package/toolboxAPI.d.ts +15 -15
package/package.json
CHANGED
package/toolboxAPI.d.ts
CHANGED
|
@@ -189,17 +189,21 @@ declare namespace ToolBoxAPI {
|
|
|
189
189
|
executeParallel: <T = any>(...operations: Array<Promise<T> | (() => Promise<T>)>) => Promise<T[]>;
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
*
|
|
200
|
-
*
|
|
192
|
+
* Open a URL in the external browser associated with the tool's active connection.
|
|
193
|
+
*
|
|
194
|
+
* When the connection has a browser profile configured (e.g. a specific Chrome or
|
|
195
|
+
* Edge profile), the URL will be opened in that browser and profile so the user is
|
|
196
|
+
* already authenticated. Falls back to the system default browser when no profile
|
|
197
|
+
* is configured or the browser cannot be found.
|
|
198
|
+
*
|
|
199
|
+
* Only `https:` and `http:` URLs are allowed.
|
|
200
|
+
*
|
|
201
|
+
* @param url The URL to open (must use https: or http: protocol)
|
|
202
|
+
* @param connectionTarget Which connection's browser profile to use.
|
|
203
|
+
* Defaults to `"primary"`. Pass `"secondary"` for multi-connection tools that
|
|
204
|
+
* want to open the URL in the secondary connection's browser context.
|
|
201
205
|
*/
|
|
202
|
-
|
|
206
|
+
openInConnectionBrowser: (url: string, connectionTarget?: "primary" | "secondary") => Promise<void>;
|
|
203
207
|
}
|
|
204
208
|
|
|
205
209
|
/**
|
|
@@ -475,11 +479,7 @@ declare namespace ToolBoxAPI {
|
|
|
475
479
|
* @param prefillData Data to pre-populate the target tool's state
|
|
476
480
|
* @param options Optional connection overrides for the target tool
|
|
477
481
|
*/
|
|
478
|
-
launchTool: (
|
|
479
|
-
targetToolId: string,
|
|
480
|
-
prefillData?: Record<string, unknown>,
|
|
481
|
-
options?: { primaryConnectionId?: string | null; secondaryConnectionId?: string | null },
|
|
482
|
-
) => Promise<unknown>;
|
|
482
|
+
launchTool: (targetToolId: string, prefillData?: Record<string, unknown>, options?: { primaryConnectionId?: string | null; secondaryConnectionId?: string | null }) => Promise<unknown>;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
/**
|