@devfellowship/access 0.3.0 → 0.3.1
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 +7 -5
- package/capabilities.json +739 -2058
- package/db-surface.json +18 -54
- package/dist/principal.d.ts +1 -1
- package/dist/principal.js +1 -1
- package/package.json +1 -1
- package/parity.json +1 -1
package/db-surface.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
3
|
"source": "prod catalog (pg_class, pg_proc) by scripts/db-surface.sql, read-only; edge functions, migration_head and schemas from dfl-schema main",
|
|
4
|
-
"migration_head": "
|
|
4
|
+
"migration_head": "20261130120000",
|
|
5
5
|
"schemas": [
|
|
6
|
-
"academy",
|
|
7
6
|
"apps",
|
|
8
7
|
"campaigns",
|
|
9
8
|
"dbms",
|
|
@@ -11,8 +10,8 @@
|
|
|
11
10
|
"engineering",
|
|
12
11
|
"event_management",
|
|
13
12
|
"financial",
|
|
13
|
+
"graph",
|
|
14
14
|
"iam",
|
|
15
|
-
"key_management",
|
|
16
15
|
"lesson_studio",
|
|
17
16
|
"lms",
|
|
18
17
|
"notifications",
|
|
@@ -21,7 +20,6 @@
|
|
|
21
20
|
"public",
|
|
22
21
|
"quiz",
|
|
23
22
|
"review_request",
|
|
24
|
-
"skill_evals",
|
|
25
23
|
"social_proof",
|
|
26
24
|
"strategy",
|
|
27
25
|
"wiki",
|
|
@@ -29,12 +27,6 @@
|
|
|
29
27
|
"workflow_management"
|
|
30
28
|
],
|
|
31
29
|
"tables": [
|
|
32
|
-
"academy.lessons",
|
|
33
|
-
"academy.modules",
|
|
34
|
-
"academy.track_item_lesson",
|
|
35
|
-
"academy.track_item_user",
|
|
36
|
-
"academy.track_items",
|
|
37
|
-
"academy.tracks",
|
|
38
30
|
"apps.activity_logs",
|
|
39
31
|
"apps.app_builders",
|
|
40
32
|
"apps.app_concepts",
|
|
@@ -99,14 +91,9 @@
|
|
|
99
91
|
"campaigns.short_links",
|
|
100
92
|
"campaigns.social_accounts",
|
|
101
93
|
"campaigns.zernio_analytics_sync_state",
|
|
102
|
-
"dbms.dangerous_pattern_rules",
|
|
103
|
-
"dbms.edge_function_deployments",
|
|
104
|
-
"dbms.edge_function_invocation_stats",
|
|
105
|
-
"dbms.edge_functions",
|
|
106
94
|
"dbms.managed_schemas",
|
|
107
95
|
"dbms.project_permissions",
|
|
108
96
|
"dbms.projects",
|
|
109
|
-
"dbms.query_audit_log",
|
|
110
97
|
"dbms.schema_permissions",
|
|
111
98
|
"documents.document",
|
|
112
99
|
"documents.document_log",
|
|
@@ -115,6 +102,8 @@
|
|
|
115
102
|
"documents.template_variable",
|
|
116
103
|
"engineering.github_refresh_tokens",
|
|
117
104
|
"engineering.merge_challenges",
|
|
105
|
+
"engineering.page_design_revs",
|
|
106
|
+
"engineering.page_designs",
|
|
118
107
|
"engineering.schema_catalog_snapshots",
|
|
119
108
|
"engineering.ux_map_annotations",
|
|
120
109
|
"engineering.ux_map_apps",
|
|
@@ -129,7 +118,6 @@
|
|
|
129
118
|
"event_management.event_sessions",
|
|
130
119
|
"event_management.event_tasks",
|
|
131
120
|
"event_management.events",
|
|
132
|
-
"financial._backup_cc_removal",
|
|
133
121
|
"financial.account_holder_preferences",
|
|
134
122
|
"financial.account_holder_users",
|
|
135
123
|
"financial.account_holders",
|
|
@@ -171,6 +159,9 @@
|
|
|
171
159
|
"financial.transaction_journal_entries",
|
|
172
160
|
"financial.wallet_types",
|
|
173
161
|
"financial.wallets",
|
|
162
|
+
"graph.graphs",
|
|
163
|
+
"graph.items",
|
|
164
|
+
"graph.pending_writes",
|
|
174
165
|
"iam.mcp_oauth_grants",
|
|
175
166
|
"iam.permissions",
|
|
176
167
|
"iam.resource_grants",
|
|
@@ -180,12 +171,6 @@
|
|
|
180
171
|
"iam.user_app_roles",
|
|
181
172
|
"iam.user_roles",
|
|
182
173
|
"iam.user_tiers",
|
|
183
|
-
"key_management.events",
|
|
184
|
-
"key_management.group_members",
|
|
185
|
-
"key_management.groups",
|
|
186
|
-
"key_management.items",
|
|
187
|
-
"key_management.vault_permissions",
|
|
188
|
-
"key_management.vaults",
|
|
189
174
|
"lesson_studio.activity_log",
|
|
190
175
|
"lesson_studio.compositions",
|
|
191
176
|
"lesson_studio.exports",
|
|
@@ -289,8 +274,6 @@
|
|
|
289
274
|
"public.feature_ideas",
|
|
290
275
|
"public.feature_votes",
|
|
291
276
|
"public.github_links",
|
|
292
|
-
"public.kudos",
|
|
293
|
-
"public.kudos_dimensions",
|
|
294
277
|
"public.llm_pricing",
|
|
295
278
|
"public.mcp_tool_calls",
|
|
296
279
|
"public.media",
|
|
@@ -315,21 +298,10 @@
|
|
|
315
298
|
"quiz.questions",
|
|
316
299
|
"quiz.quizzes",
|
|
317
300
|
"quiz.responses",
|
|
318
|
-
"review_request.assessment_answers",
|
|
319
|
-
"review_request.assessment_item_bindings",
|
|
320
|
-
"review_request.assessment_items",
|
|
321
|
-
"review_request.comments",
|
|
322
301
|
"review_request.github_webhook_events",
|
|
323
|
-
"review_request.request_types",
|
|
324
302
|
"review_request.review_activity_logs",
|
|
325
303
|
"review_request.review_request_task_links",
|
|
326
304
|
"review_request.review_requests",
|
|
327
|
-
"skill_evals.attempts",
|
|
328
|
-
"skill_evals.challenge_claim_links",
|
|
329
|
-
"skill_evals.challenge_examples",
|
|
330
|
-
"skill_evals.challenge_test_cases",
|
|
331
|
-
"skill_evals.challenges",
|
|
332
|
-
"skill_evals.logs",
|
|
333
305
|
"social_proof.testimonials",
|
|
334
306
|
"social_proof.use_cases",
|
|
335
307
|
"strategy.artifact_sources",
|
|
@@ -366,6 +338,7 @@
|
|
|
366
338
|
"strategy.customer_segment_templates",
|
|
367
339
|
"strategy.customer_segments",
|
|
368
340
|
"strategy.customer_segments_history",
|
|
341
|
+
"strategy.decisions",
|
|
369
342
|
"strategy.deck_exports",
|
|
370
343
|
"strategy.empathy_maps",
|
|
371
344
|
"strategy.empathy_maps_history",
|
|
@@ -398,6 +371,10 @@
|
|
|
398
371
|
"strategy.kpi_templates_industries",
|
|
399
372
|
"strategy.kpis",
|
|
400
373
|
"strategy.kpis_history",
|
|
374
|
+
"strategy.markets",
|
|
375
|
+
"strategy.metric_observations",
|
|
376
|
+
"strategy.moats",
|
|
377
|
+
"strategy.moats_history",
|
|
401
378
|
"strategy.personas",
|
|
402
379
|
"strategy.personas_history",
|
|
403
380
|
"strategy.resource_categories",
|
|
@@ -549,7 +526,6 @@
|
|
|
549
526
|
"work.business_units",
|
|
550
527
|
"work.concepts",
|
|
551
528
|
"work.deliveries_with_metrics",
|
|
552
|
-
"work.entity_change_log",
|
|
553
529
|
"work.expertise_areas",
|
|
554
530
|
"work.member_activity_status",
|
|
555
531
|
"work.member_completion_status",
|
|
@@ -570,12 +546,10 @@
|
|
|
570
546
|
"campaigns.rank_account_post_metrics": "read",
|
|
571
547
|
"campaigns.renew_zernio_analytics_sync": "write",
|
|
572
548
|
"campaigns.upsert_zernio_metric_snapshots": "write",
|
|
573
|
-
"dbms.create_project": "write",
|
|
574
549
|
"dbms.get_table_columns": "write",
|
|
575
550
|
"dbms.get_table_definition": "write",
|
|
576
551
|
"dbms.has_permission": "read",
|
|
577
552
|
"dbms.has_project_access": "read",
|
|
578
|
-
"dbms.has_project_permission": "read",
|
|
579
553
|
"dbms.is_project_admin": "read",
|
|
580
554
|
"dbms.list_schema_tables": "write",
|
|
581
555
|
"documents.can_read_document": "read",
|
|
@@ -628,6 +602,7 @@
|
|
|
628
602
|
"iam.default_tenant_id": "read",
|
|
629
603
|
"iam.delegation_respects_agent_creator": "read",
|
|
630
604
|
"iam.delegator_user_ids": "read",
|
|
605
|
+
"iam.end_revoked_grant_sessions": "write",
|
|
631
606
|
"iam.get_app_level": "read",
|
|
632
607
|
"iam.get_global_level": "read",
|
|
633
608
|
"iam.get_limit": "read",
|
|
@@ -646,15 +621,7 @@
|
|
|
646
621
|
"iam.is_my_created_agent": "read",
|
|
647
622
|
"iam.is_owner": "read",
|
|
648
623
|
"iam.is_superadmin": "read",
|
|
649
|
-
"
|
|
650
|
-
"key_management.create_encrypted_item": "write",
|
|
651
|
-
"key_management.decrypt_content": "write",
|
|
652
|
-
"key_management.encrypt_content": "write",
|
|
653
|
-
"key_management.get_encrypted_item_by_id": "write",
|
|
654
|
-
"key_management.get_encrypted_items": "write",
|
|
655
|
-
"key_management.get_encryption_key": "write",
|
|
656
|
-
"key_management.is_vault_owner": "read",
|
|
657
|
-
"key_management.update_encrypted_item": "write",
|
|
624
|
+
"iam.mcp_oauth_grant_end_sessions": "write",
|
|
658
625
|
"lesson_studio.composition_project_id": "read",
|
|
659
626
|
"lesson_studio.project_owner_id": "read",
|
|
660
627
|
"lesson_studio.slide_project_id": "read",
|
|
@@ -696,7 +663,6 @@
|
|
|
696
663
|
"public.get_actor_for_member": "read",
|
|
697
664
|
"public.get_cash_flow_items": "write",
|
|
698
665
|
"public.get_current_actor": "read",
|
|
699
|
-
"public.get_member_kudos_budget": "write",
|
|
700
666
|
"public.get_my_iam_role": "read",
|
|
701
667
|
"public.get_next_version_number": "write",
|
|
702
668
|
"public.get_user_id_by_email": "read",
|
|
@@ -712,8 +678,6 @@
|
|
|
712
678
|
"public.restore_persona_version": "write",
|
|
713
679
|
"public.restore_writing_pattern_version": "write",
|
|
714
680
|
"public.user_has_course_access": "read",
|
|
715
|
-
"review_request.approve_review_request": "write",
|
|
716
|
-
"review_request.reject_review_request": "write",
|
|
717
681
|
"strategy.brand_record_snapshot": "read",
|
|
718
682
|
"strategy.create_canvas_snapshot": "write",
|
|
719
683
|
"strategy.immutable_unaccent": "read",
|
|
@@ -731,6 +695,7 @@
|
|
|
731
695
|
"work.handoff_diagram_comments": "write",
|
|
732
696
|
"work.handoff_spec_run_comments": "write",
|
|
733
697
|
"work.is_loop_agent": "read",
|
|
698
|
+
"work.readable_thread_ids": "read",
|
|
734
699
|
"work.resolve_speaker_to_member": "read",
|
|
735
700
|
"work.save_spec_run_items": "write",
|
|
736
701
|
"work.set_spec_run_pricing": "write",
|
|
@@ -741,13 +706,13 @@
|
|
|
741
706
|
"work.upsert_spec_run_package": "write"
|
|
742
707
|
},
|
|
743
708
|
"trigger_functions": [
|
|
744
|
-
"academy.set_updated_at",
|
|
745
709
|
"apps.update_environment_variables_timestamp",
|
|
746
710
|
"apps.update_updated_at_column",
|
|
747
711
|
"campaigns.posts_approval_is_self",
|
|
748
712
|
"campaigns.social_accounts_stamp",
|
|
749
713
|
"campaigns.trg_fn_seo_pages_history",
|
|
750
714
|
"documents.update_updated_at_column",
|
|
715
|
+
"engineering.page_designs_guard",
|
|
751
716
|
"engineering.ux_map_annotations_check_context",
|
|
752
717
|
"engineering.ux_map_annotations_freeze_anchor",
|
|
753
718
|
"event_management.guard_events_created_by",
|
|
@@ -776,7 +741,7 @@
|
|
|
776
741
|
"financial.wallets_enforce_leaf_account",
|
|
777
742
|
"financial.wallets_track_binding_change",
|
|
778
743
|
"iam.mcp_oauth_grants_client_token_guard",
|
|
779
|
-
"
|
|
744
|
+
"iam.mcp_oauth_grants_end_sessions_on_revoke",
|
|
780
745
|
"lesson_studio.guard_project_owner_change",
|
|
781
746
|
"lesson_studio.update_updated_at_column",
|
|
782
747
|
"lms.set_tutor_profiles_updated_at",
|
|
@@ -831,6 +796,7 @@
|
|
|
831
796
|
"strategy.trg_fn_key_activities_history",
|
|
832
797
|
"strategy.trg_fn_key_partners_history",
|
|
833
798
|
"strategy.trg_fn_kpis_history",
|
|
799
|
+
"strategy.trg_fn_moats_history",
|
|
834
800
|
"strategy.trg_fn_personas_history",
|
|
835
801
|
"strategy.trg_fn_resources_history",
|
|
836
802
|
"strategy.trg_fn_revenue_streams_history",
|
|
@@ -878,7 +844,6 @@
|
|
|
878
844
|
"dfl-apps-trigger-deploy",
|
|
879
845
|
"dfl-cost-events-insert",
|
|
880
846
|
"dfl-crm-proxy",
|
|
881
|
-
"dfl-dbms-execute-sql",
|
|
882
847
|
"dfl-documents-autentique-send",
|
|
883
848
|
"dfl-documents-autentique-webhook",
|
|
884
849
|
"dfl-financial-post-journal-entry",
|
|
@@ -923,7 +888,6 @@
|
|
|
923
888
|
"impersonate",
|
|
924
889
|
"media-redirect",
|
|
925
890
|
"publish-template",
|
|
926
|
-
"reset-kudos-budget",
|
|
927
891
|
"save-epic-postmortem",
|
|
928
892
|
"search-profile-email",
|
|
929
893
|
"start-email-verification",
|
package/dist/principal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* resolvePrincipal(): the `Principal` of `can()` from the rows a caller can read.
|
|
3
3
|
*
|
|
4
|
-
* Moved from dfl-
|
|
4
|
+
* Moved from dfl-domain-api (S2-T4) into the package (plan
|
|
5
5
|
* 20261116-fleet-access-s3-gateway-decision, ADR-1), so the gateway and the
|
|
6
6
|
* service build the principal with one copy of the rules: the actor, its role
|
|
7
7
|
* bundles, and for an agent its owner (the delegator of its one ACTIVE
|
package/dist/principal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* resolvePrincipal(): the `Principal` of `can()` from the rows a caller can read.
|
|
3
3
|
*
|
|
4
|
-
* Moved from dfl-
|
|
4
|
+
* Moved from dfl-domain-api (S2-T4) into the package (plan
|
|
5
5
|
* 20261116-fleet-access-s3-gateway-decision, ADR-1), so the gateway and the
|
|
6
6
|
* service build the principal with one copy of the rules: the actor, its role
|
|
7
7
|
* bundles, and for an agent its owner (the delegator of its one ACTIVE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devfellowship/access",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "The one fleet access decision: can() over iam.permissions lines (deny wins, capability patterns, scope, expiry, agent never above its owner). Pure functions, no I/O.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/parity.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Parity fixture of the fleet access decision (plan 20261116-fleet-access-s3-gateway-decision, ADR-1). expected = the answer of dfl-
|
|
2
|
+
"$comment": "Parity fixture of the fleet access decision (plan 20261116-fleet-access-s3-gateway-decision, ADR-1). expected = the answer of dfl-domain-api runExplain (resolvePrincipal + can). The service test and the gateway test both assert it. A null expected means the actor is not visible (the service answers 404 not_found).",
|
|
3
3
|
"version": 1,
|
|
4
4
|
"now": "2026-11-18T12:00:00Z",
|
|
5
5
|
"world": {
|