@sentinelconnector/cli 0.5.0 → 0.6.0

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.
@@ -394,7 +394,7 @@
394
394
  "name": "key",
395
395
  "type": "string",
396
396
  "required": true,
397
- "description": "An email's key, a group as group:critical, group:recommended or group:optional, or all to remove an organisation's own choices."
397
+ "description": "An email's key, a group as group:critical, group:recommended or group:optional, the incident emails as area:incidents or area:incidents.<subgroup>, or all to remove an organisation's own choices."
398
398
  },
399
399
  {
400
400
  "name": "enabled",
@@ -412,7 +412,7 @@
412
412
  "name": "replace_organisations",
413
413
  "type": "boolean",
414
414
  "required": false,
415
- "description": "With a group for all organisations: also remove each organisation's own choices for that group."
415
+ "description": "With a group or area for all organisations: also remove each organisation's own choices for it."
416
416
  }
417
417
  ]
418
418
  }
@@ -434,7 +434,7 @@
434
434
  "name": "key",
435
435
  "type": "string",
436
436
  "required": true,
437
- "description": "An email's key, a group as group:critical, group:recommended or group:optional, or all to remove an organisation's own choices."
437
+ "description": "An email's key, a group as group:critical, group:recommended or group:optional, the incident emails as area:incidents or area:incidents.<subgroup>, or all to remove an organisation's own choices."
438
438
  },
439
439
  {
440
440
  "name": "enabled",
@@ -452,7 +452,7 @@
452
452
  "name": "replace_organisations",
453
453
  "type": "boolean",
454
454
  "required": false,
455
- "description": "With a group for all organisations: also remove each organisation's own choices for that group."
455
+ "description": "With a group or area for all organisations: also remove each organisation's own choices for it."
456
456
  }
457
457
  ]
458
458
  }
@@ -643,7 +643,7 @@
643
643
  "path": "/api/v1/auth/logout",
644
644
  "policy": "dashboard_only",
645
645
  "summary": "Logout",
646
- "description": "Acknowledge server-observed sign-out; JWT revocation remains client-side. AuditRoute records the authenticated operation and its outcome.",
646
+ "description": "End the dashboard session on the server and acknowledge sign-out. Direct tokens record an ended session row so refresh stops immediately; issuer tokens clear their session proof. AuditRoute records the authenticated operation and its outcome.",
647
647
  "pathParams": [],
648
648
  "query": [],
649
649
  "body": null
@@ -839,7 +839,7 @@
839
839
  "path": "/api/v1/auth/session/refresh",
840
840
  "policy": "dashboard_only",
841
841
  "summary": "Refresh Session",
842
- "description": "Extend a dashboard session while it is in use. The new token keeps the original sign-in time. A customer session is not renewed past CUSTOMER_SESSION_MAX_HOURS from that time.",
842
+ "description": "Extend a dashboard session while it is in use. The new token keeps the original sign-in time and ``ses`` identifier. A customer session is not renewed past CUSTOMER_SESSION_MAX_HOURS from that time, and a signed-out direct session is refused with ``session_ended``.",
843
843
  "pathParams": [],
844
844
  "query": [],
845
845
  "body": null
@@ -2064,7 +2064,7 @@
2064
2064
  "name": "rotate-secret",
2065
2065
  "method": "POST",
2066
2066
  "path": "/api/v1/integrations/destinations/{destination_id}/rotate-secret",
2067
- "policy": "mfa",
2067
+ "policy": "dashboard_only",
2068
2068
  "summary": "Rotate Secret",
2069
2069
  "description": "",
