@fungi.computer/oyster 0.20.3 → 0.20.5
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/apps/permissions.d.ts +16 -0
- package/dist/apps/permissions.js +11 -0
- package/dist/embed-metafiles.js +1 -1
- package/dist/embed-scripts.js +2 -2
- package/dist/host.js +2 -3
- package/dist/page/app-permissions.js +2 -2
- package/dist/page-script.js +3 -3
- package/dist/standalone/computer.d.ts +1 -1
- package/dist/standalone/computer.js +27 -10
- package/dist/standalone/registry.d.ts +1 -0
- package/dist/standalone/trial-starters.d.ts +1 -0
- package/dist/standalone/try-cli.js +4 -0
- package/package.json +4 -4
|
@@ -192,6 +192,22 @@ export declare const permissionSaveSchema: z.ZodObject<{
|
|
|
192
192
|
kind: z.ZodLiteral<"delete">;
|
|
193
193
|
}, z.core.$strict>], "kind">;
|
|
194
194
|
}, z.core.$strict>;
|
|
195
|
+
/**
|
|
196
|
+
* What a permission row calls an App-call target the workbench directory cannot
|
|
197
|
+
* name yet (still installing, or not installed). Never an App or route id.
|
|
198
|
+
*/
|
|
199
|
+
export declare const unresolvedAppCallTarget = "An App that isn't installed yet";
|
|
200
|
+
/** The directory's display name for an App-call target, else the shared plain copy. */
|
|
201
|
+
export declare function appCallTargetName(directory: Readonly<{
|
|
202
|
+
apps: readonly Readonly<{
|
|
203
|
+
appId: string;
|
|
204
|
+
displayName?: string | undefined;
|
|
205
|
+
}>[];
|
|
206
|
+
installing?: readonly Readonly<{
|
|
207
|
+
appId?: string | undefined;
|
|
208
|
+
displayName: string;
|
|
209
|
+
}>[];
|
|
210
|
+
}> | null, appId: string): string;
|
|
195
211
|
/** Owner permission-page identity, artifact and current permission facts. */
|
|
196
212
|
export declare const appPermissionPageSchema: z.ZodObject<{
|
|
197
213
|
storeGeneration: z.ZodString;
|
package/dist/apps/permissions.js
CHANGED
|
@@ -251,6 +251,17 @@ export const permissionPinsSchema = z.strictObject({
|
|
|
251
251
|
export const permissionSaveSchema = permissionPinsSchema.extend({
|
|
252
252
|
command: grantCommandSchema,
|
|
253
253
|
});
|
|
254
|
+
/**
|
|
255
|
+
* What a permission row calls an App-call target the workbench directory cannot
|
|
256
|
+
* name yet (still installing, or not installed). Never an App or route id.
|
|
257
|
+
*/
|
|
258
|
+
export const unresolvedAppCallTarget = "An App that isn't installed yet";
|
|
259
|
+
/** The directory's display name for an App-call target, else the shared plain copy. */
|
|
260
|
+
export function appCallTargetName(directory, appId) {
|
|
261
|
+
return (directory?.apps.find((app) => app.appId === appId)?.displayName ??
|
|
262
|
+
directory?.installing?.find((app) => app.appId === appId)?.displayName ??
|
|
263
|
+
unresolvedAppCallTarget);
|
|
264
|
+
}
|
|
254
265
|
/** Owner permission-page identity, artifact and current permission facts. */
|
|
255
266
|
export const appPermissionPageSchema = z.strictObject({
|
|
256
267
|
storeGeneration: permissionPinsSchema.shape.storeGeneration,
|