@opengeni/api-router 6.37.0 → 6.37.1-canary.45151322135001
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-server/service.d.ts +7 -1
- package/dist/app.js +1 -1
- package/dist/{chunk-GAWTCUEH.js → chunk-W4SD5R77.js} +132 -72
- package/dist/{chunk-GAWTCUEH.js.map → chunk-W4SD5R77.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/workspace-tool-gateway.d.ts +9 -1
- package/package.json +29 -28
- package/src/app-server/service.ts +109 -9
- package/src/workspace-tool-gateway.ts +20 -5
|
@@ -99,7 +99,13 @@ export type AppServerRunInput = {
|
|
|
99
99
|
*/
|
|
100
100
|
export declare function runAppServer(deps: AppServerDeps, input: AppServerRunInput): Promise<AppServerFetchResponse>;
|
|
101
101
|
/** The viewer the code sees for a workspace grant (a member in the console, or their agent). */
|
|
102
|
-
export declare function appServerViewerForGrant(deps: Pick<ApiRouteDeps, "db">, grant: AccessGrant): Promise<AppServerViewer>;
|
|
102
|
+
export declare function appServerViewerForGrant(deps: Pick<ApiRouteDeps, "db">, grant: AccessGrant, subjectId?: string): Promise<AppServerViewer>;
|
|
103
|
+
/**
|
|
104
|
+
* The person a grant acts for, as app data resolves it: its own subject, or
|
|
105
|
+
* for an agent the person behind its live turn. Null for a turn without a
|
|
106
|
+
* person (a schedule, a key).
|
|
107
|
+
*/
|
|
108
|
+
export declare function appServerActingSubject(deps: Pick<ApiRouteDeps, "db">, grant: AccessGrant): Promise<string | null>;
|
|
103
109
|
/**
|
|
104
110
|
* Someone who may open the app calls its server code: a member in the
|
|
105
111
|
* console (or their agent), or a published app's viewer. A Site frame may
|
package/dist/app.js
CHANGED