@overmap-ai/common 0.0.10-reports-status.0 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,15 @@ import { TimestampedModel, UUIDModel } from './base';
|
|
|
3
3
|
import { User } from './users';
|
|
4
4
|
export interface Organization extends UUIDModel, TimestampedModel {
|
|
5
5
|
name: string;
|
|
6
|
+
/** Whether the organization's members may ("supported") or must ("required") sign in with single sign-on. */
|
|
7
|
+
sso_mode?: "disabled" | "supported" | "required";
|
|
8
|
+
/**
|
|
9
|
+
* The name members sign in with (for example, "ON").
|
|
10
|
+
* This is null unless single sign-on is supported or required.
|
|
11
|
+
*/
|
|
12
|
+
sso_provider_name?: string | null;
|
|
13
|
+
/** Set by the API when the organization has its own environment, such as `https://on.overmap.ai`. */
|
|
14
|
+
enterprise_app_url?: string | null;
|
|
6
15
|
}
|
|
7
16
|
export interface OrganizationAccess extends UUIDModel, TimestampedModel {
|
|
8
17
|
user: User["id"];
|
|
@@ -6,3 +6,12 @@ export interface User extends IdModel {
|
|
|
6
6
|
email: string;
|
|
7
7
|
profile: Profile;
|
|
8
8
|
}
|
|
9
|
+
export interface CurrentUser extends User {
|
|
10
|
+
/**
|
|
11
|
+
* This is false for members of an organization that requires single sign-on.
|
|
12
|
+
* (The organization's identity provider manages their password.)
|
|
13
|
+
*/
|
|
14
|
+
can_change_password?: boolean;
|
|
15
|
+
/** The name these members sign in with (for example, "ON"). This is set only for these members. */
|
|
16
|
+
sso_provider_name?: string | null;
|
|
17
|
+
}
|