2070
2070
  "pathParams": [
@@ -2212,13 +2212,13 @@
2212
2212
  {
2213
2213
  "name": "team_id",
2214
2214
  "type": "string",
2215
- "required": true,
2215
+ "required": false,
2216
2216
  "description": ""
2217
2217
  },
2218
2218
  {
2219
2219
  "name": "channel_id",
2220
2220
  "type": "string",
2221
- "required": true,
2221
+ "required": false,
2222
2222
  "description": ""
2223
2223
  },
2224
2224
  {
@@ -2666,7 +2666,7 @@
2666
2666
  "name": "create-module-version",
2667
2667
  "method": "POST",
2668
2668
  "path": "/api/v1/module-versions/",
2669
- "policy": "write",
2669
+ "policy": "mfa",
2670
2670
  "summary": "Create Module Version",
2671
2671
  "description": "Register a new module version (superuser only).",
2672
2672
  "pathParams": [],
@@ -2718,7 +2718,7 @@
2718
2718
  "name": "delete-module-version",
2719
2719
  "method": "DELETE",
2720
2720
  "path": "/api/v1/module-versions/{version_id}",
2721
- "policy": "write",
2721
+ "policy": "mfa",
2722
2722
  "summary": "Delete Module Version",
2723
2723
  "description": "Soft delete a module version (superuser only).",
2724
2724
  "pathParams": [
@@ -2746,7 +2746,7 @@
2746
2746
  "name": "update-module-version",
2747
2747
  "method": "PUT",
2748
2748
  "path": "/api/v1/module-versions/{version_id}",
2749
- "policy": "write",
2749
+ "policy": "mfa",
2750
2750
  "summary": "Update Module Version",
2751
2751
  "description": "Update a module version (superuser only).",
2752
2752
  "pathParams": [
@@ -2849,7 +2849,7 @@
2849
2849
  "name": "delete-module",
2850
2850
  "method": "DELETE",
2851
2851
  "path": "/api/v1/modules/{module_id}",
2852
- "policy": "write",
2852
+ "policy": "mfa",
2853
2853
  "summary": "Delete Module",
2854
2854
  "description": "Soft delete a module (superuser only). This will mark the module as inactive but preserve historical data.",
2855
2855
  "pathParams": [
@@ -3310,7 +3310,7 @@
3310
3310
  "name": "restore-module",
3311
3311
  "method": "POST",
3312
3312
  "path": "/api/v1/modules/{module_id}/restore",
3313
- "policy": "write",
3313
+ "policy": "mfa",
3314
3314
  "summary": "Restore Module",
3315
3315
  "description": "Restore a soft-deleted module (superuser only). Returns 404 if the module does not exist and 409 if an active module already holds the same machine_name.",
3316
3316
  "pathParams": [
@@ -3324,7 +3324,7 @@
3324
3324
  "name": "update-module",
3325
3325
  "method": "PUT",
3326
3326
  "path": "/api/v1/modules/{module_id}",
3327
- "policy": "write",
3327
+ "policy": "mfa",
3328
3328
  "summary": "Update Module",
3329
3329
  "description": "Update module information (superuser only).",
3330
3330
  "pathParams": [
@@ -3845,7 +3845,7 @@
3845
3845
  "method": "POST",
3846
3846
  "path": "/api/v1/organizations/{organization_id}/external-tickets/links",
3847
3847
  "policy": "write",
3848
- "summary": "Link a ticket to vulnerabilities",
3848
+ "summary": "Link a ticket to vulnerabilities or updates",
3849
3849
  "description": "Link one ticket to up to 200 vulnerabilities in one change. All or nothing: a bad target refuses the whole change (422 ``targets_invalid``), and a stale revision answers 409 ``stale``. Send an ``Idempotency-Key``: a retry with the same key and body gets the first answer. Linking never marks anything fixed. Site managers and Organisation admins.",
3850
3850
  "pathParams": [
3851
3851
  "organization_id"
@@ -3890,6 +3890,20 @@
3890
3890
  "query": [],
3891
3891
  "body": null
3892
3892
  },
3893
+ {
3894
+ "group": "organizations",
3895
+ "name": "browser-extension-get",
3896
+ "method": "GET",
3897
+ "path": "/api/v1/organizations/{organization_id}/browser-extension",
3898
+ "policy": "read",
3899
+ "summary": "See whether the browser extension may open its vulnerability pop-up",
3900
+ "description": "",
3901
+ "pathParams": [
3902
+ "organization_id"
3903
+ ],
3904
+ "query": [],
3905
+ "body": null
3906
+ },
3893
3907
  {
3894
3908
  "group": "organizations",
3895
3909
  "name": "cancel-invitation",
@@ -4413,6 +4427,12 @@
4413
4427
  "required": false,
4414
4428
  "description": "Only rollbacks, or none"
4415
4429
  },
4430
+ {
4431
+ "name": "source",
4432
+ "type": "string",
4433
+ "required": false,
4434
+ "description": "sentinel: only releases Sentinel deployed"
4435
+ },
4416
4436
  {
4417
4437
  "name": "release_id",
4418
4438
  "type": "string",
@@ -4643,7 +4663,7 @@
4643
4663
  "path": "/api/v1/organizations/{organization_id}/external-tickets/tickets",
4644
4664
  "policy": "read",
4645
4665
  "summary": "List tickets linked to vulnerabilities",
4646
- "description": "Tickets with at least one current link, newest first, with how many vulnerabilities and sites each covers.",
4666
+ "description": "Tickets with at least one current link, newest first, with how many vulnerabilities and sites each covers. ``key`` finds one ticket number; ``starts_with`` suggests tickets as a number is typed.",
4647
4667
  "pathParams": [
4648
4668
  "organization_id"
4649
4669
  ],
@@ -4660,6 +4680,12 @@
4660
4680
  "required": false,
4661
4681
  "description": ""
4662
4682
  },
4683
+ {
4684
+ "name": "starts_with",
4685
+ "type": "string",
4686
+ "required": false,
4687
+ "description": "Tickets whose number starts with this text."
4688
+ },
4663
4689
  {
4664
4690
  "name": "page",
4665
4691
  "type": "integer",
@@ -4702,7 +4728,7 @@
4702
4728
  "method": "GET",
4703
4729
  "path": "/api/v1/organizations/{organization_id}/external-tickets/findings",
4704
4730
  "policy": "read",
4705
- "summary": "List vulnerabilities with their tickets",
4731
+ "summary": "List vulnerabilities and updates with their tickets",
4706
4732
  "description": "Site-and-vulnerability pairs across the organisation, grouped by site, open first, with the ticket on each and its revision.",
4707
4733
  "pathParams": [
4708
4734
  "organization_id"
@@ -4720,10 +4746,17 @@
4720
4746
  "required": false,
4721
4747
  "values": [
4722
4748
  "advisory",
4723
- "stack"
4749
+ "stack",
4750
+ "update"
4724
4751
  ],
4725
4752
  "description": ""
4726
4753
  },
4754
+ {
4755
+ "name": "finding",
4756
+ "type": "integer[]",
4757
+ "required": false,
4758
+ "description": "Finding IDs within source. Repeat for several."
4759
+ },
4727
4760
  {
4728
4761
  "name": "state",
4729
4762
  "type": "string",
@@ -5728,7 +5761,7 @@
5728
5761
  "method": "POST",
5729
5762
  "path": "/api/v1/organizations/{organization_id}/external-tickets/links/remove",
5730
5763
  "policy": "write",
5731
- "summary": "Remove tickets from vulnerabilities",
5764
+ "summary": "Remove tickets from vulnerabilities or updates",
5732
5765
  "description": "Remove the ticket from up to 200 vulnerabilities in one change. The vulnerabilities themselves do not change. Same rules as linking.",
5733
5766
  "pathParams": [
5734
5767
  "organization_id"
@@ -5796,7 +5829,7 @@
5796
5829
  "name": "restore-organization",
5797
5830
  "method": "POST",
5798
5831
  "path": "/api/v1/organizations/{organization_id}/restore",
5799
- "policy": "write",
5832
+ "policy": "mfa",
5800
5833
  "summary": "Restore Organization",
5801
5834
  "description": "Restore a soft-deleted organization (superuser only). Does not cascade to previously-deleted sites/site modules. Returns 404 if the organization does not exist.",
5802
5835
  "pathParams": [
@@ -5810,7 +5843,7 @@
5810
5843
  "name": "restore-report-logo",
5811
5844
  "method": "DELETE",
5812
5845
  "path": "/api/v1/organizations/{organization_id}/report-settings/logo/takedown",
5813
- "policy": "write",
5846
+ "policy": "mfa",
5814
5847
  "summary": "Restore Report Logo",
5815
5848
  "description": "Lift the takedown of one image, named by its hash. For example after a counter-notice went unanswered. Any other image the organisation has had taken down stays blocked.",
5816
5849
  "pathParams": [
@@ -6045,7 +6078,7 @@
6045
6078
  "name": "take-down-report-logo",
6046
6079
  "method": "POST",
6047
6080
  "path": "/api/v1/organizations/{organization_id}/report-settings/logo/takedown",
6048
- "policy": "write",
6081
+ "policy": "mfa",
6049
6082
  "summary": "Take Down Report Logo",
6050
6083
  "description": "Remove an organisation's logo from every report after a complaint. The image disappears from new reports, from reports already issued and from PDFs, and the same file cannot be uploaded again. ``logo_sha256`` names an image the organisation has since replaced or removed but that an issued report still carries; without it the current logo is taken down. Who did it, when and why are kept. See docs/COPYRIGHT_TAKEDOWN.md.",
6051
6084
  "pathParams": [
@@ -6076,7 +6109,7 @@
6076
6109
  "method": "GET",
6077
6110
  "path": "/api/v1/organizations/{organization_id}/external-tickets/history",
6078
6111
  "policy": "read",
6079
- "summary": "Ticket history of a vulnerability",
6112
+ "summary": "Ticket history of a vulnerability or update",
6080
6113
  "description": "Every link, replacement and removal on one vulnerability, oldest first.",
6081
6114
  "pathParams": [
6082
6115
  "organization_id"
@@ -6088,7 +6121,8 @@
6088
6121
  "required": true,
6089
6122
  "values": [
6090
6123
  "advisory",
6091
- "stack"
6124
+ "stack",
6125
+ "update"
6092
6126
  ],
6093
6127
  "description": ""
6094
6128
  },
@@ -6275,6 +6309,35 @@
6275
6309
  ]
6276
6310
  }
6277
6311
  },
6312
+ {
6313
+ "group": "organizations",
6314
+ "name": "update-organization-security-level",
6315
+ "method": "PUT",
6316
+ "path": "/api/v1/organizations/{organization_id}/security-level",
6317
+ "policy": "dashboard_only",
6318
+ "summary": "Change an organisation's two-factor security level",
6319
+ "description": "Change the level and notify the organisation's administrators.",
6320
+ "pathParams": [
6321
+ "organization_id"
6322
+ ],
6323
+ "query": [],
6324
+ "body": {
6325
+ "required": true,
6326
+ "fields": [
6327
+ {
6328
+ "name": "level",
6329
+ "type": "string",
6330
+ "required": true,
6331
+ "values": [
6332
+ "low",
6333
+ "medium",
6334
+ "high"
6335
+ ],
6336
+ "description": ""
6337
+ }
6338
+ ]
6339
+ }
6340
+ },
6278
6341
  {
6279
6342
  "group": "organizations",
6280
6343
  "name": "update-report-settings",
@@ -6400,6 +6463,30 @@
6400
6463
  ]
6401
6464
  }
6402
6465
  },
6466
+ {
6467
+ "group": "organizations",
6468
+ "name": "update-settings-patch",
6469
+ "method": "PATCH",
6470
+ "path": "/api/v1/organizations/{organization_id}/browser-extension",
6471
+ "policy": "write",
6472
+ "summary": "Turn the browser extension vulnerability pop-up on or off",
6473
+ "description": "",
6474
+ "pathParams": [
6475
+ "organization_id"
6476
+ ],
6477
+ "query": [],
6478
+ "body": {
6479
+ "required": true,
6480
+ "fields": [
6481
+ {
6482
+ "name": "vulnerability_popup",
6483
+ "type": "boolean",
6484
+ "required": true,
6485
+ "description": ""
6486
+ }
6487
+ ]
6488
+ }
6489
+ },
6403
6490
  {
6404
6491
  "group": "organizations",
6405
6492
  "name": "update-ticket-system",
@@ -6613,6 +6700,60 @@
6613
6700
  ]
6614
6701
  }
6615
6702
  },
6703
+ {
6704
+ "group": "patching",
6705
+ "name": "accept-profile-agreement",
6706
+ "method": "POST",
6707
+ "path": "/api/v1/patching/profiles/{profile_id}/agreement",
6708
+ "policy": "mfa",
6709
+ "summary": "Accept the Patching agreement for a profile's websites",
6710
+ "description": "One acceptance for every website of the profile that needs one. The websites are those the apply preview reports as ``needs_terms`` with ``patching_agreement_required``. Send their ``site_uuids`` as shown: if the list no longer matches, nothing is recorded and the answer is ``409`` with ``websites_changed``. Needs ``patching:configure`` and a recent second factor. Preview the apply again afterwards: the websites are no longer held for terms.",
6711
+ "pathParams": [
6712
+ "profile_id"
6713
+ ],
6714
+ "query": [],
6715
+ "body": {
6716
+ "required": true,
6717
+ "fields": [
6718
+ {
6719
+ "name": "agreement_version",
6720
+ "type": "string",
6721
+ "required": true,
6722
+ "description": ""
6723
+ },
6724
+ {
6725
+ "name": "summary_hash",
6726
+ "type": "string",
6727
+ "required": true,
6728
+ "description": ""
6729
+ },
6730
+ {
6731
+ "name": "customer_name",
6732
+ "type": "string",
6733
+ "required": true,
6734
+ "description": ""
6735
+ },
6736
+ {
6737
+ "name": "accepted",
6738
+ "type": "boolean",
6739
+ "required": true,
6740
+ "description": ""
6741
+ },
6742
+ {
6743
+ "name": "organization_id",
6744
+ "type": "integer",
6745
+ "required": true,
6746
+ "description": ""
6747
+ },
6748
+ {
6749
+ "name": "site_uuids",
6750
+ "type": "string[]",
6751
+ "required": true,
6752
+ "description": ""
6753
+ }
6754
+ ]
6755
+ }
6756
+ },
6616
6757
  {
6617
6758
  "group": "patching",
6618
6759
  "name": "add-included-ai",
@@ -6635,6 +6776,42 @@
6635
6776
  ]
6636
6777
  }
6637
6778
  },
6779
+ {
6780
+ "group": "patching",
6781
+ "name": "add-shared-repository",
6782
+ "method": "POST",
6783
+ "path": "/api/v1/patching/connections/{connection_id}/shared-repositories/add",
6784
+ "policy": "mfa",
6785
+ "summary": "Share one more repository of a shared GitHub account",
6786
+ "description": "Add one repository to what this organisation may reach (#3689). The site wizard's way to choose a repository of a shared GitHub account the organisation does not have yet. The same rules as choosing them in Patching settings: an administrator of both organisations, a recent second factor, the risk accepted, and a repository nobody else holds. What the organisation already has is kept.",
6787
+ "pathParams": [
6788
+ "connection_id"
6789
+ ],
6790
+ "query": [],
6791
+ "body": {
6792
+ "required": true,
6793
+ "fields": [
6794
+ {
6795
+ "name": "organization_id",
6796
+ "type": "integer",
6797
+ "required": true,
6798
+ "description": ""
6799
+ },
6800
+ {
6801
+ "name": "repository_id",
6802
+ "type": "string",
6803
+ "required": true,
6804
+ "description": ""
6805
+ },
6806
+ {
6807
+ "name": "acknowledge_shared_risk",
6808
+ "type": "boolean",
6809
+ "required": false,
6810
+ "description": ""
6811
+ }
6812
+ ]
6813
+ }
6814
+ },
6638
6815
  {
6639
6816
  "group": "patching",
6640
6817
  "name": "apply-profile",
@@ -7015,8 +7192,8 @@
7015
7192
  "type": "string",
7016
7193
  "required": false,
7017
7194
  "values": [
7018
- "copilot",
7019
- "autopilot"
7195
+ "autopilot",
7196
+ "copilot"
7020
7197
  ],
7021
7198
  "description": ""
7022
7199
  },
@@ -7245,6 +7422,27 @@
7245
7422
  ]
7246
7423
  }
7247
7424
  },
7425
+ {
7426
+ "group": "patching",
7427
+ "name": "export-acceptances",
7428
+ "method": "GET",
7429
+ "path": "/api/v1/patching/organizations/{organization_id}/agreement-acceptances.csv",
7430
+ "policy": "read",
7431
+ "summary": "Export an organisation's Patching agreement acceptances as CSV",
7432
+ "description": "Every acceptance of the organisation as CSV, newest first.",
7433
+ "pathParams": [
7434
+ "organization_id"
7435
+ ],
7436
+ "query": [
7437
+ {
7438
+ "name": "site_uuid",
7439
+ "type": "string",
7440
+ "required": false,
7441
+ "description": ""
7442
+ }
7443
+ ],
7444
+ "body": null
7445
+ },
7248
7446
  {
7249
7447
  "group": "patching",
7250
7448
  "name": "export-consents",
@@ -7511,6 +7709,39 @@
7511
7709
  ]
7512
7710
  }
