@devfellowship/access 0.3.0 → 0.3.2
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 +1424 -2141
- package/db-surface.json +23 -57
- 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": "20261204100000",
|
|
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",
|
|
@@ -239,6 +224,8 @@
|
|
|
239
224
|
"payments.charges",
|
|
240
225
|
"payments.client_companies",
|
|
241
226
|
"payments.contracts",
|
|
227
|
+
"payments.fellow_fiscal_profiles",
|
|
228
|
+
"payments.fellow_nfse",
|
|
242
229
|
"payments.fiscal_invoices",
|
|
243
230
|
"payments.invoice_items",
|
|
244
231
|
"payments.invoices",
|
|
@@ -289,8 +276,6 @@
|
|
|
289
276
|
"public.feature_ideas",
|
|
290
277
|
"public.feature_votes",
|
|
291
278
|
"public.github_links",
|
|
292
|
-
"public.kudos",
|
|
293
|
-
"public.kudos_dimensions",
|
|
294
279
|
"public.llm_pricing",
|
|
295
280
|
"public.mcp_tool_calls",
|
|
296
281
|
"public.media",
|
|
@@ -315,21 +300,10 @@
|
|
|
315
300
|
"quiz.questions",
|
|
316
301
|
"quiz.quizzes",
|
|
317
302
|
"quiz.responses",
|
|
318
|
-
"review_request.assessment_answers",
|
|
319
|
-
"review_request.assessment_item_bindings",
|
|
320
|
-
"review_request.assessment_items",
|
|
321
|
-
"review_request.comments",
|
|
322
303
|
"review_request.github_webhook_events",
|
|
323
|
-
"review_request.request_types",
|
|
324
304
|
"review_request.review_activity_logs",
|
|
325
305
|
"review_request.review_request_task_links",
|
|
326
306
|
"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
307
|
"social_proof.testimonials",
|
|
334
308
|
"social_proof.use_cases",
|
|
335
309
|
"strategy.artifact_sources",
|
|
@@ -366,6 +340,7 @@
|
|
|
366
340
|
"strategy.customer_segment_templates",
|
|
367
341
|
"strategy.customer_segments",
|
|
368
342
|
"strategy.customer_segments_history",
|
|
343
|
+
"strategy.decisions",
|
|
369
344
|
"strategy.deck_exports",
|
|
370
345
|
"strategy.empathy_maps",
|
|
371
346
|
"strategy.empathy_maps_history",
|
|
@@ -398,6 +373,10 @@
|
|
|
398
373
|
"strategy.kpi_templates_industries",
|
|
399
374
|
"strategy.kpis",
|
|
400
375
|
"strategy.kpis_history",
|
|
376
|
+
"strategy.markets",
|
|
377
|
+
"strategy.metric_observations",
|
|
378
|
+
"strategy.moats",
|
|
379
|
+
"strategy.moats_history",
|
|
401
380
|
"strategy.personas",
|
|
402
381
|
"strategy.personas_history",
|
|
403
382
|
"strategy.resource_categories",
|
|
@@ -549,7 +528,6 @@
|
|
|
549
528
|
"work.business_units",
|
|
550
529
|
"work.concepts",
|
|
551
530
|
"work.deliveries_with_metrics",
|
|
552
|
-
"work.entity_change_log",
|
|
553
531
|
"work.expertise_areas",
|
|
554
532
|
"work.member_activity_status",
|
|
555
533
|
"work.member_completion_status",
|
|
@@ -570,12 +548,10 @@
|
|
|
570
548
|
"campaigns.rank_account_post_metrics": "read",
|
|
571
549
|
"campaigns.renew_zernio_analytics_sync": "write",
|
|
572
550
|
"campaigns.upsert_zernio_metric_snapshots": "write",
|
|
573
|
-
"dbms.create_project": "write",
|
|
574
551
|
"dbms.get_table_columns": "write",
|
|
575
552
|
"dbms.get_table_definition": "write",
|
|
576
553
|
"dbms.has_permission": "read",
|
|
577
554
|
"dbms.has_project_access": "read",
|
|
578
|
-
"dbms.has_project_permission": "read",
|
|
579
555
|
"dbms.is_project_admin": "read",
|
|
580
556
|
"dbms.list_schema_tables": "write",
|
|
581
557
|
"documents.can_read_document": "read",
|
|
@@ -628,6 +604,7 @@
|
|
|
628
604
|
"iam.default_tenant_id": "read",
|
|
629
605
|
"iam.delegation_respects_agent_creator": "read",
|
|
630
606
|
"iam.delegator_user_ids": "read",
|
|
607
|
+
"iam.end_revoked_grant_sessions": "write",
|
|
631
608
|
"iam.get_app_level": "read",
|
|
632
609
|
"iam.get_global_level": "read",
|
|
633
610
|
"iam.get_limit": "read",
|
|
@@ -646,15 +623,7 @@
|
|
|
646
623
|
"iam.is_my_created_agent": "read",
|
|
647
624
|
"iam.is_owner": "read",
|
|
648
625
|
"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",
|
|
626
|
+
"iam.mcp_oauth_grant_end_sessions": "write",
|
|
658
627
|
"lesson_studio.composition_project_id": "read",
|
|
659
628
|
"lesson_studio.project_owner_id": "read",
|
|
660
629
|
"lesson_studio.slide_project_id": "read",
|
|
@@ -696,7 +665,6 @@
|
|
|
696
665
|
"public.get_actor_for_member": "read",
|
|
697
666
|
"public.get_cash_flow_items": "write",
|
|
698
667
|
"public.get_current_actor": "read",
|
|
699
|
-
"public.get_member_kudos_budget": "write",
|
|
700
668
|
"public.get_my_iam_role": "read",
|
|
701
669
|
"public.get_next_version_number": "write",
|
|
702
670
|
"public.get_user_id_by_email": "read",
|
|
@@ -712,8 +680,6 @@
|
|
|
712
680
|
"public.restore_persona_version": "write",
|
|
713
681
|
"public.restore_writing_pattern_version": "write",
|
|
714
682
|
"public.user_has_course_access": "read",
|
|
715
|
-
"review_request.approve_review_request": "write",
|
|
716
|
-
"review_request.reject_review_request": "write",
|
|
717
683
|
"strategy.brand_record_snapshot": "read",
|
|
718
684
|
"strategy.create_canvas_snapshot": "write",
|
|
719
685
|
"strategy.immutable_unaccent": "read",
|
|
@@ -731,6 +697,7 @@
|
|
|
731
697
|
"work.handoff_diagram_comments": "write",
|
|
732
698
|
"work.handoff_spec_run_comments": "write",
|
|
733
699
|
"work.is_loop_agent": "read",
|
|
700
|
+
"work.readable_thread_ids": "read",
|
|
734
701
|
"work.resolve_speaker_to_member": "read",
|
|
735
702
|
"work.save_spec_run_items": "write",
|
|
736
703
|
"work.set_spec_run_pricing": "write",
|
|
@@ -741,13 +708,13 @@
|
|
|
741
708
|
"work.upsert_spec_run_package": "write"
|
|
742
709
|
},
|
|
743
710
|
"trigger_functions": [
|
|
744
|
-
"academy.set_updated_at",
|
|
745
711
|
"apps.update_environment_variables_timestamp",
|
|
746
712
|
"apps.update_updated_at_column",
|
|
747
713
|
"campaigns.posts_approval_is_self",
|
|
748
714
|
"campaigns.social_accounts_stamp",
|
|
749
715
|
"campaigns.trg_fn_seo_pages_history",
|
|
750
716
|
"documents.update_updated_at_column",
|
|
717
|
+
"engineering.page_designs_guard",
|
|
751
718
|
"engineering.ux_map_annotations_check_context",
|
|
752
719
|
"engineering.ux_map_annotations_freeze_anchor",
|
|
753
720
|
"event_management.guard_events_created_by",
|
|
@@ -776,13 +743,14 @@
|
|
|
776
743
|
"financial.wallets_enforce_leaf_account",
|
|
777
744
|
"financial.wallets_track_binding_change",
|
|
778
745
|
"iam.mcp_oauth_grants_client_token_guard",
|
|
779
|
-
"
|
|
746
|
+
"iam.mcp_oauth_grants_end_sessions_on_revoke",
|
|
780
747
|
"lesson_studio.guard_project_owner_change",
|
|
781
748
|
"lesson_studio.update_updated_at_column",
|
|
782
749
|
"lms.set_tutor_profiles_updated_at",
|
|
783
750
|
"lms.set_updated_at",
|
|
784
751
|
"lms.update_learning_path_courses_count",
|
|
785
752
|
"notifications.update_email_templates_updated_at",
|
|
753
|
+
"payments.fellow_fiscal_profiles_reset_verification",
|
|
786
754
|
"payments.forbid_recurrence_change",
|
|
787
755
|
"payments.set_updated_at",
|
|
788
756
|
"payments.validate_contract_splits_total",
|
|
@@ -831,6 +799,7 @@
|
|
|
831
799
|
"strategy.trg_fn_key_activities_history",
|
|
832
800
|
"strategy.trg_fn_key_partners_history",
|
|
833
801
|
"strategy.trg_fn_kpis_history",
|
|
802
|
+
"strategy.trg_fn_moats_history",
|
|
834
803
|
"strategy.trg_fn_personas_history",
|
|
835
804
|
"strategy.trg_fn_resources_history",
|
|
836
805
|
"strategy.trg_fn_revenue_streams_history",
|
|
@@ -878,7 +847,6 @@
|
|
|
878
847
|
"dfl-apps-trigger-deploy",
|
|
879
848
|
"dfl-cost-events-insert",
|
|
880
849
|
"dfl-crm-proxy",
|
|
881
|
-
"dfl-dbms-execute-sql",
|
|
882
850
|
"dfl-documents-autentique-send",
|
|
883
851
|
"dfl-documents-autentique-webhook",
|
|
884
852
|
"dfl-financial-post-journal-entry",
|
|
@@ -887,10 +855,11 @@
|
|
|
887
855
|
"dfl-global-notifications",
|
|
888
856
|
"dfl-lesson-studio-concat-segments",
|
|
889
857
|
"dfl-meetings-fireflies-sync",
|
|
890
|
-
"dfl-meetings-populate-segments",
|
|
891
858
|
"dfl-notifications",
|
|
892
859
|
"dfl-notifications-resend-webhook",
|
|
893
860
|
"dfl-payments-cancel-woovi-payment",
|
|
861
|
+
"dfl-payments-fellow-fiscal-verify",
|
|
862
|
+
"dfl-payments-fellow-nfse-issue",
|
|
894
863
|
"dfl-payments-request-woovi-payment",
|
|
895
864
|
"dfl-payments-woovi-callback",
|
|
896
865
|
"dfl-publisher-connect-platform",
|
|
@@ -918,13 +887,10 @@
|
|
|
918
887
|
"get-upload-url",
|
|
919
888
|
"github-link",
|
|
920
889
|
"github-stats",
|
|
921
|
-
"gmeet-sync-conferences",
|
|
922
890
|
"hook-chat",
|
|
923
891
|
"impersonate",
|
|
924
892
|
"media-redirect",
|
|
925
893
|
"publish-template",
|
|
926
|
-
"reset-kudos-budget",
|
|
927
|
-
"save-epic-postmortem",
|
|
928
894
|
"search-profile-email",
|
|
929
895
|
"start-email-verification",
|
|
930
896
|
"stripe-webhook",
|
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.2",
|
|
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": {
|