@habeetat/cli 0.1.0-dev.20260606080502.37cebd8 → 0.1.0-dev.20260618151449.8ee92f3
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/dist/bin.js +16 -0
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -13175,6 +13175,15 @@ VALUES ('default', 'nhp-backend-scope', 'nhp-backend-resource', 'nhp:all', 'Full
|
|
|
13175
13175
|
ON CONFLICT (id) DO UPDATE
|
|
13176
13176
|
SET resource_id = EXCLUDED.resource_id, name = EXCLUDED.name, description = EXCLUDED.description;
|
|
13177
13177
|
|
|
13178
|
+
-- Group scopes (enforced by the SDK ScopeGuard on /sdk/v1/groups). Without
|
|
13179
|
+
-- these the groups:read scope-gate is unsatisfiable for any client.
|
|
13180
|
+
INSERT INTO scopes (tenant_id, id, resource_id, name, description)
|
|
13181
|
+
VALUES
|
|
13182
|
+
('default', 'nhp-scope-groups-read', 'nhp-backend-resource', 'groups:read', 'Read tenant groups via the SDK'),
|
|
13183
|
+
('default', 'nhp-scope-groups-write', 'nhp-backend-resource', 'groups:write', 'Manage tenant groups via the SDK')
|
|
13184
|
+
ON CONFLICT (id) DO UPDATE
|
|
13185
|
+
SET resource_id = EXCLUDED.resource_id, name = EXCLUDED.name, description = EXCLUDED.description;
|
|
13186
|
+
|
|
13178
13187
|
-- Launcher SPA
|
|
13179
13188
|
INSERT INTO applications (tenant_id, id, name, secret, description, type, oidc_client_metadata, custom_client_metadata, is_third_party)
|
|
13180
13189
|
VALUES (
|
|
@@ -13238,6 +13247,13 @@ BEGIN
|
|
|
13238
13247
|
INSERT INTO applications_roles (tenant_id, id, application_id, role_id)
|
|
13239
13248
|
VALUES ('default', 'ar_m2m_${m2mAppId}', '${m2mAppId}', v_role_id)
|
|
13240
13249
|
ON CONFLICT DO NOTHING;
|
|
13250
|
+
|
|
13251
|
+
-- Grant groups:read to the backend M2M client so SDK consumers reusing it
|
|
13252
|
+
-- can call /sdk/v1/groups. (Per-app scopes via app manifests come later
|
|
13253
|
+
-- with vendor onboarding.)
|
|
13254
|
+
INSERT INTO roles_scopes (tenant_id, id, role_id, scope_id)
|
|
13255
|
+
VALUES ('default', 'rs_m2m_groups_read', v_role_id, 'nhp-scope-groups-read')
|
|
13256
|
+
ON CONFLICT DO NOTHING;
|
|
13241
13257
|
END $$;
|
|
13242
13258
|
|
|
13243
13259
|
-- Update admin-console redirect URIs
|