import { importShared } from './__federation_fn_import-C_QCk5FX.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,createPlatformPluginExport} = await importShared('@baseplate-dev/project-builder-lib');
const common = createPlatformPluginExport({
  dependencies: {
    adminCrudAction: adminCrudActionSpec,
    adminCrudColumn: adminCrudColumnSpec
  },
  exports: {},
  initialize: ({ adminCrudAction, adminCrudColumn }) => {
    adminCrudAction.registerAdminCrudAction(
      createAdminCrudActionType({
        name: "manage-roles",
        createSchema: createAdminCrudManageRolesActionSchema
      })
    );
    adminCrudAction.registerAdminCrudAction(
      createAdminCrudActionType({
        name: "reset-password",
        createSchema: createAdminCrudResetPasswordActionSchema
      })
    );
    adminCrudColumn.registerAdminCrudColumn(
      createAdminCrudColumnType({
        name: "roles",
        createSchema: createAdminCrudRolesColumnSchema
      })
    );
    return {};
  }
});

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