diff --git a/src/organizations/interfaces/create-organization-options.interface.ts b/src/organizations/interfaces/create-organization-options.interface.ts index ba49633bf..feb171abe 100644 --- a/src/organizations/interfaces/create-organization-options.interface.ts +++ b/src/organizations/interfaces/create-organization-options.interface.ts @@ -3,8 +3,12 @@ import { DomainData } from './domain-data.interface'; export interface CreateOrganizationOptions { name: string; - allowProfilesOutsideOrganization?: boolean; domainData?: DomainData[]; + + /** + * @deprecated If you need to allow sign-ins from any email domain, contact support@workos.com. + */ + allowProfilesOutsideOrganization?: boolean; /** * @deprecated Use `domain_data` instead. */ @@ -13,8 +17,12 @@ export interface CreateOrganizationOptions { export interface SerializedCreateOrganizationOptions { name: string; - allow_profiles_outside_organization?: boolean; domain_data?: DomainData[]; + + /** + * @deprecated If you need to allow sign-ins from any email domain, contact support@workos.com. + */ + allow_profiles_outside_organization?: boolean; /** * @deprecated Use `domain_data` instead. */ diff --git a/src/organizations/interfaces/update-organization-options.interface.ts b/src/organizations/interfaces/update-organization-options.interface.ts index 617f6c0b4..7809139af 100644 --- a/src/organizations/interfaces/update-organization-options.interface.ts +++ b/src/organizations/interfaces/update-organization-options.interface.ts @@ -3,8 +3,12 @@ import { DomainData } from './domain-data.interface'; export interface UpdateOrganizationOptions { organization: string; name: string; - allowProfilesOutsideOrganization?: boolean; domainData?: DomainData[]; + + /** + * @deprecated If you need to allow sign-ins from any email domain, contact support@workos.com. + */ + allowProfilesOutsideOrganization?: boolean; /** * @deprecated Use `domain_data` instead. */ @@ -13,8 +17,12 @@ export interface UpdateOrganizationOptions { export interface SerializedUpdateOrganizationOptions { name: string; - allow_profiles_outside_organization?: boolean; domain_data?: DomainData[]; + + /** + * @deprecated If you need to allow sign-ins from any email domain, contact support@workos.com. + */ + allow_profiles_outside_organization?: boolean; /** * @deprecated Use `domain_data` instead. */