@sentinelconnector/cli 0.4.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": [
@@ -2858,6 +2858,101 @@
2858
2858
  "query": [],
2859
2859
  "body": null
2860
2860
  },
2861
+ {
2862
+ "group": "modules",
2863
+ "name": "export-dashboard-module-sites",
2864
+ "method": "GET",
2865
+ "path": "/api/v1/modules/dashboard/status/{module_id}/sites/export",
2866
+ "policy": "read",
2867
+ "summary": "Download the sites that run a module",
2868
+ "description": "Every site running the module, as CSV, in list order.",
2869
+ "pathParams": [
2870
+ "module_id"
2871
+ ],
2872
+ "query": [
2873
+ {
2874
+ "name": "organization_id",
2875
+ "type": "integer",
2876
+ "required": false,
2877
+ "description": "Active organization scope"
2878
+ },
2879
+ {
2880
+ "name": "sort_by",
2881
+ "type": "string",
2882
+ "required": false,
2883
+ "values": [
2884
+ "site",
2885
+ "status",
2886
+ "last_updated"
2887
+ ],
2888
+ "description": "Column to sort by"
2889
+ },
2890
+ {
2891
+ "name": "sort_order",
2892
+ "type": "string",
2893
+ "required": false,
2894
+ "values": [
2895
+ "asc",
2896
+ "desc"
2897
+ ],
2898
+ "description": "Sort direction"
2899
+ }
2900
+ ],
2901
+ "body": null
2902
+ },
2903
+ {
2904
+ "group": "modules",
2905
+ "name": "export-dashboard-module-status",
2906
+ "method": "GET",
2907
+ "path": "/api/v1/modules/dashboard/status/export",
2908
+ "policy": "read",
2909
+ "summary": "Download the module status list",
2910
+ "description": "Every module the filters match, as CSV, in list order. Not paginated.",
2911
+ "pathParams": [],
2912
+ "query": [
2913
+ {
2914
+ "name": "search",
2915
+ "type": "string",
2916
+ "required": false,
2917
+ "description": "Search modules by name"
2918
+ },
2919
+ {
2920
+ "name": "security_only",
2921
+ "type": "boolean",
2922
+ "required": false,
2923
+ "description": "Show only modules with security updates"
2924
+ },
2925
+ {
2926
+ "name": "organization_id",
2927
+ "type": "integer",
2928
+ "required": false,
2929
+ "description": "Active organization scope"
2930
+ },
2931
+ {
2932
+ "name": "sort_by",
2933
+ "type": "string",
2934
+ "required": false,
2935
+ "values": [
2936
+ "name",
2937
+ "status",
2938
+ "sites",
2939
+ "last_updated"
2940
+ ],
2941
+ "description": "Column to sort by"
2942
+ },
2943
+ {
2944
+ "name": "sort_order",
2945
+ "type": "string",
2946
+ "required": false,
2947
+ "values": [
2948
+ "asc",
2949
+ "desc"
2950
+ ],
2951
+ "description": "Sort direction"
2952
+ }
2953
+ ],
2954
+ "body": null
2955
+ },
2861
2956
  {
2862
2957
  "group": "modules",
2863
2958
  "name": "get-dashboard-module-overview",
@@ -2883,14 +2978,56 @@
2883
2978
  ],
2884
2979
  "body": null
2885
2980
  },