7513
7711
  },
7712
+ {
7713
+ "group": "patching",
7714
+ "name": "list-acceptances",
7715
+ "method": "GET",
7716
+ "path": "/api/v1/patching/organizations/{organization_id}/agreement-acceptances",
7717
+ "policy": "read",
7718
+ "summary": "List an organisation's Patching agreement acceptances",
7719
+ "description": "Who accepted the agreement for which website, newest first.",
7720
+ "pathParams": [
7721
+ "organization_id"
7722
+ ],
7723
+ "query": [
7724
+ {
7725
+ "name": "site_uuid",
7726
+ "type": "string",
7727
+ "required": false,
7728
+ "description": ""
7729
+ },
7730
+ {
7731
+ "name": "limit",
7732
+ "type": "integer",
7733
+ "required": false,
7734
+ "description": ""
7735
+ },
7736
+ {
7737
+ "name": "offset",
7738
+ "type": "integer",
7739
+ "required": false,
7740
+ "description": ""
7741
+ }
7742
+ ],
7743
+ "body": null
7744
+ },
7514
7745
  {
7515
7746
  "group": "patching",
7516
7747
  "name": "list-calls",
@@ -7710,6 +7941,18 @@
7710
7941
  ],
7711
7942
  "description": ""
7712
7943
  },
7944
+ {
7945
+ "name": "ticket",
7946
+ "type": "string",
7947
+ "required": false,
7948
+ "description": ""
7949
+ },
7950
+ {
7951
+ "name": "ticket_id",
7952
+ "type": "string",
7953
+ "required": false,
7954
+ "description": ""
7955
+ },
7713
7956
  {
7714
7957
  "name": "page",
7715
7958
  "type": "integer",
@@ -7773,7 +8016,10 @@
7773
8016
  "values": [
7774
8017
  "security",
7775
8018
  "maintenance",
7776
- "rebase"
8019
+ "rebase",
8020
+ "ci_fix",
8021
+ "setup_fix",
8022
+ "blocker_fix"
7777
8023
  ],
7778
8024
  "description": ""
7779
8025
  },
@@ -7789,6 +8035,18 @@
7789
8035
  ],
7790
8036
  "description": ""
7791
8037
  },
8038
+ {
8039
+ "name": "ticket",
8040
+ "type": "string",
8041
+ "required": false,
8042
+ "description": ""
8043
+ },
8044
+ {
8045
+ "name": "ticket_id",
8046
+ "type": "string",
8047
+ "required": false,
8048
+ "description": ""
8049
+ },
7792
8050
  {
7793
8051
  "name": "days",
7794
8052
  "type": "integer",
@@ -8202,12 +8460,12 @@
8202
8460
  },
8203
8461
  {
8204
8462
  "group": "patching",
8205
- "name": "read-catalogue",
8463
+ "name": "read-agreement",
8206
8464
  "method": "GET",
8207
- "path": "/api/v1/patching/integration-requests/catalogue",
8465
+ "path": "/api/v1/patching/agreement",
8208
8466
  "policy": "read",
8209
- "summary": "Read Catalogue",
8210
- "description": "The forms' messages, the catalogue with its reasons and the trigger words.",
8467
+ "summary": "Read the Patching agreement on offer",
8468
+ "description": "The agreement a person can accept now: its summary, the four texts it is made of and where the public website shows each. With ``site_uuid``, also whether that website has accepted, and, for a caller who may accept for it, the Customer they would accept for. ``in_force`` is false while there is no agreement to accept.",
8211
8469
  "pathParams": [],
8212
8470
  "query": [
8213
8471
  {
@@ -8215,21 +8473,46 @@
8215
8473
  "type": "integer",
8216
8474
  "required": false,
8217
8475
  "description": ""
8476
+ },
8477
+ {
8478
+ "name": "site_uuid",
8479
+ "type": "string",
8480
+ "required": false,
8481
+ "description": ""
8218
8482
  }
8219
8483
  ],
8220
8484
  "body": null
8221
8485
  },
8222
8486
  {
8223
8487
  "group": "patching",
8224
- "name": "read-job-review",
8488
+ "name": "read-catalogue",
8225
8489
  "method": "GET",
8226
- "path": "/api/v1/patching/jobs/{job_id}/review",
8490
+ "path": "/api/v1/patching/integration-requests/catalogue",
8227
8491
  "policy": "read",
8228
- "summary": "Read Job Review",
8229
- "description": "Whether the job is flagged for review, and the reasons to choose from.",
8230
- "pathParams": [
8231
- "job_id"
8232
- ],
8492
+ "summary": "Read Catalogue",
8493
+ "description": "The forms' messages, the catalogue with its reasons and the trigger words.",
8494
+ "pathParams": [],
8495
+ "query": [
8496
+ {
8497
+ "name": "organization_id",
8498
+ "type": "integer",
8499
+ "required": false,
8500
+ "description": ""
8501
+ }
8502
+ ],
8503
+ "body": null
8504
+ },
8505
+ {
8506
+ "group": "patching",
8507
+ "name": "read-job-review",
8508
+ "method": "GET",
8509
+ "path": "/api/v1/patching/jobs/{job_id}/review",
8510
+ "policy": "read",
8511
+ "summary": "Read Job Review",
8512
+ "description": "Whether the job is flagged for review, and the reasons to choose from.",
8513
+ "pathParams": [
8514
+ "job_id"
8515
+ ],
8233
8516
  "query": [
8234
8517
  {
8235
8518
  "name": "organization_id",
@@ -8280,6 +8563,25 @@
8280
8563
  ],
8281
8564
  "body": null
8282
8565
  },
8566
+ {
8567
+ "group": "patching",
8568
+ "name": "read-security-scan-organization",
8569
+ "method": "GET",
8570
+ "path": "/api/v1/patching/security-scan",
8571
+ "policy": "read",
8572
+ "summary": "See every enrolled site's last scan and open findings",
8573
+ "description": "Members whose role reads Patching (``patching:read``).",
8574
+ "pathParams": [],
8575
+ "query": [
8576
+ {
8577
+ "name": "organization_id",
8578
+ "type": "integer",
8579
+ "required": true,
8580
+ "description": ""
8581
+ }
8582
+ ],
8583
+ "body": null
8584
+ },
8283
8585
  {
8284
8586
  "group": "patching",
8285
8587
  "name": "record-consent",
@@ -8818,8 +9120,8 @@
8818
9120
  "type": "string",
8819
9121
  "required": false,
8820
9122
  "values": [
8821
- "copilot",
8822
- "autopilot"
9123
+ "autopilot",
9124
+ "copilot"
8823
9125
  ],
8824
9126
  "description": ""
8825
9127
  },
@@ -9458,6 +9760,48 @@
9458
9760
  ],
