@fungi.computer/oyster 0.20.2 → 0.20.4

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.
@@ -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;
@@ -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,