import { importShared } from './__federation_fn_import-BLFDCY-V.js';

const {baseAdminCrudActionSchema: baseAdminCrudActionSchema$1,definitionSchema: definitionSchema$2} = await importShared('@baseplate-dev/project-builder-lib');

const {z: z$2} = await importShared('zod');

const createAdminCrudManageRolesActionSchema = definitionSchema$2(
  () => baseAdminCrudActionSchema$1.extend({
    type: z$2.literal("manage-roles")
  })
);

const {baseAdminCrudActionSchema,definitionSchema: definitionSchema$1} = await importShared('@baseplate-dev/project-builder-lib');

const {z: z$1} = await importShared('zod');

const createAdminCrudResetPasswordActionSchema = definitionSchema$1(
  () => baseAdminCrudActionSchema.extend({
    type: z$1.literal("reset-password")
  })
);

const {baseAdminCrudColumnSchema,definitionSchema} = await importShared('@baseplate-dev/project-builder-lib');

const {z} = await importShared('zod');

const createAdminCrudRolesColumnSchema = definitionSchema(
  () => baseAdminCrudColumnSchema.extend({
    type: z.literal("roles")
  })
);

const {adminCrudActionSpec,adminCrudColumnSpec,createAdminCrudActionType,createAdminCrudColumnType,createPluginModule} = await importShared('@baseplate-dev/project-builder-lib');
const common = createPluginModule({
  name: "common",
  dependencies: {
    adminCrudAction: adminCrudActionSpec,
    adminCrudColumn: adminCrudColumnSpec
  },
  initialize: ({ adminCrudAction, adminCrudColumn }) => {
    adminCrudAction.actions.add(
      createAdminCrudActionType({
        name: "manage-roles",
        createSchema: createAdminCrudManageRolesActionSchema
      })
    );
    adminCrudAction.actions.add(
      createAdminCrudActionType({
        name: "reset-password",
        createSchema: createAdminCrudResetPasswordActionSchema
      })
    );
    adminCrudColumn.columns.add(
      createAdminCrudColumnType({
        name: "roles",
        createSchema: createAdminCrudRolesColumnSchema
      })
    );
  }
});

export { common as default };
//# sourceMappingURL=__federation_expose_local-authAdminCommon-DvHe9w29.js.map