9459
9761
  "body": null
9460
9762
  },
9763
+ {
9764
+ "group": "sites",
9765
+ "name": "accept-agreement",
9766
+ "method": "POST",
9767
+ "path": "/api/v1/sites/{site_uuid}/patching/agreement",
9768
+ "policy": "mfa",
9769
+ "summary": "Accept the Patching agreement for a website",
9770
+ "description": "Accept the agreement in force, once, for one website. Needs ``patching:configure`` and a recent second factor. The body says what the person was shown; if the agreement, its summary or the Customer name is no longer that, nothing is recorded. A repeat returns the acceptance that exists.",
9771
+ "pathParams": [
9772
+ "site_uuid"
9773
+ ],
9774
+ "query": [],
9775
+ "body": {
9776
+ "required": true,
9777
+ "fields": [
9778
+ {
9779
+ "name": "agreement_version",
9780
+ "type": "string",
9781
+ "required": true,
9782
+ "description": ""
9783
+ },
9784
+ {
9785
+ "name": "summary_hash",
9786
+ "type": "string",
9787
+ "required": true,
9788
+ "description": ""
9789
+ },
9790
+ {
9791
+ "name": "customer_name",
9792
+ "type": "string",
9793
+ "required": true,
9794
+ "description": ""
9795
+ },
9796
+ {
9797
+ "name": "accepted",
9798
+ "type": "boolean",
9799
+ "required": true,
9800
+ "description": ""
9801
+ }
9802
+ ]
9803
+ }
9804
+ },
9461
9805
  {
9462
9806
  "group": "sites",
9463
9807
  "name": "acknowledge-merge-checks",
@@ -9506,6 +9850,48 @@
9506
9850
  ]
9507
9851
  }
9508
9852
  },
9853
+ {
9854
+ "group": "sites",
9855
+ "name": "acknowledge-setup-files",
9856
+ "method": "POST",
9857
+ "path": "/api/v1/sites/{site_uuid}/patching/deep-scan/setup-files/acknowledge",
9858
+ "policy": "write",
9859
+ "summary": "Mark open setup files as handled elsewhere, with a reason",
9860
+ "description": "A rule the repository does not show (the host, a CDN, a firewall) blocks these files. Needs ``site:write``. A file not open in the latest check, or already marked, is returned in `skipped`. The mark lasts until someone withdraws it.",
9861
+ "pathParams": [
9862
+ "site_uuid"
9863
+ ],
9864
+ "query": [],
9865
+ "body": {
9866
+ "required": true,
9867
+ "fields": [
9868
+ {
9869
+ "name": "paths",
9870
+ "type": "string[]",
9871
+ "required": true,
9872
+ "description": ""
9873
+ },
9874
+ {
9875
+ "name": "reason_code",
9876
+ "type": "string",
9877
+ "required": true,
9878
+ "values": [
9879
+ "blocked_at_edge",
9880
+ "blocked_by_host",
9881
+ "removed_at_deploy",
9882
+ "other"
9883
+ ],
9884
+ "description": ""
9885
+ },
9886
+ {
9887
+ "name": "note",
9888
+ "type": "string",
9889
+ "required": false,
9890
+ "description": ""
9891
+ }
9892
+ ]
9893
+ }
9894
+ },
9509
9895
  {
9510
9896
  "group": "sites",
9511
9897
  "name": "acknowledge-stack-vulnerabilities",
@@ -9548,6 +9934,48 @@
9548
9934
  ]
9549
9935
  }
9550
9936
  },
9937
+ {
9938
+ "group": "sites",
9939
+ "name": "add-security-finding-exception",
9940
+ "method": "POST",
9941
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/findings/{finding_id}/exceptions",
9942
+ "policy": "write",
9943
+ "summary": "Dismiss a finding, mark it a false positive or accept its risk",
9944
+ "description": "Organisation administrators and site managers (``patching:run``).",
9945
+ "pathParams": [
9946
+ "site_uuid",
9947
+ "finding_id"
9948
+ ],
9949
+ "query": [],
9950
+ "body": {
9951
+ "required": true,
9952
+ "fields": [
9953
+ {
9954
+ "name": "kind",
9955
+ "type": "string",
9956
+ "required": true,
9957
+ "values": [
9958
+ "dismissed",
9959
+ "accepted_risk",
9960
+ "false_positive"
9961
+ ],
9962
+ "description": "`false_positive` (the tool is wrong), `dismissed` (not relevant here) or `accepted_risk` (known and accepted until it expires)."
9963
+ },
9964
+ {
9965
+ "name": "reason",
9966
+ "type": "string",
9967
+ "required": true,
9968
+ "description": ""
9969
+ },
9970
+ {
9971
+ "name": "expires_at",
9972
+ "type": "string",
9973
+ "required": false,
9974
+ "description": "An accepted risk ends then; the default is the platform's accepted-risk days and the latest is one year away. Not allowed for the other kinds."
9975
+ }
9976
+ ]
9977
+ }
9978
+ },
9551
9979
  {
9552
9980
  "group": "sites",
9553
9981
  "name": "assess-ci-tests",
@@ -9610,6 +10038,36 @@
9610
10038
  ]
9611
10039
  }
9612
10040
  },
10041
+ {
10042
+ "group": "sites",
10043
+ "name": "cancel-security-scan",
10044
+ "method": "POST",
10045
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/scans/{scan_id}/cancel",
10046
+ "policy": "write",
10047
+ "summary": "Cancel a security scan that is waiting or running",
10048
+ "description": "Organisation administrators and site managers (``patching:run``). A waiting scan is cancelled at once; a running one stops within about a minute (#3868).",
10049
+ "pathParams": [
10050
+ "site_uuid",
10051
+ "scan_id"
10052
+ ],
10053
+ "query": [],
10054
+ "body": null
10055
+ },
10056
+ {
10057
+ "group": "sites",
10058
+ "name": "cancel-site-deployment",
10059
+ "method": "POST",
10060
+ "path": "/api/v1/sites/{site_uuid}/patching/deployments/{deployment_id}/cancel",
10061
+ "policy": "mfa",
10062
+ "summary": "Cancel a queued manual deployment before it starts",
10063
+ "description": "",
10064
+ "pathParams": [
10065
+ "site_uuid",
10066
+ "deployment_id"
10067
+ ],
10068
+ "query": [],
10069
+ "body": null
10070
+ },
9613
10071
  {
9614
10072
  "group": "sites",
9615
10073
  "name": "cancel-site-job",
@@ -9776,6 +10234,27 @@
9776
10234
  ]
9777
10235
  }
9778
10236
  },
10237
+ {
10238
+ "group": "sites",
10239
+ "name": "create-upgrade-scan-key",
10240
+ "method": "POST",
10241
+ "path": "/api/v1/sites/{site_uuid}/upgrade-readiness/scan-key",
10242
+ "policy": "dashboard_only",
10243
+ "summary": "Create an upgrade scan key for a site",
10244
+ "description": "Create the key the CI job sends its scan with. Shown once. Needs a fresh second-factor code. With ``replace``, a new key replaces the old one, which stops working at once. The key can only send scans for this site.",
10245
+ "pathParams": [
10246
+ "site_uuid"
10247
+ ],
10248
+ "query": [
10249
+ {
10250
+ "name": "replace",
10251
+ "type": "boolean",
10252
+ "required": false,
10253
+ "description": "Replace the site's key if it has one. Without it, a site that has a key answers 409, so two people cannot replace each other's key unseen."
10254
+ }
10255
+ ],
10256
+ "body": null
10257
+ },
9779
10258
  {
9780
10259
  "group": "sites",
9781
10260
  "name": "delete-draft",
@@ -9854,6 +10333,22 @@
9854
10333
  "required": false,
9855
10334
  "description": ""
9856
10335
  },
