@betterportal/config-manager 10.1.64 → 10.1.66
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/lib/.bsb/clients/service-betterportal-config-manager.d.ts +1 -1
- package/lib/.bsb/clients/service-betterportal-config-manager.js +1 -1
- package/lib/bp-contracts/org.betterportal.config-manager.json +198 -14
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js +9 -4
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/adminApi.d.ts +13 -4
- package/lib/plugins/service-betterportal-config-manager/adminApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/adminApi.js +37 -31
- package/lib/plugins/service-betterportal-config-manager/adminApi.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts +140 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js +103 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.js +4 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts +43 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js +67 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.embedded/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.embedded/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts +32 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js +31 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts +60 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js +47 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts +48 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js +39 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts +114 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js +75 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.js +5 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts +176 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js +114 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts +101 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js +92 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts +13 -4
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js +6 -6
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/fragmentsEditor.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/fragmentsEditor.js +1 -0
- package/lib/plugins/service-betterportal-config-manager/fragmentsEditor.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/index.js +25 -4
- package/lib/plugins/service-betterportal-config-manager/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/menuEditor.js +2 -2
- package/lib/plugins/service-betterportal-config-manager/menuEditor.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/storage/core.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/storage/core.js +67 -2
- package/lib/plugins/service-betterportal-config-manager/storage/core.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts +22 -3
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.js +164 -22
- package/lib/plugins/service-betterportal-config-manager/syncApi.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/{bp-routes/tenants/route.impl.d.ts → tenantManagement.d.ts} +5 -5
- package/lib/plugins/service-betterportal-config-manager/tenantManagement.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/{bp-routes/tenants/route.impl.js → tenantManagement.js} +8 -7
- package/lib/plugins/service-betterportal-config-manager/tenantManagement.js.map +1 -0
- package/lib/schemas/service-betterportal-config-manager.json +1 -1
- package/lib/schemas/service-betterportal-config-manager.plugin.json +1 -1
- package/package.json +5 -5
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts +0 -118
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js +0 -91
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts +0 -43
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js +0 -68
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts +0 -32
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js +0 -32
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts +0 -60
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js +0 -48
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts +0 -48
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js +0 -40
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts +0 -104
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js +0 -71
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts +0 -176
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js +0 -115
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts +0 -89
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js +0 -93
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js.map +0 -1
|
@@ -1,5 +1,142 @@
|
|
|
1
1
|
export declare const operationId = "admin.auth.view";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import * as av from "anyvali";
|
|
3
|
+
import type { Infer } from "anyvali";
|
|
4
|
+
import { type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
|
|
5
|
+
export declare const QuerySchema: av.ObjectSchema<{
|
|
6
|
+
appId: av.OptionalSchema<av.StringSchema>;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const HeadersSchema: av.ObjectSchema<{}>;
|
|
9
|
+
export declare const RequestSchema: av.ObjectSchema<{}>;
|
|
10
|
+
export declare const ResponseSchema: av.ObjectSchema<{
|
|
11
|
+
title: av.StringSchema;
|
|
12
|
+
apps: av.ArraySchema<av.ObjectSchema<{
|
|
13
|
+
id: av.StringSchema;
|
|
14
|
+
tenantId: av.StringSchema;
|
|
15
|
+
title: av.StringSchema;
|
|
16
|
+
}>>;
|
|
17
|
+
selectedAppId: av.OptionalSchema<av.StringSchema>;
|
|
18
|
+
selectedTenantId: av.OptionalSchema<av.StringSchema>;
|
|
19
|
+
authConfigured: av.BoolSchema;
|
|
20
|
+
servicePermissions: av.ArraySchema<av.ObjectSchema<{
|
|
21
|
+
serviceId: av.StringSchema;
|
|
22
|
+
title: av.StringSchema;
|
|
23
|
+
hostname: av.StringSchema;
|
|
24
|
+
manifestVersion: av.OptionalSchema<av.StringSchema>;
|
|
25
|
+
views: av.ArraySchema<av.ObjectSchema<{
|
|
26
|
+
viewId: av.StringSchema;
|
|
27
|
+
path: av.StringSchema;
|
|
28
|
+
operations: av.ArraySchema<av.ObjectSchema<{
|
|
29
|
+
operationId: av.StringSchema;
|
|
30
|
+
method: av.StringSchema;
|
|
31
|
+
role: av.OptionalSchema<av.StringSchema>;
|
|
32
|
+
requiredPermissions: av.ArraySchema<av.ObjectSchema<{
|
|
33
|
+
serviceId: av.StringSchema;
|
|
34
|
+
viewId: av.StringSchema;
|
|
35
|
+
permissions: av.ArraySchema<av.StringSchema>;
|
|
36
|
+
}>>;
|
|
37
|
+
}>>;
|
|
38
|
+
}>>;
|
|
39
|
+
}>>;
|
|
40
|
+
currentRoles: av.ArraySchema<av.ObjectSchema<{
|
|
41
|
+
id: av.StringSchema;
|
|
42
|
+
title: av.StringSchema;
|
|
43
|
+
description: av.OptionalSchema<av.StringSchema>;
|
|
44
|
+
permissions: av.ArraySchema<av.ObjectSchema<{
|
|
45
|
+
serviceId: av.StringSchema;
|
|
46
|
+
viewId: av.StringSchema;
|
|
47
|
+
permissions: av.ArraySchema<av.EnumSchema<readonly ["read", "create", "update", "delete"]>>;
|
|
48
|
+
}>>;
|
|
49
|
+
}>>;
|
|
50
|
+
derivedPermissionGrants: av.ArraySchema<av.ObjectSchema<{
|
|
51
|
+
roleId: av.StringSchema;
|
|
52
|
+
serviceId: av.StringSchema;
|
|
53
|
+
viewId: av.StringSchema;
|
|
54
|
+
permissions: av.ArraySchema<av.EnumSchema<readonly ["read", "create", "update", "delete"]>>;
|
|
55
|
+
requiredBy: av.ArraySchema<av.ObjectSchema<{
|
|
56
|
+
serviceId: av.StringSchema;
|
|
57
|
+
operationId: av.StringSchema;
|
|
58
|
+
method: av.StringSchema;
|
|
59
|
+
}>>;
|
|
60
|
+
}>>;
|
|
61
|
+
externalRoleSync: av.OptionalSchema<av.ObjectSchema<{
|
|
62
|
+
serviceTitle: av.StringSchema;
|
|
63
|
+
fragmentUrl: av.StringSchema;
|
|
64
|
+
}>>;
|
|
65
|
+
managedRoleSync: av.OptionalSchema<av.ObjectSchema<{
|
|
66
|
+
serviceTitle: av.StringSchema;
|
|
67
|
+
syncUrl: av.StringSchema;
|
|
68
|
+
}>>;
|
|
69
|
+
adminApiBase: av.StringSchema;
|
|
70
|
+
serviceBaseUrl: av.OptionalSchema<av.StringSchema>;
|
|
71
|
+
}>;
|
|
72
|
+
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
73
|
+
export declare const title = "Permission Manager";
|
|
74
|
+
export declare const description = "Define role -> permission grants per app. Services advertise per-view permission requirements via their manifest.";
|
|
75
|
+
export declare const auth: ApiAuthRequirement;
|
|
76
|
+
export declare const cacheHints: CacheHints;
|
|
77
|
+
declare const _default: import("@betterportal/framework").RouteHandler<Record<string, string>, {
|
|
78
|
+
appId?: string | undefined;
|
|
79
|
+
}, Record<string, string>, Record<string, unknown>, {
|
|
80
|
+
title: string;
|
|
81
|
+
apps: {
|
|
82
|
+
id: string;
|
|
83
|
+
tenantId: string;
|
|
84
|
+
title: string;
|
|
85
|
+
}[];
|
|
86
|
+
authConfigured: boolean;
|
|
87
|
+
servicePermissions: {
|
|
88
|
+
serviceId: string;
|
|
89
|
+
title: string;
|
|
90
|
+
hostname: string;
|
|
91
|
+
views: {
|
|
92
|
+
viewId: string;
|
|
93
|
+
path: string;
|
|
94
|
+
operations: {
|
|
95
|
+
operationId: string;
|
|
96
|
+
method: string;
|
|
97
|
+
requiredPermissions: {
|
|
98
|
+
serviceId: string;
|
|
99
|
+
viewId: string;
|
|
100
|
+
permissions: string[];
|
|
101
|
+
}[];
|
|
102
|
+
role?: string | undefined;
|
|
103
|
+
}[];
|
|
104
|
+
}[];
|
|
105
|
+
manifestVersion?: string | undefined;
|
|
106
|
+
}[];
|
|
107
|
+
currentRoles: {
|
|
108
|
+
id: string;
|
|
109
|
+
title: string;
|
|
110
|
+
permissions: {
|
|
111
|
+
serviceId: string;
|
|
112
|
+
viewId: string;
|
|
113
|
+
permissions: ("read" | "create" | "update" | "delete")[];
|
|
114
|
+
}[];
|
|
115
|
+
description?: string | undefined;
|
|
116
|
+
}[];
|
|
117
|
+
derivedPermissionGrants: {
|
|
118
|
+
roleId: string;
|
|
119
|
+
serviceId: string;
|
|
120
|
+
viewId: string;
|
|
121
|
+
permissions: ("read" | "create" | "update" | "delete")[];
|
|
122
|
+
requiredBy: {
|
|
123
|
+
serviceId: string;
|
|
124
|
+
operationId: string;
|
|
125
|
+
method: string;
|
|
126
|
+
}[];
|
|
127
|
+
}[];
|
|
128
|
+
adminApiBase: string;
|
|
129
|
+
selectedAppId?: string | undefined;
|
|
130
|
+
selectedTenantId?: string | undefined;
|
|
131
|
+
externalRoleSync?: {
|
|
132
|
+
serviceTitle: string;
|
|
133
|
+
fragmentUrl: string;
|
|
134
|
+
} | undefined;
|
|
135
|
+
managedRoleSync?: {
|
|
136
|
+
serviceTitle: string;
|
|
137
|
+
syncUrl: string;
|
|
138
|
+
} | undefined;
|
|
139
|
+
serviceBaseUrl?: string | undefined;
|
|
140
|
+
}, unknown, Record<string, unknown>>;
|
|
141
|
+
export default _default;
|
|
5
142
|
//# sourceMappingURL=GET.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/GET.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/GET.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAoEjC,eAAO,MAAM,WAAW;;EAEtB,CAAC;AAEH,eAAO,MAAM,aAAa,qBAAgB,CAAC;AAE3C,eAAO,MAAM,aAAa,qBAAgB,CAAC;AAE3C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAazB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,uBAAuB,CAAC;AAC1C,eAAO,MAAM,WAAW,sHAAsH,CAAC;AAE/I,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAGxB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAcE"}
|
|
@@ -1,5 +1,105 @@
|
|
|
1
1
|
export const operationId = "admin.auth.view";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import * as av from "anyvali";
|
|
3
|
+
import { createHandler } from "@betterportal/framework";
|
|
4
|
+
const PermissionActionSchema = av.enum_(["read", "create", "update", "delete"]);
|
|
5
|
+
const ViewWithPermsSchema = av.object({
|
|
6
|
+
viewId: av.string().minLength(1),
|
|
7
|
+
path: av.string().minLength(1),
|
|
8
|
+
operations: av.array(av.object({
|
|
9
|
+
operationId: av.string().minLength(1),
|
|
10
|
+
method: av.string().minLength(1),
|
|
11
|
+
role: av.optional(av.string()),
|
|
12
|
+
requiredPermissions: av.array(av.object({
|
|
13
|
+
serviceId: av.string().minLength(1),
|
|
14
|
+
viewId: av.string().minLength(1),
|
|
15
|
+
permissions: av.array(av.string())
|
|
16
|
+
})).default([])
|
|
17
|
+
})).default([])
|
|
18
|
+
});
|
|
19
|
+
const ServiceWithViewsSchema = av.object({
|
|
20
|
+
serviceId: av.string().minLength(1),
|
|
21
|
+
title: av.string().minLength(1),
|
|
22
|
+
hostname: av.string(),
|
|
23
|
+
manifestVersion: av.optional(av.string()),
|
|
24
|
+
views: av.array(ViewWithPermsSchema).default([])
|
|
25
|
+
});
|
|
26
|
+
const RolePermissionGrantSchema = av.object({
|
|
27
|
+
serviceId: av.string().minLength(1),
|
|
28
|
+
viewId: av.string().minLength(1),
|
|
29
|
+
permissions: av.array(PermissionActionSchema).minItems(1)
|
|
30
|
+
});
|
|
31
|
+
const AppRoleSchema = av.object({
|
|
32
|
+
id: av.string().minLength(1),
|
|
33
|
+
title: av.string().minLength(1),
|
|
34
|
+
description: av.optional(av.string()),
|
|
35
|
+
permissions: av.array(RolePermissionGrantSchema).default([])
|
|
36
|
+
});
|
|
37
|
+
const DerivedPermissionGrantSchema = av.object({
|
|
38
|
+
roleId: av.string().minLength(1),
|
|
39
|
+
serviceId: av.string().minLength(1),
|
|
40
|
+
viewId: av.string().minLength(1),
|
|
41
|
+
permissions: av.array(PermissionActionSchema).minItems(1),
|
|
42
|
+
requiredBy: av.array(av.object({
|
|
43
|
+
serviceId: av.string().minLength(1),
|
|
44
|
+
operationId: av.string().minLength(1),
|
|
45
|
+
method: av.string().minLength(1)
|
|
46
|
+
})).minItems(1)
|
|
47
|
+
});
|
|
48
|
+
const AppSummarySchema = av.object({
|
|
49
|
+
id: av.string().minLength(1),
|
|
50
|
+
tenantId: av.string().minLength(1),
|
|
51
|
+
title: av.string().minLength(1)
|
|
52
|
+
});
|
|
53
|
+
const ExternalRoleSyncSchema = av.object({
|
|
54
|
+
serviceTitle: av.string().minLength(1),
|
|
55
|
+
fragmentUrl: av.string().minLength(1)
|
|
56
|
+
});
|
|
57
|
+
const ManagedRoleSyncSchema = av.object({
|
|
58
|
+
serviceTitle: av.string().minLength(1),
|
|
59
|
+
syncUrl: av.string().minLength(1)
|
|
60
|
+
});
|
|
61
|
+
export const QuerySchema = av.object({
|
|
62
|
+
appId: av.optional(av.string().minLength(1))
|
|
63
|
+
});
|
|
64
|
+
export const HeadersSchema = av.object({});
|
|
65
|
+
export const RequestSchema = av.object({});
|
|
66
|
+
export const ResponseSchema = av.object({
|
|
67
|
+
title: av.string().minLength(1),
|
|
68
|
+
apps: av.array(AppSummarySchema).default([]),
|
|
69
|
+
selectedAppId: av.optional(av.string()),
|
|
70
|
+
selectedTenantId: av.optional(av.string()),
|
|
71
|
+
authConfigured: av.bool().default(false),
|
|
72
|
+
servicePermissions: av.array(ServiceWithViewsSchema).default([]),
|
|
73
|
+
currentRoles: av.array(AppRoleSchema).default([]),
|
|
74
|
+
derivedPermissionGrants: av.array(DerivedPermissionGrantSchema).default([]),
|
|
75
|
+
externalRoleSync: av.optional(ExternalRoleSyncSchema),
|
|
76
|
+
managedRoleSync: av.optional(ManagedRoleSyncSchema),
|
|
77
|
+
adminApiBase: av.string().default("/.well-known/bp/admin"),
|
|
78
|
+
serviceBaseUrl: av.optional(av.string())
|
|
79
|
+
});
|
|
80
|
+
export const title = "Permission Manager";
|
|
81
|
+
export const description = "Define role -> permission grants per app. Services advertise per-view permission requirements via their manifest.";
|
|
82
|
+
export const auth = {
|
|
83
|
+
required: true,
|
|
84
|
+
permissions: [
|
|
85
|
+
{ serviceId: "org.betterportal.config-manager", viewId: "auth.index", permissions: ["read", "create", "update", "delete"] }
|
|
86
|
+
]
|
|
87
|
+
};
|
|
88
|
+
export const cacheHints = {
|
|
89
|
+
ttlSeconds: 0,
|
|
90
|
+
varyBy: ["accept", "origin"]
|
|
91
|
+
};
|
|
92
|
+
export default createHandler({ response: ResponseSchema, query: QuerySchema }, (ctx) => {
|
|
93
|
+
if (ctx.responseModel)
|
|
94
|
+
return ctx.responseModel;
|
|
95
|
+
return {
|
|
96
|
+
title: "Permission Manager",
|
|
97
|
+
apps: [],
|
|
98
|
+
authConfigured: false,
|
|
99
|
+
servicePermissions: [],
|
|
100
|
+
currentRoles: [],
|
|
101
|
+
derivedPermissionGrants: [],
|
|
102
|
+
adminApiBase: "/.well-known/bp/admin"
|
|
103
|
+
};
|
|
104
|
+
});
|
|
5
105
|
//# sourceMappingURL=GET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/GET.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/GET.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAGd,MAAM,yBAAyB,CAAC;AAEjC,MAAM,sBAAsB,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC,CAAC;AAEzF,MAAM,mBAAmB,GAAG,EAAE,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAChC,IAAI,EAAE,EAAE,CAAC,MAAM,E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MAAM,UAAU,GAAe;IACpC,UAAU,EAAE,CAAC;IACb,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B,CAAC;AAEF,eAAe,aAAa,CAC1B,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,EAChD,CAAC,GAAG,EAAE,EAAE;IACN,IAAI,GAAG,CAAC,aAAa;QAAE,OAAO,GAAG,CAAC,aAA6B,CAAC;IAChE,OAAO;QACL,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,EAAE;QACR,cAAc,EAAE,KAAK;QACrB,kBAAkB,EAAE,EAAE;QACtB,YAAY,EAAE,EAAE;QAChB,uBAAuB,EAAE,EAAE;QAC3B,YAAY,EAAE,uBAAuB;KACtC,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
2
|
-
import type { ResponseData } from "../
|
|
2
|
+
import type { ResponseData } from "../GET.js";
|
|
3
3
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
4
4
|
//# sourceMappingURL=GET.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAkJ9C,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAyUzD"}
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.js
CHANGED
|
@@ -150,6 +150,9 @@ export function render(data) {
|
|
|
150
150
|
const selectedApp = data.apps.find((a) => a.id === data.selectedAppId);
|
|
151
151
|
const externalRoleSync = data.externalRoleSync;
|
|
152
152
|
const managedRoleSync = data.managedRoleSync;
|
|
153
|
-
return (_jsxs("div", { class: "container-fluid px-0", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-center mb-4", children: [_jsxs("div", { children: [_jsx("h2", { class: "mb-1", children: data.title }), _jsx("p", { class: "text-secondary mb-0", children: "Define roles + permission grants per app. Services advertise per-view requirements via manifest." })] }), selectedApp && data.authConfigured && !externalRoleSync ? (_jsx("button", { class: "btn btn-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-add-role-panel", children: "+ Add Role" })) : null] }), _jsxs("div", { class: "mb-4", children: [_jsx("label", { class: "form-label", children: "App" }), _jsxs("select", { class: "form-select", id: "bp-app-select", name: "appId", "hx-get": authPath, "hx-trigger": "change", "hx-target": "#bp-main", "hx-swap": "innerHTML", "hx-push-url": "true", children: [_jsx("option", { value: "", children: "Select app..." }), data.apps.map((a) => (_jsx("option", { value: a.id, selected: a.id === data.selectedAppId ? true : undefined, children: a.title })))] })] }), !selectedApp ? (_jsxs("div", { class: "alert alert-secondary", children: ["Select an app to manage its roles. No apps? Create one in ", _jsx("strong", { children: "Tenants & Apps" }), "."] })) : !data.authConfigured ? (_jsx("div", { class: "alert alert-warning", children: "Configure an auth provider for this app before creating roles." })) : externalRoleSync ? (_jsxs("div", { children: [_jsxs("div", { class: "alert alert-info", children: ["Roles for this app are managed by ", externalRoleSync.serviceTitle, ". Config Manager mirrors those roles for BP runtime permission checks."] }), _jsx("div", { "hx-get": externalRoleSync.fragmentUrl, "hx-trigger": "load", "hx-target": "this", "hx-swap": "innerHTML", children: _jsx("div", { class: "text-secondary small", children: "Loading WorkOS role sync status..." }) })] })) : (_jsxs("div", { children: [managedRoleSync ? (_jsxs("div", { class: "alert alert-info d-flex justify-content-between align-items-center gap-3", children: [_jsxs("span", { children: ["Roles are managed by BetterPortal and synced to ", managedRoleSync.serviceTitle, "."] }), _jsx("button", { type: "button", class: "btn btn-sm btn-outline-primary", "hx-post": managedRoleSync.syncUrl, "hx-swap": "none", children: "Sync now" }), _jsx("div", { hidden: true, "hx-post": managedRoleSync.syncUrl, "hx-trigger": "load", "hx-swap": "none" })] })) : null, _jsxs("div", { class: "row g-4", children: [_jsx("div", { class: "col-lg-7", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsxs("h5", { class: "card-title mb-3", children: ["Roles for ", selectedApp.title, " (", data.currentRoles.length, ")"] }), data.currentRoles.length === 0 ? (_jsx("div", { class: "alert alert-secondary mb-0", children: "No roles defined. Click \"Add Role\" to create one." })) : (_jsx("div", { class: "table-responsive", children: _jsxs("table", { class: "table table-sm align-middle", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "ID" }), _jsx("th", { children: "Title" }), _jsx("th", { children: "Grants" }), _jsx("th", {})] }) }), _jsx("tbody", { children: data.currentRoles.map((r) => (_jsxs("tr", { children: [_jsx("td", { class: "font-monospace small", children: r.id }), _jsxs("td", { children: [_jsx("div", { children: r.title }), r.description ? _jsx("div", { class: "small text-secondary", children: r.description }) : null] }), _jsx("td", { children: _jsxs("span", { class: "badge text-bg-secondary", children: [r.permissions.length, " grant", r.permissions.length === 1 ? "" : "s"] }) }), _jsx("td", { children: _jsxs("div", { class: "btn-group btn-group-sm", children: [_jsx("button", { class: "btn btn-outline-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-edit-role-panel", "data-bp-edit-role": JSON.stringify(r), children: "Edit" }), _jsx("button", { class: "btn btn-outline-danger", "hx-delete": `${apiBase}/apps/${selectedApp.id}/auth/roles/${r.id}`, "hx-confirm": `Delete role ${r.id}?`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: "x" })] }) })] }))) })] }) }))] }) }) }), _jsx("div", { class: "col-lg-5", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsx("h5", { class: "card-title mb-3", children: "Available services & views" }), data.servicePermissions.length === 0 ? (_jsx("div", { class: "text-secondary small", children: "No services registered yet." })) : (data.servicePermissions.map((s) => (_jsxs("div", { class: "mb-3", children: [_jsx("div", { class: "fw-semibold", children: s.title }), _jsxs("div", { class: "font-monospace small text-secondary mb-1", children: [s.serviceId, s.manifestVersion ? ` - v${s.manifestVersion}` : " - manifest pending"] }), s.views.length === 0 ? (_jsx("div", { class: "small text-secondary fst-italic", children: "No views in manifest cache." })) : (_jsx("ul", { class: "list-unstyled small mb-0", children: s.views.map((v) => (_jsxs("li", { class: "ms-2", children: [_jsx("code", { children: v.viewId }), _jsxs("span", { class: "text-secondary", children: [" ", v.path] }), _jsx("div", { class: "ms-3", children: v.operations.map((operation) => (_jsxs("div", { children: [_jsx("code", { children: operation.operationId }), _jsx("span", { class: "badge text-bg-secondary ms-1", children: operation.method }), operation.role ? _jsx("span", { class: "badge text-bg-info ms-1", children: operation.role }) : null] }))) })] }))) }))] }))))] }) }) })] })] })), selectedApp && data.authConfigured && !externalRoleSync ? (_jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-add-role-panel", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Add Role" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-add-role-form", "hx-post": `${apiBase}/apps/${selectedApp.id}/auth/roles`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Role ID" }), _jsx("input", { type: "text", class: "form-control font-monospace", name: "id", placeholder: "admin", pattern: "[A-Za-z0-9][A-Za-z0-9._:-]{0,63}", required: true }), _jsx("div", { class: "form-text", children: "Must match the role value emitted by the auth provider. Reserved ids cannot be created here." })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", placeholder: "Administrator", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Description (optional)" }), _jsx("textarea", { class: "form-control", name: "description", rows: 2 })] }), _jsx("div", { class: "alert alert-danger d-none", id: "bp-add-role-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Create Role" }), _jsx("p", { class: "text-secondary small mt-2 mb-0", children: "Grants are set via the Edit panel after creation." })] }) })] })) : null, selectedApp && data.authConfigured && !externalRoleSync ? (_jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-edit-role-panel", style: "--bs-offcanvas-width: 600px;", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Edit Role" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-edit-role-form", "data-bp-config": "rewrite=false", "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("input", { type: "hidden", name: "roleId" }), _jsx("input", { type: "hidden", name: "grant", value: "" }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Description" }), _jsx("textarea", { class: "form-control", name: "description", rows: 2 })] }), _jsx("h6", { class: "mt-4 mb-2", children: "Permission grants" }), _jsx("p", { class: "small text-secondary", children: "Choose the actions this role grants for each service view." }), data.servicePermissions.length === 0 || data.servicePermissions.every((s) => s.views.length === 0) ? (_jsx("div", { class: "alert alert-secondary small mb-3", children: "No services or views in manifest cache yet. Services will appear here once they push their manifest (next poll cycle)." })) : (_jsxs("div", { children: [_jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label small", for: "bp-global-permission-bulk", children: "Bulk permissions" }), _jsxs("select", { class: "form-select form-select-sm", id: "bp-global-permission-bulk", "data-bp-global-permission-bulk": "", children: [_jsx("option", { value: "", children: "- Change all service permissions -" }), PERMISSION_OPTIONS.map(([value, label]) => (_jsx("option", { value: String(value), children: label })))] })] }), data.servicePermissions.map((s) => (s.views.length === 0 ? null : (_jsxs("div", { class: "mb-3", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-center gap-2 mb-2", children: [_jsxs("div", { children: [_jsx("div", { class: "fw-semibold small", children: s.title }), _jsx("div", { class: "font-monospace text-secondary small", children: s.serviceId })] }), _jsxs("select", { class: "form-select form-select-sm w-auto", "aria-label": `Change all permissions for ${s.title}`, "data-bp-service-permission-bulk": "", "data-bp-service-id": s.serviceId, children: [_jsx("option", { value: "", children: "- Change all in this service -" }), PERMISSION_OPTIONS.map(([value, label]) => (_jsx("option", { value: String(value), children: label })))] })] }), _jsx("div", { class: "table-responsive", children: _jsxs("table", { class: "table table-sm align-middle mb-0", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { class: "small", children: "View" }), _jsx("th", { class: "small", children: "Permissions" })] }) }), _jsx("tbody", { children: s.views.map((v) => (_jsxs("tr", { "data-bp-permission-row": "", children: [_jsxs("td", { class: "small", children: [_jsx("div", { class: "font-monospace", children: v.viewId }), v.operations.map((operation) => (_jsxs("div", { class: "text-secondary", children: [_jsx("code", { children: operation.operationId }), " \u00B7 ", operation.method] })))] }), _jsxs("td", { children: [_jsx("select", { class: "form-select form-select-sm", "aria-label": `Permissions for ${v.viewId}`, "data-bp-permission-select": "", "data-bp-service-id": s.serviceId, "data-bp-view-id": v.viewId, children: PERMISSION_OPTIONS.map(([value, label]) => (_jsx("option", { value: String(value), children: label }))) }), _jsx("span", { "data-bp-grant-inputs": "" })] })] }))) })] }) })] }))))] })), _jsx("div", { class: "alert alert-danger d-none", id: "bp-edit-role-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Save Role" })] }) })] })) : null, _jsx("script", { children: permsScript(apiBase, serviceUrl, data.selectedAppId) })] }));
|
|
153
|
+
return (_jsxs("div", { class: "container-fluid px-0", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-center mb-4", children: [_jsxs("div", { children: [_jsx("h2", { class: "mb-1", children: data.title }), _jsx("p", { class: "text-secondary mb-0", children: "Define roles + permission grants per app. Services advertise per-view requirements via manifest." })] }), selectedApp && data.authConfigured && !externalRoleSync ? (_jsx("button", { class: "btn btn-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-add-role-panel", children: "+ Add Role" })) : null] }), _jsxs("div", { class: "mb-4", children: [_jsx("label", { class: "form-label", children: "App" }), _jsxs("select", { class: "form-select", id: "bp-app-select", name: "appId", "hx-get": authPath, "hx-trigger": "change", "hx-target": "#bp-main", "hx-swap": "innerHTML", "hx-push-url": "true", children: [_jsx("option", { value: "", children: "Select app..." }), data.apps.map((a) => (_jsx("option", { value: a.id, selected: a.id === data.selectedAppId ? true : undefined, children: a.title })))] })] }), !selectedApp ? (_jsxs("div", { class: "alert alert-secondary", children: ["Select an app to manage its roles. No apps? Create one in ", _jsx("strong", { children: "Tenants & Apps" }), "."] })) : !data.authConfigured ? (_jsx("div", { class: "alert alert-warning", children: "Configure an auth provider for this app before creating roles." })) : externalRoleSync ? (_jsxs("div", { children: [_jsxs("div", { class: "alert alert-info", children: ["Roles for this app are managed by ", externalRoleSync.serviceTitle, ". Config Manager mirrors those roles for BP runtime permission checks."] }), _jsx("div", { "hx-get": externalRoleSync.fragmentUrl, "hx-trigger": "load", "hx-target": "this", "hx-swap": "innerHTML", children: _jsx("div", { class: "text-secondary small", children: "Loading WorkOS role sync status..." }) })] })) : (_jsxs("div", { children: [managedRoleSync ? (_jsxs("div", { class: "alert alert-info d-flex justify-content-between align-items-center gap-3", children: [_jsxs("span", { children: ["Roles are managed by BetterPortal and synced to ", managedRoleSync.serviceTitle, "."] }), _jsx("button", { type: "button", class: "btn btn-sm btn-outline-primary", "hx-post": managedRoleSync.syncUrl, "hx-swap": "none", children: "Sync now" }), _jsx("div", { hidden: true, "hx-post": managedRoleSync.syncUrl, "hx-trigger": "load", "hx-swap": "none" })] })) : null, _jsxs("div", { class: "row g-4", children: [_jsx("div", { class: "col-lg-7", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsxs("h5", { class: "card-title mb-3", children: ["Roles for ", selectedApp.title, " (", data.currentRoles.length, ")"] }), data.currentRoles.length === 0 ? (_jsx("div", { class: "alert alert-secondary mb-0", children: "No roles defined. Click \"Add Role\" to create one." })) : (_jsx("div", { class: "table-responsive", children: _jsxs("table", { class: "table table-sm align-middle", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "ID" }), _jsx("th", { children: "Title" }), _jsx("th", { children: "Grants" }), _jsx("th", {})] }) }), _jsx("tbody", { children: data.currentRoles.map((r) => {
|
|
154
|
+
const derived = (data.derivedPermissionGrants ?? []).filter((grant) => grant.roleId === r.id);
|
|
155
|
+
return _jsxs("tr", { children: [_jsx("td", { class: "font-monospace small", children: r.id }), _jsxs("td", { children: [_jsx("div", { children: r.title }), r.description ? _jsx("div", { class: "small text-secondary", children: r.description }) : null] }), _jsxs("td", { children: [_jsxs("span", { class: "badge text-bg-secondary", children: [r.permissions.length, " explicit"] }), derived.length > 0 ? _jsxs("span", { class: "badge text-bg-info ms-1", children: [derived.length, " derived"] }) : null, derived.map((grant) => (_jsxs("div", { class: "small text-secondary mt-1", children: [grant.permissions.join(", "), " on ", _jsx("span", { class: "font-monospace", children: grant.viewId }), " via ", grant.requiredBy.map((source) => `${source.method} ${source.operationId}`).join(", ")] })))] }), _jsx("td", { children: _jsxs("div", { class: "btn-group btn-group-sm", children: [_jsx("button", { class: "btn btn-outline-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-edit-role-panel", "data-bp-edit-role": JSON.stringify(r), children: "Edit" }), _jsx("button", { class: "btn btn-outline-danger", "hx-delete": `${apiBase}/apps/${selectedApp.id}/auth/roles/${r.id}`, "hx-confirm": `Delete role ${r.id}?`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: "x" })] }) })] });
|
|
156
|
+
}) })] }) }))] }) }) }), _jsx("div", { class: "col-lg-5", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsx("h5", { class: "card-title mb-3", children: "Available services & views" }), data.servicePermissions.length === 0 ? (_jsx("div", { class: "text-secondary small", children: "No services registered yet." })) : (data.servicePermissions.map((s) => (_jsxs("div", { class: "mb-3", children: [_jsx("div", { class: "fw-semibold", children: s.title }), _jsxs("div", { class: "font-monospace small text-secondary mb-1", children: [s.serviceId, s.manifestVersion ? ` - v${s.manifestVersion}` : " - manifest pending"] }), s.views.length === 0 ? (_jsx("div", { class: "small text-secondary fst-italic", children: "No views in manifest cache." })) : (_jsx("ul", { class: "list-unstyled small mb-0", children: s.views.map((v) => (_jsxs("li", { class: "ms-2", children: [_jsx("code", { children: v.viewId }), _jsxs("span", { class: "text-secondary", children: [" ", v.path] }), _jsx("div", { class: "ms-3", children: v.operations.map((operation) => (_jsxs("div", { children: [_jsx("code", { children: operation.operationId }), _jsx("span", { class: "badge text-bg-secondary ms-1", children: operation.method }), operation.role ? _jsx("span", { class: "badge text-bg-info ms-1", children: operation.role }) : null] }))) })] }))) }))] }))))] }) }) })] })] })), selectedApp && data.authConfigured && !externalRoleSync ? (_jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-add-role-panel", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Add Role" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-add-role-form", "hx-post": `${apiBase}/apps/${selectedApp.id}/auth/roles`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Role ID" }), _jsx("input", { type: "text", class: "form-control font-monospace", name: "id", placeholder: "admin", pattern: "[A-Za-z0-9][A-Za-z0-9._:-]{0,63}", required: true }), _jsx("div", { class: "form-text", children: "Must match the role value emitted by the auth provider. Reserved ids cannot be created here." })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", placeholder: "Administrator", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Description (optional)" }), _jsx("textarea", { class: "form-control", name: "description", rows: 2 })] }), _jsx("div", { class: "alert alert-danger d-none", id: "bp-add-role-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Create Role" }), _jsx("p", { class: "text-secondary small mt-2 mb-0", children: "Grants are set via the Edit panel after creation." })] }) })] })) : null, selectedApp && data.authConfigured && !externalRoleSync ? (_jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-edit-role-panel", style: "--bs-offcanvas-width: 600px;", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Edit Role" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-edit-role-form", "data-bp-config": "rewrite=false", "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("input", { type: "hidden", name: "roleId" }), _jsx("input", { type: "hidden", name: "grant", value: "" }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Description" }), _jsx("textarea", { class: "form-control", name: "description", rows: 2 })] }), _jsx("h6", { class: "mt-4 mb-2", children: "Permission grants" }), _jsx("p", { class: "small text-secondary", children: "Choose the actions this role grants for each service view." }), data.servicePermissions.length === 0 || data.servicePermissions.every((s) => s.views.length === 0) ? (_jsx("div", { class: "alert alert-secondary small mb-3", children: "No services or views in manifest cache yet. Services will appear here once they push their manifest (next poll cycle)." })) : (_jsxs("div", { children: [_jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label small", for: "bp-global-permission-bulk", children: "Bulk permissions" }), _jsxs("select", { class: "form-select form-select-sm", id: "bp-global-permission-bulk", "data-bp-global-permission-bulk": "", children: [_jsx("option", { value: "", children: "- Change all service permissions -" }), PERMISSION_OPTIONS.map(([value, label]) => (_jsx("option", { value: String(value), children: label })))] })] }), data.servicePermissions.map((s) => (s.views.length === 0 ? null : (_jsxs("div", { class: "mb-3", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-center gap-2 mb-2", children: [_jsxs("div", { children: [_jsx("div", { class: "fw-semibold small", children: s.title }), _jsx("div", { class: "font-monospace text-secondary small", children: s.serviceId })] }), _jsxs("select", { class: "form-select form-select-sm w-auto", "aria-label": `Change all permissions for ${s.title}`, "data-bp-service-permission-bulk": "", "data-bp-service-id": s.serviceId, children: [_jsx("option", { value: "", children: "- Change all in this service -" }), PERMISSION_OPTIONS.map(([value, label]) => (_jsx("option", { value: String(value), children: label })))] })] }), _jsx("div", { class: "table-responsive", children: _jsxs("table", { class: "table table-sm align-middle mb-0", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { class: "small", children: "View" }), _jsx("th", { class: "small", children: "Permissions" })] }) }), _jsx("tbody", { children: s.views.map((v) => (_jsxs("tr", { "data-bp-permission-row": "", children: [_jsxs("td", { class: "small", children: [_jsx("div", { class: "font-monospace", children: v.viewId }), v.operations.map((operation) => (_jsxs("div", { class: "text-secondary", children: [_jsx("code", { children: operation.operationId }), " \u00B7 ", operation.method] })))] }), _jsxs("td", { children: [_jsx("select", { class: "form-select form-select-sm", "aria-label": `Permissions for ${v.viewId}`, "data-bp-permission-select": "", "data-bp-service-id": s.serviceId, "data-bp-view-id": v.viewId, children: PERMISSION_OPTIONS.map(([value, label]) => (_jsx("option", { value: String(value), children: label }))) }), _jsx("span", { "data-bp-grant-inputs": "" })] })] }))) })] }) })] }))))] })), _jsx("div", { class: "alert alert-danger d-none", id: "bp-edit-role-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Save Role" })] }) })] })) : null, _jsx("script", { children: permsScript(apiBase, serviceUrl, data.selectedAppId) })] }));
|
|
154
157
|
}
|
|
155
158
|
//# sourceMappingURL=GET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAI9B,SAAS,WAAW,CAAC,OAAe,EAAE,UAAkB,EAAE,aAAiC;IACzF,OAAO,EAAE,CAAC;sBACU,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;oBACzB,IAAI,CAAC,SAAS,CAAC,aAAa,IAAI,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuHhD,CAAC,CAAC;AACT,CAAC;AAED,MAAM,kBAAkB,GAAG;IACzB,CAAC,CAAC,EAAE,WAAW,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,QAAQ,CAAC;IACb,CAAC,CAAC,EAAE,QAAQ,CAAC;IACb,CAAC,CAAC,EAAE,QAAQ,CAAC;IACb,CAAC,CAAC,EAAE,eAAe,CAAC;IACpB,CAAC,CAAC,EAAE,eAAe,CAAC;IACpB,CAAC,CAA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,CAAC,CAAC,IAAI,EACV,eAAK,KAAK,EAAC,SAAS,aAElB,cAAK,KAAK,EAAC,UAAU,YACnB,cAAK,KAAK,EAAC,yBAAyB,YAClC,eAAK,KAAK,EAAC,WAAW,aACpB,cAAI,KAAK,EAAC,iBAAiB,2BAAY,WAAW,CAAC,KAAK,QAAI,IAAI,CAAC,YAAY,CAAC,MAAM,SAAO,EAC1F,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAChC,cAAK,KAAK,EAAC,4BAA4B,oEAAwD,CAChG,CAAC,CAAC,CAAC,CACF,cAAK,KAAK,EAAC,kBAAkB,YAC3B,iBAAO,KAAK,EAAC,6BAA6B,aACxC,0BAAO,yBAAI,8BAAW,EAAA,iCAAc,EAAA,kCAAe,EAAA,cAAS,IAAK,GAAQ,EACzE,0BACG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAI9B,SAAS,WAAW,CAAC,OAAe,EAAE,UAAkB,EAAE,aAAiC;IACzF,OAAO,EAAE,CAAC;sBACU,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;oBACzB,IAAI,CAAC,SAAS,CAAC,aAAa,IAAI,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuHhD,CAAC,CAAC;AACT,CAAC;AAED,MAAM,kBAAkB,GAAG;IACzB,CAAC,CAAC,EAAE,WAAW,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC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
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { title, description } from "./
|
|
1
|
+
export { title, description } from "./GET.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
export declare const operationId = "admin.config.view";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import * as av from "anyvali";
|
|
3
|
+
import type { Infer } from "anyvali";
|
|
4
|
+
import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
|
|
5
|
+
export declare const QuerySchema: av.ObjectSchema<{}>;
|
|
6
|
+
export declare const HeadersSchema: av.ObjectSchema<{}>;
|
|
7
|
+
export declare const RequestSchema: av.ObjectSchema<{}>;
|
|
8
|
+
export declare const ResponseSchema: av.ObjectSchema<{
|
|
9
|
+
title: av.StringSchema;
|
|
10
|
+
tenantId: av.StringSchema;
|
|
11
|
+
appId: av.StringSchema;
|
|
12
|
+
requestTimeoutMs: av.IntSchema;
|
|
13
|
+
services: av.ArraySchema<av.ObjectSchema<{
|
|
14
|
+
serviceId: av.StringSchema;
|
|
15
|
+
bindingId: av.StringSchema;
|
|
16
|
+
endpointBaseUrl: av.StringSchema;
|
|
17
|
+
deploymentMode: av.StringSchema;
|
|
18
|
+
healthUrl: av.StringSchema;
|
|
19
|
+
schemaUrl: av.StringSchema;
|
|
20
|
+
manifestUrl: av.StringSchema;
|
|
21
|
+
}>>;
|
|
22
|
+
}>;
|
|
23
|
+
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
24
|
+
export declare const title = "Config Manager";
|
|
25
|
+
export declare const description = "Admin service that discovers BetterPortal service config surfaces.";
|
|
26
|
+
export declare const auth: ApiAuthRequirement;
|
|
27
|
+
export declare const cacheHints: CacheHints;
|
|
28
|
+
export declare const demoScenarios: DemoScenario<ResponseData>[];
|
|
29
|
+
declare const _default: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
|
|
30
|
+
title: string;
|
|
31
|
+
tenantId: string;
|
|
32
|
+
appId: string;
|
|
33
|
+
requestTimeoutMs: number;
|
|
34
|
+
services: {
|
|
35
|
+
serviceId: string;
|
|
36
|
+
bindingId: string;
|
|
37
|
+
endpointBaseUrl: string;
|
|
38
|
+
deploymentMode: string;
|
|
39
|
+
healthUrl: string;
|
|
40
|
+
schemaUrl: string;
|
|
41
|
+
manifestUrl: string;
|
|
42
|
+
}[];
|
|
43
|
+
}, unknown, Record<string, unknown>>;
|
|
44
|
+
export default _default;
|
|
5
45
|
//# sourceMappingURL=GET.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/GET.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,sBAAsB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/GET.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,sBAAsB,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,WAAW,qBAAgB,CAAC;AAEzC,eAAO,MAAM,aAAa,qBAAgB,CAAC;AAE3C,eAAO,MAAM,aAAa,qBAAgB,CAAC;AAY3C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;EAMzB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAIxD,eAAO,MAAM,KAAK,mBAAmB,CAAC;AACtC,eAAO,MAAM,WAAW,uEAAuE,CAAC;AAEhG,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,EAarD,CAAC;;;;;;;;;;;;;;;;AAIF,wBAoBE"}
|
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
export const operationId = "admin.config.view";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import * as av from "anyvali";
|
|
3
|
+
import { createHandler } from "@betterportal/framework";
|
|
4
|
+
// -- Schemas ---------------------------------------------------------
|
|
5
|
+
export const QuerySchema = av.object({});
|
|
6
|
+
export const HeadersSchema = av.object({});
|
|
7
|
+
export const RequestSchema = av.object({});
|
|
8
|
+
const ConfigManagerServiceSchema = av.object({
|
|
9
|
+
serviceId: av.string().minLength(1),
|
|
10
|
+
bindingId: av.string().minLength(1),
|
|
11
|
+
endpointBaseUrl: av.string().format("url"),
|
|
12
|
+
deploymentMode: av.string().minLength(1),
|
|
13
|
+
healthUrl: av.string().format("url"),
|
|
14
|
+
schemaUrl: av.string().format("url"),
|
|
15
|
+
manifestUrl: av.string().format("url")
|
|
16
|
+
});
|
|
17
|
+
export const ResponseSchema = av.object({
|
|
18
|
+
title: av.string().minLength(1),
|
|
19
|
+
tenantId: av.string().minLength(1),
|
|
20
|
+
appId: av.string().minLength(1),
|
|
21
|
+
requestTimeoutMs: av.int().min(1),
|
|
22
|
+
services: av.array(ConfigManagerServiceSchema)
|
|
23
|
+
});
|
|
24
|
+
// -- Metadata --------------------------------------------------------
|
|
25
|
+
export const title = "Config Manager";
|
|
26
|
+
export const description = "Admin service that discovers BetterPortal service config surfaces.";
|
|
27
|
+
export const auth = {
|
|
28
|
+
required: true,
|
|
29
|
+
permissions: [
|
|
30
|
+
{ serviceId: "org.betterportal.config-manager", viewId: "config.index", permissions: ["read", "update"] }
|
|
31
|
+
]
|
|
32
|
+
};
|
|
33
|
+
export const cacheHints = {
|
|
34
|
+
ttlSeconds: 30,
|
|
35
|
+
varyBy: ["accept", "origin", "referer", ":origin", ":referer"]
|
|
36
|
+
};
|
|
37
|
+
export const demoScenarios = [
|
|
38
|
+
{
|
|
39
|
+
id: "default",
|
|
40
|
+
title: "Default Config Admin",
|
|
41
|
+
match: { query: {} },
|
|
42
|
+
response: {
|
|
43
|
+
title: "Config Manager",
|
|
44
|
+
tenantId: "tenant-main",
|
|
45
|
+
appId: "app-main",
|
|
46
|
+
requestTimeoutMs: 2000,
|
|
47
|
+
services: []
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
// -- Handler ---------------------------------------------------------
|
|
52
|
+
export default createHandler({ response: ResponseSchema }, (ctx) => {
|
|
53
|
+
// The actual data is injected by the main plugin via the handler context.
|
|
54
|
+
// This handler is a passthrough - the plugin builds the response model
|
|
55
|
+
// from config/bindings and attaches it to the event before the H3 adapter
|
|
56
|
+
// calls this handler.
|
|
57
|
+
if (ctx.responseModel) {
|
|
58
|
+
return ctx.responseModel;
|
|
59
|
+
}
|
|
60
|
+
// Fallback: return empty state (should not happen in normal flow)
|
|
61
|
+
return {
|
|
62
|
+
title: "Config Manager",
|
|
63
|
+
tenantId: "unknown",
|
|
64
|
+
appId: "unknown",
|
|
65
|
+
requestTimeoutMs: 2000,
|
|
66
|
+
services: []
|
|
67
|
+
};
|
|
68
|
+
});
|
|
5
69
|
//# sourceMappingURL=GET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/GET.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/GET.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,uEAAuE;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAE3C,MAAM,0BAA0B,GAAG,EAAE,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAA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EF,MAAM,CAAC,MAAM,UAAU,GAAe;IACpC,UAAU,EAAE,EAAE;IACd,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC;CAC/D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAiC;IACzD;QACE,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,sBAAsB;QAC7B,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QACpB,QAAQ,EAAE;YACR,KAAK,EAAE,gBAAgB;YACvB,QAAQ,EAAE,aAAa;YACvB,KAAK,EAAE,UAAU;YACjB,gBAAgB,EAAE,IAAI;YACtB,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC;AAEF,uEAAuE;AAEvE,eAAe,aAAa,CAC1B,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,CAAC,GAAG,EAAE,EAAE;IACN,0EAA0E;IAC1E,uEAAuE;IACvE,0EAA0E;IAC1E,sBAAsB;IACtB,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;QACtB,OAAO,GAAG,CAAC,aAA6B,CAAC;IAC3C,CAAC;IAED,kEAAkE;IAClE,OAAO;QACL,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,gBAAgB,EAAE,IAAI;QACtB,QAAQ,EAAE,EAAE;KACb,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
2
|
-
import type { ResponseData } from "../
|
|
2
|
+
import type { ResponseData } from "../GET.js";
|
|
3
3
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
4
4
|
//# sourceMappingURL=GET.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.bootstrap5/GET.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.bootstrap5/GET.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AA0D9C,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CA+DzD"}
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.embedded/GET.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
|
-
import type { ResponseData } from "../
|
|
3
|
+
import type { ResponseData } from "../GET.js";
|
|
4
4
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
5
5
|
//# sourceMappingURL=GET.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.embedded/GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.embedded/GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAezD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { title, description } from "./
|
|
1
|
+
export { title, description } from "./GET.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { title, description } from "./
|
|
1
|
+
export { title, description } from "./GET.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|