lumiverse-spindle-types 0.4.52 → 0.4.53
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/src/api.ts +3 -0
- package/src/spindle-api.ts +4 -0
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -278,6 +278,9 @@ export interface RequestInitDTO {
|
|
|
278
278
|
method?: string;
|
|
279
279
|
headers?: Record<string, string>;
|
|
280
280
|
body?: string;
|
|
281
|
+
/** When `"arraybuffer"`, the response body is returned as a base64-encoded string
|
|
282
|
+
* with `encoding: "base64"`. Used by the sandboxed-widget transparent proxy. */
|
|
283
|
+
responseType?: "text" | "arraybuffer";
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
/**
|
package/src/spindle-api.ts
CHANGED
|
@@ -921,6 +921,8 @@ export interface SpindleAPI {
|
|
|
921
921
|
list(filter?: FrontendProcessListOptionsDTO): Promise<FrontendProcessInfoDTO[]>;
|
|
922
922
|
/** Get a single tracked process by ID. Returns `null` if it no longer exists. */
|
|
923
923
|
get(processId: string): Promise<FrontendProcessInfoDTO | null>;
|
|
924
|
+
/** Send a message to a specific frontend process */
|
|
925
|
+
send(processId: string, payload: unknown, userId?: string): void;
|
|
924
926
|
/** Request graceful termination of a tracked process. */
|
|
925
927
|
stop(processId: string, options?: FrontendProcessStopOptionsDTO): Promise<void>;
|
|
926
928
|
/** Subscribe to lifecycle transitions (`starting`, `running`, `timed_out`, etc.). */
|
|
@@ -951,6 +953,8 @@ export interface SpindleAPI {
|
|
|
951
953
|
list(filter?: BackendProcessListOptionsDTO): Promise<BackendProcessInfoDTO[]>;
|
|
952
954
|
/** Get a single tracked subprocess by ID. Returns `null` if it no longer exists. */
|
|
953
955
|
get(processId: string): Promise<BackendProcessInfoDTO | null>;
|
|
956
|
+
/** Send a message to a specific backend process */
|
|
957
|
+
send(processId: string, payload: unknown, userId?: string): void;
|
|
954
958
|
/** Request graceful termination of a tracked subprocess. */
|
|
955
959
|
stop(processId: string, options?: BackendProcessStopOptionsDTO): Promise<void>;
|
|
956
960
|
/** Subscribe to lifecycle transitions (`starting`, `running`, `timed_out`, etc.). */
|