2981
+ {
2982
+ "group": "modules",
2983
+ "name": "get-dashboard-module-sites",
2984
+ "method": "GET",
2985
+ "path": "/api/v1/modules/dashboard/status/{module_id}/sites",
2986
+ "policy": "read",
2987
+ "summary": "List the sites that run a module",
2988
+ "description": "Every live site of the organisation running the module, with its version.",
2989
+ "pathParams": [
2990
+ "module_id"
2991
+ ],
2992
+ "query": [
2993
+ {
2994
+ "name": "organization_id",
2995
+ "type": "integer",
2996
+ "required": false,
2997
+ "description": "Active organization scope"
2998
+ },
2999
+ {
3000
+ "name": "sort_by",
3001
+ "type": "string",
3002
+ "required": false,
3003
+ "values": [
3004
+ "site",
3005
+ "status",
3006
+ "last_updated"
3007
+ ],
3008
+ "description": "Column to sort by"
3009
+ },
3010
+ {
3011
+ "name": "sort_order",
3012
+ "type": "string",
3013
+ "required": false,
3014
+ "values": [
3015
+ "asc",
3016
+ "desc"
3017
+ ],
3018
+ "description": "Sort direction"
3019
+ }
3020
+ ],
3021
+ "body": null
3022
+ },
2886
3023
  {
2887
3024
  "group": "modules",
2888
3025
  "name": "get-dashboard-module-status",
2889
3026
  "method": "GET",
2890
3027
  "path": "/api/v1/modules/dashboard/status",
2891
3028
  "policy": "read",
2892
- "summary": "Get Dashboard Module Status",
2893
- "description": "Get module status overview for dashboard table.",
3029
+ "summary": "List the modules your sites run",
3030
+ "description": "One row per module the organisation's sites run, with every version.",
2894
3031
  "pathParams": [],
2895
3032
  "query": [
2896
3033
  {
@@ -2917,6 +3054,28 @@
2917
3054
  "required": false,
2918
3055
  "description": "Deprecated alias for organization_id"
2919
3056
  },
3057
+ {
3058
+ "name": "sort_by",
3059
+ "type": "string",
3060
+ "required": false,
3061
+ "values": [
3062
+ "name",
3063
+ "status",
3064
+ "sites",
3065
+ "last_updated"
3066
+ ],
3067
+ "description": "Column to sort by"
3068
+ },
3069
+ {
3070
+ "name": "sort_order",
3071
+ "type": "string",
3072
+ "required": false,
3073
+ "values": [
3074
+ "asc",
3075
+ "desc"
3076
+ ],
3077
+ "description": "Sort direction"
3078
+ },
2920
3079
  {
2921
3080
  "name": "page",
2922
3081
  "type": "integer",
@@ -3151,7 +3310,7 @@
3151
3310
  "name": "restore-module",
3152
3311
  "method": "POST",
3153
3312
  "path": "/api/v1/modules/{module_id}/restore",
3154
- "policy": "write",
3313
+ "policy": "mfa",
3155
3314
  "summary": "Restore Module",
3156
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.",
3157
3316
  "pathParams": [
@@ -3165,7 +3324,7 @@
3165
3324
  "name": "update-module",
3166
3325
  "method": "PUT",
3167
3326
  "path": "/api/v1/modules/{module_id}",
3168
- "policy": "write",
3327
+ "policy": "mfa",
3169
3328
  "summary": "Update Module",
3170
3329
  "description": "Update module information (superuser only).",
3171
3330
  "pathParams": [
@@ -3686,7 +3845,7 @@
3686
3845
  "method": "POST",
3687
3846
  "path": "/api/v1/organizations/{organization_id}/external-tickets/links",
3688
3847
  "policy": "write",
3689
- "summary": "Link a ticket to vulnerabilities",
3848
+ "summary": "Link a ticket to vulnerabilities or updates",
3690
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.",
3691
3850
  "pathParams": [
3692
3851
  "organization_id"
@@ -3731,6 +3890,20 @@
3731
3890
  "query": [],
3732
3891
  "body": null
3733
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
+ },
3734
3907
  {
3735
3908
  "group": "organizations",
3736
3909
  "name": "cancel-invitation",
@@ -4254,6 +4427,12 @@
4254
4427
  "required": false,
4255
4428
  "description": "Only rollbacks, or none"
4256
4429
  },
4430
+ {
4431
+ "name": "source",
4432
+ "type": "string",
4433
+ "required": false,
4434
+ "description": "sentinel: only releases Sentinel deployed"
4435
+ },
4257
4436
  {
4258
4437
  "name": "release_id",
4259
4438
  "type": "string",
@@ -4484,7 +4663,7 @@
4484
4663
  "path": "/api/v1/organizations/{organization_id}/external-tickets/tickets",
4485
4664
  "policy": "read",
4486
4665
  "summary": "List tickets linked to vulnerabilities",
4487
- "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.",
4488
4667
  "pathParams": [
4489
4668
  "organization_id"
4490
4669
  ],
@@ -4501,6 +4680,12 @@
4501
4680
  "required": false,
4502
4681
  "description": ""
4503
4682
  },
4683
+ {
4684
+ "name": "starts_with",
4685
+ "type": "string",
4686
+ "required": false,
4687
+ "description": "Tickets whose number starts with this text."
4688
+ },
4504
4689
  {
4505
4690
  "name": "page",
4506
4691
  "type": "integer",
@@ -4543,7 +4728,7 @@
4543
4728
  "method": "GET",
4544
4729
  "path": "/api/v1/organizations/{organization_id}/external-tickets/findings",
4545
4730
  "policy": "read",
4546
- "summary": "List vulnerabilities with their tickets",
4731
+ "summary": "List vulnerabilities and updates with their tickets",
4547
4732
  "description": "Site-and-vulnerability pairs across the organisation, grouped by site, open first, with the ticket on each and its revision.",
4548
4733
  "pathParams": [
4549
4734
  "organization_id"
@@ -4561,10 +4746,17 @@
4561
4746
  "required": false,
4562
4747
  "values": [
4563
4748
  "advisory",
4564
- "stack"
4749
+ "stack",
4750
+ "update"
4565
4751
  ],
4566
4752
  "description": ""
4567
4753
  },
4754
+ {
4755
+ "name": "finding",
4756
+ "type": "integer[]",
4757
+ "required": false,
4758
+ "description": "Finding IDs within source. Repeat for several."
4759
+ },
4568
4760
  {
4569
4761
  "name": "state",
4570
4762
  "type": "string",
@@ -5569,7 +5761,7 @@
5569
5761
  "method": "POST",
5570
5762
  "path": "/api/v1/organizations/{organization_id}/external-tickets/links/remove",
5571
5763
  "policy": "write",
5572
- "summary": "Remove tickets from vulnerabilities",
5764
+ "summary": "Remove tickets from vulnerabilities or updates",
5573
5765
  "description": "Remove the ticket from up to 200 vulnerabilities in one change. The vulnerabilities themselves do not change. Same rules as linking.",
5574
5766
  "pathParams": [
5575
5767
  "organization_id"
@@ -5594,7 +5786,7 @@
5594
5786
  "path": "/api/v1/organizations/{organization_id}/users/{user_id}",
5595
5787
  "policy": "mfa",
5596
5788
  "summary": "Remove User From Organization",
5597
- "description": "Remove a user from an organization (superuser or org_admin).",
5789
+ "description": "Delete a member from this organisation (superuser or org_admin). When they then belong to no organisation, their login is deleted too, so an administrator can fully remove someone who only worked with them (#3404). A login that still belongs elsewhere is kept.",
5598
5790
  "pathParams": [
5599
5791
  "organization_id",
5600
5792
  "user_id"
@@ -5637,7 +5829,7 @@
5637
5829
  "name": "restore-organization",
5638
5830
  "method": "POST",
5639
5831
  "path": "/api/v1/organizations/{organization_id}/restore",
5640
- "policy": "write",
5832
+ "policy": "mfa",
5641
5833
  "summary": "Restore Organization",
5642
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.",
5643
5835
  "pathParams": [
@@ -5651,7 +5843,7 @@
5651
5843
  "name": "restore-report-logo",
5652
5844
  "method": "DELETE",
5653
5845
  "path": "/api/v1/organizations/{organization_id}/report-settings/logo/takedown",
5654
- "policy": "write",
5846
+ "policy": "mfa",
5655
5847
  "summary": "Restore Report Logo",
5656
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.",
5657
5849
  "pathParams": [
@@ -5886,7 +6078,7 @@
5886
6078
  "name": "take-down-report-logo",
5887
6079
  "method": "POST",
5888
6080
  "path": "/api/v1/organizations/{organization_id}/report-settings/logo/takedown",
5889
- "policy": "write",
6081
+ "policy": "mfa",
5890
6082
  "summary": "Take Down Report Logo",
5891
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.",
5892
6084
  "pathParams": [
@@ -5917,7 +6109,7 @@
5917
6109
  "method": "GET",
5918
6110
  "path": "/api/v1/organizations/{organization_id}/external-tickets/history",
5919
6111
  "policy": "read",
5920
- "summary": "Ticket history of a vulnerability",
6112
+ "summary": "Ticket history of a vulnerability or update",
5921
6113
  "description": "Every link, replacement and removal on one vulnerability, oldest first.",
5922
6114
  "pathParams": [
5923
6115
  "organization_id"
@@ -5929,7 +6121,8 @@
5929
6121
  "required": true,
5930
6122
  "values": [
5931
6123
  "advisory",
5932
- "stack"
6124
+ "stack",
6125
+ "update"
5933
6126
  ],
5934
6127
  "description": ""
5935
6128
  },
@@ -5996,6 +6189,31 @@
5996
6189
  ]
5997
6190
  }
5998
6191
  },
6192
+ {
6193
+ "group": "organizations",
6194
+ "name": "update-member-status",
6195
+ "method": "PUT",
6196
+ "path": "/api/v1/organizations/{organization_id}/users/{user_id}/status",
6197
+ "policy": "mfa",
6198
+ "summary": "Deactivate or activate a member in this organisation",
6199
+ "description": "Deactivate pauses the person in this organisation only: they lose access here at once and keep their other organisations. Activate gives back the role they had. Organisation administrators of this organisation only (#3404).",
6200
+ "pathParams": [
6201
+ "organization_id",
6202
+ "user_id"
6203
+ ],
6204
+ "query": [],
6205
+ "body": {
6206
+ "required": true,
6207
+ "fields": [
6208
+ {
6209
+ "name": "is_active",
6210
+ "type": "boolean",
6211
+ "required": true,
6212
+ "description": ""
6213
+ }
6214
+ ]
6215
+ }
6216
+ },
5999
6217
  {
6000
6218
  "group": "organizations",
6001
6219
  "name": "update-organization",
@@ -6091,6 +6309,35 @@
6091
6309
  ]
6092
6310
  }
6093
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
+ },
6094
6341
  {
6095
6342
  "group": "organizations",
6096
6343
  "name": "update-report-settings",
@@ -6216,6 +6463,30 @@
6216
6463
  ]
6217
6464
  }
6218
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
+ },
6219
6490
  {
6220
6491
  "group": "organizations",
6221
6492
  "name": "update-ticket-system",
@@ -6431,35 +6702,125 @@
6431
6702
  },
6432
6703
  {
6433
6704
  "group": "patching",
6434
- "name": "add-included-ai",
6705
+ "name": "accept-profile-agreement",
6435
6706
  "method": "POST",
6436
- "path": "/api/v1/patching/connections/included-ai",
6707
+ "path": "/api/v1/patching/profiles/{profile_id}/agreement",
6437
6708
  "policy": "mfa",
6438
- "summary": "Turn on Included AI for the organisation",
6439
- "description": "Add the organisation's Included AI connection; the same one if it exists. Organisation administrators with a recent second factor. No key is asked for or stored.",
6440
- "pathParams": [],
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
+ ],
6441
6714
  "query": [],
6442
6715
  "body": {
6443
6716
  "required": true,
6444
6717
  "fields": [
6445
6718
  {
6446
- "name": "organization_id",
6447
- "type": "integer",
6719
+ "name": "agreement_version",
6720
+ "type": "string",
6448
6721
  "required": true,
6449
6722
  "description": ""
6450
- }
6451
- ]
6452
- }
6453
- },
6454
- {
6455
- "group": "patching",
6456
- "name": "apply-profile",
6457
- "method": "POST",
6458
- "path": "/api/v1/patching/profiles/{profile_id}/apply",
6459
- "policy": "mfa",
6460
- "summary": "Apply Profile",
6461
- "description": "Apply the previewed changes; 409 ``apply_preview_stale`` if anything moved. Needs a recent second factor (#2102): a profile can switch sites to Autopilot or clear their pause.",
6462
- "pathParams": [
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
+ },
6757
+ {
6758
+ "group": "patching",
6759
+ "name": "add-included-ai",
6760
+ "method": "POST",
6761
+ "path": "/api/v1/patching/connections/included-ai",
6762
+ "policy": "mfa",
6763
+ "summary": "Turn on Included AI for the organisation",
6764
+ "description": "Add the organisation's Included AI connection; the same one if it exists. Organisation administrators with a recent second factor. No key is asked for or stored.",
6765
+ "pathParams": [],
6766
+ "query": [],
6767
+ "body": {
6768
+ "required": true,
6769
+ "fields": [
6770
+ {
6771
+ "name": "organization_id",
6772
+ "type": "integer",
6773
+ "required": true,
6774
+ "description": ""
6775
+ }
6776
+ ]
6777
+ }
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
+ },
6815
+ {
6816
+ "group": "patching",
6817
+ "name": "apply-profile",
6818
+ "method": "POST",
6819
+ "path": "/api/v1/patching/profiles/{profile_id}/apply",
6820
+ "policy": "mfa",
6821
+ "summary": "Apply Profile",
6822
+ "description": "Apply the previewed changes; 409 ``apply_preview_stale`` if anything moved. Needs a recent second factor (#2102): a profile can switch sites to Autopilot or clear their pause.",
6823
+ "pathParams": [
6463
6824
  "profile_id"
6464
6825
  ],
6465
6826
  "query": [],
@@ -6617,6 +6978,50 @@
6617
6978
  ]
6618
6979
  }
6619
6980
  },
6981
+ {
6982
+ "group": "patching",
6983
+ "name": "connect-gitlab-token",
6984
+ "method": "POST",
6985
+ "path": "/api/v1/patching/git-hosts/gitlab/token",
6986
+ "policy": "mfa",
6987
+ "summary": "Connect Gitlab Token",
6988
+ "description": "Connect GitLab.com with a group, project or personal access token. The token is checked with GitLab.com (active, expiry date, the ``api`` scope for updates or ``read_api`` for read only) and kept write-only in the vault; it is never returned. Works without the GitLab.com OAuth application. Organisation administrators with a recent second factor.",
6989
+ "pathParams": [],
6990
+ "query": [],
6991
+ "body": {
6992
+ "required": true,
6993
+ "fields": [
6994
+ {
6995
+ "name": "organization_id",
6996
+ "type": "integer",
6997
+ "required": true,
6998
+ "description": ""
6999
+ },
7000
+ {
7001
+ "name": "token",
7002
+ "type": "string",
7003
+ "required": true,
7004
+ "description": ""
7005
+ },
7006
+ {
7007
+ "name": "access",
7008
+ "type": "string",
7009
+ "required": false,
7010
+ "values": [
7011
+ "read",
7012
+ "write"
7013
+ ],
7014
+ "description": ""
7015
+ },
7016
+ {
7017
+ "name": "label",
7018
+ "type": "string",
7019
+ "required": false,
7020
+ "description": ""
7021
+ }
7022
+ ]
7023
+ }
7024
+ },
6620
7025
  {
6621
7026
  "group": "patching",
6622
7027
  "name": "connect-provider",
@@ -6787,8 +7192,8 @@
6787
7192
  "type": "string",
6788
7193
  "required": false,
6789
7194
  "values": [
6790
- "copilot",
6791
- "autopilot"
7195
+ "autopilot",
7196
+ "copilot"
6792
7197
  ],
6793
7198
  "description": ""
6794
7199
  },
@@ -7017,6 +7422,27 @@
7017
7422
  ]
7018
7423
  }
7019
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
+ },
7020
7446
  {
7021
7447
  "group": "patching",
7022
7448
  "name": "export-consents",
@@ -7283,6 +7709,39 @@
7283
7709
  ]