10336
+ {
10337
+ "name": "target",
10338
+ "type": "string",
10339
+ "required": false,
10340
+ "values": [
10341
+ "production",
10342
+ "branch"
10343
+ ],
10344
+ "description": ""
10345
+ },
10346
+ {
10347
+ "name": "target_branch",
10348
+ "type": "string",
10349
+ "required": false,
10350
+ "description": ""
10351
+ },
9857
10352
  {
9858
10353
  "name": "drift_override",
9859
10354
  "type": "object",
@@ -9977,8 +10472,8 @@
9977
10472
  "type": "string",
9978
10473
  "required": false,
9979
10474
  "values": [
9980
- "copilot",
9981
- "autopilot"
10475
+ "autopilot",
10476
+ "copilot"
9982
10477
  ],
9983
10478
  "description": ""
9984
10479
  },
@@ -10083,6 +10578,94 @@
10083
10578
  "query": [],
10084
10579
  "body": null
10085
10580
  },
10581
+ {
10582
+ "group": "sites",
10583
+ "name": "export-security-findings",
10584
+ "method": "GET",
10585
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/findings/export",
10586
+ "policy": "read",
10587
+ "summary": "Download this site's security findings as SARIF or CSV",
10588
+ "description": "Members whose role reads Patching (``patching:read``). The filters of the findings list apply, up to ``EXPORT_MAX`` findings (422 `export_too_large` past it). The file is built from one read and then sent, so no database connection waits on a slow download; evidence is left out.",
10589
+ "pathParams": [
10590
+ "site_uuid"
10591
+ ],
10592
+ "query": [
10593
+ {
10594
+ "name": "format",
10595
+ "type": "string",
10596
+ "required": true,
10597
+ "values": [
10598
+ "sarif",
10599
+ "csv"
10600
+ ],
10601
+ "description": ""
10602
+ },
10603
+ {
10604
+ "name": "status",
10605
+ "type": "string[]",
10606
+ "required": false,
10607
+ "description": ""
10608
+ },
10609
+ {
10610
+ "name": "severity",
10611
+ "type": "string[]",
10612
+ "required": false,
10613
+ "description": ""
10614
+ },
10615
+ {
10616
+ "name": "category",
10617
+ "type": "string[]",
10618
+ "required": false,
10619
+ "description": ""
10620
+ },
10621
+ {
10622
+ "name": "source",
10623
+ "type": "string[]",
10624
+ "required": false,
10625
+ "description": ""
10626
+ },
10627
+ {
10628
+ "name": "path",
10629
+ "type": "string",
10630
+ "required": false,
10631
+ "description": ""
10632
+ },
10633
+ {
10634
+ "name": "package",
10635
+ "type": "string",
10636
+ "required": false,
10637
+ "description": ""
10638
+ },
10639
+ {
10640
+ "name": "repository",
10641
+ "type": "string",
10642
+ "required": false,
10643
+ "description": "`current`: only findings of the repository and branch the site uses now, as the Deep scan rows count them."
10644
+ },
10645
+ {
10646
+ "name": "test_data",
10647
+ "type": "boolean",
10648
+ "required": false,
10649
+ "description": "`true`: only test database dumps, which are not counted or alerted; `false`: everything else."
10650
+ }
10651
+ ],
10652
+ "body": null
10653
+ },
10654
+ {
10655
+ "group": "sites",
10656
+ "name": "export-security-scan-sbom",
10657
+ "method": "GET",
10658
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/scans/{scan_id}/sbom",
10659
+ "policy": "read",
10660
+ "summary": "Download the software list a scan found, as CycloneDX",
10661
+ "description": "Members whose role reads Patching (``patching:read``).",
10662
+ "pathParams": [
10663
+ "site_uuid",
10664
+ "scan_id"
10665
+ ],
10666
+ "query": [],
10667
+ "body": null
10668
+ },
10086
10669
  {
10087
10670
  "group": "sites",
10088
10671
  "name": "export-sites-overview",
@@ -10237,6 +10820,30 @@
10237
10820
  ],
10238
10821
  "body": null
10239
10822
  },
10823
+ {
10824
+ "group": "sites",
10825
+ "name": "fix-security-findings",
10826
+ "method": "POST",
10827
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/findings/fix",
10828
+ "policy": "write",
10829
+ "summary": "Fix dependency findings with a Patching security update",
10830
+ "description": "Organisation administrators and site managers (``patching:run``). Queues a security update (#1207) that moves the findings' Composer packages to the fixed patch release, with every open drupal.org advisory of the site, as \"Create fix PR\" does. The same refusals as running an update apply (not enrolled, no repository, a job or a security pull request already open, emergency stop, plan limits).",
10831
+ "pathParams": [
10832
+ "site_uuid"
10833
+ ],
10834
+ "query": [],
10835
+ "body": {
10836
+ "required": true,
10837
+ "fields": [
10838
+ {
10839
+ "name": "finding_ids",
10840
+ "type": "integer[]",
10841
+ "required": true,
10842
+ "description": "Open Composer dependency findings with a fixed release on their installed line; findings of one package are fixed together."
10843
+ }
10844
+ ]
10845
+ }
10846
+ },
10240
10847
  {
10241
10848
  "group": "sites",
10242
10849
  "name": "get-assessment",
@@ -10359,7 +10966,7 @@
10359
10966
  "path": "/api/v1/sites/{site_uuid}/finding-evidence",
10360
10967
  "policy": "read",
10361
10968
  "summary": "Get Site Finding Evidence",
10362
- "description": "Advisory findings of one site with their evidence, outstanding first. One item is one advisory exposure, not a release. The date range keeps exposures outstanding at any point in it. Without a subscription in good standing, resolved exposures and earlier exposures of reopened findings are limited to the last 30 days; outstanding findings are always listed. Read only: nothing is assessed, closed or reconciled here.",
10969
+ "description": "Advisory findings of one site with their evidence, outstanding first. One item is one advisory exposure, not a release. The date range keeps exposures outstanding at any point in it. Without a subscription in good standing, resolved exposures and earlier exposures of reopened findings are limited to the last 30 days; outstanding findings are always listed. With status=fixed, one row per advisory whose newest resolution was confirmed in the period, the date range cutting on that confirmation, newest first, with how it was fixed, the release that showed the fix, a later reopening and its releas…",
10363
10970
  "pathParams": [
10364
10971
  "site_uuid"
10365
10972
  ],
@@ -10370,9 +10977,27 @@
10370
10977
  "required": false,
10371
10978
  "values": [
10372
10979
  "open",
10373
- "resolved"
10980
+ "resolved",
10981
+ "fixed"
10982
+ ],
10983
+ "description": "open or resolved; fixed lists one row per advisory resolved in the period, with its fix and any later reopening"
10984
+ },
10985
+ {
10986
+ "name": "search",
10987
+ "type": "string",
10988
+ "required": false,
10989
+ "description": "With status=fixed: part of the advisory ID, title or project"
10990
+ },
10991
+ {
10992
+ "name": "resolved_by",
10993
+ "type": "string",
10994
+ "required": false,
10995
+ "values": [
10996
+ "version_fix",
10997
+ "project_removed",
10998
+ "undone"
10374
10999
  ],
10375
- "description": "open or resolved"
11000
+ "description": "With status=fixed: how the advisory was resolved"
10376
11001
  },
10377
11002
  {
10378
11003
  "name": "project",
@@ -10594,6 +11219,12 @@
10594
11219
  "required": false,
10595
11220
  "description": "Only rollbacks, or none"
10596
11221
  },
11222
+ {
11223
+ "name": "source",
11224
+ "type": "string",
11225
+ "required": false,
11226
+ "description": "sentinel: only releases Sentinel deployed"
11227
+ },
10597
11228
  {
10598
11229
  "name": "release_id",
10599
11230
  "type": "string",
@@ -10662,7 +11293,7 @@
10662
11293
  "path": "/api/v1/sites/{site_uuid}/update-history",
10663
11294
  "policy": "read",
10664
11295
  "summary": "Get Site Update History",
10665
- "description": "Every update the site has had available, newest first. The date range keeps updates that were outstanding at any point in it. Recording is the same on every plan; an organisation without a subscription in good standing reads the last 30 days.",
11296
+ "description": "Every update the site has had available, newest first. The date range keeps updates that were outstanding at any point in it, or with ``outcome``, updates that ended in it. Recording is the same on every plan; an organisation without a subscription in good standing reads the last 30 days.",
10666
11297
  "pathParams": [
10667
11298
  "site_uuid"
10668
11299
  ],
@@ -10695,6 +11326,16 @@
10695
11326
  "required": false,
10696
11327
  "description": "Last day, in the organisation's time zone"
10697
11328
  },
11329
+ {
11330
+ "name": "outcome",
11331
+ "type": "string",
11332
+ "required": false,
11333
+ "values": [
11334
+ "applied",
11335
+ "ended"
11336
+ ],
11337
+ "description": "applied: only updates applied; ended: also those superseded, removed or withdrawn. The dates then cut on when each ended."
11338
+ },
10698
11339
  {
10699
11340
  "name": "page",
10700
11341
  "type": "integer",
@@ -10806,6 +11447,48 @@
10806
11447
  ],
10807
11448
  "body": null
