@spotto/contract 1.0.69-alpha.26 → 1.0.69-alpha.28

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.
@@ -10,4 +10,13 @@ export interface GetOrganisationResponse {
10
10
  integrations?: Integrations;
11
11
  meta?: IEntityMeta;
12
12
  children?: number;
13
+ /**
14
+ * Lightweight SSO state for the org, surfaced so the admin UI can suppress
15
+ * add/remove user flows on SSO-managed orgs without needing the super-user-
16
+ * only `GET /sso/orgs/:id` endpoint. Present only when the caller holds
17
+ * `users:view` — the same gate as the user management UI that consumes it.
18
+ */
19
+ sso?: {
20
+ enabled: boolean;
21
+ };
13
22
  }
@@ -25,5 +25,11 @@ export interface GetInternalUserResponse extends BaseGetUserResponse {
25
25
  * record from another org membership).
26
26
  */
27
27
  invitePending?: boolean;
28
+ /**
29
+ * Present-and-`'sso'` for users currently authenticated via SSO; absent for
30
+ * native (password / invite) users. Lets the admin UI distinguish SSO
31
+ * users without having to join against `organisation.sso.enabled`.
32
+ */
33
+ authProvider?: 'sso';
28
34
  }
29
35
  export declare type GetUserResponse = GetExternalUserResponse | GetInternalUserResponse;
@@ -21,6 +21,13 @@ export interface CurrentUserResponse {
21
21
  homeLocationPath: string;
22
22
  meta?: IEntityMeta;
23
23
  systemSettings: System;
24
+ /**
25
+ * Present-and-`'sso'` if the current user is signed in via SSO; absent for
26
+ * native (password) users. Lets the FE conditionally drive things like the
27
+ * sign-out flow (RP-initiated logout vs. plain Cognito sign-out) without
28
+ * having to check `organisation.sso`.
29
+ */
30
+ authProvider?: 'sso';
24
31
  }
25
32
  export interface CurrentUserPublicResponse {
26
33
  id: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.69-alpha.26",
4
+ "version": "1.0.69-alpha.28",
5
5
  "description": "Spotto's API Contract type definitions",
6
6
  "main": "./dist/index.js",
7
7
  "files": [
@@ -18,5 +18,5 @@
18
18
  "@types/geojson": "^7946.0.11",
19
19
  "shx": "^0.3.4"
20
20
  },
21
- "gitHead": "c9d1c5e6716171c2910b310108a9a55d513fb4f2"
21
+ "gitHead": "3ea851678291574d1641ad5cb7f43455b738d29c"
22
22
  }