7284
7710
  }
7285
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
+ },
7286
7745
  {
7287
7746
  "group": "patching",
7288
7747
  "name": "list-calls",
@@ -7482,6 +7941,18 @@
7482
7941
  ],
7483
7942
  "description": ""
7484
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
+ },
7485
7956
  {
7486
7957
  "name": "page",
7487
7958
  "type": "integer",
@@ -7545,10 +8016,37 @@
7545
8016
  "values": [
7546
8017
  "security",
7547
8018
  "maintenance",
7548
- "rebase"
8019
+ "rebase",
8020
+ "ci_fix",
8021
+ "setup_fix",
8022
+ "blocker_fix"
8023
+ ],
8024
+ "description": ""
8025
+ },
8026
+ {
8027
+ "name": "started_by",
8028
+ "type": "string",
8029
+ "required": false,
8030
+ "values": [
8031
+ "schedule",
8032
+ "autopilot",
8033
+ "person",
8034
+ "follow_up"
7549
8035
  ],
7550
8036
  "description": ""
7551
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
+ },
7552
8050
  {
7553
8051
  "name": "days",
7554
8052
  "type": "integer",
@@ -7960,6 +8458,31 @@
7960
8458
  ]
7961
8459
  }
7962
8460
  },
8461
+ {
8462
+ "group": "patching",
8463
+ "name": "read-agreement",
8464
+ "method": "GET",
8465
+ "path": "/api/v1/patching/agreement",
8466
+ "policy": "read",
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.",
8469
+ "pathParams": [],
8470
+ "query": [
8471
+ {
8472
+ "name": "organization_id",
8473
+ "type": "integer",
8474
+ "required": false,
8475
+ "description": ""
8476
+ },
8477
+ {
8478
+ "name": "site_uuid",
8479
+ "type": "string",
8480
+ "required": false,
8481
+ "description": ""
8482
+ }
8483
+ ],
8484
+ "body": null
8485
+ },
7963
8486
  {
7964
8487
  "group": "patching",
7965
8488
  "name": "read-catalogue",
@@ -8040,6 +8563,25 @@
8040
8563
  ],