10808
11449
  },
11450
+ {
11451
+ "group": "sites",
11452
+ "name": "get-ticket-link-settings",
11453
+ "method": "GET",
11454
+ "path": "/api/v1/sites/{site_uuid}/patching/ticket-links",
11455
+ "policy": "read",
11456
+ "summary": "Show whether this website's pull requests list their tickets",
11457
+ "description": "",
11458
+ "pathParams": [
11459
+ "site_uuid"
11460
+ ],
11461
+ "query": [],
11462
+ "body": null
11463
+ },
11464
+ {
11465
+ "group": "sites",
11466
+ "name": "get-upgrade-scan-key",
11467
+ "method": "GET",
11468
+ "path": "/api/v1/sites/{site_uuid}/upgrade-readiness/scan-key",
11469
+ "policy": "read",
11470
+ "summary": "See whether a site has an upgrade scan key",
11471
+ "description": "The key's start, creation and last use. Never the key itself.",
11472
+ "pathParams": [
11473
+ "site_uuid"
11474
+ ],
11475
+ "query": [],
11476
+ "body": null
11477
+ },
11478
+ {
11479
+ "group": "sites",
11480
+ "name": "list-blocker-fixes",
11481
+ "method": "GET",
11482
+ "path": "/api/v1/sites/{site_uuid}/patching/blocker-fixes",
11483
+ "policy": "read",
11484
+ "summary": "Show this website's Fix this switch and its recent fix requests",
11485
+ "description": "",
11486
+ "pathParams": [
11487
+ "site_uuid"
11488
+ ],
11489
+ "query": [],
11490
+ "body": null
11491
+ },
10809
11492
  {
10810
11493
  "group": "sites",
10811
11494
  "name": "list-dependabot-alerts",
@@ -10900,6 +11583,127 @@
10900
11583
  ],
10901
11584
  "body": null
10902
11585
  },
11586
+ {
11587
+ "group": "sites",
11588
+ "name": "list-security-findings",
11589
+ "method": "GET",
11590
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/findings",
11591
+ "policy": "read",
11592
+ "summary": "List this site's security findings, most severe first",
11593
+ "description": "Members whose role reads Patching (``patching:read``).",
11594
+ "pathParams": [
11595
+ "site_uuid"
11596
+ ],
11597
+ "query": [
11598
+ {
11599
+ "name": "limit",
11600
+ "type": "integer",
11601
+ "required": false,
11602
+ "description": ""
11603
+ },
11604
+ {
11605
+ "name": "offset",
11606
+ "type": "integer",
11607
+ "required": false,
11608
+ "description": ""
11609
+ },
11610
+ {
11611
+ "name": "status",
11612
+ "type": "string[]",
11613
+ "required": false,
11614
+ "description": ""
11615
+ },
11616
+ {
11617
+ "name": "severity",
11618
+ "type": "string[]",
11619
+ "required": false,
11620
+ "description": ""
11621
+ },
11622
+ {
11623
+ "name": "category",
11624
+ "type": "string[]",
11625
+ "required": false,
11626
+ "description": ""
11627
+ },
11628
+ {
11629
+ "name": "source",
11630
+ "type": "string[]",
11631
+ "required": false,
11632
+ "description": ""
11633
+ },
11634
+ {
11635
+ "name": "path",
11636
+ "type": "string",
11637
+ "required": false,
11638
+ "description": ""
11639
+ },
11640
+ {
11641
+ "name": "package",
11642
+ "type": "string",
11643
+ "required": false,
11644
+ "description": ""
11645
+ },
11646
+ {
11647
+ "name": "repository",
11648
+ "type": "string",
11649
+ "required": false,
11650
+ "description": "`current`: only findings of the repository and branch the site uses now, as the Deep scan rows count them."
11651
+ },
11652
+ {
11653
+ "name": "test_data",
11654
+ "type": "boolean",
11655
+ "required": false,
11656
+ "description": "`true`: only test database dumps, which are not counted or alerted; `false`: everything else."
11657
+ }
11658
+ ],
11659
+ "body": null
11660
+ },
11661
+ {
11662
+ "group": "sites",
11663
+ "name": "list-security-scans",
11664
+ "method": "GET",
11665
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/scans",
11666
+ "policy": "read",
11667
+ "summary": "List this site's security scans, newest first",
11668
+ "description": "Members whose role reads Patching (``patching:read``).",
11669
+ "pathParams": [
11670
+ "site_uuid"
11671
+ ],
11672
+ "query": [
11673
+ {
11674
+ "name": "limit",
11675
+ "type": "integer",
11676
+ "required": false,
11677
+ "description": ""
11678
+ },
11679
+ {
11680
+ "name": "offset",
11681
+ "type": "integer",
11682
+ "required": false,
11683
+ "description": ""
11684
+ },
11685
+ {
11686
+ "name": "check",
11687
+ "type": "string",
11688
+ "required": false,
11689
+ "values": [
11690
+ "scan_dependencies",
11691
+ "scan_containers",
11692
+ "scan_ci",
11693
+ "scan_code",
11694
+ "scan_secrets"
11695
+ ],
11696
+ "description": "Only scans that ran this Deep scan check."
11697
+ },
11698
+ {
11699
+ "name": "repository",
11700
+ "type": "string",
11701
+ "required": false,
11702
+ "description": "`current`: only scans of the repository and branch the site uses now."
11703
+ }
11704
+ ],
11705
+ "body": null
11706
+ },
10903
11707
  {
10904
11708
  "group": "sites",
10905
11709
  "name": "list-site-activity",
@@ -11145,6 +11949,21 @@
11145
11949
  ]
11146
11950
  }
11147
11951
  },
11952
+ {
11953
+ "group": "sites",
11954
+ "name": "mark-security-dump-real",
11955
+ "method": "POST",
11956
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/findings/{finding_id}/real",
11957
+ "policy": "write",
11958
+ "summary": "Say a test database dump holds real data",
11959
+ "description": "Organisation administrators and site managers (``patching:run``). Closes the test finding and returns the real one, which every later scan raises for the same file content (#3549).",
11960
+ "pathParams": [
11961
+ "site_uuid",
11962
+ "finding_id"
11963
+ ],
11964
+ "query": [],
11965
+ "body": null
11966
+ },
11148
11967
  {
11149
11968
  "group": "sites",
11150
11969
  "name": "mute-drupal-status-item",
@@ -11170,6 +11989,20 @@
11170
11989
  ]
11171
11990
  }
11172
11991
  },
11992
+ {
11993
+ "group": "sites",
11994
+ "name": "prepare-setup-files-fix",
11995
+ "method": "POST",
11996
+ "path": "/api/v1/sites/{site_uuid}/patching/deep-scan/setup-files/fix-pull-request",
11997
+ "policy": "write",
11998
+ "summary": "Prepare a pull request that stops serving Drupal setup files",
11999
+ "description": "Queue the job that edits ``composer.json`` (no AI) and opens a pull request. You review, merge and deploy it; Sentinel never does. Organisation administrators only (``organization:write``). Refused with 409 and a ``code`` when the site has no repository, nothing is open, a fix pull request is already open or another job of the site is running.",
12000
+ "pathParams": [
12001
+ "site_uuid"
12002
+ ],
12003
+ "query": [],
12004
+ "body": null
12005
+ },
11173
12006
  {
11174
12007
  "group": "sites",
11175
12008
  "name": "provision-sync-secret",
@@ -11235,10 +12068,56 @@
11235
12068
  "required": true,
11236
12069
  "fields": [
11237
12070
  {
11238
- "name": "payload",
12071
+ "name": "payload",
12072
+ "type": "object",
12073
+ "required": true,
12074
+ "description": ""
12075
+ }
12076
+ ]
12077
+ }
12078
+ },
12079
+ {
12080
+ "group": "sites",
12081
+ "name": "put-security-scan-settings",
12082
+ "method": "PUT",
12083
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan",
12084
+ "policy": "mfa",
12085
+ "summary": "Change this site's security scan schedule, agent passes and fix rule",
12086
+ "description": "Organisation administrators and site managers (``patching:run``). Turning the fix rule on or lowering its severity on an Autopilot site needs a recent second factor, as the Dependabot rule does (#1917).",
12087
+ "pathParams": [
12088
+ "site_uuid"
12089
+ ],
12090
+ "query": [],
12091
+ "body": {
12092
+ "required": true,
12093
+ "fields": [
12094
+ {
12095
+ "name": "schedule",
12096
+ "type": "string",
12097
+ "required": false,
12098
+ "values": [
12099
+ "off",
12100
+ "weekly"
12101
+ ],
12102
+ "description": "`weekly`, or `off` for no schedule. Left out, it is kept."
12103
+ },
12104
+ {
12105
+ "name": "agent_review",
12106
+ "type": "boolean",
12107
+ "required": false,
12108
+ "description": "The agent reads custom code for risks. Uses the site's AI key. Left out, it is kept."
12109
+ },
12110
+ {
12111
+ "name": "agent_triage",
12112
+ "type": "boolean",
12113
+ "required": false,
12114
+ "description": "The agent ranks what the tools found. Uses the site's AI key. Left out, it is kept."
12115
+ },
12116
+ {
12117
+ "name": "auto_fix",
11239
12118
  "type": "object",
11240
- "required": true,
11241
- "description": ""
12119
+ "required": false,
12120
+ "description": "The site's rule for new findings; left out, it is kept."
11242
12121
  }
11243
12122
  ]
11244
12123
  }
@@ -11277,6 +12156,30 @@
11277
12156
  ]
