1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 13:08:17 -05:00

AC Team code ownership moves - Api project (#3351)

This commit is contained in:
Thomas Rittson 2023-10-19 01:27:56 +10:00 committed by GitHub
parent d230b10f82
commit 37e9d70bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
62 changed files with 109 additions and 89 deletions

View File

@ -1,4 +1,5 @@
using Bit.Api.Models.Request; using Bit.Api.AdminConsole.Models.Request;
using Bit.Api.AdminConsole.Models.Response;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;
@ -8,7 +9,7 @@ using Bit.Core.Services;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Controllers; namespace Bit.Api.AdminConsole.Controllers;
[Route("organizations/{orgId}/groups")] [Route("organizations/{orgId}/groups")]
[Authorize("Application")] [Authorize("Application")]

View File

@ -1,6 +1,7 @@
using Bit.Api.Models.Request.Organizations; using Bit.Api.AdminConsole.Models.Request.Organizations;
using Bit.Api.AdminConsole.Models.Response.Organizations;
using Bit.Api.Models.Request.Organizations;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Api.Models.Response.Organizations;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;
@ -14,7 +15,7 @@ using Bit.Core.Services;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Controllers; namespace Bit.Api.AdminConsole.Controllers;
[Route("organizations/{orgId}/users")] [Route("organizations/{orgId}/users")]
[Authorize("Application")] [Authorize("Application")]

View File

@ -1,4 +1,8 @@
using System.Text.Json; using System.Text.Json;
using Bit.Api.AdminConsole.Models.Request;
using Bit.Api.AdminConsole.Models.Request.Organizations;
using Bit.Api.AdminConsole.Models.Response;
using Bit.Api.AdminConsole.Models.Response.Organizations;
using Bit.Api.Auth.Models.Request.Accounts; using Bit.Api.Auth.Models.Request.Accounts;
using Bit.Api.Auth.Models.Request.Organizations; using Bit.Api.Auth.Models.Request.Organizations;
using Bit.Api.Auth.Models.Response.Organizations; using Bit.Api.Auth.Models.Response.Organizations;
@ -6,7 +10,6 @@ using Bit.Api.Models.Request;
using Bit.Api.Models.Request.Accounts; using Bit.Api.Models.Request.Accounts;
using Bit.Api.Models.Request.Organizations; using Bit.Api.Models.Request.Organizations;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Api.Models.Response.Organizations;
using Bit.Core; using Bit.Core;
using Bit.Core.Auth.Enums; using Bit.Core.Auth.Enums;
using Bit.Core.Auth.Repositories; using Bit.Core.Auth.Repositories;
@ -26,7 +29,7 @@ using Bit.Core.Utilities;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Controllers; namespace Bit.Api.AdminConsole.Controllers;
[Route("organizations")] [Route("organizations")]
[Authorize("Application")] [Authorize("Application")]

View File

@ -1,4 +1,4 @@
using Bit.Api.Models.Request; using Bit.Api.AdminConsole.Models.Request;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Enums; using Bit.Core.Enums;
@ -12,7 +12,7 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Controllers; namespace Bit.Api.AdminConsole.Controllers;
[Route("organizations/{orgId}/policies")] [Route("organizations/{orgId}/policies")]
[Authorize("Application")] [Authorize("Application")]

View File

@ -1,6 +1,6 @@
using Bit.Api.Models.Request.Providers; using Bit.Api.AdminConsole.Models.Request.Providers;
using Bit.Api.AdminConsole.Models.Response.Providers;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Api.Models.Response.Providers;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;
using Bit.Core.Repositories; using Bit.Core.Repositories;
@ -9,7 +9,7 @@ using Bit.Core.Utilities;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Controllers; namespace Bit.Api.AdminConsole.Controllers;
[Route("providers/{providerId:guid}/organizations")] [Route("providers/{providerId:guid}/organizations")]
[Authorize("Application")] [Authorize("Application")]

View File

@ -1,6 +1,6 @@
using Bit.Api.Models.Request.Providers; using Bit.Api.AdminConsole.Models.Request.Providers;
using Bit.Api.AdminConsole.Models.Response.Providers;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Api.Models.Response.Providers;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;
using Bit.Core.Models.Business.Provider; using Bit.Core.Models.Business.Provider;
@ -9,7 +9,7 @@ using Bit.Core.Services;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Controllers; namespace Bit.Api.AdminConsole.Controllers;
[Route("providers/{providerId:guid}/users")] [Route("providers/{providerId:guid}/users")]
[Authorize("Application")] [Authorize("Application")]

View File

@ -1,5 +1,5 @@
using Bit.Api.Models.Request.Providers; using Bit.Api.AdminConsole.Models.Request.Providers;
using Bit.Api.Models.Response.Providers; using Bit.Api.AdminConsole.Models.Response.Providers;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;
using Bit.Core.Repositories; using Bit.Core.Repositories;
@ -8,7 +8,7 @@ using Bit.Core.Settings;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Controllers; namespace Bit.Api.AdminConsole.Controllers;
[Route("providers")] [Route("providers")]
[Authorize("Application")] [Authorize("Application")]

View File

@ -1,7 +1,8 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Bit.Api.Models.Request;
using Bit.Core.Entities; using Bit.Core.Entities;
namespace Bit.Api.Models.Request; namespace Bit.Api.AdminConsole.Models.Request;
public class GroupRequestModel public class GroupRequestModel
{ {

View File

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;
namespace Bit.Api.Models.Request.Organizations; namespace Bit.Api.AdminConsole.Models.Request;
public class ImportOrganizationUsersRequestModel public class ImportOrganizationUsersRequestModel
{ {

View File

@ -1,7 +1,7 @@
using Bit.Api.Auth.Models.Request.Accounts; using Bit.Api.Auth.Models.Request.Accounts;
using Bit.Core.Enums; using Bit.Core.Enums;
namespace Bit.Api.Models.Request.Accounts; namespace Bit.Api.AdminConsole.Models.Request.Organizations;
public class OrganizationApiKeyRequestModel : SecretVerificationRequestModel public class OrganizationApiKeyRequestModel : SecretVerificationRequestModel
{ {

View File

@ -4,7 +4,7 @@ using Bit.Core.Enums;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Request.Organizations; namespace Bit.Api.AdminConsole.Models.Request.Organizations;
public class OrganizationCreateRequestModel : IValidatableObject public class OrganizationCreateRequestModel : IValidatableObject
{ {

View File

@ -2,7 +2,7 @@
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;
namespace Bit.Api.Models.Request.Organizations; namespace Bit.Api.AdminConsole.Models.Request.Organizations;
public class OrganizationKeysRequestModel public class OrganizationKeysRequestModel
{ {

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Models.Request.Organizations; namespace Bit.Api.AdminConsole.Models.Request.Organizations;
public class OrganizationSeatRequestModel : IValidatableObject public class OrganizationSeatRequestModel : IValidatableObject
{ {

View File

@ -3,7 +3,7 @@ using Bit.Core.Entities;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
using Bit.Core.Settings; using Bit.Core.Settings;
namespace Bit.Api.Models.Request.Organizations; namespace Bit.Api.AdminConsole.Models.Request.Organizations;
public class OrganizationUpdateRequestModel public class OrganizationUpdateRequestModel
{ {

View File

@ -2,7 +2,7 @@
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;
namespace Bit.Api.Models.Request.Organizations; namespace Bit.Api.AdminConsole.Models.Request.Organizations;
public class OrganizationUpgradeRequestModel public class OrganizationUpgradeRequestModel
{ {

View File

@ -1,11 +1,12 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Bit.Api.Models.Request;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
using Bit.Core.Models.Data.Organizations.OrganizationUsers; using Bit.Core.Models.Data.Organizations.OrganizationUsers;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Request.Organizations; namespace Bit.Api.AdminConsole.Models.Request.Organizations;
public class OrganizationUserInviteRequestModel public class OrganizationUserInviteRequestModel
{ {

View File

@ -3,7 +3,7 @@ using System.Text.Json;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
namespace Bit.Api.Models.Request; namespace Bit.Api.AdminConsole.Models.Request;
public class PolicyRequestModel public class PolicyRequestModel
{ {

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Models.Request.Providers; namespace Bit.Api.AdminConsole.Models.Request.Providers;
public class ProviderOrganizationAddRequestModel public class ProviderOrganizationAddRequestModel
{ {

View File

@ -1,8 +1,8 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Bit.Api.Models.Request.Organizations; using Bit.Api.AdminConsole.Models.Request.Organizations;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Request.Providers; namespace Bit.Api.AdminConsole.Models.Request.Providers;
public class ProviderOrganizationCreateRequestModel public class ProviderOrganizationCreateRequestModel
{ {

View File

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Bit.Core.Entities.Provider; using Bit.Core.Entities.Provider;
namespace Bit.Api.Models.Request.Providers; namespace Bit.Api.AdminConsole.Models.Request.Providers;
public class ProviderSetupRequestModel public class ProviderSetupRequestModel
{ {

View File

@ -2,7 +2,7 @@
using Bit.Core.Entities.Provider; using Bit.Core.Entities.Provider;
using Bit.Core.Settings; using Bit.Core.Settings;
namespace Bit.Api.Models.Request.Providers; namespace Bit.Api.AdminConsole.Models.Request.Providers;
public class ProviderUpdateRequestModel public class ProviderUpdateRequestModel
{ {

View File

@ -3,7 +3,7 @@ using Bit.Core.Entities.Provider;
using Bit.Core.Enums.Provider; using Bit.Core.Enums.Provider;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Request.Providers; namespace Bit.Api.AdminConsole.Models.Request.Providers;
public class ProviderUserInviteRequestModel public class ProviderUserInviteRequestModel
{ {

View File

@ -1,8 +1,9 @@
using Bit.Core.Entities; using Bit.Api.Models.Response;
using Bit.Core.Entities;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
namespace Bit.Api.Models.Response; namespace Bit.Api.AdminConsole.Models.Response;
public class GroupResponseModel : ResponseModel public class GroupResponseModel : ResponseModel
{ {

View File

@ -2,7 +2,7 @@
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
namespace Bit.Api.Models.Response.Organizations; namespace Bit.Api.AdminConsole.Models.Response.Organizations;
public class OrganizationApiKeyInformation : ResponseModel public class OrganizationApiKeyInformation : ResponseModel
{ {

View File

@ -1,6 +1,6 @@
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
namespace Bit.Api.Models.Response.Organizations; namespace Bit.Api.AdminConsole.Models.Response.Organizations;
public class OrganizationAutoEnrollStatusResponseModel : ResponseModel public class OrganizationAutoEnrollStatusResponseModel : ResponseModel
{ {

View File

@ -1,7 +1,7 @@
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
namespace Bit.Api.Models.Response.Organizations; namespace Bit.Api.AdminConsole.Models.Response.Organizations;
public class OrganizationKeysResponseModel : ResponseModel public class OrganizationKeysResponseModel : ResponseModel
{ {

View File

@ -1,7 +1,7 @@
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
namespace Bit.Api.Models.Response.Organizations; namespace Bit.Api.AdminConsole.Models.Response.Organizations;
public class OrganizationPublicKeyResponseModel : ResponseModel public class OrganizationPublicKeyResponseModel : ResponseModel
{ {

View File

@ -1,11 +1,12 @@
using Bit.Core.Entities; using Bit.Api.Models.Response;
using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;
using Bit.Core.Utilities; using Bit.Core.Utilities;
using Constants = Bit.Core.Constants; using Constants = Bit.Core.Constants;
namespace Bit.Api.Models.Response.Organizations; namespace Bit.Api.AdminConsole.Models.Response.Organizations;
public class OrganizationResponseModel : ResponseModel public class OrganizationResponseModel : ResponseModel
{ {

View File

@ -1,4 +1,5 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using Bit.Api.Models.Response;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
@ -6,7 +7,7 @@ using Bit.Core.Models.Data;
using Bit.Core.Models.Data.Organizations.OrganizationUsers; using Bit.Core.Models.Data.Organizations.OrganizationUsers;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Response.Organizations; namespace Bit.Api.AdminConsole.Models.Response.Organizations;
public class OrganizationUserResponseModel : ResponseModel public class OrganizationUserResponseModel : ResponseModel
{ {

View File

@ -7,7 +7,7 @@ using Bit.Core.Models.Data;
using Bit.Core.Models.Data.Organizations.OrganizationUsers; using Bit.Core.Models.Data.Organizations.OrganizationUsers;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Response; namespace Bit.Api.AdminConsole.Models.Response;
public class ProfileOrganizationResponseModel : ResponseModel public class ProfileOrganizationResponseModel : ResponseModel
{ {

View File

@ -2,7 +2,7 @@
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Response; namespace Bit.Api.AdminConsole.Models.Response;
public class ProfileProviderOrganizationResponseModel : ProfileOrganizationResponseModel public class ProfileProviderOrganizationResponseModel : ProfileOrganizationResponseModel
{ {

View File

@ -3,7 +3,7 @@ using Bit.Core.Models.Api;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Response.Providers; namespace Bit.Api.AdminConsole.Models.Response.Providers;
public class ProfileProviderResponseModel : ResponseModel public class ProfileProviderResponseModel : ResponseModel
{ {

View File

@ -2,7 +2,7 @@
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
namespace Bit.Api.Models.Response.Providers; namespace Bit.Api.AdminConsole.Models.Response.Providers;
public class ProviderOrganizationResponseModel : ResponseModel public class ProviderOrganizationResponseModel : ResponseModel
{ {

View File

@ -1,7 +1,7 @@
using Bit.Core.Entities.Provider; using Bit.Core.Entities.Provider;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
namespace Bit.Api.Models.Response.Providers; namespace Bit.Api.AdminConsole.Models.Response.Providers;
public class ProviderResponseModel : ResponseModel public class ProviderResponseModel : ResponseModel
{ {

View File

@ -4,7 +4,7 @@ using Bit.Core.Models.Api;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Response.Providers; namespace Bit.Api.AdminConsole.Models.Response.Providers;
public class ProviderUserResponseModel : ResponseModel public class ProviderUserResponseModel : ResponseModel
{ {

View File

@ -1,5 +1,6 @@
using System.Net; using System.Net;
using Bit.Api.Models.Public.Request; using Bit.Api.AdminConsole.Public.Models.Request;
using Bit.Api.AdminConsole.Public.Models.Response;
using Bit.Api.Models.Public.Response; using Bit.Api.Models.Public.Response;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.OrganizationFeatures.Groups.Interfaces; using Bit.Core.OrganizationFeatures.Groups.Interfaces;
@ -7,7 +8,7 @@ using Bit.Core.Repositories;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Public.Controllers; namespace Bit.Api.AdminConsole.Public.Controllers;
[Route("public/groups")] [Route("public/groups")]
[Authorize("Organization")] [Authorize("Organization")]

View File

@ -1,5 +1,6 @@
using System.Net; using System.Net;
using Bit.Api.Models.Public.Request; using Bit.Api.AdminConsole.Public.Models.Request;
using Bit.Api.AdminConsole.Public.Models.Response;
using Bit.Api.Models.Public.Response; using Bit.Api.Models.Public.Response;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;
@ -9,7 +10,7 @@ using Bit.Core.Services;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Public.Controllers; namespace Bit.Api.AdminConsole.Public.Controllers;
[Route("public/members")] [Route("public/members")]
[Authorize("Organization")] [Authorize("Organization")]

View File

@ -1,5 +1,6 @@
using System.Net; using System.Net;
using Bit.Api.Models.Public.Request; using Bit.Api.AdminConsole.Public.Models.Request;
using Bit.Api.AdminConsole.Public.Models.Response;
using Bit.Api.Models.Public.Response; using Bit.Api.Models.Public.Response;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;
@ -8,7 +9,7 @@ using Bit.Core.Settings;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Public.Controllers; namespace Bit.Api.AdminConsole.Public.Controllers;
[Route("public/organization")] [Route("public/organization")]
[Authorize("Organization")] [Authorize("Organization")]

View File

@ -1,5 +1,6 @@
using System.Net; using System.Net;
using Bit.Api.Models.Public.Request; using Bit.Api.AdminConsole.Public.Models.Request;
using Bit.Api.AdminConsole.Public.Models.Response;
using Bit.Api.Models.Public.Response; using Bit.Api.Models.Public.Response;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Enums; using Bit.Core.Enums;
@ -8,7 +9,7 @@ using Bit.Core.Services;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Public.Controllers; namespace Bit.Api.AdminConsole.Public.Controllers;
[Route("public/policies")] [Route("public/policies")]
[Authorize("Organization")] [Authorize("Organization")]

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Models.Public; namespace Bit.Api.AdminConsole.Public.Models;
public abstract class GroupBaseModel public abstract class GroupBaseModel
{ {

View File

@ -3,7 +3,7 @@ using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Data.Organizations.OrganizationUsers; using Bit.Core.Models.Data.Organizations.OrganizationUsers;
namespace Bit.Api.Models.Public; namespace Bit.Api.AdminConsole.Public.Models;
public abstract class MemberBaseModel public abstract class MemberBaseModel
{ {

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Models.Public; namespace Bit.Api.AdminConsole.Public.Models;
public abstract class PolicyBaseModel public abstract class PolicyBaseModel
{ {

View File

@ -1,7 +1,7 @@
using Bit.Api.Auth.Models.Public.Request; using Bit.Api.Auth.Models.Public.Request;
using Bit.Core.Entities; using Bit.Core.Entities;
namespace Bit.Api.Models.Public.Request; namespace Bit.Api.AdminConsole.Public.Models.Request;
public class GroupCreateUpdateRequestModel : GroupBaseModel public class GroupCreateUpdateRequestModel : GroupBaseModel
{ {

View File

@ -2,7 +2,7 @@
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Public.Request; namespace Bit.Api.AdminConsole.Public.Models.Request;
public class MemberCreateRequestModel : MemberUpdateRequestModel public class MemberCreateRequestModel : MemberUpdateRequestModel
{ {

View File

@ -1,7 +1,7 @@
using Bit.Api.Auth.Models.Public.Request; using Bit.Api.Auth.Models.Public.Request;
using Bit.Core.Entities; using Bit.Core.Entities;
namespace Bit.Api.Models.Public.Request; namespace Bit.Api.AdminConsole.Public.Models.Request;
public class MemberUpdateRequestModel : MemberBaseModel public class MemberUpdateRequestModel : MemberBaseModel
{ {

View File

@ -4,7 +4,7 @@ using Bit.Core.Entities;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Public.Request; namespace Bit.Api.AdminConsole.Public.Models.Request;
public class OrganizationImportRequestModel public class OrganizationImportRequestModel
{ {

View File

@ -1,7 +1,7 @@
using System.Text.Json; using System.Text.Json;
using Bit.Core.Entities; using Bit.Core.Entities;
namespace Bit.Api.Models.Public.Request; namespace Bit.Api.AdminConsole.Public.Models.Request;
public class PolicyUpdateRequestModel : PolicyBaseModel public class PolicyUpdateRequestModel : PolicyBaseModel
{ {

View File

@ -1,4 +1,4 @@
namespace Bit.Api.Models.Public.Request; namespace Bit.Api.AdminConsole.Public.Models.Request;
public class UpdateGroupIdsRequestModel public class UpdateGroupIdsRequestModel
{ {

View File

@ -1,4 +1,4 @@
namespace Bit.Api.Models.Public.Request; namespace Bit.Api.AdminConsole.Public.Models.Request;
public class UpdateMemberIdsRequestModel public class UpdateMemberIdsRequestModel
{ {

View File

@ -1,9 +1,10 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Bit.Api.Auth.Models.Public.Response; using Bit.Api.Auth.Models.Public.Response;
using Bit.Api.Models.Public.Response;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
namespace Bit.Api.Models.Public.Response; namespace Bit.Api.AdminConsole.Public.Models.Response;
/// <summary> /// <summary>
/// A user group. /// A user group.

View File

@ -1,11 +1,12 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Bit.Api.Auth.Models.Public.Response; using Bit.Api.Auth.Models.Public.Response;
using Bit.Api.Models.Public.Response;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
using Bit.Core.Models.Data.Organizations.OrganizationUsers; using Bit.Core.Models.Data.Organizations.OrganizationUsers;
namespace Bit.Api.Models.Public.Response; namespace Bit.Api.AdminConsole.Public.Models.Response;
/// <summary> /// <summary>
/// An organization member. /// An organization member.

View File

@ -1,9 +1,10 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Text.Json; using System.Text.Json;
using Bit.Api.Models.Public.Response;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
namespace Bit.Api.Models.Public.Response; namespace Bit.Api.AdminConsole.Public.Models.Response;
/// <summary> /// <summary>
/// A policy. /// A policy.

View File

@ -1,6 +1,6 @@
using Bit.Api.Auth.Models.Request; using Bit.Api.AdminConsole.Models.Request.Organizations;
using Bit.Api.Auth.Models.Request;
using Bit.Api.Auth.Models.Response; using Bit.Api.Auth.Models.Response;
using Bit.Api.Models.Request.Organizations;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Api.Vault.Models.Response; using Bit.Api.Vault.Models.Response;
using Bit.Core.Auth.Services; using Bit.Core.Auth.Services;

View File

@ -1,4 +1,5 @@
using Bit.Api.Auth.Models.Request.Accounts; using Bit.Api.AdminConsole.Models.Response;
using Bit.Api.Auth.Models.Request.Accounts;
using Bit.Api.Models.Request; using Bit.Api.Models.Request;
using Bit.Api.Models.Request.Accounts; using Bit.Api.Models.Request.Accounts;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;

View File

@ -1,6 +1,6 @@
using Bit.Api.Models.Request; using Bit.Api.AdminConsole.Models.Response.Organizations;
using Bit.Api.Models.Request;
using Bit.Api.Models.Request.Organizations; using Bit.Api.Models.Request.Organizations;
using Bit.Api.Models.Response.Organizations;
using Bit.Api.Utilities; using Bit.Api.Utilities;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Enums; using Bit.Core.Enums;

View File

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Bit.Api.AdminConsole.Models.Request.Organizations;
using Bit.Core.Utilities; using Bit.Core.Utilities;
namespace Bit.Api.Models.Request.Organizations; namespace Bit.Api.Models.Request.Organizations;

View File

@ -1,4 +1,5 @@
using Bit.Api.Models.Response.Providers; using Bit.Api.AdminConsole.Models.Response;
using Bit.Api.AdminConsole.Models.Response.Providers;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;

View File

@ -1,5 +1,5 @@
using Bit.Api.Controllers; using Bit.Api.AdminConsole.Controllers;
using Bit.Api.Models.Request; using Bit.Api.AdminConsole.Models.Request;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
@ -10,7 +10,7 @@ using Bit.Test.Common.AutoFixture.Attributes;
using NSubstitute; using NSubstitute;
using Xunit; using Xunit;
namespace Bit.Api.Test.Controllers; namespace Bit.Api.Test.AdminConsole.Controllers;
[ControllerCustomize(typeof(GroupsController))] [ControllerCustomize(typeof(GroupsController))]
[SutProviderCustomize] [SutProviderCustomize]

View File

@ -13,7 +13,7 @@ using Bit.Test.Common.AutoFixture.Attributes;
using NSubstitute; using NSubstitute;
using Xunit; using Xunit;
namespace Bit.Api.Test.Controllers; namespace Bit.Api.Test.AdminConsole.Controllers;
[ControllerCustomize(typeof(OrganizationSponsorshipsController))] [ControllerCustomize(typeof(OrganizationSponsorshipsController))]
[SutProviderCustomize] [SutProviderCustomize]

View File

@ -1,5 +1,5 @@
using Bit.Api.Controllers; using Bit.Api.AdminConsole.Controllers;
using Bit.Api.Models.Request.Organizations; using Bit.Api.AdminConsole.Models.Request.Organizations;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Models.Data.Organizations.Policies; using Bit.Core.Models.Data.Organizations.Policies;
using Bit.Core.Repositories; using Bit.Core.Repositories;
@ -10,7 +10,7 @@ using Bit.Test.Common.AutoFixture.Attributes;
using NSubstitute; using NSubstitute;
using Xunit; using Xunit;
namespace Bit.Api.Test.Controllers; namespace Bit.Api.Test.AdminConsole.Controllers;
[ControllerCustomize(typeof(OrganizationUsersController))] [ControllerCustomize(typeof(OrganizationUsersController))]
[SutProviderCustomize] [SutProviderCustomize]

View File

@ -1,6 +1,6 @@
using System.Security.Claims; using System.Security.Claims;
using AutoFixture.Xunit2; using AutoFixture.Xunit2;
using Bit.Api.Controllers; using Bit.Api.AdminConsole.Controllers;
using Bit.Core.Auth.Entities; using Bit.Core.Auth.Entities;
using Bit.Core.Auth.Enums; using Bit.Core.Auth.Enums;
using Bit.Core.Auth.Models.Data; using Bit.Core.Auth.Models.Data;
@ -18,7 +18,7 @@ using Bit.Core.Settings;
using NSubstitute; using NSubstitute;
using Xunit; using Xunit;
namespace Bit.Api.Test.Controllers; namespace Bit.Api.Test.AdminConsole.Controllers;
public class OrganizationsControllerTests : IDisposable public class OrganizationsControllerTests : IDisposable
{ {

View File

@ -1,6 +1,6 @@
using Bit.Api.Models.Public.Request; using Bit.Api.AdminConsole.Public.Controllers;
using Bit.Api.Models.Public.Response; using Bit.Api.AdminConsole.Public.Models.Request;
using Bit.Api.Public.Controllers; using Bit.Api.AdminConsole.Public.Models.Response;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;
@ -12,7 +12,7 @@ using Microsoft.AspNetCore.Mvc;
using NSubstitute; using NSubstitute;
using Xunit; using Xunit;
namespace Bit.Api.Test.Public.Controllers; namespace Bit.Api.Test.AdminConsole.Public.Controllers;
[ControllerCustomize(typeof(GroupsController))] [ControllerCustomize(typeof(GroupsController))]
[SutProviderCustomize] [SutProviderCustomize]