8041
8564
  "body": null
8042
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
+ },
8043
8585
  {
8044
8586
  "group": "patching",
8045
8587
  "name": "record-consent",
@@ -8172,17 +8714,57 @@
8172
8714
  },
8173
8715
  {
8174
8716
  "group": "patching",
8175
- "name": "revoke-secret",
8176
- "method": "DELETE",
8177
- "path": "/api/v1/patching/secrets/{secret_id}",
8717
+ "name": "replace-gitlab-token",
8718
+ "method": "POST",
8719
+ "path": "/api/v1/patching/git-hosts/gitlab/token/{connection_id}",
8178
8720
  "policy": "mfa",
8179
- "summary": "Revoke Secret",
8180
- "description": "",
8721
+ "summary": "Replace Gitlab Token",
8722
+ "description": "Replace a GitLab.com connection's token with a new one of the same user. The new token must belong to the same group or project (a new bot of it is fine), or the same account for a personal token, so every site keeps its repository. Clears an error state.",
8181
8723
  "pathParams": [
8182
- "secret_id"
8724
+ "connection_id"
8183
8725
  ],
8184
- "query": [
8185
- {
8726
+ "query": [],
8727
+ "body": {
8728
+ "required": true,
8729
+ "fields": [
8730
+ {
8731
+ "name": "organization_id",
8732
+ "type": "integer",
8733
+ "required": true,
8734
+ "description": ""
8735
+ },
8736
+ {
8737
+ "name": "token",
8738
+ "type": "string",
8739
+ "required": true,
8740
+ "description": ""
8741
+ },
8742
+ {
8743
+ "name": "access",
8744
+ "type": "string",
8745
+ "required": false,
8746
+ "values": [
8747
+ "read",
8748
+ "write"
8749
+ ],
8750
+ "description": ""
8751
+ }
8752
+ ]
8753
+ }
8754
+ },
8755
+ {
8756
+ "group": "patching",
8757
+ "name": "revoke-secret",
8758
+ "method": "DELETE",
8759
+ "path": "/api/v1/patching/secrets/{secret_id}",
8760
+ "policy": "mfa",
8761
+ "summary": "Revoke Secret",
8762
+ "description": "",
8763
+ "pathParams": [
8764
+ "secret_id"
8765
+ ],
8766
+ "query": [
8767
+ {
8186
8768
  "name": "organization_id",
8187
8769
  "type": "integer",
8188
8770
  "required": true,
@@ -8538,8 +9120,8 @@
8538
9120
  "type": "string",
8539
9121
  "required": false,
8540
9122
  "values": [
8541
- "copilot",
8542
- "autopilot"
9123
+ "autopilot",
9124
+ "copilot"
8543
9125
  ],
8544
9126
  "description": ""
8545
9127
  },
@@ -9178,6 +9760,48 @@
9178
9760
  ],
9179
9761
  "body": null
9180
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
+ },
9181
9805
  {
9182
9806
  "group": "sites",
9183
9807
  "name": "acknowledge-merge-checks",
@@ -9226,6 +9850,48 @@
9226
9850
  ]
9227
9851
  }
9228
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
+ },
9229
9895
  {
9230
9896
  "group": "sites",
9231
9897
  "name": "acknowledge-stack-vulnerabilities",
@@ -9268,6 +9934,48 @@
9268
9934
  ]