11278
12157
  }
11279
12158
  },
12159
+ {
12160
+ "group": "sites",
12161
+ "name": "put-site-ci-loop",
12162
+ "method": "PUT",
12163
+ "path": "/api/v1/sites/{site_uuid}/patching/ci-loop",
12164
+ "policy": "write",
12165
+ "summary": "Put Site Ci Loop",
12166
+ "description": "How many CI fix rounds Sentinel may run on this site's pull requests. 0 turns the loop off for the site; the platform maximum still caps the value (#1174). The generic 404 while the CI loop is not released. Organisation administrators only.",
12167
+ "pathParams": [
12168
+ "site_uuid"
12169
+ ],
12170
+ "query": [],
12171
+ "body": {
12172
+ "required": true,
12173
+ "fields": [
12174
+ {
12175
+ "name": "ci_fix_rounds",
12176
+ "type": "integer",
12177
+ "required": true,
12178
+ "description": ""
12179
+ }
12180
+ ]
12181
+ }
12182
+ },
11280
12183
  {
11281
12184
  "group": "sites",
11282
12185
  "name": "put-site-deploy-method",
@@ -11426,8 +12329,8 @@
11426
12329
  "type": "string",
11427
12330
  "required": false,
11428
12331
  "values": [
11429
- "copilot",
11430
- "autopilot"
12332
+ "autopilot",
12333
+ "copilot"
11431
12334
  ],
11432
12335
  "description": ""
11433
12336
  },
@@ -11523,6 +12426,68 @@
11523
12426
  ]
11524
12427
  }
11525
12428
  },
12429
+ {
12430
+ "group": "sites",
12431
+ "name": "put-upgrade-readiness-display",
12432
+ "method": "PUT",
12433
+ "path": "/api/v1/sites/{site_uuid}/upgrade-readiness/display",
12434
+ "policy": "write",
12435
+ "summary": "Show or hide Drupal upgrade readiness on a site",
12436
+ "description": "Show or hide upgrade readiness on the site's Summary tab. Needs ``site:write`` (organisation administrators and site managers). Another organisation's site reads as missing. Hiding it keeps the stored result.",
12437
+ "pathParams": [
12438
+ "site_uuid"
12439
+ ],
12440
+ "query": [],
12441
+ "body": {
12442
+ "required": true,
12443
+ "fields": [
12444
+ {
12445
+ "name": "shown",
12446
+ "type": "boolean",
12447
+ "required": true,
12448
+ "description": ""
12449
+ }
12450
+ ]
12451
+ }
12452
+ },
12453
+ {
12454
+ "group": "sites",
12455
+ "name": "queue-security-scan",
12456
+ "method": "POST",
12457
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/scans",
12458
+ "policy": "write",
12459
+ "summary": "Scan this site's repository now",
12460
+ "description": "Organisation administrators and site managers (``patching:run``). Refused with 409 when the site cannot be scanned now: the code is the readiness state the settings show (`scan_running`, `job_limit`, ...). With `checks`, only those Deep scan rows run (\"Scan selected\", #1206).",
12461
+ "pathParams": [
12462
+ "site_uuid"
12463
+ ],
12464
+ "query": [],
12465
+ "body": {
12466
+ "required": false,
12467
+ "fields": [
12468
+ {
12469
+ "name": "checks",
12470
+ "type": "string[]",
12471
+ "required": false,
12472
+ "description": "The Deep scan rows to scan (\"Scan selected\"); every check when left out. The secrets check always runs: the other tools' output is masked with what it finds."
12473
+ }
12474
+ ]
12475
+ }
12476
+ },
12477
+ {
12478
+ "group": "sites",
12479
+ "name": "read-current-security-scan",
12480
+ "method": "GET",
12481
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/scans/current",
12482
+ "policy": "read",
12483
+ "summary": "See the scan now running on this site, step by step",
12484
+ "description": "Members whose role reads Patching (``patching:read``). The newest scan of the repository the site uses now, while it is queued or running and for ten minutes after it ends (#3868); ``current`` is null otherwise. Steps come from the job log rows the site already shows.",
12485
+ "pathParams": [
12486
+ "site_uuid"
12487
+ ],
12488
+ "query": [],
12489
+ "body": null
12490
+ },
11526
12491
  {
11527
12492
  "group": "sites",
11528
12493
  "name": "read-declared-stack",
@@ -11537,6 +12502,20 @@
11537
12502
  "query": [],
11538
12503
  "body": null
11539
12504
  },
12505
+ {
12506
+ "group": "sites",
12507
+ "name": "read-deep-scan",
12508
+ "method": "GET",
12509
+ "path": "/api/v1/sites/{site_uuid}/patching/deep-scan",
12510
+ "policy": "read",
12511
+ "summary": "List the Deep scan checks for this site and what each last found",
12512
+ "description": "Security, maintenance and upgrade rows for one site (#2488). Members whose role reads Patching (``patching:read``). Rows whose feature is off are left out.",
12513
+ "pathParams": [
12514
+ "site_uuid"
12515
+ ],
12516
+ "query": [],
12517
+ "body": null
12518
+ },
11540
12519
  {
11541
12520
  "group": "sites",
11542
12521
  "name": "read-dependabot-alert",
@@ -11622,6 +12601,64 @@
11622
12601
  "query": [],
11623
12602
  "body": null
11624
12603
  },
12604
+ {
12605
+ "group": "sites",
12606
+ "name": "read-security-finding",
12607
+ "method": "GET",
12608
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/findings/{finding_id}",
12609
+ "policy": "read",
12610
+ "summary": "See one security finding with its evidence and history",
12611
+ "description": "Members whose role reads Patching (``patching:read``).",
12612
+ "pathParams": [
12613
+ "site_uuid",
12614
+ "finding_id"
12615
+ ],
12616
+ "query": [],
12617
+ "body": null
12618
+ },
12619
+ {
12620
+ "group": "sites",
12621
+ "name": "read-security-scan",
12622
+ "method": "GET",
12623
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/scans/{scan_id}",
12624
+ "policy": "read",
12625
+ "summary": "See one security scan with the tools it ran",
12626
+ "description": "Members whose role reads Patching (``patching:read``).",
12627
+ "pathParams": [
12628
+ "site_uuid",
12629
+ "scan_id"
12630
+ ],
12631
+ "query": [],
12632
+ "body": null
12633
+ },
12634
+ {
12635
+ "group": "sites",
12636
+ "name": "read-security-scan-settings",
12637
+ "method": "GET",
12638
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan",
12639
+ "policy": "read",
12640
+ "summary": "See this site's security scan schedule and whether it can be scanned",
12641
+ "description": "Members whose role reads Patching (``patching:read``).",
12642
+ "pathParams": [
12643
+ "site_uuid"
12644
+ ],
12645
+ "query": [],
12646
+ "body": null
12647
+ },
12648
+ {
12649
+ "group": "sites",
12650
+ "name": "read-setup-files",
12651
+ "method": "GET",
12652
+ "path": "/api/v1/sites/{site_uuid}/patching/deep-scan/setup-files",
12653
+ "policy": "read",
12654
+ "summary": "Show which Drupal setup and version files this site's repository leaves open to the web",
12655
+ "description": "The setup files check's latest result per file, its repository evidence, any \"handled elsewhere\" mark, and a short history. Members whose role reads Patching (``patching:read``).",
12656
+ "pathParams": [
12657
+ "site_uuid"
12658
+ ],
12659
+ "query": [],
12660
+ "body": null
12661
+ },
11625
12662
  {
11626
12663
  "group": "sites",
11627
12664
  "name": "read-site",
@@ -11855,6 +12892,70 @@
11855
12892
  ]
11856
12893
  }
11857
12894
  },
