import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
import {
  capability_exports
} from "./chunk-64IMLAS2.mjs";

// src/common/translations.ts
import * as Schema from "effect/Schema";
var Label = Schema.Union(Schema.String, Schema.mutable(Schema.Tuple(Schema.String, Schema.mutable(Schema.Struct({
  ns: Schema.String,
  count: Schema.optional(Schema.Number),
  defaultValue: Schema.optional(Schema.String)
})))));

// src/common/operations.ts
import * as Schema2 from "effect/Schema";
import { Operation } from "@dxos/operation";
var UNDO_NAMESPACE = "dxos.org/app-framework/undo";
(function(UndoOperation2) {
  UndoOperation2.ShowUndo = Operation.make({
    meta: {
      key: `${UNDO_NAMESPACE}/operation/show-undo`,
      name: "Show Undo",
      description: "Show an undo toast notification."
    },
    executionMode: "sync",
    services: [
      capability_exports.Service
    ],
    schema: {
      input: Schema2.Struct({
        message: Schema2.optional(Label.annotations({
          description: "The message to display in the undo toast."
        }))
      }),
      output: Schema2.Void
    }
  });
})(UndoOperation || (UndoOperation = {}));
var UndoOperation;

export {
  Label,
  UndoOperation
};
//# sourceMappingURL=chunk-J2PHTRHC.mjs.map