9269
9935
  }
9270
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
+ },
9271
9979
  {
9272
9980
  "group": "sites",
9273
9981
  "name": "assess-ci-tests",
@@ -9330,6 +10038,36 @@
9330
10038
  ]
9331
10039
  }
9332
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
+ },
9333
10071
  {
9334
10072
  "group": "sites",
9335
10073
  "name": "cancel-site-job",
@@ -9595,6 +10333,22 @@
9595
10333
  "required": false,
9596
10334
  "description": ""
9597
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
+ },
9598
10352
  {
9599
10353
  "name": "drift_override",
9600
10354
  "type": "object",
@@ -9718,8 +10472,8 @@
9718
10472
  "type": "string",
9719
10473
  "required": false,
9720
10474
  "values": [
9721
- "copilot",
9722
- "autopilot"
10475
+ "autopilot",
10476
+ "copilot"
9723
10477
  ],
9724
10478
  "description": ""
9725
10479
  },
@@ -9824,6 +10578,94 @@
9824
10578
  "query": [],
9825
10579
  "body": null
9826
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
+ },
9827
10669
  {
9828
10670
  "group": "sites",
9829
10671
  "name": "export-sites-overview",
@@ -9978,6 +10820,30 @@
9978
10820
  ],
9979
10821
  "body": null