12895
+ {
12896
+ "group": "sites",
12897
+ "name": "reopen-security-finding",
12898
+ "method": "DELETE",
12899
+ "path": "/api/v1/sites/{site_uuid}/patching/security-scan/findings/{finding_id}/exceptions/{exception_id}",
12900
+ "policy": "write",
12901
+ "summary": "Reopen a finding by ending its exception",
12902
+ "description": "Organisation administrators and site managers (``patching:run``).",
12903
+ "pathParams": [
12904
+ "site_uuid",
12905
+ "finding_id",
12906
+ "exception_id"
12907
+ ],
12908
+ "query": [],
12909
+ "body": null
12910
+ },
12911
+ {
12912
+ "group": "sites",
12913
+ "name": "request-blocker-fix",
12914
+ "method": "POST",
12915
+ "path": "/api/v1/sites/{site_uuid}/patching/blocker-fixes",
12916
+ "policy": "write",
12917
+ "summary": "Ask Sentinel's agent to open a pull request that removes a blocker",
12918
+ "description": "Queue a fix job for a stopped job of this website, one of its findings, a Sentinel pull request whose CI stopped, a readiness item, or the checks failing on the production branch. The agent opens a pull request; you review and merge it. Sentinel never merges it. Needs ``patching:run``. Refused with 409 and a ``code`` when the website switch is off, nothing here can be fixed in the repository, a fix for it is open, the tries or the month's fixes are used, or another job of the website is running.",
12919
+ "pathParams": [
12920
+ "site_uuid"
12921
+ ],
12922
+ "query": [],
12923
+ "body": {
12924
+ "required": true,
12925
+ "fields": [
12926
+ {
12927
+ "name": "job_id",
12928
+ "type": "string",
12929
+ "required": false,
12930
+ "description": ""
12931
+ },
12932
+ {
12933
+ "name": "finding_code",
12934
+ "type": "string",
12935
+ "required": false,
12936
+ "description": ""
12937
+ },
12938
+ {
12939
+ "name": "pull_request_id",
12940
+ "type": "integer",
12941
+ "required": false,
12942
+ "description": ""
12943
+ },
12944
+ {
12945
+ "name": "readiness_code",
12946
+ "type": "string",
12947
+ "required": false,
12948
+ "description": ""
12949
+ },
12950
+ {
12951
+ "name": "production_check",
12952
+ "type": "boolean",
12953
+ "required": false,
12954
+ "description": ""
12955
+ }
12956
+ ]
12957
+ }
12958
+ },
11858
12959
  {
11859
12960
  "group": "sites",
11860
12961
  "name": "request-hosting-platform",
@@ -12029,6 +13130,20 @@
12029
13130
  "query": [],
12030
13131
  "body": null
12031
13132
  },
13133
+ {
13134
+ "group": "sites",
13135
+ "name": "revoke-upgrade-scan-key",
13136
+ "method": "DELETE",
13137
+ "path": "/api/v1/sites/{site_uuid}/upgrade-readiness/scan-key",
13138
+ "policy": "dashboard_only",
13139
+ "summary": "Revoke a site's upgrade scan key",
13140
+ "description": "Stop the key working. Results already sent stay. Needs a fresh code.",
13141
+ "pathParams": [
13142
+ "site_uuid"
13143
+ ],
13144
+ "query": [],
13145
+ "body": null
13146
+ },
12032
13147
  {
12033
13148
  "group": "sites",
12034
13149
  "name": "rotate-site-api-key",
@@ -12117,6 +13232,30 @@
12117
13232
  "query": [],
12118
13233
  "body": null
12119
13234
  },
13235
+ {
13236
+ "group": "sites",
13237
+ "name": "update-blocker-fix-settings",
13238
+ "method": "PUT",
13239
+ "path": "/api/v1/sites/{site_uuid}/patching/blocker-fixes/settings",
13240
+ "policy": "write",
13241
+ "summary": "Turn Fix this on or off for this website",
13242
+ "description": "Off: no Fix this button and no automatic fix for this website.",
13243
+ "pathParams": [
13244
+ "site_uuid"
13245
+ ],
13246
+ "query": [],
13247
+ "body": {
13248
+ "required": true,
13249
+ "fields": [
13250
+ {
13251
+ "name": "enabled",
13252
+ "type": "boolean",
13253
+ "required": true,
13254
+ "description": ""
13255
+ }
13256
+ ]
13257
+ }
13258
+ },
12120
13259
  {
12121
13260
  "group": "sites",
12122
13261
  "name": "update-declared-stack",
@@ -12286,6 +13425,30 @@
12286
13425
  ]
12287
13426
  }
12288
13427
  },
13428
+ {
13429
+ "group": "sites",
13430
+ "name": "update-ticket-link-settings",
13431
+ "method": "PUT",
13432
+ "path": "/api/v1/sites/{site_uuid}/patching/ticket-links",
13433
+ "policy": "write",
13434
+ "summary": "Turn ticket links in this website's pull requests on or off",
13435
+ "description": "On: each run's pull request lists the tickets the run carries, as links to your ticket system. That sends the ticket addresses to your Git host.",
13436
+ "pathParams": [
13437
+ "site_uuid"
13438
+ ],
13439
+ "query": [],
13440
+ "body": {
13441
+ "required": true,
13442
+ "fields": [
13443
+ {
13444
+ "name": "enabled",
13445
+ "type": "boolean",
13446
+ "required": true,
13447
+ "description": ""
13448
+ }
13449
+ ]
13450
+ }
13451
+ },
12289
13452
  {
12290
13453
  "group": "sites",
12291
13454
  "name": "withdraw-ci-tests-attestation",
@@ -12300,6 +13463,21 @@
12300
13463
  "query": [],
12301
13464
  "body": null
12302
13465
  },
13466
+ {
13467
+ "group": "sites",
13468
+ "name": "withdraw-setup-file-acknowledgement",
13469
+ "method": "POST",
13470
+ "path": "/api/v1/sites/{site_uuid}/patching/deep-scan/setup-files/acknowledgements/{acknowledgement_id}/withdraw",
13471
+ "policy": "write",
13472
+ "summary": "Withdraw a handled elsewhere mark so the file counts as open again",
13473
+ "description": "Needs ``site:write``. The file is open again at once.",
13474
+ "pathParams": [
13475
+ "site_uuid",
13476
+ "acknowledgement_id"
13477
+ ],
13478
+ "query": [],
13479
+ "body": null
13480
+ },
12303
13481
  {
12304
13482
  "group": "sites",
12305
13483
  "name": "withdraw-stack-acknowledgement",
@@ -13139,7 +14317,7 @@
13139
14317
  "name": "admin-reset-user-password",
13140
14318
  "method": "POST",
13141
14319
  "path": "/api/v1/users/{user_id}/password/reset",
13142
- "policy": "write",
14320
+ "policy": "mfa",
13143
14321
  "summary": "Admin Reset User Password",
13144
14322
  "description": "Privileged password reset for another user. Permissions: - Superuser: allowed for any user. Tenant administrators cannot change global account credentials.",
13145
14323
  "pathParams": [
@@ -13163,7 +14341,7 @@
13163
14341
  "name": "admin-update-user-status",
13164
14342
  "method": "PUT",
13165
14343
  "path": "/api/v1/users/{user_id}/status",
13166
- "policy": "write",
14344
+ "policy": "mfa",
13167
14345
  "summary": "Admin Update User Status",
13168
14346
  "description": "Activate/deactivate a user (privileged). Permissions: - Superuser: can update any user. Tenant administrators cannot change global account status. Constraints: - Cannot deactivate/activate a superuser unless caller is superuser. - Cannot update own status via this endpoint.",
13169
14347
  "pathParams": [
@@ -13247,7 +14425,7 @@
13247
14425
  "name": "create-user",
13248
14426
  "method": "POST",
13249
14427
  "path": "/api/v1/users/",
13250
- "policy": "write",
14428
+ "policy": "mfa",
13251
14429
  "summary": "Create User",
13252
14430
  "description": "Create new user.",
13253
14431
  "pathParams": [],
@@ -13299,7 +14477,7 @@
13299
14477
  "name": "delete-user",
13300
14478
  "method": "DELETE",
13301
14479
  "path": "/api/v1/users/{user_id}",
13302
- "policy": "write",
14480
+ "policy": "mfa",
13303
14481
  "summary": "Delete User",
13304
14482
  "description": "Delete a user.",
13305
14483
  "pathParams": [
@@ -13472,7 +14650,7 @@
13472
14650
  "name": "restore-user",
13473
14651
  "method": "POST",
13474
14652
  "path": "/api/v1/users/{user_id}/restore",
13475
- "policy": "write",
14653
+ "policy": "mfa",
13476
14654
  "summary": "Restore User",
13477
14655
  "description": "Restore a soft-deleted user (superuser only). Returns 404 if the user does not exist and 409 if an active user already holds the same email.",
13478
14656
  "pathParams": [
@@ -13556,7 +14734,7 @@
13556
14734
  "name": "update-user",
13557
14735
  "method": "PUT",
13558
14736
  "path": "/api/v1/users/{user_id}",
13559
- "policy": "write",
14737
+ "policy": "mfa",
13560
14738
  "summary": "Update User",
13561
14739
  "description": "Update a user.",
13562
14740
  "pathParams": [
@@ -13676,6 +14854,12 @@
13676
14854
  "type": "boolean",
13677
14855
  "required": false,
13678
14856
  "description": ""
14857
+ },
14858
+ {
14859
+ "name": "patching_ai_notice_dismissed",
14860
+ "type": "boolean",
14861
+ "required": false,
14862
+ "description": ""
13679
14863
  }
13680
14864
  ]
13681
14865
  }