@devfellowship/access 0.3.1 → 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 CHANGED
@@ -96,7 +96,7 @@ npm run catalog:check # writes nothing; exit 1 when the file is out of date
96
96
  node scripts/build-catalog.mjs --manifest <file> --gateway-modes <oauth-tools.generated.ts>
97
97
  ```
98
98
 
99
- The build prints `tools: N` and `capabilities: N`. It exits 1 when a tool is **unmapped** (its verb is not in `VERBS`, or its name has no entity and `OVERRIDES` has no entry) or when two tools get one name. A new MCP tool with a new verb therefore fails the `catalog` CI job until someone adds the verb to `VERBS` with its mode (`read` or `write`) in `scripts/catalog-lib.mjs`. With `--gateway-modes`, the build also exits 1 when the catalog offers a write tool of the gateway registry as a read. The **mode guard** (CATALOG-READ-MODE-FIX): a tool whose name starts with `list`, `get`, `wait`, `read`, `search` or `describe` and is `write` fails the build, on the catalog and on the gateway registry, unless `READ_NAME_WRITE_ALLOWLIST` in `scripts/catalog-lib.mjs` names it with the reason it writes (an upload, a paid call, a job that registers media). An allow-list line with no reason, or for a tool that is no longer `write`, also fails. The verb `check` is `write` by default; a check that only reads gets an `OVERRIDES` entry with `mode: "read"`, and the gateway cross-check fails the build if the gateway says `write` for it. A deprecated alias adds no entry. Commands (kind `command`) enter the catalog when the first command exists (S2-T6). A command that has an MCP tool merges into that tool entry through `COMMANDS`. A command with **no** MCP tool (a UI-only write; CLAUDE.md: MCP is only for AI agents) is declared in `COMMAND_ONLY` (FIN-T4): one reviewed entry per capability with `command` (name), `route`, `mode` and `rule`; the entry gets kind `command`, doors `["commands"]`, no `tool`, and `domain_group` from `domains.json`. The build fails with the name when an MCP tool later takes the same capability; then move the entry to `COMMANDS`. An entry is a name only: it grants nothing. The gap check `services/dfl-domain-api/src/commands/access/command-catalog.test.ts` (CAMP-T4) reads the capability of every command of dfl-domain-api, with no hand-kept list, and fails with the names when one is not in `capabilities.json`: a new command with no MCP tool of the same capability name needs one `COMMAND_ONLY` entry and `npm run catalog`. The kinds `table`, `rpc` and `function` come from the database surface (next section).
99
+ The build prints `tools: N` and `capabilities: N`. It exits 1 when a tool is **unmapped** (its verb is not in `VERBS`, or its name has no entity and `OVERRIDES` has no entry) or when two tools get one name. A new MCP tool with a new verb therefore fails the `catalog` CI job until someone adds the verb to `VERBS` with its mode (`read` or `write`) in `scripts/catalog-lib.mjs`. With `--gateway-modes`, the build also exits 1 when the catalog offers a write tool of the gateway registry as a read. The **mode guard** (CATALOG-READ-MODE-FIX): a tool whose name starts with `list`, `get`, `wait`, `read`, `search` or `describe` and is `write` fails the build, on the catalog and on the gateway registry, unless `READ_NAME_WRITE_ALLOWLIST` in `scripts/catalog-lib.mjs` names it with the reason it writes (an upload, a paid call, a job that registers media). An allow-list line with no reason, or for a tool that is no longer `write`, also fails. The verb `check` is `write` by default; a check that only reads gets an `OVERRIDES` entry with `mode: "read"`, and the gateway cross-check fails the build if the gateway says `write` for it. A deprecated alias adds no entry. Commands (kind `command`) enter the catalog when the first command exists (S2-T6). A command that has an MCP tool merges into that tool entry through `COMMANDS`. A command with **no** MCP tool (a UI-only write; CLAUDE.md: MCP is only for AI agents) is declared in `COMMAND_ONLY` (FIN-T4): one reviewed entry per capability with `command` (name), `route`, `mode` and `rule`; the entry gets kind `command`, doors `["commands"]`, no `tool`, and `domain_group` from `domains.json`. The build fails with the name when an MCP tool later takes the same capability; then move the entry to `COMMANDS`. An entry is a name only: it grants nothing. The gap check `services/dfl-domain-api/src/command-catalog.test.ts` (CAMP-T4) reads the capability of every command of dfl-domain-api, with no hand-kept list, and fails with the names when one is not in `capabilities.json`: a new command with no MCP tool of the same capability name needs one `COMMAND_ONLY` entry and `npm run catalog`. The kinds `table`, `rpc` and `function` come from the database surface (next section).
100
100
 
101
101
  ## The database surface in the catalog (S7-T4)
102
102
 
@@ -134,7 +134,7 @@ An agent gets a role through a line, not through `iam.user_roles` (S2-T5; Tainan
134
134
 
135
135
  ## The parity fixture
136
136
 
137
- `parity.json` (shipped, `@devfellowship/access/parity.json`) holds one world (actors, role bundles, owners, permission lines) and the decision of each case. `expected` is the answer of `dfl-domain-api` `runExplain`. Three tests assert it: `test/parity.test.mjs` here, `services/dfl-domain-api/src/commands/access/parity.test.ts` (the service), and the gateway test in `dfl-mcp-server`. A change of a rule that moves an answer changes `parity.json` in the same PR.
137
+ `parity.json` (shipped, `@devfellowship/access/parity.json`) holds one world (actors, role bundles, owners, permission lines) and the decision of each case. `expected` is the answer of `dfl-domain-api` `runExplain`. Three tests assert it: `test/parity.test.mjs` here, `services/dfl-domain-api/src/domains/engineering/access/parity.test.ts` (the service), and the gateway test in `dfl-mcp-server`. A change of a rule that moves an answer changes `parity.json` in the same PR.
138
138
 
139
139
  ## Release
140
140
 
package/capabilities.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "888-90b31bdb",
2
+ "version": "895-61c7c1a4",
3
3
  "capabilities": [
4
4
  {
5
5
  "name": "apps.activity_logs.delete",
@@ -499,6 +499,18 @@
499
499
  ],
500
500
  "tool": "board.create_board"
501
501
  },
502
+ {
503
+ "name": "board.board.delete",
504
+ "domain": "board",
505
+ "domain_group": "work",
506
+ "kind": "command",
507
+ "mode": "write",
508
+ "rule": null,
509
+ "doors": [
510
+ "commands"
511
+ ],
512
+ "command": "DELETE /api/v1/boards/{idOrSlug}"
513
+ },
502
514
  {
503
515
  "name": "board.board.get",
504
516
  "domain": "board",
@@ -511,6 +523,30 @@
511
523
  ],
512
524
  "tool": "board.get_board"
513
525
  },
526
+ {
527
+ "name": "board.board_actor.remove",
528
+ "domain": "board",
529
+ "domain_group": "work",
530
+ "kind": "command",
531
+ "mode": "write",
532
+ "rule": null,
533
+ "doors": [
534
+ "commands"
535
+ ],
536
+ "command": "POST /api/v1/boards/{idOrSlug}/actors/{actorId}/remove"
537
+ },
538
+ {
539
+ "name": "board.board_folder.set",
540
+ "domain": "board",
541
+ "domain_group": "work",
542
+ "kind": "command",
543
+ "mode": "write",
544
+ "rule": null,
545
+ "doors": [
546
+ "commands"
547
+ ],
548
+ "command": "PUT /api/v1/boards/{idOrSlug}/folder"
549
+ },
514
550
  {
515
551
  "name": "board.board_image.get",
516
552
  "domain": "board",
@@ -667,6 +703,42 @@
667
703
  ],
668
704
  "tool": "board.set_connector_routing"
669
705
  },
706
+ {
707
+ "name": "board.folder.create",
708
+ "domain": "board",
709
+ "domain_group": "work",
710
+ "kind": "command",
711
+ "mode": "write",
712
+ "rule": null,
713
+ "doors": [
714
+ "commands"
715
+ ],
716
+ "command": "POST /api/v1/folders"
717
+ },
718
+ {
719
+ "name": "board.folder.delete",
720
+ "domain": "board",
721
+ "domain_group": "work",
722
+ "kind": "command",
723
+ "mode": "write",
724
+ "rule": null,
725
+ "doors": [
726
+ "commands"
727
+ ],
728
+ "command": "DELETE /api/v1/folders/{id}"
729
+ },
730
+ {
731
+ "name": "board.folder.update",
732
+ "domain": "board",
733
+ "domain_group": "work",
734
+ "kind": "command",
735
+ "mode": "write",
736
+ "rule": null,
737
+ "doors": [
738
+ "commands"
739
+ ],
740
+ "command": "PATCH /api/v1/folders/{id}"
741
+ },
670
742
  {
671
743
  "name": "board.follow_target.remove",
672
744
  "domain": "board",
@@ -1051,6 +1123,18 @@
1051
1123
  ],
1052
1124
  "tool": "board.set_preview_location"
1053
1125
  },
1126
+ {
1127
+ "name": "board.scene.commit",
1128
+ "domain": "board",
1129
+ "domain_group": "work",
1130
+ "kind": "command",
1131
+ "mode": "write",
1132
+ "rule": null,
1133
+ "doors": [
1134
+ "commands"
1135
+ ],
1136
+ "command": "GET /ws/boards/{idOrSlug}"
1137
+ },
1054
1138
  {
1055
1139
  "name": "board.selection.set",
1056
1140
  "domain": "board",
@@ -1063,6 +1147,30 @@
1063
1147
  ],
1064
1148
  "tool": "board.set_selection"
1065
1149
  },
1150
+ {
1151
+ "name": "board.share.rotate",
1152
+ "domain": "board",
1153
+ "domain_group": "work",
1154
+ "kind": "command",
1155
+ "mode": "write",
1156
+ "rule": null,
1157
+ "doors": [
1158
+ "commands"
1159
+ ],
1160
+ "command": "POST /api/v1/boards/{idOrSlug}/share/rotate"
1161
+ },
1162
+ {
1163
+ "name": "board.share.update",
1164
+ "domain": "board",
1165
+ "domain_group": "work",
1166
+ "kind": "command",
1167
+ "mode": "write",
1168
+ "rule": null,
1169
+ "doors": [
1170
+ "commands"
1171
+ ],
1172
+ "command": "PUT /api/v1/boards/{idOrSlug}/share"
1173
+ },
1066
1174
  {
1067
1175
  "name": "board.siblings.suggest",
1068
1176
  "domain": "board",
@@ -2456,6 +2564,18 @@
2456
2564
  "table": "campaigns.contact_activities",
2457
2565
  "relation": "table"
2458
2566
  },
2567
+ {
2568
+ "name": "campaigns.contact_notes.set",
2569
+ "domain": "campaigns",
2570
+ "domain_group": "marketing",
2571
+ "kind": "command",
2572
+ "mode": "write",
2573
+ "rule": null,
2574
+ "doors": [
2575
+ "commands"
2576
+ ],
2577
+ "command": "POST /v1/campaigns/contacts/{contact_id}/notes"
2578
+ },
2459
2579
  {
2460
2580
  "name": "campaigns.contact_owner.set",
2461
2581
  "domain": "campaigns",
@@ -3352,6 +3472,18 @@
3352
3472
  ],
3353
3473
  "tool": "campaigns.set_idea_source_keyword_request"
3354
3474
  },
3475
+ {
3476
+ "name": "campaigns.idea_source_origin_deleted.set",
3477
+ "domain": "campaigns",
3478
+ "domain_group": "marketing",
3479
+ "kind": "command",
3480
+ "mode": "write",
3481
+ "rule": null,
3482
+ "doors": [
3483
+ "commands"
3484
+ ],
3485
+ "command": "POST /v1/campaigns/idea-sources/{id}/origin-deleted"
3486
+ },
3355
3487
  {
3356
3488
  "name": "campaigns.idea_source_suggested_topics.delete",
3357
3489
  "domain": "campaigns",
@@ -3528,6 +3660,18 @@
3528
3660
  ],
3529
3661
  "tool": "campaigns.list_keyword_coverage"
3530
3662
  },
3663
+ {
3664
+ "name": "campaigns.keyword_link.decide",
3665
+ "domain": "campaigns",
3666
+ "domain_group": "marketing",
3667
+ "kind": "command",
3668
+ "mode": "write",
3669
+ "rule": null,
3670
+ "doors": [
3671
+ "commands"
3672
+ ],
3673
+ "command": "POST /v1/campaigns/seo-page-keywords/decide"
3674
+ },
3531
3675
  {
3532
3676
  "name": "campaigns.keyword_link_suggestions.add",
3533
3677
  "domain": "campaigns",
@@ -3868,6 +4012,18 @@
3868
4012
  ],
3869
4013
  "tool": "campaigns.unschedule_post"
3870
4014
  },
4015
+ {
4016
+ "name": "campaigns.post_assignment.set",
4017
+ "domain": "campaigns",
4018
+ "domain_group": "marketing",
4019
+ "kind": "command",
4020
+ "mode": "write",
4021
+ "rule": null,
4022
+ "doors": [
4023
+ "commands"
4024
+ ],
4025
+ "command": "POST /v1/campaigns/posts/{post_id}/assignment"
4026
+ },
3871
4027
  {
3872
4028
  "name": "campaigns.post_business_units.list",
3873
4029
  "domain": "campaigns",
@@ -3932,6 +4088,42 @@
3932
4088
  "table": "campaigns.post_channels",
3933
4089
  "relation": "table"
3934
4090
  },
4091
+ {
4092
+ "name": "campaigns.post_comment.add",
4093
+ "domain": "campaigns",
4094
+ "domain_group": "marketing",
4095
+ "kind": "command",
4096
+ "mode": "write",
4097
+ "rule": null,
4098
+ "doors": [
4099
+ "commands"
4100
+ ],
4101
+ "command": "POST /v1/campaigns/posts/{post_id}/feedback"
4102
+ },
4103
+ {
4104
+ "name": "campaigns.post_comment.edit",
4105
+ "domain": "campaigns",
4106
+ "domain_group": "marketing",
4107
+ "kind": "command",
4108
+ "mode": "write",
4109
+ "rule": null,
4110
+ "doors": [
4111
+ "commands"
4112
+ ],
4113
+ "command": "POST /v1/campaigns/posts/{post_id}/feedback/{feedback_id}"
4114
+ },
4115
+ {
4116
+ "name": "campaigns.post_comment.remove",
4117
+ "domain": "campaigns",
4118
+ "domain_group": "marketing",
4119
+ "kind": "command",
4120
+ "mode": "write",
4121
+ "rule": null,
4122
+ "doors": [
4123
+ "commands"
4124
+ ],
4125
+ "command": "POST /v1/campaigns/posts/{post_id}/feedback/{feedback_id}/delete"
4126
+ },
3935
4127
  {
3936
4128
  "name": "campaigns.post_content_tag.set",
3937
4129
  "domain": "campaigns",
@@ -4160,6 +4352,18 @@
4160
4352
  "table": "campaigns.post_metric_snapshots",
4161
4353
  "relation": "table"
4162
4354
  },
4355
+ {
4356
+ "name": "campaigns.post_publish_status.record",
4357
+ "domain": "campaigns",
4358
+ "domain_group": "marketing",
4359
+ "kind": "command",
4360
+ "mode": "write",
4361
+ "rule": null,
4362
+ "doors": [
4363
+ "commands"
4364
+ ],
4365
+ "command": "POST /v1/campaigns/posts/{post_id}/publish-result"
4366
+ },
4163
4367
  {
4164
4368
  "name": "campaigns.post_published_manual.set",
4165
4369
  "domain": "campaigns",
@@ -4588,6 +4792,18 @@
4588
4792
  "table": "campaigns.searches",
4589
4793
  "relation": "table"
4590
4794
  },
4795
+ {
4796
+ "name": "campaigns.seo_branded_patterns.set",
4797
+ "domain": "campaigns",
4798
+ "domain_group": "marketing",
4799
+ "kind": "command",
4800
+ "mode": "write",
4801
+ "rule": null,
4802
+ "doors": [
4803
+ "commands"
4804
+ ],
4805
+ "command": "POST /v1/campaigns/seo-hero-config/{business_unit_id}/branded-patterns"
4806
+ },
4591
4807
  {
4592
4808
  "name": "campaigns.seo_change_impact.get",
4593
4809
  "domain": "campaigns",
@@ -5378,6 +5594,18 @@
5378
5594
  "table": "campaigns.social_accounts",
5379
5595
  "relation": "table"
5380
5596
  },
5597
+ {
5598
+ "name": "campaigns.story_part.transition",
5599
+ "domain": "campaigns",
5600
+ "domain_group": "marketing",
5601
+ "kind": "command",
5602
+ "mode": "write",
5603
+ "rule": null,
5604
+ "doors": [
5605
+ "commands"
5606
+ ],
5607
+ "command": "POST /v1/campaigns/story-parts/{post_id}/transition"
5608
+ },
5381
5609
  {
5382
5610
  "name": "campaigns.story_sequence.approve",
5383
5611
  "domain": "campaigns",
@@ -5390,6 +5618,18 @@
5390
5618
  ],
5391
5619
  "tool": "campaigns.approve_story_sequence"
5392
5620
  },
5621
+ {
5622
+ "name": "campaigns.story_sequence.create",
5623
+ "domain": "campaigns",
5624
+ "domain_group": "marketing",
5625
+ "kind": "command",
5626
+ "mode": "write",
5627
+ "rule": null,
5628
+ "doors": [
5629
+ "commands"
5630
+ ],
5631
+ "command": "POST /v1/campaigns/story-sequences"
5632
+ },
5393
5633
  {
5394
5634
  "name": "campaigns.story_sequence.get",
5395
5635
  "domain": "campaigns",
@@ -5530,8 +5770,10 @@
5530
5770
  "mode": "write",
5531
5771
  "rule": null,
5532
5772
  "doors": [
5533
- "commands"
5773
+ "commands",
5774
+ "mcp"
5534
5775
  ],
5776
+ "tool": "campaigns.cleanup_test_rows",
5535
5777
  "command": "POST /v1/campaigns/test-rows/cleanup"
5536
5778
  },
5537
5779
  {
@@ -6272,66 +6514,6 @@
6272
6514
  ],
6273
6515
  "tool": "engineering.get_blast_radius"
6274
6516
  },
6275
- {
6276
- "name": "engineering.challenge.delete",
6277
- "domain": "engineering",
6278
- "domain_group": "engineering",
6279
- "kind": "command",
6280
- "mode": "write",
6281
- "rule": null,
6282
- "doors": [
6283
- "commands"
6284
- ],
6285
- "command": "POST /v1/engineering/challenges/{challenge_id}/permanent-delete"
6286
- },
6287
- {
6288
- "name": "engineering.challenge.restore",
6289
- "domain": "engineering",
6290
- "domain_group": "engineering",
6291
- "kind": "command",
6292
- "mode": "write",
6293
- "rule": null,
6294
- "doors": [
6295
- "commands"
6296
- ],
6297
- "command": "POST /v1/engineering/challenges/{challenge_id}/restore"
6298
- },
6299
- {
6300
- "name": "engineering.challenge.set_status",
6301
- "domain": "engineering",
6302
- "domain_group": "engineering",
6303
- "kind": "command",
6304
- "mode": "write",
6305
- "rule": null,
6306
- "doors": [
6307
- "commands"
6308
- ],
6309
- "command": "POST /v1/engineering/challenges/{challenge_id}/status"
6310
- },
6311
- {
6312
- "name": "engineering.challenge.set_trending",
6313
- "domain": "engineering",
6314
- "domain_group": "engineering",
6315
- "kind": "command",
6316
- "mode": "write",
6317
- "rule": null,
6318
- "doors": [
6319
- "commands"
6320
- ],
6321
- "command": "POST /v1/engineering/challenges/{challenge_id}/trending"
6322
- },
6323
- {
6324
- "name": "engineering.challenge.soft_delete",
6325
- "domain": "engineering",
6326
- "domain_group": "engineering",
6327
- "kind": "command",
6328
- "mode": "write",
6329
- "rule": null,
6330
- "doors": [
6331
- "commands"
6332
- ],
6333
- "command": "POST /v1/engineering/challenges/{challenge_id}/delete"
6334
- },
6335
6517
  {
6336
6518
  "name": "engineering.current_actor.get",
6337
6519
  "domain": "engineering",
@@ -7134,6 +7316,42 @@
7134
7316
  "table": "engineering.merge_challenges",
7135
7317
  "relation": "table"
7136
7318
  },
7319
+ {
7320
+ "name": "engineering.page_design.create",
7321
+ "domain": "engineering",
7322
+ "domain_group": "engineering",
7323
+ "kind": "command",
7324
+ "mode": "write",
7325
+ "rule": null,
7326
+ "doors": [
7327
+ "commands"
7328
+ ],
7329
+ "command": "POST /v1/engineering/page-designs"
7330
+ },
7331
+ {
7332
+ "name": "engineering.page_design.set_status",
7333
+ "domain": "engineering",
7334
+ "domain_group": "engineering",
7335
+ "kind": "command",
7336
+ "mode": "write",
7337
+ "rule": null,
7338
+ "doors": [
7339
+ "commands"
7340
+ ],
7341
+ "command": "POST /v1/engineering/page-designs/{design_id}/status"
7342
+ },
7343
+ {
7344
+ "name": "engineering.page_design_rev.publish",
7345
+ "domain": "engineering",
7346
+ "domain_group": "engineering",
7347
+ "kind": "command",
7348
+ "mode": "write",
7349
+ "rule": null,
7350
+ "doors": [
7351
+ "commands"
7352
+ ],
7353
+ "command": "POST /v1/engineering/page-designs/{design_id}/revs"
7354
+ },
7137
7355
  {
7138
7356
  "name": "engineering.page_design_revs.delete",
7139
7357
  "domain": "engineering",
@@ -12184,6 +12402,30 @@
12184
12402
  ],
12185
12403
  "tool": "financing.ingest_c6"
12186
12404
  },
12405
+ {
12406
+ "name": "financing.charge_dispatch.run",
12407
+ "domain": "financing",
12408
+ "domain_group": "money",
12409
+ "kind": "command",
12410
+ "mode": "write",
12411
+ "rule": null,
12412
+ "doors": [
12413
+ "commands"
12414
+ ],
12415
+ "command": "POST /v1/payments/jobs/charge-dispatch-due/run"
12416
+ },
12417
+ {
12418
+ "name": "financing.charge_reaper.run",
12419
+ "domain": "financing",
12420
+ "domain_group": "money",
12421
+ "kind": "command",
12422
+ "mode": "write",
12423
+ "rule": null,
12424
+ "doors": [
12425
+ "commands"
12426
+ ],
12427
+ "command": "POST /v1/payments/jobs/charge-reaper/run"
12428
+ },
12187
12429
  {
12188
12430
  "name": "financing.cost_center.create",
12189
12431
  "domain": "financing",
@@ -13325,7 +13567,7 @@
13325
13567
  "function": "dfl-meetings-fireflies-sync"
13326
13568
  },
13327
13569
  {
13328
- "name": "functions.dfl-meetings-populate-segments.invoke",
13570
+ "name": "functions.dfl-notifications-resend-webhook.invoke",
13329
13571
  "domain": "functions",
13330
13572
  "domain_group": "unassigned",
13331
13573
  "kind": "function",
@@ -13334,10 +13576,10 @@
13334
13576
  "doors": [
13335
13577
  "rest"
13336
13578
  ],
13337
- "function": "dfl-meetings-populate-segments"
13579
+ "function": "dfl-notifications-resend-webhook"
13338
13580
  },
13339
13581
  {
13340
- "name": "functions.dfl-notifications-resend-webhook.invoke",
13582
+ "name": "functions.dfl-notifications.invoke",
13341
13583
  "domain": "functions",
13342
13584
  "domain_group": "unassigned",
13343
13585
  "kind": "function",
@@ -13346,10 +13588,10 @@
13346
13588
  "doors": [
13347
13589
  "rest"
13348
13590
  ],
13349
- "function": "dfl-notifications-resend-webhook"
13591
+ "function": "dfl-notifications"
13350
13592
  },
13351
13593
  {
13352
- "name": "functions.dfl-notifications.invoke",
13594
+ "name": "functions.dfl-payments-cancel-woovi-payment.invoke",
13353
13595
  "domain": "functions",
13354
13596
  "domain_group": "unassigned",
13355
13597
  "kind": "function",
@@ -13358,10 +13600,10 @@
13358
13600
  "doors": [
13359
13601
  "rest"
13360
13602
  ],
13361
- "function": "dfl-notifications"
13603
+ "function": "dfl-payments-cancel-woovi-payment"
13362
13604
  },
13363
13605
  {
13364
- "name": "functions.dfl-payments-cancel-woovi-payment.invoke",
13606
+ "name": "functions.dfl-payments-fellow-fiscal-verify.invoke",
13365
13607
  "domain": "functions",
13366
13608
  "domain_group": "unassigned",
13367
13609
  "kind": "function",
@@ -13370,7 +13612,19 @@
13370
13612
  "doors": [
13371
13613
  "rest"
13372
13614
  ],
13373
- "function": "dfl-payments-cancel-woovi-payment"
13615
+ "function": "dfl-payments-fellow-fiscal-verify"
13616
+ },
13617
+ {
13618
+ "name": "functions.dfl-payments-fellow-nfse-issue.invoke",
13619
+ "domain": "functions",
13620
+ "domain_group": "unassigned",
13621
+ "kind": "function",
13622
+ "mode": "write",
13623
+ "rule": null,
13624
+ "doors": [
13625
+ "rest"
13626
+ ],
13627
+ "function": "dfl-payments-fellow-nfse-issue"
13374
13628
  },
13375
13629
  {
13376
13630
  "name": "functions.dfl-payments-request-woovi-payment.invoke",
@@ -13696,18 +13950,6 @@
13696
13950
  ],
13697
13951
  "function": "github-stats"
13698
13952
  },
13699
- {
13700
- "name": "functions.gmeet-sync-conferences.invoke",
13701
- "domain": "functions",
13702
- "domain_group": "unassigned",
13703
- "kind": "function",
13704
- "mode": "write",
13705
- "rule": null,
13706
- "doors": [
13707
- "rest"
13708
- ],
13709
- "function": "gmeet-sync-conferences"
13710
- },
13711
13953
  {
13712
13954
  "name": "functions.hook-chat.invoke",
13713
13955
  "domain": "functions",
@@ -13756,18 +13998,6 @@
13756
13998
  ],
13757
13999
  "function": "publish-template"
13758
14000
  },
13759
- {
13760
- "name": "functions.save-epic-postmortem.invoke",
13761
- "domain": "functions",
13762
- "domain_group": "unassigned",
13763
- "kind": "function",
13764
- "mode": "write",
13765
- "rule": null,
13766
- "doors": [
13767
- "rest"
13768
- ],
13769
- "function": "save-epic-postmortem"
13770
- },
13771
14001
  {
13772
14002
  "name": "functions.search-profile-email.invoke",
13773
14003
  "domain": "functions",
@@ -15169,6 +15399,18 @@
15169
15399
  ],
15170
15400
  "tool": "learn.update_milestone"
15171
15401
  },
15402
+ {
15403
+ "name": "learn.milestone_artifact.delete",
15404
+ "domain": "learn",
15405
+ "domain_group": "people",
15406
+ "kind": "command",
15407
+ "mode": "write",
15408
+ "rule": null,
15409
+ "doors": [
15410
+ "commands"
15411
+ ],
15412
+ "command": "POST /v1/learn/milestone-artifacts/{artifact_id}/delete"
15413
+ },
15172
15414
  {
15173
15415
  "name": "learn.milestones.list",
15174
15416
  "domain": "learn",
@@ -15721,6 +15963,18 @@
15721
15963
  ],
15722
15964
  "tool": "learn.create_wiki_article"
15723
15965
  },
15966
+ {
15967
+ "name": "learn.wiki_article.delete",
15968
+ "domain": "learn",
15969
+ "domain_group": "people",
15970
+ "kind": "command",
15971
+ "mode": "write",
15972
+ "rule": null,
15973
+ "doors": [
15974
+ "commands"
15975
+ ],
15976
+ "command": "POST /v1/learn/wiki-articles/{article_id}/delete"
15977
+ },
15724
15978
  {
15725
15979
  "name": "learn.wiki_article.get",
15726
15980
  "domain": "learn",
@@ -18715,6 +18969,18 @@
18715
18969
  ],
18716
18970
  "tool": "ops.list_comms_threads"
18717
18971
  },
18972
+ {
18973
+ "name": "ops.connection.end_sessions",
18974
+ "domain": "ops",
18975
+ "domain_group": "engineering",
18976
+ "kind": "command",
18977
+ "mode": "write",
18978
+ "rule": null,
18979
+ "doors": [
18980
+ "commands"
18981
+ ],
18982
+ "command": "POST /v1/access/connections/end-sessions"
18983
+ },
18718
18984
  {
18719
18985
  "name": "ops.connection.revoke",
18720
18986
  "domain": "ops",
@@ -19777,6 +20043,110 @@
19777
20043
  ],
19778
20044
  "tool": "payments.get_current_actor"
19779
20045
  },
20046
+ {
20047
+ "name": "payments.fellow_fiscal_profiles.delete",
20048
+ "domain": "payments",
20049
+ "domain_group": "money",
20050
+ "kind": "table",
20051
+ "mode": "write",
20052
+ "rule": null,
20053
+ "doors": [
20054
+ "rest"
20055
+ ],
20056
+ "table": "payments.fellow_fiscal_profiles",
20057
+ "relation": "table"
20058
+ },
20059
+ {
20060
+ "name": "payments.fellow_fiscal_profiles.insert",
20061
+ "domain": "payments",
20062
+ "domain_group": "money",
20063
+ "kind": "table",
20064
+ "mode": "write",
20065
+ "rule": null,
20066
+ "doors": [
20067
+ "rest"
20068
+ ],
20069
+ "table": "payments.fellow_fiscal_profiles",
20070
+ "relation": "table"
20071
+ },
20072
+ {
20073
+ "name": "payments.fellow_fiscal_profiles.select",
20074
+ "domain": "payments",
20075
+ "domain_group": "money",
20076
+ "kind": "table",
20077
+ "mode": "read",
20078
+ "rule": null,
20079
+ "doors": [
20080
+ "rest"
20081
+ ],
20082
+ "table": "payments.fellow_fiscal_profiles",
20083
+ "relation": "table"
20084
+ },
20085
+ {
20086
+ "name": "payments.fellow_fiscal_profiles.update",
20087
+ "domain": "payments",
20088
+ "domain_group": "money",
20089
+ "kind": "table",
20090
+ "mode": "write",
20091
+ "rule": null,
20092
+ "doors": [
20093
+ "rest"
20094
+ ],
20095
+ "table": "payments.fellow_fiscal_profiles",
20096
+ "relation": "table"
20097
+ },
20098
+ {
20099
+ "name": "payments.fellow_nfse.delete",
20100
+ "domain": "payments",
20101
+ "domain_group": "money",
20102
+ "kind": "table",
20103
+ "mode": "write",
20104
+ "rule": null,
20105
+ "doors": [
20106
+ "rest"
20107
+ ],
20108
+ "table": "payments.fellow_nfse",
20109
+ "relation": "table"
20110
+ },
20111
+ {
20112
+ "name": "payments.fellow_nfse.insert",
20113
+ "domain": "payments",
20114
+ "domain_group": "money",
20115
+ "kind": "table",
20116
+ "mode": "write",
20117
+ "rule": null,
20118
+ "doors": [
20119
+ "rest"
20120
+ ],
20121
+ "table": "payments.fellow_nfse",
20122
+ "relation": "table"
20123
+ },
20124
+ {
20125
+ "name": "payments.fellow_nfse.select",
20126
+ "domain": "payments",
20127
+ "domain_group": "money",
20128
+ "kind": "table",
20129
+ "mode": "read",
20130
+ "rule": null,
20131
+ "doors": [
20132
+ "rest"
20133
+ ],
20134
+ "table": "payments.fellow_nfse",
20135
+ "relation": "table"
20136
+ },
20137
+ {
20138
+ "name": "payments.fellow_nfse.update",
20139
+ "domain": "payments",
20140
+ "domain_group": "money",
20141
+ "kind": "table",
20142
+ "mode": "write",
20143
+ "rule": null,
20144
+ "doors": [
20145
+ "rest"
20146
+ ],
20147
+ "table": "payments.fellow_nfse",
20148
+ "relation": "table"
20149
+ },
19780
20150
  {
19781
20151
  "name": "payments.fiscal_invoices.delete",
19782
20152
  "domain": "payments",
@@ -20919,6 +21289,18 @@
20919
21289
  ],
20920
21290
  "tool": "plans.list_plan_tasks"
20921
21291
  },
21292
+ {
21293
+ "name": "plans.plan_tasks.move",
21294
+ "domain": "plans",
21295
+ "domain_group": "work",
21296
+ "kind": "tool",
21297
+ "mode": "write",
21298
+ "rule": null,
21299
+ "doors": [
21300
+ "mcp"
21301
+ ],
21302
+ "tool": "plans.move_plan_tasks"
21303
+ },
20922
21304
  {
20923
21305
  "name": "plans.plan_tasks.set",
20924
21306
  "domain": "plans",
@@ -28602,6 +28984,30 @@
28602
28984
  "table": "strategy.customer_relationships_history",
28603
28985
  "relation": "table"
28604
28986
  },
28987
+ {
28988
+ "name": "strategy.customer_segment.add",
28989
+ "domain": "strategy",
28990
+ "domain_group": "marketing",
28991
+ "kind": "tool",
28992
+ "mode": "write",
28993
+ "rule": null,
28994
+ "doors": [
28995
+ "mcp"
28996
+ ],
28997
+ "tool": "strategy.add_customer_segment"
28998
+ },
28999
+ {
29000
+ "name": "strategy.customer_segment.archive",
29001
+ "domain": "strategy",
29002
+ "domain_group": "marketing",
29003
+ "kind": "command",
29004
+ "mode": "write",
29005
+ "rule": null,
29006
+ "doors": [
29007
+ "commands"
29008
+ ],
29009
+ "command": "POST /v1/strategy/business-units/{bu_id}/customer-segments/{id}/archive"
29010
+ },
28605
29011
  {
28606
29012
  "name": "strategy.customer_segment.delete",
28607
29013
  "domain": "strategy",
@@ -28614,6 +29020,18 @@
28614
29020
  ],
28615
29021
  "tool": "strategy.delete_customer_segment"
28616
29022
  },
29023
+ {
29024
+ "name": "strategy.customer_segment.restore",
29025
+ "domain": "strategy",
29026
+ "domain_group": "marketing",
29027
+ "kind": "command",
29028
+ "mode": "write",
29029
+ "rule": null,
29030
+ "doors": [
29031
+ "commands"
29032
+ ],
29033
+ "command": "POST /v1/strategy/business-units/{bu_id}/customer-segments/{id}/restore"
29034
+ },
28617
29035
  {
28618
29036
  "name": "strategy.customer_segment.update",
28619
29037
  "domain": "strategy",
@@ -28794,6 +29212,102 @@
28794
29212
  "table": "strategy.customer_segments_history",
28795
29213
  "relation": "table"
28796
29214
  },
29215
+ {
29216
+ "name": "strategy.decision.apply",
29217
+ "domain": "strategy",
29218
+ "domain_group": "marketing",
29219
+ "kind": "command",
29220
+ "mode": "write",
29221
+ "rule": null,
29222
+ "doors": [
29223
+ "commands"
29224
+ ],
29225
+ "command": "POST /v1/strategy/business-units/{bu_id}/decisions/{id}/apply"
29226
+ },
29227
+ {
29228
+ "name": "strategy.decision.create",
29229
+ "domain": "strategy",
29230
+ "domain_group": "marketing",
29231
+ "kind": "command",
29232
+ "mode": "write",
29233
+ "rule": null,
29234
+ "doors": [
29235
+ "commands"
29236
+ ],
29237
+ "command": "POST /v1/strategy/business-units/{bu_id}/decisions"
29238
+ },
29239
+ {
29240
+ "name": "strategy.decision.decide",
29241
+ "domain": "strategy",
29242
+ "domain_group": "marketing",
29243
+ "kind": "command",
29244
+ "mode": "write",
29245
+ "rule": null,
29246
+ "doors": [
29247
+ "commands"
29248
+ ],
29249
+ "command": "POST /v1/strategy/business-units/{bu_id}/decisions/{id}/decide"
29250
+ },
29251
+ {
29252
+ "name": "strategy.decision.revert",
29253
+ "domain": "strategy",
29254
+ "domain_group": "marketing",
29255
+ "kind": "command",
29256
+ "mode": "write",
29257
+ "rule": null,
29258
+ "doors": [
29259
+ "commands"
29260
+ ],
29261
+ "command": "POST /v1/strategy/business-units/{bu_id}/decisions/{id}/revert"
29262
+ },
29263
+ {
29264
+ "name": "strategy.decision.update",
29265
+ "domain": "strategy",
29266
+ "domain_group": "marketing",
29267
+ "kind": "command",
29268
+ "mode": "write",
29269
+ "rule": null,
29270
+ "doors": [
29271
+ "commands"
29272
+ ],
29273
+ "command": "POST /v1/strategy/business-units/{bu_id}/decisions/{id}"
29274
+ },
29275
+ {
29276
+ "name": "strategy.decision_changes.adopt",
29277
+ "domain": "strategy",
29278
+ "domain_group": "marketing",
29279
+ "kind": "command",
29280
+ "mode": "write",
29281
+ "rule": null,
29282
+ "doors": [
29283
+ "commands"
29284
+ ],
29285
+ "command": "POST /v1/strategy/business-units/{bu_id}/decisions/{id}/adopt"
29286
+ },
29287
+ {
29288
+ "name": "strategy.decision_changes.set",
29289
+ "domain": "strategy",
29290
+ "domain_group": "marketing",
29291
+ "kind": "command",
29292
+ "mode": "write",
29293
+ "rule": null,
29294
+ "doors": [
29295
+ "commands"
29296
+ ],
29297
+ "command": "POST /v1/strategy/business-units/{bu_id}/decisions/{id}/changes"
29298
+ },
29299
+ {
29300
+ "name": "strategy.decision_status.set",
29301
+ "domain": "strategy",
29302
+ "domain_group": "marketing",
29303
+ "kind": "command",
29304
+ "mode": "write",
29305
+ "rule": null,
29306
+ "doors": [
29307
+ "commands"
29308
+ ],
29309
+ "command": "POST /v1/strategy/business-units/{bu_id}/decisions/{id}/status"
29310
+ },
28797
29311
  {
28798
29312
  "name": "strategy.decisions.delete",
28799
29313
  "domain": "strategy",
@@ -31007,6 +31521,42 @@
31007
31521
  "table": "strategy.kpis_history",
31008
31522
  "relation": "table"
31009
31523
  },
31524
+ {
31525
+ "name": "strategy.market.add",
31526
+ "domain": "strategy",
31527
+ "domain_group": "marketing",
31528
+ "kind": "command",
31529
+ "mode": "write",
31530
+ "rule": null,
31531
+ "doors": [
31532
+ "commands"
31533
+ ],
31534
+ "command": "POST /v1/strategy/markets"
31535
+ },
31536
+ {
31537
+ "name": "strategy.market.apply",
31538
+ "domain": "strategy",
31539
+ "domain_group": "marketing",
31540
+ "kind": "command",
31541
+ "mode": "write",
31542
+ "rule": null,
31543
+ "doors": [
31544
+ "commands"
31545
+ ],
31546
+ "command": "POST /v1/strategy/business-units/{bu_id}/markets/apply"
31547
+ },
31548
+ {
31549
+ "name": "strategy.market.update",
31550
+ "domain": "strategy",
31551
+ "domain_group": "marketing",
31552
+ "kind": "command",
31553
+ "mode": "write",
31554
+ "rule": null,
31555
+ "doors": [
31556
+ "commands"
31557
+ ],
31558
+ "command": "POST /v1/strategy/markets/{id}"
31559
+ },
31010
31560
  {
31011
31561
  "name": "strategy.markets.delete",
31012
31562
  "domain": "strategy",
@@ -31111,6 +31661,42 @@
31111
31661
  "table": "strategy.metric_observations",
31112
31662
  "relation": "table"
31113
31663
  },
31664
+ {
31665
+ "name": "strategy.moat.add",
31666
+ "domain": "strategy",
31667
+ "domain_group": "marketing",
31668
+ "kind": "tool",
31669
+ "mode": "write",
31670
+ "rule": null,
31671
+ "doors": [
31672
+ "mcp"
31673
+ ],
31674
+ "tool": "strategy.add_moat"
31675
+ },
31676
+ {
31677
+ "name": "strategy.moat.archive",
31678
+ "domain": "strategy",
31679
+ "domain_group": "marketing",
31680
+ "kind": "tool",
31681
+ "mode": "write",
31682
+ "rule": null,
31683
+ "doors": [
31684
+ "mcp"
31685
+ ],
31686
+ "tool": "strategy.archive_moat"
31687
+ },
31688
+ {
31689
+ "name": "strategy.moat.update",
31690
+ "domain": "strategy",
31691
+ "domain_group": "marketing",
31692
+ "kind": "tool",
31693
+ "mode": "write",
31694
+ "rule": null,
31695
+ "doors": [
31696
+ "mcp"
31697
+ ],
31698
+ "tool": "strategy.update_moat"
31699
+ },
31114
31700
  {
31115
31701
  "name": "strategy.moats.delete",
31116
31702
  "domain": "strategy",
@@ -31137,6 +31723,18 @@
31137
31723
  "table": "strategy.moats",
31138
31724
  "relation": "table"
31139
31725
  },
31726
+ {
31727
+ "name": "strategy.moats.list",
31728
+ "domain": "strategy",
31729
+ "domain_group": "marketing",
31730
+ "kind": "tool",
31731
+ "mode": "read",
31732
+ "rule": null,
31733
+ "doors": [
31734
+ "mcp"
31735
+ ],
31736
+ "tool": "strategy.list_moats"
31737
+ },
31140
31738
  {
31141
31739
  "name": "strategy.moats.select",
31142
31740
  "domain": "strategy",
@@ -36171,13 +36769,15 @@
36171
36769
  "name": "work.pull_requests.upsert",
36172
36770
  "domain": "work",
36173
36771
  "domain_group": "work",
36174
- "kind": "tool",
36772
+ "kind": "command",
36175
36773
  "mode": "write",
36176
36774
  "rule": null,
36177
36775
  "doors": [
36776
+ "commands",
36178
36777
  "mcp"
36179
36778
  ],
36180
- "tool": "work.upsert_pull_requests"
36779
+ "tool": "work.upsert_pull_requests",
36780
+ "command": "POST /v1/pull-requests/upsert"
36181
36781
  },
36182
36782
  {
36183
36783
  "name": "work.review_assignments.delete",
@@ -37177,13 +37777,15 @@
37177
37777
  "name": "work.task_pr.remove",
37178
37778
  "domain": "work",
37179
37779
  "domain_group": "work",
37180
- "kind": "tool",
37780
+ "kind": "command",
37181
37781
  "mode": "write",
37182
37782
  "rule": null,
37183
37783
  "doors": [
37784
+ "commands",
37184
37785
  "mcp"
37185
37786
  ],
37186
- "tool": "work.remove_task_pr"
37787
+ "tool": "work.remove_task_pr",
37788
+ "command": "POST /v1/task-prs/remove"
37187
37789
  },
37188
37790
  {
37189
37791
  "name": "work.task_prs.add",
package/db-surface.json CHANGED
@@ -1,7 +1,7 @@
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": "20261130120000",
4
+ "migration_head": "20261204100000",
5
5
  "schemas": [
6
6
  "apps",
7
7
  "campaigns",
@@ -224,6 +224,8 @@
224
224
  "payments.charges",
225
225
  "payments.client_companies",
226
226
  "payments.contracts",
227
+ "payments.fellow_fiscal_profiles",
228
+ "payments.fellow_nfse",
227
229
  "payments.fiscal_invoices",
228
230
  "payments.invoice_items",
229
231
  "payments.invoices",
@@ -748,6 +750,7 @@
748
750
  "lms.set_updated_at",
749
751
  "lms.update_learning_path_courses_count",
750
752
  "notifications.update_email_templates_updated_at",
753
+ "payments.fellow_fiscal_profiles_reset_verification",
751
754
  "payments.forbid_recurrence_change",
752
755
  "payments.set_updated_at",
753
756
  "payments.validate_contract_splits_total",
@@ -852,10 +855,11 @@
852
855
  "dfl-global-notifications",
853
856
  "dfl-lesson-studio-concat-segments",
854
857
  "dfl-meetings-fireflies-sync",
855
- "dfl-meetings-populate-segments",
856
858
  "dfl-notifications",
857
859
  "dfl-notifications-resend-webhook",
858
860
  "dfl-payments-cancel-woovi-payment",
861
+ "dfl-payments-fellow-fiscal-verify",
862
+ "dfl-payments-fellow-nfse-issue",
859
863
  "dfl-payments-request-woovi-payment",
860
864
  "dfl-payments-woovi-callback",
861
865
  "dfl-publisher-connect-platform",
@@ -883,12 +887,10 @@
883
887
  "get-upload-url",
884
888
  "github-link",
885
889
  "github-stats",
886
- "gmeet-sync-conferences",
887
890
  "hook-chat",
888
891
  "impersonate",
889
892
  "media-redirect",
890
893
  "publish-template",
891
- "save-epic-postmortem",
892
894
  "search-profile-email",
893
895
  "start-email-verification",
894
896
  "stripe-webhook",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devfellowship/access",
3
- "version": "0.3.1",
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",