9980
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
+ },
9981
10847
  {
9982
10848
  "group": "sites",
9983
10849
  "name": "get-assessment",
@@ -10100,7 +10966,7 @@
10100
10966
  "path": "/api/v1/sites/{site_uuid}/finding-evidence",
10101
10967
  "policy": "read",
10102
10968
  "summary": "Get Site Finding Evidence",
10103
- "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…",
10104
10970
  "pathParams": [
10105
10971
  "site_uuid"
10106
10972
  ],
@@ -10111,9 +10977,27 @@
10111
10977
  "required": false,
10112
10978
  "values": [
10113
10979
  "open",
10114
- "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"
10115
10999
  ],
10116
- "description": "open or resolved"
11000
+ "description": "With status=fixed: how the advisory was resolved"
10117
11001
  },
10118
11002
  {
10119
11003
  "name": "project",
@@ -10335,6 +11219,12 @@
10335
11219
  "required": false,
10336
11220
  "description": "Only rollbacks, or none"
10337
11221
  },
11222
+ {
11223
+ "name": "source",
11224
+ "type": "string",
11225
+ "required": false,
11226
+ "description": "sentinel: only releases Sentinel deployed"
11227
+ },
10338
11228
  {
10339
11229
  "name": "release_id",
10340
11230
  "type": "string",
@@ -10403,7 +11293,7 @@
10403
11293
  "path": "/api/v1/sites/{site_uuid}/update-history",
10404
11294
  "policy": "read",
10405
11295
  "summary": "Get Site Update History",
10406
- "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.",
10407
11297
  "pathParams": [
10408
11298
  "site_uuid"
10409
11299
  ],
@@ -10436,6 +11326,16 @@
10436
11326
  "required": false,
10437
11327
  "description": "Last day, in the organisation's time zone"
10438
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
+ },
10439
11339
  {
10440
11340
  "name": "page",
10441
11341
  "type": "integer",
@@ -10547,6 +11447,20 @@
10547
11447
  ],
