Skip to content

Commit 3ff1757

Browse files
authored
Mark allow_profiles_outside_organization as deprecated (#1060)
## Description Marks `allow_profiles_outside_organization` as now being deprecated. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.
1 parent 70667dd commit 3ff1757

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

src/organizations/interfaces/create-organization-options.interface.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ import { DomainData } from './domain-data.interface';
33

44
export interface CreateOrganizationOptions {
55
name: string;
6-
allowProfilesOutsideOrganization?: boolean;
76
domainData?: DomainData[];
7+
8+
/**
9+
* @deprecated If you need to allow sign-ins from any email domain, contact [email protected].
10+
*/
11+
allowProfilesOutsideOrganization?: boolean;
812
/**
913
* @deprecated Use `domain_data` instead.
1014
*/
@@ -13,8 +17,12 @@ export interface CreateOrganizationOptions {
1317

1418
export interface SerializedCreateOrganizationOptions {
1519
name: string;
16-
allow_profiles_outside_organization?: boolean;
1720
domain_data?: DomainData[];
21+
22+
/**
23+
* @deprecated If you need to allow sign-ins from any email domain, contact [email protected].
24+
*/
25+
allow_profiles_outside_organization?: boolean;
1826
/**
1927
* @deprecated Use `domain_data` instead.
2028
*/

src/organizations/interfaces/update-organization-options.interface.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ import { DomainData } from './domain-data.interface';
33
export interface UpdateOrganizationOptions {
44
organization: string;
55
name: string;
6-
allowProfilesOutsideOrganization?: boolean;
76
domainData?: DomainData[];
7+
8+
/**
9+
* @deprecated If you need to allow sign-ins from any email domain, contact [email protected].
10+
*/
11+
allowProfilesOutsideOrganization?: boolean;
812
/**
913
* @deprecated Use `domain_data` instead.
1014
*/
@@ -13,8 +17,12 @@ export interface UpdateOrganizationOptions {
1317

1418
export interface SerializedUpdateOrganizationOptions {
1519
name: string;
16-
allow_profiles_outside_organization?: boolean;
1720
domain_data?: DomainData[];
21+
22+
/**
23+
* @deprecated If you need to allow sign-ins from any email domain, contact [email protected].
24+
*/
25+
allow_profiles_outside_organization?: boolean;
1826
/**
1927
* @deprecated Use `domain_data` instead.
2028
*/

0 commit comments

Comments
 (0)