@pontive/pontkit-core 1.7.7 → 1.7.9
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.
- package/README.md +1 -1
- package/catalog.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/context-root.d.ts +1 -0
- package/dist/index.js +380 -376
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2371 -2338
- package/dist/index.mjs.map +1 -1
- package/dist/service/http/organization/roles.d.ts +5 -0
- package/dist/types/core/index.d.ts +3 -3
- package/dist/types/service/http/roles/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { GetRolesParams, RolesResponse } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* The organization resource type: an organization's roles and memberships are
|
|
4
|
+
* scoped to it (pontive-spec 28 §3).
|
|
5
|
+
*/
|
|
6
|
+
export declare const ORGANIZATION_RESOURCE_TYPE = "org";
|
|
2
7
|
export declare function getRoles(params?: GetRolesParams): Promise<RolesResponse>;
|
|
@@ -4,11 +4,11 @@ export interface EnvConfig {
|
|
|
4
4
|
* carrying a path — see `resolveAuthBaseUrl`.
|
|
5
5
|
*
|
|
6
6
|
* - `"tenant.idp.us.pontive.app"` — the auth server on its own hostname.
|
|
7
|
-
* - `"/
|
|
7
|
+
* - `"/__pontive"` — the endpoints proxied under a path on this page's origin,
|
|
8
8
|
* which is what makes a production app same-site with its auth server
|
|
9
|
-
* without a DNS change. The app rewrites `/
|
|
9
|
+
* without a DNS change. The app rewrites `/__pontive/*` onto the auth host and
|
|
10
10
|
* every cookie the server sets lands host-only on the app's own domain.
|
|
11
|
-
* - `"https://app.acme.com/
|
|
11
|
+
* - `"https://app.acme.com/__pontive"` — the same, named in full.
|
|
12
12
|
*
|
|
13
13
|
* A trailing slash, a query and a fragment are all stripped; anything that is
|
|
14
14
|
* none of the three shapes above throws at configure time.
|
|
@@ -11,14 +11,14 @@ export interface GetRolesParams {
|
|
|
11
11
|
order?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface RoleInheritance {
|
|
14
|
+
parent_type: string;
|
|
14
15
|
parent_role_keys: string[];
|
|
15
|
-
relation: string;
|
|
16
16
|
}
|
|
17
17
|
export interface Role {
|
|
18
18
|
assignment_count: number;
|
|
19
19
|
created_at: number;
|
|
20
20
|
description: string;
|
|
21
|
-
inheritance: RoleInheritance;
|
|
21
|
+
inheritance: RoleInheritance[];
|
|
22
22
|
key: string;
|
|
23
23
|
metadata: Record<string, any>;
|
|
24
24
|
name: string;
|