10548
11448
  "body": null
10549
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
+ },
10550
11464
  {
10551
11465
  "group": "sites",
10552
11466
  "name": "get-upgrade-scan-key",
@@ -10561,6 +11475,20 @@
10561
11475
  "query": [],
10562
11476
  "body": null
10563
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
+ },
10564
11492
  {
10565
11493
  "group": "sites",
10566
11494
  "name": "list-dependabot-alerts",
@@ -10655,6 +11583,127 @@
10655
11583
  ],
10656
11584
  "body": null
10657
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
+ },
10658
11707
  {
10659
11708
  "group": "sites",
10660
11709
  "name": "list-site-activity",
@@ -10798,6 +11847,27 @@
10798
11847
  ],
10799
11848
  "body": null
10800
11849
  },
11850
+ {
11851
+ "group": "sites",
11852
+ "name": "list-site-repository-branches",
11853
+ "method": "GET",
11854
+ "path": "/api/v1/sites/{site_uuid}/patching/repository/branches",
11855
+ "policy": "read",
11856
+ "summary": "List the branches of the site's repository",
11857
+ "description": "Branch names of the repository chosen for this site (#3227). For the enrolment picker: up to 100 names, default branch first. ``q`` narrows the list to names that contain it, and an exact name past the first page is still found. Names only; nothing is stored.",
11858
+ "pathParams": [
11859
+ "site_uuid"
11860
+ ],
11861
+ "query": [
11862
+ {
11863
+ "name": "q",
11864
+ "type": "string",
11865
+ "required": false,
11866
+ "description": ""
11867
+ }
11868
+ ],
11869
+ "body": null
11870
+ },
10801
11871
  {
10802
11872
  "group": "sites",
10803
11873
  "name": "list-stack-vulnerabilities",
@@ -10879,6 +11949,21 @@
10879
11949
  ]
10880
11950
  }
10881
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
+ },
10882
11967
  {
10883
11968
  "group": "sites",
10884
11969
  "name": "mute-drupal-status-item",
@@ -10904,6 +11989,20 @@
10904
11989
  ]
10905
11990
  }
10906
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
+ },
10907
12006
  {
10908
12007
  "group": "sites",
10909
12008
  "name": "provision-sync-secret",
@@ -10977,6 +12076,52 @@
10977
12076
  ]
10978
12077
  }
10979
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",
12118
+ "type": "object",
12119
+ "required": false,
12120
+ "description": "The site's rule for new findings; left out, it is kept."
12121
+ }
12122
+ ]
12123
+ }
12124
+ },
10980
12125
  {
10981
12126
  "group": "sites",
10982
12127
  "name": "put-site-ai-reviewer",
@@ -11011,6 +12156,30 @@
11011
12156
  ]
11012
12157
  }
11013
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
+ },
11014
12183
  {
11015
12184
  "group": "sites",
11016
12185
  "name": "put-site-deploy-method",
@@ -11160,8 +12329,8 @@
11160
12329
  "type": "string",
11161
12330
  "required": false,
11162
12331
  "values": [
11163
- "copilot",
11164
- "autopilot"
12332
+ "autopilot",
12333
+ "copilot"
11165
12334
  ],
11166
12335
  "description": ""
11167
12336
  },
@@ -11281,6 +12450,44 @@
11281
12450
  ]
11282
12451
  }
11283
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
+ },
11284
12491
  {
11285
12492
  "group": "sites",
11286
12493
  "name": "read-declared-stack",
@@ -11295,6 +12502,20 @@
11295
12502
  "query": [],
11296
12503
  "body": null
11297
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
+ },
11298
12519
  {
11299
12520
  "group": "sites",
11300
12521
  "name": "read-dependabot-alert",
@@ -11380,6 +12601,64 @@
11380
12601
  "query": [],
11381
12602
  "body": null
11382
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
+ },
11383
12662
  {
11384
12663
  "group": "sites",
11385
12664
  "name": "read-site",
@@ -11613,6 +12892,70 @@
11613
12892
  ]
11614
12893
  }
11615
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
+ },
11616
12959
  {
11617
12960
  "group": "sites",
11618
12961
  "name": "request-hosting-platform",
@@ -11889,6 +13232,30 @@
11889
13232
  "query": [],
11890
13233
  "body": null
11891
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
+ },
11892
13259
  {
11893
13260
  "group": "sites",
11894
13261
  "name": "update-declared-stack",
@@ -12058,6 +13425,30 @@
12058
13425
  ]
12059
13426
  }
12060
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
+ },
12061
13452
  {
12062
13453
  "group": "sites",
12063
13454
  "name": "withdraw-ci-tests-attestation",
@@ -12072,6 +13463,21 @@
12072
13463
  "query": [],
12073
13464
  "body": null
12074
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
+ },
12075
13481
  {
12076
13482
  "group": "sites",
12077
13483
  "name": "withdraw-stack-acknowledgement",
@@ -12911,7 +14317,7 @@
12911
14317
  "name": "admin-reset-user-password",
12912
14318
  "method": "POST",
12913
14319
  "path": "/api/v1/users/{user_id}/password/reset",
12914
- "policy": "write",
14320
+ "policy": "mfa",
12915
14321
  "summary": "Admin Reset User Password",
12916
14322
  "description": "Privileged password reset for another user. Permissions: - Superuser: allowed for any user. Tenant administrators cannot change global account credentials.",
12917
14323
  "pathParams": [
@@ -12935,7 +14341,7 @@
12935
14341
  "name": "admin-update-user-status",
12936
14342
  "method": "PUT",
12937
14343
  "path": "/api/v1/users/{user_id}/status",
12938
- "policy": "write",
14344
+ "policy": "mfa",
12939
14345
  "summary": "Admin Update User Status",
12940
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.",
12941
14347
  "pathParams": [
@@ -13019,7 +14425,7 @@
13019
14425
  "name": "create-user",
13020
14426
  "method": "POST",
13021
14427
  "path": "/api/v1/users/",
13022
- "policy": "write",
14428
+ "policy": "mfa",
13023
14429
  "summary": "Create User",
13024
14430
  "description": "Create new user.",
13025
14431
  "pathParams": [],
@@ -13071,7 +14477,7 @@
13071
14477
  "name": "delete-user",
13072
14478
  "method": "DELETE",
13073
14479
  "path": "/api/v1/users/{user_id}",
13074
- "policy": "write",
14480
+ "policy": "mfa",
13075
14481
  "summary": "Delete User",
13076
14482
  "description": "Delete a user.",
13077
14483
  "pathParams": [
@@ -13244,7 +14650,7 @@
13244
14650
  "name": "restore-user",
13245
14651
  "method": "POST",
13246
14652
  "path": "/api/v1/users/{user_id}/restore",
13247
- "policy": "write",
14653
+ "policy": "mfa",
13248
14654
  "summary": "Restore User",
13249
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.",
13250
14656
  "pathParams": [
@@ -13328,7 +14734,7 @@
13328
14734
  "name": "update-user",
13329
14735
  "method": "PUT",
13330
14736
  "path": "/api/v1/users/{user_id}",
13331
- "policy": "write",
14737
+ "policy": "mfa",
13332
14738
  "summary": "Update User",
13333
14739
  "description": "Update a user.",
13334
14740
  "pathParams": [
@@ -13448,6 +14854,12 @@
13448
14854
  "type": "boolean",
13449
14855
  "required": false,
13450
14856
  "description": ""
14857
+ },
14858
+ {
14859
+ "name": "patching_ai_notice_dismissed",
14860
+ "type": "boolean",
14861
+ "required": false,
14862
+ "description": ""
13451
14863
  }
13452
14864
  ]
13453
14865
  }