@sentinelconnector/cli 0.3.0 → 0.5.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.
@@ -90,7 +90,7 @@
90
90
  "path": "/api/v1/account/cli/device/approve",
91
91
  "policy": "dashboard_only",
92
92
  "summary": "Approve Device",
93
- "description": "Sign that CLI in as you. Write access needs a step-up code.",
93
+ "description": "Sign that CLI in as you. Write access needs a step-up code. 403 ``plan_feature_unavailable`` when no organisation's plan includes the CLI.",
94
94
  "pathParams": [],
95
95
  "query": [],
96
96
  "body": {
@@ -170,7 +170,7 @@
170
170
  "path": "/api/v1/account/api-tokens",
171
171
  "policy": "dashboard_only",
172
172
  "summary": "Create Token",
173
- "description": "Create a token for scripts. Needs a second factor and a step-up code. The secret is in this answer only.",
173
+ "description": "Create a token for scripts. Needs a second factor and a step-up code. The secret is in this answer only. 403 ``plan_feature_unavailable`` when no organisation's plan includes personal tokens.",
174
174
  "pathParams": [],
175
175
  "query": [],
176
176
  "body": {
@@ -243,6 +243,18 @@
243
243
  "query": [],
244
244
  "body": null
245
245
  },
246
+ {
247
+ "group": "account",
248
+ "name": "my-address",
249
+ "method": "GET",
250
+ "path": "/api/v1/account/api-access/my-address",
251
+ "policy": "dashboard_only",
252
+ "summary": "The address the API sees, and where the CLI could reach",
253
+ "description": "For **Add my current address**: the address this request came from and, for each of your organisations, whether the CLI and MCP could reach it from there, or the refusal they would get.",
254
+ "pathParams": [],
255
+ "query": [],
256
+ "body": null
257
+ },
246
258
  {
247
259
  "group": "account",
248
260
  "name": "read-device-request",
@@ -250,7 +262,7 @@
250
262
  "path": "/api/v1/account/cli/device",
251
263
  "policy": "dashboard_only",
252
264
  "summary": "Read Device Request",
253
- "description": "A pending CLI sign-in by the code the CLI shows, to check before approving it. 404 ``cli_code_not_found`` when unknown, expired or used.",
265
+ "description": "A pending CLI sign-in by the code the CLI shows, to check before approving it. 404 ``cli_code_not_found`` when unknown, expired or used. 403 ``plan_feature_unavailable`` when no organisation's plan includes the CLI (agentic pricing, #2565).",
254
266
  "pathParams": [],
255
267
  "query": [
256
268
  {
@@ -262,6 +274,25 @@
262
274
  ],
263
275
  "body": null
264
276
  },
277
+ {
278
+ "group": "account",
279
+ "name": "read-email-preferences",
280
+ "method": "GET",
281
+ "path": "/api/v1/account/email-preferences",
282
+ "policy": "read",
283
+ "summary": "Show which emails you get",
284
+ "description": "Your email choices for your account and each of your organisations.",
285
+ "pathParams": [],
286
+ "query": [
287
+ {
288
+ "name": "coverage",
289
+ "type": "boolean",
290
+ "required": false,
291
+ "description": "For organisation administrators: include which Critical emails nobody, or only you, gets. False answers faster."
292
+ }
293
+ ],
294
+ "body": null
295
+ },
265
296
  {
266
297
  "group": "account",
267
298
  "name": "read-sessions",
@@ -324,6 +355,108 @@
324
355
  "query": [],
325
356
  "body": null
326
357
  },
358
+ {
359
+ "group": "account",
360
+ "name": "update-email-pause",
361
+ "method": "PUT",
362
+ "path": "/api/v1/account/email-preferences/pause",
363
+ "policy": "write",
364
+ "summary": "Pause or resume Recommended and Optional emails",
365
+ "description": "Critical and Required emails still go while paused.",
366
+ "pathParams": [],
367
+ "query": [],
368
+ "body": {
369
+ "required": true,
370
+ "fields": [
371
+ {
372
+ "name": "paused",
373
+ "type": "boolean",
374
+ "required": true,
375
+ "description": ""
376
+ }
377
+ ]
378
+ }
379
+ },
380
+ {
381
+ "group": "account",
382
+ "name": "update-email-preference",
383
+ "method": "PUT",
384
+ "path": "/api/v1/account/email-preferences",
385
+ "policy": "write",
386
+ "summary": "Turn an email or a group of emails on or off",
387
+ "description": "Turning a Critical email off is refused here (422 protective_change): it needs the confirm step in the dashboard.",
388
+ "pathParams": [],
389
+ "query": [],
390
+ "body": {
391
+ "required": true,
392
+ "fields": [
393
+ {
394
+ "name": "key",
395
+ "type": "string",
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."
398
+ },
399
+ {
400
+ "name": "enabled",
401
+ "type": "boolean",
402
+ "required": true,
403
+ "description": "On or off. Null removes the choice at this level, so the level above or the default decides again."
404
+ },
405
+ {
406
+ "name": "organization_id",
407
+ "type": "integer",
408
+ "required": false,
409
+ "description": "One organisation, or null for all organisations and the account."
410
+ },
411
+ {
412
+ "name": "replace_organisations",
413
+ "type": "boolean",
414
+ "required": false,
415
+ "description": "With a group for all organisations: also remove each organisation's own choices for that group."
416
+ }
417
+ ]
418
+ }
419
+ },
420
+ {
421
+ "group": "account",
422
+ "name": "update-protective-email-preference",
423
+ "method": "POST",
424
+ "path": "/api/v1/account/email-preferences/protective",
425
+ "policy": "browser",
426
+ "summary": "Turn off a Critical email after confirming",
427
+ "description": "The dashboard's confirm step calls this; the CLI and other products' tokens cannot.",
428
+ "pathParams": [],
429
+ "query": [],
430
+ "body": {
431
+ "required": true,
432
+ "fields": [
433
+ {
434
+ "name": "key",
435
+ "type": "string",
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."
438
+ },
439
+ {
440
+ "name": "enabled",
441
+ "type": "boolean",
442
+ "required": true,
443
+ "description": "On or off. Null removes the choice at this level, so the level above or the default decides again."
444
+ },
445
+ {
446
+ "name": "organization_id",
447
+ "type": "integer",
448
+ "required": false,
449
+ "description": "One organisation, or null for all organisations and the account."
450
+ },
451
+ {
452
+ "name": "replace_organisations",
453
+ "type": "boolean",
454
+ "required": false,
455
+ "description": "With a group for all organisations: also remove each organisation's own choices for that group."
456
+ }
457
+ ]
458
+ }
459
+ },
327
460
  {
328
461
  "group": "account",
329
462
  "name": "whoami",
@@ -1434,6 +1567,25 @@
1434
1567
  ],
1435
1568
  "body": null
1436
1569
  },
1570
+ {
1571
+ "group": "data-sources",
1572
+ "name": "list-data-sources",
1573
+ "method": "GET",
1574
+ "path": "/api/v1/data-sources",
1575
+ "policy": "read",
1576
+ "summary": "Which outside security lists Sentinel checks your sites against, and whether each is up to date",
1577
+ "description": "One card per source: status, last success, refresh schedule, what it holds and a link to the original. Cached for a minute.",
1578
+ "pathParams": [],
1579
+ "query": [
1580
+ {
1581
+ "name": "organization_id",
1582
+ "type": "integer",
1583
+ "required": false,
1584
+ "description": "Add this organisation's GitHub Dependabot row, when it has one and you may see it; otherwise the answer is the same as without it"
1585
+ }
1586
+ ],
1587
+ "body": null
1588
+ },
1437
1589
  {
1438
1590
  "group": "drupal-core",
1439
1591
  "name": "get-versions-by-drupal-core",
@@ -2253,6 +2405,8 @@
2253
2405
  "account",
2254
2406
  "feature_request",
2255
2407
  "patching_integration_request",
2408
+ "patching_job_review",
2409
+ "savings_calculator_walkthrough",
2256
2410
  "other"
2257
2411
  ],
2258
2412
  "description": ""
@@ -2704,6 +2858,101 @@
2704
2858
  "query": [],
2705
2859
  "body": null
2706
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
+ },
2707
2956
  {
2708
2957
  "group": "modules",
2709
2958
  "name": "get-dashboard-module-overview",
@@ -2729,14 +2978,56 @@
2729
2978
  ],
2730
2979
  "body": null
2731
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
+ },
2732
3023
  {
2733
3024
  "group": "modules",
2734
3025
  "name": "get-dashboard-module-status",
2735
3026
  "method": "GET",
2736
3027
  "path": "/api/v1/modules/dashboard/status",
2737
3028
  "policy": "read",
2738
- "summary": "Get Dashboard Module Status",
2739
- "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.",
2740
3031
  "pathParams": [],
2741
3032
  "query": [
2742
3033
  {
@@ -2763,6 +3054,28 @@
2763
3054
  "required": false,
2764
3055
  "description": "Deprecated alias for organization_id"
2765
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
+ },
2766
3079
  {
2767
3080
  "name": "page",
2768
3081
  "type": "integer",
@@ -3398,12 +3711,12 @@
3398
3711
  },
3399
3712
  {
3400
3713
  "group": "organizations",
3401
- "name": "add-user-to-organization",
3714
+ "name": "accept-dpa",
3402
3715
  "method": "POST",
3403
- "path": "/api/v1/organizations/{organization_id}/users",
3404
- "policy": "mfa",
3405
- "summary": "Add User To Organization",
3406
- "description": "Add an existing user to an organization (superuser or org_admin).",
3716
+ "path": "/api/v1/organizations/{organization_id}/dpa/acceptances",
3717
+ "policy": "dashboard_only",
3718
+ "summary": "Accept Dpa",
3719
+ "description": "",
3407
3720
  "pathParams": [
3408
3721
  "organization_id"
3409
3722
  ],
@@ -3412,22 +3725,128 @@
3412
3725
  "required": true,
3413
3726
  "fields": [
3414
3727
  {
3415
- "name": "user_id",
3728
+ "name": "version_id",
3416
3729
  "type": "integer",
3417
3730
  "required": true,
3418
- "description": "Existing user ID to add to organization"
3419
- }
3420
- ]
3421
- }
3422
- },
3423
- {
3424
- "group": "organizations",
3425
- "name": "apply-ticket-link",
3426
- "method": "POST",
3427
- "path": "/api/v1/organizations/{organization_id}/external-tickets/links",
3428
- "policy": "write",
3429
- "summary": "Link a ticket to vulnerabilities",
3430
- "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.",
3731
+ "description": ""
3732
+ },
3733
+ {
3734
+ "name": "text_hash",
3735
+ "type": "string",
3736
+ "required": true,
3737
+ "description": ""
3738
+ },
3739
+ {
3740
+ "name": "scrolled_to_end",
3741
+ "type": "boolean",
3742
+ "required": true,
3743
+ "description": ""
3744
+ },
3745
+ {
3746
+ "name": "checkbox_ticked",
3747
+ "type": "boolean",
3748
+ "required": true,
3749
+ "description": ""
3750
+ },
3751
+ {
3752
+ "name": "confirmation_value",
3753
+ "type": "string",
3754
+ "required": true,
3755
+ "description": ""
3756
+ },
3757
+ {
3758
+ "name": "legal_entity_name",
3759
+ "type": "string",
3760
+ "required": true,
3761
+ "description": ""
3762
+ },
3763
+ {
3764
+ "name": "business_address",
3765
+ "type": "string",
3766
+ "required": true,
3767
+ "description": ""
3768
+ },
3769
+ {
3770
+ "name": "country",
3771
+ "type": "string",
3772
+ "required": true,
3773
+ "description": ""
3774
+ },
3775
+ {
3776
+ "name": "customer_role",
3777
+ "type": "string",
3778
+ "required": true,
3779
+ "values": [
3780
+ "controller",
3781
+ "processor"
3782
+ ],
3783
+ "description": ""
3784
+ }
3785
+ ]
3786
+ }
3787
+ },
3788
+ {
3789
+ "group": "organizations",
3790
+ "name": "add-api-access-address",
3791
+ "method": "POST",
3792
+ "path": "/api/v1/organizations/{organization_id}/api-access/addresses",
3793
+ "policy": "dashboard_only",
3794
+ "summary": "Approve an address for the CLI and MCP",
3795
+ "description": "Organisation admins only, with a fresh two-factor code. One public address, an IPv4 range up to /24 or an IPv6 range up to /56. 422 with ``address_invalid``, ``address_not_public``, ``address_range_too_wide`` or ``address_limit_reached``; 409 ``address_duplicate``.",
3796
+ "pathParams": [
3797
+ "organization_id"
3798
+ ],
3799
+ "query": [],
3800
+ "body": {
3801
+ "required": true,
3802
+ "fields": [
3803
+ {
3804
+ "name": "address",
3805
+ "type": "string",
3806
+ "required": true,
3807
+ "description": "One public IPv4 or IPv6 address, or a range up to /24 (IPv4) or /56 (IPv6)."
3808
+ },
3809
+ {
3810
+ "name": "label",
3811
+ "type": "string",
3812
+ "required": false,
3813
+ "description": ""
3814
+ }
3815
+ ]
3816
+ }
3817
+ },
3818
+ {
3819
+ "group": "organizations",
3820
+ "name": "add-user-to-organization",
3821
+ "method": "POST",
3822
+ "path": "/api/v1/organizations/{organization_id}/users",
3823
+ "policy": "mfa",
3824
+ "summary": "Add User To Organization",
3825
+ "description": "Add an existing user to an organization (superuser or org_admin).",
3826
+ "pathParams": [
3827
+ "organization_id"
3828
+ ],
3829
+ "query": [],
3830
+ "body": {
3831
+ "required": true,
3832
+ "fields": [
3833
+ {
3834
+ "name": "user_id",
3835
+ "type": "integer",
3836
+ "required": true,
3837
+ "description": "Existing user ID to add to organization"
3838
+ }
3839
+ ]
3840
+ }
3841
+ },
3842
+ {
3843
+ "group": "organizations",
3844
+ "name": "apply-ticket-link",
3845
+ "method": "POST",
3846
+ "path": "/api/v1/organizations/{organization_id}/external-tickets/links",
3847
+ "policy": "write",
3848
+ "summary": "Link a ticket to vulnerabilities",
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.",
3431
3850
  "pathParams": [
3432
3851
  "organization_id"
3433
3852
  ],
@@ -3536,6 +3955,60 @@
3536
3955
  ]
3537
3956
  }
3538
3957
  },
3958
+ {
3959
+ "group": "organizations",
3960
+ "name": "change-auto-recharge",
3961
+ "method": "PUT",
3962
+ "path": "/api/v1/organizations/{organization_id}/billing/ai-credit/auto-recharge",
3963
+ "policy": "dashboard_only",
3964
+ "summary": "Change Auto Recharge",
3965
+ "description": "Turn auto recharge on or change it (with the digest of the terms shown), or turn it off.",
3966
+ "pathParams": [
3967
+ "organization_id"
3968
+ ],
3969
+ "query": [],
3970
+ "body": {
3971
+ "required": true,
3972
+ "fields": [
3973
+ {
3974
+ "name": "enabled",
3975
+ "type": "boolean",
3976
+ "required": true,
3977
+ "description": ""
3978
+ },
3979
+ {
3980
+ "name": "threshold",
3981
+ "type": "value",
3982
+ "required": false,
3983
+ "description": ""
3984
+ },
3985
+ {
3986
+ "name": "pack",
3987
+ "type": "string",
3988
+ "required": false,
3989
+ "values": [
3990
+ "5",
3991
+ "10",
3992
+ "20",
3993
+ "50"
3994
+ ],
3995
+ "description": ""
3996
+ },
3997
+ {
3998
+ "name": "monthly_ceiling",
3999
+ "type": "value",
4000
+ "required": false,
4001
+ "description": ""
4002
+ },
4003
+ {
4004
+ "name": "terms_sha256",
4005
+ "type": "string",
4006
+ "required": false,
4007
+ "description": ""
4008
+ }
4009
+ ]
4010
+ }
4011
+ },
3539
4012
  {
3540
4013
  "group": "organizations",
3541
4014
  "name": "change-plan",
@@ -3581,6 +4054,31 @@
3581
4054
  ]
3582
4055
  }
3583
4056
  },
4057
+ {
4058
+ "group": "organizations",
4059
+ "name": "confirm-ai-credit",
4060
+ "method": "POST",
4061
+ "path": "/api/v1/organizations/{organization_id}/billing/ai-credit/quotes/{purchase_id}/confirm",
4062
+ "policy": "dashboard_only",
4063
+ "summary": "Confirm Ai Credit",
4064
+ "description": "Pay for a quoted pack with the saved card. The credit is added once the payment succeeds; repeating the call changes nothing.",
4065
+ "pathParams": [
4066
+ "purchase_id",
4067
+ "organization_id"
4068
+ ],
4069
+ "query": [],
4070
+ "body": {
4071
+ "required": true,
4072
+ "fields": [
4073
+ {
4074
+ "name": "accepted",
4075
+ "type": "boolean",
4076
+ "required": true,
4077
+ "description": ""
4078
+ }
4079
+ ]
4080
+ }
4081
+ },
3584
4082
  {
3585
4083
  "group": "organizations",
3586
4084
  "name": "create-checkout-session",
@@ -3840,6 +4338,21 @@
3840
4338
  ],
3841
4339
  "body": null
3842
4340
  },
4341
+ {
4342
+ "group": "organizations",
4343
+ "name": "dpa-acceptance-pdf",
4344
+ "method": "GET",
4345
+ "path": "/api/v1/organizations/{organization_id}/dpa/acceptances/{acceptance_id}/pdf",
4346
+ "policy": "read",
4347
+ "summary": "Dpa Acceptance Pdf",
4348
+ "description": "The accepted text with who, when and the stated details.",
4349
+ "pathParams": [
4350
+ "organization_id",
4351
+ "acceptance_id"
4352
+ ],
4353
+ "query": [],
4354
+ "body": null
4355
+ },
3843
4356
  {
3844
4357
  "group": "organizations",
3845
4358
  "name": "get-latest-organization-assessment",
@@ -3933,6 +4446,20 @@
3933
4446
  ],
3934
4447
  "body": null
3935
4448
  },
4449
+ {
4450
+ "group": "organizations",
4451
+ "name": "get-overview",
4452
+ "method": "GET",
4453
+ "path": "/api/v1/organizations/{organization_id}/site-setup",
4454
+ "policy": "dashboard_only",
4455
+ "summary": "Sites still being set up in an organisation",
4456
+ "description": "The sites in this organisation whose setup is not finished, whether you hid the dashboard card, and whether Pay as you go has room for another site.",
4457
+ "pathParams": [
4458
+ "organization_id"
4459
+ ],
4460
+ "query": [],
4461
+ "body": null
4462
+ },
3936
4463
  {
3937
4464
  "group": "organizations",
3938
4465
  "name": "get-ticket-reference",
@@ -3984,6 +4511,20 @@
3984
4511
  ]
3985
4512
  }
3986
4513
  },
4514
+ {
4515
+ "group": "organizations",
4516
+ "name": "list-dpa-acceptances",
4517
+ "method": "GET",
4518
+ "path": "/api/v1/organizations/{organization_id}/dpa/acceptances",
4519
+ "policy": "read",
4520
+ "summary": "List Dpa Acceptances",
4521
+ "description": "Every acceptance of the organisation, newest first. Administrators.",
4522
+ "pathParams": [
4523
+ "organization_id"
4524
+ ],
4525
+ "query": [],
4526
+ "body": null
4527
+ },
3987
4528
  {
3988
4529
  "group": "organizations",
3989
4530
  "name": "list-invitations",
@@ -4239,6 +4780,20 @@
4239
4780
  ],
4240
4781
  "body": null
4241
4782
  },
4783
+ {
4784
+ "group": "organizations",
4785
+ "name": "organization-dpa",
4786
+ "method": "GET",
4787
+ "path": "/api/v1/organizations/{organization_id}/dpa",
4788
+ "policy": "read",
4789
+ "summary": "Organization Dpa",
4790
+ "description": "Whether the organisation has accepted, and whether new sites are held.",
4791
+ "pathParams": [
4792
+ "organization_id"
4793
+ ],
4794
+ "query": [],
4795
+ "body": null
4796
+ },
4242
4797
  {
4243
4798
  "group": "organizations",
4244
4799
  "name": "payg-activation-quote",
@@ -4552,6 +5107,48 @@
4552
5107
  "query": [],
4553
5108
  "body": null
4554
5109
  },
5110
+ {
5111
+ "group": "organizations",
5112
+ "name": "preview-auto-recharge",
5113
+ "method": "POST",
5114
+ "path": "/api/v1/organizations/{organization_id}/billing/ai-credit/auto-recharge/preview",
5115
+ "policy": "dashboard_only",
5116
+ "summary": "Preview Auto Recharge",
5117
+ "description": "The auto recharge terms for these settings, with each purchase's tax. Nothing is stored or charged.",
5118
+ "pathParams": [
5119
+ "organization_id"
5120
+ ],
5121
+ "query": [],
5122
+ "body": {
5123
+ "required": true,
5124
+ "fields": [
5125
+ {
5126
+ "name": "threshold",
5127
+ "type": "value",
5128
+ "required": true,
5129
+ "description": ""
5130
+ },
5131
+ {
5132
+ "name": "pack",
5133
+ "type": "string",
5134
+ "required": true,
5135
+ "values": [
5136
+ "5",
5137
+ "10",
5138
+ "20",
5139
+ "50"
5140
+ ],
5141
+ "description": ""
5142
+ },
5143
+ {
5144
+ "name": "monthly_ceiling",
5145
+ "type": "value",
5146
+ "required": true,
5147
+ "description": ""
5148
+ }
5149
+ ]
5150
+ }
5151
+ },
4555
5152
  {
4556
5153
  "group": "organizations",
4557
5154
  "name": "preview-patching-change",
@@ -4571,6 +5168,10 @@
4571
5168
  "name": "plan",
4572
5169
  "type": "string",
4573
5170
  "required": false,
5171
+ "values": [
5172
+ "patching",
5173
+ "payg_patching"
5174
+ ],
4574
5175
  "description": ""
4575
5176
  },
4576
5177
  {
@@ -4691,6 +5292,132 @@
4691
5292
  ]
4692
5293
  }
4693
5294
  },
5295
+ {
5296
+ "group": "organizations",
5297
+ "name": "put-card",
5298
+ "method": "PUT",
5299
+ "path": "/api/v1/organizations/{organization_id}/site-setup/card",
5300
+ "policy": "dashboard_only",
5301
+ "summary": "Hide or show the Finish setup card",
5302
+ "description": "Hide the dashboard \"Finish setup\" card for yourself in this organisation, or show it again. The sidebar link stays.",
5303
+ "pathParams": [
5304
+ "organization_id"
5305
+ ],
5306
+ "query": [],
5307
+ "body": {
5308
+ "required": true,
5309
+ "fields": [
5310
+ {
5311
+ "name": "hidden",
5312
+ "type": "boolean",
5313
+ "required": true,
5314
+ "description": ""
5315
+ }
5316
+ ]
5317
+ }
5318
+ },
5319
+ {
5320
+ "group": "organizations",
5321
+ "name": "quiet-week-get",
5322
+ "method": "GET",
5323
+ "path": "/api/v1/organizations/{organization_id}/quiet-week",
5324
+ "policy": "read",
5325
+ "summary": "Read the All quiet this week email settings",
5326
+ "description": "",
5327
+ "pathParams": [
5328
+ "organization_id"
5329
+ ],
5330
+ "query": [],
5331
+ "body": null
5332
+ },
5333
+ {
5334
+ "group": "organizations",
5335
+ "name": "quiet-week-put",
5336
+ "method": "PUT",
5337
+ "path": "/api/v1/organizations/{organization_id}/quiet-week",
5338
+ "policy": "write",
5339
+ "summary": "Change the All quiet this week email settings",
5340
+ "description": "",
5341
+ "pathParams": [
5342
+ "organization_id"
5343
+ ],
5344
+ "query": [],
5345
+ "body": {
5346
+ "required": true,
5347
+ "fields": [
5348
+ {
5349
+ "name": "enabled",
5350
+ "type": "boolean",
5351
+ "required": false,
5352
+ "description": ""
5353
+ },
5354
+ {
5355
+ "name": "receive_email",
5356
+ "type": "boolean",
5357
+ "required": false,
5358
+ "description": ""
5359
+ }
5360
+ ]
5361
+ }
5362
+ },
5363
+ {
5364
+ "group": "organizations",
5365
+ "name": "quote-ai-credit",
5366
+ "method": "POST",
5367
+ "path": "/api/v1/organizations/{organization_id}/billing/ai-credit/quotes",
5368
+ "policy": "dashboard_only",
5369
+ "summary": "Quote Ai Credit",
5370
+ "description": "Price one pack with its tax and the purchase terms. Nothing is charged; the quote lasts five minutes.",
5371
+ "pathParams": [
5372
+ "organization_id"
5373
+ ],
5374
+ "query": [],
5375
+ "body": {
5376
+ "required": true,
5377
+ "fields": [
5378
+ {
5379
+ "name": "pack",
5380
+ "type": "string",
5381
+ "required": true,
5382
+ "values": [
5383
+ "5",
5384
+ "10",
5385
+ "20",
5386
+ "50"
5387
+ ],
5388
+ "description": ""
5389
+ }
5390
+ ]
5391
+ }
5392
+ },
5393
+ {
5394
+ "group": "organizations",
5395
+ "name": "read-ai-credit",
5396
+ "method": "GET",
5397
+ "path": "/api/v1/organizations/{organization_id}/billing/ai-credit",
5398
+ "policy": "read",
5399
+ "summary": "Read Ai Credit",
5400
+ "description": "The billing account's AI credit: balance, packs, limits, auto recharge and recent purchases.",
5401
+ "pathParams": [
5402
+ "organization_id"
5403
+ ],
5404
+ "query": [],
5405
+ "body": null
5406
+ },
5407
+ {
5408
+ "group": "organizations",
5409
+ "name": "read-api-access",
5410
+ "method": "GET",
5411
+ "path": "/api/v1/organizations/{organization_id}/api-access",
5412
+ "policy": "read",
5413
+ "summary": "API access (CLI and MCP) for an organisation",
5414
+ "description": "Whether the CLI and MCP are turned on for this organisation, and the addresses they may be used from. Any member may read it.",
5415
+ "pathParams": [
5416
+ "organization_id"
5417
+ ],
5418
+ "query": [],
5419
+ "body": null
5420
+ },
4694
5421
  {
4695
5422
  "group": "organizations",
4696
5423
  "name": "read-capabilities",
@@ -4894,7 +5621,8 @@
4894
5621
  "report:write",
4895
5622
  "report:export",
4896
5623
  "report:issue",
4897
- "report:brand"
5624
+ "report:brand",
5625
+ "api_access:manage"
4898
5626
  ],
4899
5627
  "description": "Only organisations where the caller holds this permission, for example `site:create` for the add-site form."
4900
5628
  },
@@ -4938,11 +5666,11 @@
4938
5666
  },
4939
5667
  {
4940
5668
  "group": "organizations",
4941
- "name": "read-settings",
5669
+ "name": "read-summary",
4942
5670
  "method": "GET",
4943
- "path": "/api/v1/organizations/{organization_id}/weekly-summary",
5671
+ "path": "/api/v1/organizations/{organization_id}/billing/summary",
4944
5672
  "policy": "read",
4945
- "summary": "Read Settings",
5673
+ "summary": "Read Summary",
4946
5674
  "description": "",
4947
5675
  "pathParams": [
4948
5676
  "organization_id"
@@ -4952,14 +5680,15 @@
4952
5680
  },
4953
5681
  {
4954
5682
  "group": "organizations",
4955
- "name": "read-summary",
4956
- "method": "GET",
4957
- "path": "/api/v1/organizations/{organization_id}/billing/summary",
4958
- "policy": "read",
4959
- "summary": "Read Summary",
4960
- "description": "",
5683
+ "name": "remove-api-access-address",
5684
+ "method": "DELETE",
5685
+ "path": "/api/v1/organizations/{organization_id}/api-access/addresses/{address_id}",
5686
+ "policy": "dashboard_only",
5687
+ "summary": "Remove an approved address",
5688
+ "description": "Organisation admins only, with a fresh two-factor code. Removing the last address turns API access off.",
4961
5689
  "pathParams": [
4962
- "organization_id"
5690
+ "organization_id",
5691
+ "address_id"
4963
5692
  ],
4964
5693
  "query": [],
4965
5694
  "body": null
@@ -5024,7 +5753,7 @@
5024
5753
  "path": "/api/v1/organizations/{organization_id}/users/{user_id}",
5025
5754
  "policy": "mfa",
5026
5755
  "summary": "Remove User From Organization",
5027
- "description": "Remove a user from an organization (superuser or org_admin).",
5756
+ "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.",
5028
5757
  "pathParams": [
5029
5758
  "organization_id",
5030
5759
  "user_id"
@@ -5272,6 +6001,10 @@
5272
6001
  "name": "plan",
5273
6002
  "type": "string",
5274
6003
  "required": true,
6004
+ "values": [
6005
+ "patching",
6006
+ "payg_patching"
6007
+ ],
5275
6008
  "description": ""
5276
6009
  },
5277
6010
  {
@@ -5398,6 +6131,55 @@
5398
6131
  ]
5399
6132
  }
5400
6133
  },
6134
+ {
6135
+ "group": "organizations",
6136
+ "name": "update-api-access",
6137
+ "method": "PUT",
6138
+ "path": "/api/v1/organizations/{organization_id}/api-access",
6139
+ "policy": "dashboard_only",
6140
+ "summary": "Turn API access (CLI and MCP) on or off",
6141
+ "description": "Organisation admins only, with a fresh two-factor code. Turning on needs a plan that includes the CLI (403 ``plan_feature_unavailable``) and at least one approved address (422 ``address_required``). Turning off always works.",
6142
+ "pathParams": [
6143
+ "organization_id"
6144
+ ],
6145
+ "query": [],
6146
+ "body": {
6147
+ "required": true,
6148
+ "fields": [
6149
+ {
6150
+ "name": "enabled",
6151
+ "type": "boolean",
6152
+ "required": true,
6153
+ "description": ""
6154
+ }
6155
+ ]
6156
+ }
6157
+ },
6158
+ {
6159
+ "group": "organizations",
6160
+ "name": "update-member-status",
6161
+ "method": "PUT",
6162
+ "path": "/api/v1/organizations/{organization_id}/users/{user_id}/status",
6163
+ "policy": "mfa",
6164
+ "summary": "Deactivate or activate a member in this organisation",
6165
+ "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).",
6166
+ "pathParams": [
6167
+ "organization_id",
6168
+ "user_id"
6169
+ ],
6170
+ "query": [],
6171
+ "body": {
6172
+ "required": true,
6173
+ "fields": [
6174
+ {
6175
+ "name": "is_active",
6176
+ "type": "boolean",
6177
+ "required": true,
6178
+ "description": ""
6179
+ }
6180
+ ]
6181
+ }
6182
+ },
5401
6183
  {
5402
6184
  "group": "organizations",
5403
6185
  "name": "update-organization",
@@ -5618,36 +6400,6 @@
5618
6400
  ]
5619
6401
  }
5620
6402
  },
5621
- {
5622
- "group": "organizations",
5623
- "name": "update-settings",
5624
- "method": "PUT",
5625
- "path": "/api/v1/organizations/{organization_id}/weekly-summary",
5626
- "policy": "write",
5627
- "summary": "Update Settings",
5628
- "description": "",
5629
- "pathParams": [
5630
- "organization_id"
5631
- ],
5632
- "query": [],
5633
- "body": {
5634
- "required": true,
5635
- "fields": [
5636
- {
5637
- "name": "enabled",
5638
- "type": "boolean",
5639
- "required": false,
5640
- "description": ""
5641
- },
5642
- {
5643
- "name": "receive_weekly",
5644
- "type": "boolean",
5645
- "required": false,
5646
- "description": ""
5647
- }
5648
- ]
5649
- }
5650
- },
5651
6403
  {
5652
6404
  "group": "organizations",
5653
6405
  "name": "update-ticket-system",
@@ -5794,23 +6546,89 @@
5794
6546
  }
5795
6547
  },
5796
6548
  {
5797
- "group": "organizations",
5798
- "name": "voucher-validate",
6549
+ "group": "organizations",
6550
+ "name": "voucher-validate",
6551
+ "method": "POST",
6552
+ "path": "/api/v1/organizations/{organization_id}/billing/vouchers/validate",
6553
+ "policy": "write",
6554
+ "summary": "Voucher Validate",
6555
+ "description": "What a code would give this account, or 422 ``voucher_invalid``.",
6556
+ "pathParams": [
6557
+ "organization_id"
6558
+ ],
6559
+ "query": [],
6560
+ "body": {
6561
+ "required": true,
6562
+ "fields": [
6563
+ {
6564
+ "name": "code",
6565
+ "type": "string",
6566
+ "required": true,
6567
+ "description": ""
6568
+ }
6569
+ ]
6570
+ }
6571
+ },
6572
+ {
6573
+ "group": "organizations",
6574
+ "name": "weekly-summary-get",
6575
+ "method": "GET",
6576
+ "path": "/api/v1/organizations/{organization_id}/weekly-summary",
6577
+ "policy": "read",
6578
+ "summary": "Read Settings",
6579
+ "description": "",
6580
+ "pathParams": [
6581
+ "organization_id"
6582
+ ],
6583
+ "query": [],
6584
+ "body": null
6585
+ },
6586
+ {
6587
+ "group": "organizations",
6588
+ "name": "weekly-summary-put",
6589
+ "method": "PUT",
6590
+ "path": "/api/v1/organizations/{organization_id}/weekly-summary",
6591
+ "policy": "write",
6592
+ "summary": "Update Settings",
6593
+ "description": "",
6594
+ "pathParams": [
6595
+ "organization_id"
6596
+ ],
6597
+ "query": [],
6598
+ "body": {
6599
+ "required": true,
6600
+ "fields": [
6601
+ {
6602
+ "name": "enabled",
6603
+ "type": "boolean",
6604
+ "required": false,
6605
+ "description": ""
6606
+ },
6607
+ {
6608
+ "name": "receive_weekly",
6609
+ "type": "boolean",
6610
+ "required": false,
6611
+ "description": ""
6612
+ }
6613
+ ]
6614
+ }
6615
+ },
6616
+ {
6617
+ "group": "patching",
6618
+ "name": "add-included-ai",
5799
6619
  "method": "POST",
5800
- "path": "/api/v1/organizations/{organization_id}/billing/vouchers/validate",
5801
- "policy": "write",
5802
- "summary": "Voucher Validate",
5803
- "description": "What a code would give this account, or 422 ``voucher_invalid``.",
5804
- "pathParams": [
5805
- "organization_id"
5806
- ],
6620
+ "path": "/api/v1/patching/connections/included-ai",
6621
+ "policy": "mfa",
6622
+ "summary": "Turn on Included AI for the organisation",
6623
+ "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.",
6624
+ "pathParams": [],
5807
6625
  "query": [],
5808
6626
  "body": {
5809
6627
  "required": true,
5810
6628
  "fields": [
5811
6629
  {
5812
- "name": "code",
5813
- "type": "string",
6630
+ "name": "organization_id",
6631
+ "type": "integer",
5814
6632
  "required": true,
5815
6633
  "description": ""
5816
6634
  }
@@ -5847,6 +6665,28 @@
5847
6665
  ]
5848
6666
  }
5849
6667
  },
6668
+ {
6669
+ "group": "patching",
6670
+ "name": "approve-autopilot-merge",
6671
+ "method": "POST",
6672
+ "path": "/api/v1/patching/autopilot/approvals",
6673
+ "policy": "mfa",
6674
+ "summary": "Approve one Autopilot merge from the emailed link",
6675
+ "description": "Approve one Autopilot merge from the emailed link (#956). An unknown token, or one for an organisation the caller does not administer, answers the same 404, so a link reveals nothing to anyone else.",
6676
+ "pathParams": [],
6677
+ "query": [],
6678
+ "body": {
6679
+ "required": true,
6680
+ "fields": [
6681
+ {
6682
+ "name": "token",
6683
+ "type": "string",
6684
+ "required": true,
6685
+ "description": ""
6686
+ }
6687
+ ]
6688
+ }
6689
+ },
5850
6690
  {
5851
6691
  "group": "patching",
5852
6692
  "name": "choose-shared-repositories",
@@ -5961,6 +6801,50 @@
5961
6801
  ]
5962
6802
  }
5963
6803
  },
6804
+ {
6805
+ "group": "patching",
6806
+ "name": "connect-gitlab-token",
6807
+ "method": "POST",
6808
+ "path": "/api/v1/patching/git-hosts/gitlab/token",
6809
+ "policy": "mfa",
6810
+ "summary": "Connect Gitlab Token",
6811
+ "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.",
6812
+ "pathParams": [],
6813
+ "query": [],
6814
+ "body": {
6815
+ "required": true,
6816
+ "fields": [
6817
+ {
6818
+ "name": "organization_id",
6819
+ "type": "integer",
6820
+ "required": true,
6821
+ "description": ""
6822
+ },
6823
+ {
6824
+ "name": "token",
6825
+ "type": "string",
6826
+ "required": true,
6827
+ "description": ""
6828
+ },
6829
+ {
6830
+ "name": "access",
6831
+ "type": "string",
6832
+ "required": false,
6833
+ "values": [
6834
+ "read",
6835
+ "write"
6836
+ ],
6837
+ "description": ""
6838
+ },
6839
+ {
6840
+ "name": "label",
6841
+ "type": "string",
6842
+ "required": false,
6843
+ "description": ""
6844
+ }
6845
+ ]
6846
+ }
6847
+ },
5964
6848
  {
5965
6849
  "group": "patching",
5966
6850
  "name": "connect-provider",
@@ -6269,7 +7153,7 @@
6269
7153
  "path": "/api/v1/patching/terms/{kind}",
6270
7154
  "policy": "read",
6271
7155
  "summary": "Current Terms",
6272
- "description": "The text in force for the kind, with the support plan link.",
7156
+ "description": "The text in force for the kind, with the support plan link. With ``site_uuid``, also the Customer the person accepts for on that site (#1930), for a caller who may accept these terms there.",
6273
7157
  "pathParams": [
6274
7158
  "kind"
6275
7159
  ],
@@ -6279,6 +7163,12 @@
6279
7163
  "type": "integer",
6280
7164
  "required": false,
6281
7165
  "description": ""
7166
+ },
7167
+ {
7168
+ "name": "site_uuid",
7169
+ "type": "string",
7170
+ "required": false,
7171
+ "description": ""
6282
7172
  }
6283
7173
  ],
6284
7174
  "body": null
@@ -6310,7 +7200,7 @@
6310
7200
  "method": "GET",
6311
7201
  "path": "/api/v1/patching/activity/artefacts/{artefact_id}",
6312
7202
  "policy": "read",
6313
- "summary": "Download Artefact",
7203
+ "summary": "Download retained job output",
6314
7204
  "description": "The full, redacted output behind a step row, while it is retained and no platform administrator has withheld the job's output (#1954).",
6315
7205
  "pathParams": [
6316
7206
  "artefact_id"
@@ -6394,7 +7284,7 @@
6394
7284
  "method": "GET",
6395
7285
  "path": "/api/v1/patching/activity/export.csv",
6396
7286
  "policy": "read",
6397
- "summary": "Export Csv",
7287
+ "summary": "Download organisation activity as CSV",
6398
7288
  "description": "Activity for a period as CSV, this organisation only; audited.",
6399
7289
  "pathParams": [],
6400
7290
  "query": [
@@ -6431,7 +7321,7 @@
6431
7321
  "method": "GET",
6432
7322
  "path": "/api/v1/patching/activity/jobs/{job_id}/export.json",
6433
7323
  "policy": "read",
6434
- "summary": "Export Job",
7324
+ "summary": "Download a job's activity and retained output",
6435
7325
  "description": "One job as JSON, transcript and retained artefacts included; audited. A job whose output is withheld has no export (#1954).",
6436
7326
  "pathParams": [
6437
7327
  "job_id"
@@ -6446,13 +7336,93 @@
6446
7336
  ],
6447
7337
  "body": null
6448
7338
  },
7339
+ {
7340
+ "group": "patching",
7341
+ "name": "flag-job-for-review",
7342
+ "method": "POST",
7343
+ "path": "/api/v1/patching/jobs/{job_id}/review",
7344
+ "policy": "write",
7345
+ "summary": "Flag Job For Review",
7346
+ "description": "Flag the job for review: open a support ticket about it. A second flag while your ticket about the job is open adds to that ticket instead of opening another.",
7347
+ "pathParams": [
7348
+ "job_id"
7349
+ ],
7350
+ "query": [
7351
+ {
7352
+ "name": "organization_id",
7353
+ "type": "integer",
7354
+ "required": false,
7355
+ "description": ""
7356
+ }
7357
+ ],
7358
+ "body": {
7359
+ "required": true,
7360
+ "fields": [
7361
+ {
7362
+ "name": "reason",
7363
+ "type": "string",
7364
+ "required": true,
7365
+ "values": [
7366
+ "failed",
7367
+ "unexpected_result",
7368
+ "site_problem",
7369
+ "other"
7370
+ ],
7371
+ "description": ""
7372
+ },
7373
+ {
7374
+ "name": "details",
7375
+ "type": "string",
7376
+ "required": true,
7377
+ "description": ""
7378
+ },
7379
+ {
7380
+ "name": "expected",
7381
+ "type": "string",
7382
+ "required": false,
7383
+ "description": ""
7384
+ },
7385
+ {
7386
+ "name": "attachment_ids",
7387
+ "type": "integer[]",
7388
+ "required": false,
7389
+ "description": ""
7390
+ },
7391
+ {
7392
+ "name": "copy_token",
7393
+ "type": "string",
7394
+ "required": false,
7395
+ "description": ""
7396
+ }
7397
+ ]
7398
+ }
7399
+ },
7400
+ {
7401
+ "group": "patching",
7402
+ "name": "get-ai-reviewer",
7403
+ "method": "GET",
7404
+ "path": "/api/v1/patching/ai-reviewer",
7405
+ "policy": "read",
7406
+ "summary": "Read which AI key reviews Patching jobs by default",
7407
+ "description": "The organisation's default reviewer key for the agent loop (#3013) and its active AI keys. ``offered`` is false with keys from one provider: every role then runs on that key as separate agents.",
7408
+ "pathParams": [],
7409
+ "query": [
7410
+ {
7411
+ "name": "organization_id",
7412
+ "type": "integer",
7413
+ "required": false,
7414
+ "description": ""
7415
+ }
7416
+ ],
7417
+ "body": null
7418
+ },
6449
7419
  {
6450
7420
  "group": "patching",
6451
7421
  "name": "get-job-timeline",
6452
7422
  "method": "GET",
6453
7423
  "path": "/api/v1/patching/activity/jobs/{job_id}",
6454
7424
  "policy": "read",
6455
- "summary": "Get Job Timeline",
7425
+ "summary": "Read an update job's progress, activity and AI usage",
6456
7426
  "description": "The job page: every row grouped by playbook phase, in order.",
6457
7427
  "pathParams": [
6458
7428
  "job_id"
@@ -6467,13 +7437,27 @@
6467
7437
  ],
6468
7438
  "body": null
6469
7439
  },
7440
+ {
7441
+ "group": "patching",
7442
+ "name": "get-organization-deployment",
7443
+ "method": "GET",
7444
+ "path": "/api/v1/patching/deployments/{reference}",
7445
+ "policy": "read",
7446
+ "summary": "Get Organization Deployment",
7447
+ "description": "Show one deployment by its reference, with its timeline.",
7448
+ "pathParams": [
7449
+ "reference"
7450
+ ],
7451
+ "query": [],
7452
+ "body": null
7453
+ },
6470
7454
  {
6471
7455
  "group": "patching",
6472
7456
  "name": "get-spend",
6473
7457
  "method": "GET",
6474
7458
  "path": "/api/v1/patching/spend",
6475
7459
  "policy": "read",
6476
- "summary": "Get Spend",
7460
+ "summary": "Read AI-key usage and estimated provider costs",
6477
7461
  "description": "This month's usage and estimated cost, each AI key against its own cap (#1137), and the recent jobs. Caps are set on each key (``PATCH /patching/connections/{id}``); there is no organisation cap.",
6478
7462
  "pathParams": [],
6479
7463
  "query": [
@@ -6692,6 +7676,55 @@
6692
7676
  ],
6693
7677
  "body": null
6694
7678
  },
7679
+ {
7680
+ "group": "patching",
7681
+ "name": "list-organization-deployments",
7682
+ "method": "GET",
7683
+ "path": "/api/v1/patching/deployments",
7684
+ "policy": "read",
7685
+ "summary": "List Organization Deployments",
7686
+ "description": "List your organisation's deployments, running first, then newest first.",
7687
+ "pathParams": [],
7688
+ "query": [
7689
+ {
7690
+ "name": "organization_id",
7691
+ "type": "integer",
7692
+ "required": false,
7693
+ "description": ""
7694
+ },
7695
+ {
7696
+ "name": "site_uuid",
7697
+ "type": "string",
7698
+ "required": false,
7699
+ "description": ""
7700
+ },
7701
+ {
7702
+ "name": "state",
7703
+ "type": "string",
7704
+ "required": false,
7705
+ "values": [
7706
+ "running",
7707
+ "waiting",
7708
+ "needs_a_look",
7709
+ "done"
7710
+ ],
7711
+ "description": ""
7712
+ },
7713
+ {
7714
+ "name": "page",
7715
+ "type": "integer",
7716
+ "required": false,
7717
+ "description": ""
7718
+ },
7719
+ {
7720
+ "name": "page_size",
7721
+ "type": "integer",
7722
+ "required": false,
7723
+ "description": ""
7724
+ }
7725
+ ],
7726
+ "body": null
7727
+ },
6695
7728
  {
6696
7729
  "group": "patching",
6697
7730
  "name": "list-organization-jobs",
@@ -6744,6 +7777,18 @@
6744
7777
  ],
6745
7778
  "description": ""
6746
7779
  },
7780
+ {
7781
+ "name": "started_by",
7782
+ "type": "string",
7783
+ "required": false,
7784
+ "values": [
7785
+ "schedule",
7786
+ "autopilot",
7787
+ "person",
7788
+ "follow_up"
7789
+ ],
7790
+ "description": ""
7791
+ },
6747
7792
  {
6748
7793
  "name": "days",
6749
7794
  "type": "integer",
@@ -6872,7 +7917,7 @@
6872
7917
  "path": "/api/v1/patching/residency-countries",
6873
7918
  "policy": "read",
6874
7919
  "summary": "List Residency Countries",
6875
- "description": "Countries a site's Patching builds can run in (#1231), by name. The countries on offer today, from the daily catalogue: only the home country until machines may run abroad. A country Vultr withdrew is left out: sites that chose it keep it.",
7920
+ "description": "Countries a site's Patching builds can run in (#1231), by name. The countries on offer today, from the daily catalogue: only the home country until machines may run abroad. A country Vultr withdrew is left out: sites that chose it keep it. ``plan_allows_choice`` is false when the organisation's plan builds in the default country only (#2566).",
6876
7921
  "pathParams": [],
6877
7922
  "query": [
6878
7923
  {
@@ -7089,22 +8134,80 @@
7089
8134
  "description": "When security runs start (#1276). Null on a request is the default."
7090
8135
  },
7091
8136
  {
7092
- "name": "maintenance_schedule",
7093
- "type": "object",
8137
+ "name": "maintenance_schedule",
8138
+ "type": "object",
8139
+ "required": false,
8140
+ "description": "Wall-clock maintenance runs in the organisation's time zone (#1276)."
8141
+ }
8142
+ ]
8143
+ }
8144
+ },
8145
+ {
8146
+ "group": "patching",
8147
+ "name": "public-settings",
8148
+ "method": "GET",
8149
+ "path": "/api/v1/patching/settings",
8150
+ "policy": "read",
8151
+ "summary": "Public Settings",
8152
+ "description": "Values the dashboard shows outside the dialog: the support plan link.",
8153
+ "pathParams": [],
8154
+ "query": [
8155
+ {
8156
+ "name": "organization_id",
8157
+ "type": "integer",
8158
+ "required": false,
8159
+ "description": ""
8160
+ }
8161
+ ],
8162
+ "body": null
8163
+ },
8164
+ {
8165
+ "group": "patching",
8166
+ "name": "put-ai-reviewer",
8167
+ "method": "PUT",
8168
+ "path": "/api/v1/patching/ai-reviewer",
8169
+ "policy": "write",
8170
+ "summary": "Choose which AI key reviews Patching jobs by default",
8171
+ "description": "Set the default (``patching:configure``): null is OpenAI codes and Anthropic reviews, ``same`` reviews on the coder's key, ``key`` on the named active AI key. A site may choose its own.",
8172
+ "pathParams": [],
8173
+ "query": [
8174
+ {
8175
+ "name": "organization_id",
8176
+ "type": "integer",
8177
+ "required": false,
8178
+ "description": ""
8179
+ }
8180
+ ],
8181
+ "body": {
8182
+ "required": true,
8183
+ "fields": [
8184
+ {
8185
+ "name": "ai_reviewer",
8186
+ "type": "string",
8187
+ "required": false,
8188
+ "values": [
8189
+ "same",
8190
+ "key"
8191
+ ],
8192
+ "description": ""
8193
+ },
8194
+ {
8195
+ "name": "ai_reviewer_connection_id",
8196
+ "type": "integer",
7094
8197
  "required": false,
7095
- "description": "Wall-clock maintenance runs in the organisation's time zone (#1276)."
8198
+ "description": ""
7096
8199
  }
7097
8200
  ]
7098
8201
  }
7099
8202
  },
7100
8203
  {
7101
8204
  "group": "patching",
7102
- "name": "public-settings",
8205
+ "name": "read-catalogue",
7103
8206
  "method": "GET",
7104
- "path": "/api/v1/patching/settings",
8207
+ "path": "/api/v1/patching/integration-requests/catalogue",
7105
8208
  "policy": "read",
7106
- "summary": "Public Settings",
7107
- "description": "Values the dashboard shows outside the dialog: the support plan link.",
8209
+ "summary": "Read Catalogue",
8210
+ "description": "The forms' messages, the catalogue with its reasons and the trigger words.",
7108
8211
  "pathParams": [],
7109
8212
  "query": [
7110
8213
  {
@@ -7118,13 +8221,15 @@
7118
8221
  },
7119
8222
  {
7120
8223
  "group": "patching",
7121
- "name": "read-catalogue",
8224
+ "name": "read-job-review",
7122
8225
  "method": "GET",
7123
- "path": "/api/v1/patching/integration-requests/catalogue",
8226
+ "path": "/api/v1/patching/jobs/{job_id}/review",
7124
8227
  "policy": "read",
7125
- "summary": "Read Catalogue",
7126
- "description": "The forms' messages, the catalogue with its reasons and the trigger words.",
7127
- "pathParams": [],
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
+ ],
7128
8233
  "query": [
7129
8234
  {
7130
8235
  "name": "organization_id",
@@ -7241,6 +8346,12 @@
7241
8346
  "type": "string",
7242
8347
  "required": false,
7243
8348
  "description": ""
8349
+ },
8350
+ {
8351
+ "name": "customer_name",
8352
+ "type": "string",
8353
+ "required": false,
8354
+ "description": ""
7244
8355
  }
7245
8356
  ]
7246
8357
  }
@@ -7299,6 +8410,46 @@
7299
8410
  ],
7300
8411
  "body": null
7301
8412
  },
8413
+ {
8414
+ "group": "patching",
8415
+ "name": "replace-gitlab-token",
8416
+ "method": "POST",
8417
+ "path": "/api/v1/patching/git-hosts/gitlab/token/{connection_id}",
8418
+ "policy": "mfa",
8419
+ "summary": "Replace Gitlab Token",
8420
+ "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.",
8421
+ "pathParams": [
8422
+ "connection_id"
8423
+ ],
8424
+ "query": [],
8425
+ "body": {
8426
+ "required": true,
8427
+ "fields": [
8428
+ {
8429
+ "name": "organization_id",
8430
+ "type": "integer",
8431
+ "required": true,
8432
+ "description": ""
8433
+ },
8434
+ {
8435
+ "name": "token",
8436
+ "type": "string",
8437
+ "required": true,
8438
+ "description": ""
8439
+ },
8440
+ {
8441
+ "name": "access",
8442
+ "type": "string",
8443
+ "required": false,
8444
+ "values": [
8445
+ "read",
8446
+ "write"
8447
+ ],
8448
+ "description": ""
8449
+ }
8450
+ ]
8451
+ }
8452
+ },
7302
8453
  {
7303
8454
  "group": "patching",
7304
8455
  "name": "revoke-secret",
@@ -7470,6 +8621,22 @@
7470
8621
  "write"
7471
8622
  ],
7472
8623
  "description": ""
8624
+ },
8625
+ {
8626
+ "name": "return_site",
8627
+ "type": "string",
8628
+ "required": false,
8629
+ "description": ""
8630
+ },
8631
+ {
8632
+ "name": "return_to",
8633
+ "type": "string",
8634
+ "required": false,
8635
+ "values": [
8636
+ "enrolment",
8637
+ "setup"
8638
+ ],
8639
+ "description": ""
7473
8640
  }
7474
8641
  ]
7475
8642
  }
@@ -8291,6 +9458,54 @@
8291
9458
  ],
8292
9459
  "body": null
8293
9460
  },
9461
+ {
9462
+ "group": "sites",
9463
+ "name": "acknowledge-merge-checks",
9464
+ "method": "POST",
9465
+ "path": "/api/v1/sites/{site_uuid}/patching/merge-checks/acknowledgement",
9466
+ "policy": "mfa",
9467
+ "summary": "Acknowledge Merge Checks",
9468
+ "description": "Acknowledge what the repository's required checks mean for Autopilot. A standing authorisation, so only an administrator of the organisation may give it, with a fresh second factor: a platform administrator who is not one is refused here. The host is read again and the call is refused when it no longer matches what the person saw.",
9469
+ "pathParams": [
9470
+ "site_uuid"
9471
+ ],
9472
+ "query": [],
9473
+ "body": {
9474
+ "required": true,
9475
+ "fields": [
9476
+ {
9477
+ "name": "checks",
9478
+ "type": "object[]",
9479
+ "required": false,
9480
+ "description": ""
9481
+ },
9482
+ {
9483
+ "name": "wording_version",
9484
+ "type": "string",
9485
+ "required": true,
9486
+ "description": ""
9487
+ },
9488
+ {
9489
+ "name": "git_connection_id",
9490
+ "type": "integer",
9491
+ "required": false,
9492
+ "description": ""
9493
+ },
9494
+ {
9495
+ "name": "repository_id",
9496
+ "type": "string",
9497
+ "required": true,
9498
+ "description": ""
9499
+ },
9500
+ {
9501
+ "name": "production_branch",
9502
+ "type": "string",
9503
+ "required": true,
9504
+ "description": ""
9505
+ }
9506
+ ]
9507
+ }
9508
+ },
8294
9509
  {
8295
9510
  "group": "sites",
8296
9511
  "name": "acknowledge-stack-vulnerabilities",
@@ -8410,6 +9625,20 @@
8410
9625
  "query": [],
8411
9626
  "body": null
8412
9627
  },
9628
+ {
9629
+ "group": "sites",
9630
+ "name": "check-dependabot-status",
9631
+ "method": "POST",
9632
+ "path": "/api/v1/sites/{site_uuid}/patching/dependabot/check",
9633
+ "policy": "write",
9634
+ "summary": "Check Dependabot alerts on the site's repository again",
9635
+ "description": "Ask GitHub again (#1912). Organisation administrators only. Sentinel only reads: this never turns alerts on.",
9636
+ "pathParams": [
9637
+ "site_uuid"
9638
+ ],
9639
+ "query": [],
9640
+ "body": null
9641
+ },
8413
9642
  {
8414
9643
  "group": "sites",
8415
9644
  "name": "clear-site-repository",
@@ -8676,6 +9905,18 @@
8676
9905
  "type": "string",
8677
9906
  "required": false,
8678
9907
  "description": ""
9908
+ },
9909
+ {
9910
+ "name": "dependabot_alert_id",
9911
+ "type": "integer",
9912
+ "required": false,
9913
+ "description": ""
9914
+ },
9915
+ {
9916
+ "name": "selection",
9917
+ "type": "object",
9918
+ "required": false,
9919
+ "description": "What a manual run is asked to update. Absent: everything, as before."
8679
9920
  }
8680
9921
  ]
8681
9922
  }
@@ -8828,6 +10069,20 @@
8828
10069
  ]
8829
10070
  }
8830
10071
  },
10072
+ {
10073
+ "group": "sites",
10074
+ "name": "export-merge-checks-history",
10075
+ "method": "GET",
10076
+ "path": "/api/v1/sites/{site_uuid}/patching/merge-checks/history.csv",
10077
+ "policy": "read",
10078
+ "summary": "Export Merge Checks History",
10079
+ "description": "Download this website's check policy history as CSV (#1930). Organisation administrators only; the same rows as the history route.",
10080
+ "pathParams": [
10081
+ "site_uuid"
10082
+ ],
10083
+ "query": [],
10084
+ "body": null
10085
+ },
8831
10086
  {
8832
10087
  "group": "sites",
8833
10088
  "name": "export-sites-overview",
@@ -8901,6 +10156,12 @@
8901
10156
  "required": false,
8902
10157
  "description": "As on `GET /sites/overview`."
8903
10158
  },
10159
+ {
10160
+ "name": "drupal_status",
10161
+ "type": "string",
10162
+ "required": false,
10163
+ "description": "As on `GET /sites/overview`."
10164
+ },
8904
10165
  {
8905
10166
  "name": "site_uuid",
8906
10167
  "type": "string[]",
@@ -9034,6 +10295,20 @@
9034
10295
  "query": [],
9035
10296
  "body": null
9036
10297
  },
10298
+ {
10299
+ "group": "sites",
10300
+ "name": "get-site-autopilot",
10301
+ "method": "GET",
10302
+ "path": "/api/v1/sites/{site_uuid}/patching/autopilot",
10303
+ "policy": "read",
10304
+ "summary": "See the website's Autopilot runs and whether it waits for Resume",
10305
+ "description": "The site's Autopilot runs and whether it waits for Resume. Members.",
10306
+ "pathParams": [
10307
+ "site_uuid"
10308
+ ],
10309
+ "query": [],
10310
+ "body": null
10311
+ },
9037
10312
  {
9038
10313
  "group": "sites",
9039
10314
  "name": "get-site-certificate",
@@ -9165,13 +10440,27 @@
9165
10440
  ],
9166
10441
  "body": null
9167
10442
  },
10443
+ {
10444
+ "group": "sites",
10445
+ "name": "get-site-included-ai",
10446
+ "method": "GET",
10447
+ "path": "/api/v1/sites/{site_uuid}/patching/included-ai",
10448
+ "policy": "read",
10449
+ "summary": "See the website's Included AI limits and what is used",
10450
+ "description": "The website's monthly use of Included AI. Members.",
10451
+ "pathParams": [
10452
+ "site_uuid"
10453
+ ],
10454
+ "query": [],
10455
+ "body": null
10456
+ },
9168
10457
  {
9169
10458
  "group": "sites",
9170
10459
  "name": "get-site-job",
9171
10460
  "method": "GET",
9172
10461
  "path": "/api/v1/sites/{site_uuid}/patching/jobs/{job_id}",
9173
10462
  "policy": "read",
9174
- "summary": "Get Site Job",
10463
+ "summary": "Read an update job and its AI usage",
9175
10464
  "description": "",
9176
10465
  "pathParams": [
9177
10466
  "site_uuid",
@@ -9352,6 +10641,20 @@
9352
10641
  "query": [],
9353
10642
  "body": null
9354
10643
  },
10644
+ {
10645
+ "group": "sites",
10646
+ "name": "get-site-setup",
10647
+ "method": "GET",
10648
+ "path": "/api/v1/sites/{site_uuid}/setup",
10649
+ "policy": "dashboard_only",
10650
+ "summary": "A site's setup steps",
10651
+ "description": "Each step of the site's setup: done, skipped (with the date) or not started, and the step the wizard opens at.",
10652
+ "pathParams": [
10653
+ "site_uuid"
10654
+ ],
10655
+ "query": [],
10656
+ "body": null
10657
+ },
9355
10658
  {
9356
10659
  "group": "sites",
9357
10660
  "name": "get-site-update-history",
@@ -9493,6 +10796,106 @@
9493
10796
  "type": "string",
9494
10797
  "required": false,
9495
10798
  "description": "Only sites in this Patching state: `not_enrolled`, `copilot`, `autopilot` or `paused` (#2134). Ignored unless Patching is available to the organisation."
10799
+ },
10800
+ {
10801
+ "name": "drupal_status",
10802
+ "type": "string",
10803
+ "required": false,
10804
+ "description": "Only sites in this Drupal status report state: `errors`, `warnings`, `clear` or `not_reported` (#2315). sort_by=drupal_status orders errors, warnings, clear, then the rest (desc reverses it), ties by name. Ignored unless the report is open to the organisation."
10805
+ }
10806
+ ],
10807
+ "body": null
10808
+ },
10809
+ {
10810
+ "group": "sites",
10811
+ "name": "list-dependabot-alerts",
10812
+ "method": "GET",
10813
+ "path": "/api/v1/sites/{site_uuid}/patching/dependabot/alerts",
10814
+ "policy": "read",
10815
+ "summary": "List this site's Dependabot alerts and what Patching does with each",
10816
+ "description": "One repository can serve several sites, and each gets its own answers.",
10817
+ "pathParams": [
10818
+ "site_uuid"
10819
+ ],
10820
+ "query": [
10821
+ {
10822
+ "name": "state",
10823
+ "type": "string",
10824
+ "required": false,
10825
+ "values": [
10826
+ "open",
10827
+ "fixed",
10828
+ "dismissed",
10829
+ "withdrawn",
10830
+ "all"
10831
+ ],
10832
+ "description": ""
10833
+ },
10834
+ {
10835
+ "name": "severity",
10836
+ "type": "string",
10837
+ "required": false,
10838
+ "values": [
10839
+ "critical",
10840
+ "high",
10841
+ "medium",
10842
+ "low"
10843
+ ],
10844
+ "description": ""
10845
+ },
10846
+ {
10847
+ "name": "ecosystem",
10848
+ "type": "string",
10849
+ "required": false,
10850
+ "description": ""
10851
+ },
10852
+ {
10853
+ "name": "outcome",
10854
+ "type": "string",
10855
+ "required": false,
10856
+ "values": [
10857
+ "other_branch",
10858
+ "no_fix",
10859
+ "excluded",
10860
+ "other_folder",
10861
+ "javascript",
10862
+ "other_ecosystem",
10863
+ "major_upgrade",
10864
+ "maintenance",
10865
+ "security"
10866
+ ],
10867
+ "description": ""
10868
+ },
10869
+ {
10870
+ "name": "page",
10871
+ "type": "integer",
10872
+ "required": false,
10873
+ "description": ""
10874
+ }
10875
+ ],
10876
+ "body": null
10877
+ },
10878
+ {
10879
+ "group": "sites",
10880
+ "name": "list-run-candidates",
10881
+ "method": "GET",
10882
+ "path": "/api/v1/sites/{site_uuid}/patching/jobs/candidates",
10883
+ "policy": "read",
10884
+ "summary": "List what a manual update could change",
10885
+ "description": "The packages a security or maintenance run could update, the step each may take (patch, minor or a new major) and what is held back and why. Drupal core and distributions are never offered a new major (#2289).",
10886
+ "pathParams": [
10887
+ "site_uuid"
10888
+ ],
10889
+ "query": [
10890
+ {
10891
+ "name": "kind",
10892
+ "type": "string",
10893
+ "required": true,
10894
+ "values": [
10895
+ "security",
10896
+ "maintenance"
10897
+ ],
10898
+ "description": ""
9496
10899
  }
9497
10900
  ],
9498
10901
  "body": null
@@ -9577,6 +10980,24 @@
9577
10980
  "type": "integer[]",
9578
10981
  "required": false,
9579
10982
  "description": ""
10983
+ },
10984
+ {
10985
+ "name": "before",
10986
+ "type": "integer",
10987
+ "required": false,
10988
+ "description": ""
10989
+ },
10990
+ {
10991
+ "name": "reference",
10992
+ "type": "string",
10993
+ "required": false,
10994
+ "description": ""
10995
+ },
10996
+ {
10997
+ "name": "limit",
10998
+ "type": "integer",
10999
+ "required": false,
11000
+ "description": ""
9580
11001
  }
9581
11002
  ],
9582
11003
  "body": null
@@ -9587,7 +11008,7 @@
9587
11008
  "method": "GET",
9588
11009
  "path": "/api/v1/sites/{site_uuid}/patching/jobs",
9589
11010
  "policy": "read",
9590
- "summary": "List Site Jobs",
11011
+ "summary": "List a website's update jobs and AI usage",
9591
11012
  "description": "The site's runner jobs, newest first, with queue positions.",
9592
11013
  "pathParams": [
9593
11014
  "site_uuid"
@@ -9622,6 +11043,27 @@
9622
11043
  ],
9623
11044
  "body": null
9624
11045
  },
11046
+ {
11047
+ "group": "sites",
11048
+ "name": "list-site-repository-branches",
11049
+ "method": "GET",
11050
+ "path": "/api/v1/sites/{site_uuid}/patching/repository/branches",
11051
+ "policy": "read",
11052
+ "summary": "List the branches of the site's repository",
11053
+ "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.",
11054
+ "pathParams": [
11055
+ "site_uuid"
11056
+ ],
11057
+ "query": [
11058
+ {
11059
+ "name": "q",
11060
+ "type": "string",
11061
+ "required": false,
11062
+ "description": ""
11063
+ }
11064
+ ],
11065
+ "body": null
11066
+ },
9625
11067
  {
9626
11068
  "group": "sites",
9627
11069
  "name": "list-stack-vulnerabilities",
@@ -9703,6 +11145,31 @@
9703
11145
  ]
9704
11146
  }
9705
11147
  },
11148
+ {
11149
+ "group": "sites",
11150
+ "name": "mute-drupal-status-item",
11151
+ "method": "PUT",
11152
+ "path": "/api/v1/sites/{site_uuid}/drupal-status-report/mutes/{key}",
11153
+ "policy": "write",
11154
+ "summary": "Mute an item of a site's Drupal status report",
11155
+ "description": "Stop counting one open error or warning, with a reason everyone in the organisation sees. Muting again replaces the reason, who and when. A muted warning comes back by itself if the site reports it as an error. Answers the report as it now stands.",
11156
+ "pathParams": [
11157
+ "site_uuid",
11158
+ "key"
11159
+ ],
11160
+ "query": [],
11161
+ "body": {
11162
+ "required": true,
11163
+ "fields": [
11164
+ {
11165
+ "name": "reason",
11166
+ "type": "string",
11167
+ "required": true,
11168
+ "description": "Why it does not need fixing; shown to the organisation. Spaces are collapsed before the 10 to 500 character check."
11169
+ }
11170
+ ]
11171
+ }
11172
+ },
9706
11173
  {
9707
11174
  "group": "sites",
9708
11175
  "name": "provision-sync-secret",
@@ -9717,6 +11184,41 @@
9717
11184
  "query": [],
9718
11185
  "body": null
9719
11186
  },
11187
+ {
11188
+ "group": "sites",
11189
+ "name": "put-dependabot-rules",
11190
+ "method": "PUT",
11191
+ "path": "/api/v1/sites/{site_uuid}/patching/dependabot/rules",
11192
+ "policy": "mfa",
11193
+ "summary": "Choose whether a new Dependabot alert starts a security update",
11194
+ "description": "Off by default. On Autopilot, widening them needs a fresh second factor, because a run they start can reach production with no person.",
11195
+ "pathParams": [
11196
+ "site_uuid"
11197
+ ],
11198
+ "query": [],
11199
+ "body": {
11200
+ "required": true,
11201
+ "fields": [
11202
+ {
11203
+ "name": "auto_security",
11204
+ "type": "boolean",
11205
+ "required": false,
11206
+ "description": ""
11207
+ },
11208
+ {
11209
+ "name": "minimum_severity",
11210
+ "type": "string",
11211
+ "required": false,
11212
+ "values": [
11213
+ "medium",
11214
+ "high",
11215
+ "critical"
11216
+ ],
11217
+ "description": ""
11218
+ }
11219
+ ]
11220
+ }
11221
+ },
9720
11222
  {
9721
11223
  "group": "sites",
9722
11224
  "name": "put-draft",
@@ -9741,6 +11243,40 @@
9741
11243
  ]
9742
11244
  }
9743
11245
  },
11246
+ {
11247
+ "group": "sites",
11248
+ "name": "put-site-ai-reviewer",
11249
+ "method": "PUT",
11250
+ "path": "/api/v1/sites/{site_uuid}/patching/ai-reviewer",
11251
+ "policy": "write",
11252
+ "summary": "Choose which AI key reviews this website's Patching jobs",
11253
+ "description": "Which of the organisation's own AI keys reviews in the agent loop (#3013): null follows the organisation, ``same`` reviews on the coder's key, ``key`` on the named active AI key. The generic 404 while the agent loop is not released for the organisation. Needs ``patching:run``, as choosing the site's AI key does.",
11254
+ "pathParams": [
11255
+ "site_uuid"
11256
+ ],
11257
+ "query": [],
11258
+ "body": {
11259
+ "required": true,
11260
+ "fields": [
11261
+ {
11262
+ "name": "ai_reviewer",
11263
+ "type": "string",
11264
+ "required": false,
11265
+ "values": [
11266
+ "same",
11267
+ "key"
11268
+ ],
11269
+ "description": ""
11270
+ },
11271
+ {
11272
+ "name": "ai_reviewer_connection_id",
11273
+ "type": "integer",
11274
+ "required": false,
11275
+ "description": ""
11276
+ }
11277
+ ]
11278
+ }
11279
+ },
9744
11280
  {
9745
11281
  "group": "sites",
9746
11282
  "name": "put-site-deploy-method",
@@ -9776,6 +11312,34 @@
9776
11312
  ]
9777
11313
  }
9778
11314
  },
11315
+ {
11316
+ "group": "sites",
11317
+ "name": "put-site-deploy-mode",
11318
+ "method": "PUT",
11319
+ "path": "/api/v1/sites/{site_uuid}/patching/mode",
11320
+ "policy": "mfa",
11321
+ "summary": "Switch a site between Copilot and Autopilot",
11322
+ "description": "Change only the site's mode, so it never replaces other settings (#2382). Needs ``patching:run``; switching to Autopilot also needs ``patching:deploy``, a recent second factor and every gate the full save applies: billing, the site's Autopilot terms, acknowledged required checks, the CI tests rule and one deployment a person ran first.",
11323
+ "pathParams": [
11324
+ "site_uuid"
11325
+ ],
11326
+ "query": [],
11327
+ "body": {
11328
+ "required": true,
11329
+ "fields": [
11330
+ {
11331
+ "name": "deploy_mode",
11332
+ "type": "string",
11333
+ "required": true,
11334
+ "values": [
11335
+ "copilot",
11336
+ "autopilot"
11337
+ ],
11338
+ "description": ""
11339
+ }
11340
+ ]
11341
+ }
11342
+ },
9779
11343
  {
9780
11344
  "group": "sites",
9781
11345
  "name": "put-site-patching",
@@ -9931,24 +11495,30 @@
9931
11495
  },
9932
11496
  {
9933
11497
  "group": "sites",
9934
- "name": "put-upgrade-readiness-display",
11498
+ "name": "put-site-setup-step",
9935
11499
  "method": "PUT",
9936
- "path": "/api/v1/sites/{site_uuid}/upgrade-readiness/display",
9937
- "policy": "write",
9938
- "summary": "Show or hide Drupal upgrade readiness on a site",
9939
- "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.",
11500
+ "path": "/api/v1/sites/{site_uuid}/setup/steps/{step}",
11501
+ "policy": "dashboard_only",
11502
+ "summary": "Skip a setup step, or clear a skip",
11503
+ "description": "Skip a step for now, clear a skip, or mark AI or schedule and mode done. Refusals carry a ``code``: ``setup_step_required`` (the card and billing terms cannot be skipped), ``setup_step_not_settable`` (the step is finished on its own page) and ``setup_step_unknown`` (a Patching step where Patching is not available).",
9940
11504
  "pathParams": [
9941
- "site_uuid"
11505
+ "site_uuid",
11506
+ "step"
9942
11507
  ],
9943
11508
  "query": [],
9944
11509
  "body": {
9945
11510
  "required": true,
9946
11511
  "fields": [
9947
11512
  {
9948
- "name": "shown",
9949
- "type": "boolean",
11513
+ "name": "status",
11514
+ "type": "string",
9950
11515
  "required": true,
9951
- "description": ""
11516
+ "values": [
11517
+ "done",
11518
+ "skipped",
11519
+ "not_started"
11520
+ ],
11521
+ "description": "skipped: leave it for later; not_started: clear a skip; done: only for AI and for schedule and mode, which the site cannot report before enrolment."
9952
11522
  }
9953
11523
  ]
9954
11524
  }
@@ -9967,6 +11537,49 @@
9967
11537
  "query": [],
9968
11538
  "body": null
9969
11539
  },
11540
+ {
11541
+ "group": "sites",
11542
+ "name": "read-dependabot-alert",
11543
+ "method": "GET",
11544
+ "path": "/api/v1/sites/{site_uuid}/patching/dependabot/alerts/{number}",
11545
+ "policy": "read",
11546
+ "summary": "Read one Dependabot alert on this site",
11547
+ "description": "The alert with GitHub's summary, which is plain text.",
11548
+ "pathParams": [
11549
+ "site_uuid",
11550
+ "number"
11551
+ ],
11552
+ "query": [],
11553
+ "body": null
11554
+ },
11555
+ {
11556
+ "group": "sites",
11557
+ "name": "read-dependabot-status",
11558
+ "method": "GET",
11559
+ "path": "/api/v1/sites/{site_uuid}/patching/dependabot",
11560
+ "policy": "read",
11561
+ "summary": "See whether Dependabot alerts can be read for this site",
11562
+ "description": "The site's Dependabot set-up state (#1912). Any member who sees the site.",
11563
+ "pathParams": [
11564
+ "site_uuid"
11565
+ ],
11566
+ "query": [],
11567
+ "body": null
11568
+ },
11569
+ {
11570
+ "group": "sites",
11571
+ "name": "read-drupal-status-report",
11572
+ "method": "GET",
11573
+ "path": "/api/v1/sites/{site_uuid}/drupal-status-report",
11574
+ "policy": "read",
11575
+ "summary": "Read a site's Drupal status report",
11576
+ "description": "The errors and warnings from the site's own Drupal status report. Open items come errors first, then warnings, oldest first. Muted items and Drupal's two update checks are listed apart and never counted. When reporting is off, not reported yet or the site could not build the list, the lists are empty and the counts zero. Any member who can read the site may read it.",
11577
+ "pathParams": [
11578
+ "site_uuid"
11579
+ ],
11580
+ "query": [],
11581
+ "body": null
11582
+ },
9970
11583
  {
9971
11584
  "group": "sites",
9972
11585
  "name": "read-exclusions",
@@ -9981,6 +11594,34 @@
9981
11594
  "query": [],
9982
11595
  "body": null
9983
11596
  },
11597
+ {
11598
+ "group": "sites",
11599
+ "name": "read-merge-checks",
11600
+ "method": "GET",
11601
+ "path": "/api/v1/sites/{site_uuid}/patching/merge-checks",
11602
+ "policy": "read",
11603
+ "summary": "Read Merge Checks",
11604
+ "description": "See which checks the repository requires before a merge (#1930). Read from the host now, so the page shows what the repository says rather than a stored copy. Rules that could not be read come back with ``readable`` false, never as an empty list that looks like none.",
11605
+ "pathParams": [
11606
+ "site_uuid"
11607
+ ],
11608
+ "query": [],
11609
+ "body": null
11610
+ },
11611
+ {
11612
+ "group": "sites",
11613
+ "name": "read-merge-checks-history",
11614
+ "method": "GET",
11615
+ "path": "/api/v1/sites/{site_uuid}/patching/merge-checks/history",
11616
+ "policy": "read",
11617
+ "summary": "Read Merge Checks History",
11618
+ "description": "See every acknowledgement of this website's check policy (#1930). Organisation administrators only. Newest first, at most 500 rows: each acknowledgement with the wording fingerprint, each time one stopped applying and why, each required check added later, and the deployments that relied on each acknowledgement.",
11619
+ "pathParams": [
11620
+ "site_uuid"
11621
+ ],
11622
+ "query": [],
11623
+ "body": null
11624
+ },
9984
11625
  {
9985
11626
  "group": "sites",
9986
11627
  "name": "read-site",
@@ -10146,6 +11787,20 @@
10146
11787
  "query": [],
10147
11788
  "body": null
10148
11789
  },
11790
+ {
11791
+ "group": "sites",
11792
+ "name": "refresh-dependabot-alerts",
11793
+ "method": "POST",
11794
+ "path": "/api/v1/sites/{site_uuid}/patching/dependabot/refresh",
11795
+ "policy": "write",
11796
+ "summary": "Read this site's Dependabot alerts from GitHub again",
11797
+ "description": "Organisation administrators. Once an hour per repository.",
11798
+ "pathParams": [
11799
+ "site_uuid"
11800
+ ],
11801
+ "query": [],
11802
+ "body": null
11803
+ },
10149
11804
  {
10150
11805
  "group": "sites",
10151
11806
  "name": "refresh-exclusions",
@@ -10345,6 +12000,20 @@
10345
12000
  ]
10346
12001
  }
10347
12002
  },
12003
+ {
12004
+ "group": "sites",
12005
+ "name": "resume-site-autopilot",
12006
+ "method": "POST",
12007
+ "path": "/api/v1/sites/{site_uuid}/patching/autopilot/resume",
12008
+ "policy": "mfa",
12009
+ "summary": "Resume Autopilot on a website after it paused",
12010
+ "description": "Clear \"needs attention\" and let paused runs go on. Administrators.",
12011
+ "pathParams": [
12012
+ "site_uuid"
12013
+ ],
12014
+ "query": [],
12015
+ "body": null
12016
+ },
10348
12017
  {
10349
12018
  "group": "sites",
10350
12019
  "name": "revoke-site-api-key",
@@ -10382,7 +12051,7 @@
10382
12051
  "path": "/api/v1/sites/{site_uuid}/patching/repository",
10383
12052
  "policy": "write",
10384
12053
  "summary": "Select Site Repository",
10385
- "description": "Choose the repository from a Git host connection's list and probe it (#951). The id must be one the connection lists; a name or URL is never accepted. Several sites may choose the same repository. Choosing the current one again re-runs the capabilities probe.",
12054
+ "description": "Choose the repository from a Git host connection's list and probe it (#951). The id must be one the connection lists; a name or URL is never accepted. A repository belongs to one site: one another site uses is refused (#2530). Choosing the current one again re-runs the capabilities probe.",
10386
12055
  "pathParams": [
10387
12056
  "site_uuid"
10388
12057
  ],
@@ -10419,6 +12088,35 @@
10419
12088
  "query": [],
10420
12089
  "body": null
10421
12090
  },
12091
+ {
12092
+ "group": "sites",
12093
+ "name": "unmute-drupal-status-item",
12094
+ "method": "DELETE",
12095
+ "path": "/api/v1/sites/{site_uuid}/drupal-status-report/mutes/{key}",
12096
+ "policy": "write",
12097
+ "summary": "Unmute an item of a site's Drupal status report",
12098
+ "description": "Count a muted item again. Nothing changes on the site.",
12099
+ "pathParams": [
12100
+ "site_uuid",
12101
+ "key"
12102
+ ],
12103
+ "query": [],
12104
+ "body": null
12105
+ },
12106
+ {
12107
+ "group": "sites",
12108
+ "name": "unpause-site-autopilot",
12109
+ "method": "POST",
12110
+ "path": "/api/v1/sites/{site_uuid}/patching/autopilot/unpause",
12111
+ "policy": "mfa",
12112
+ "summary": "Turn Autopilot on for a website that was enrolled paused",
12113
+ "description": "Clear the website's own paused switch. Administrators.",
12114
+ "pathParams": [
12115
+ "site_uuid"
12116
+ ],
12117
+ "query": [],
12118
+ "body": null
12119
+ },
10422
12120
  {
10423
12121
  "group": "sites",
10424
12122
  "name": "update-declared-stack",
@@ -11650,6 +13348,18 @@
11650
13348
  "query": [],
11651
13349
  "body": null
11652
13350
  },
13351
+ {
13352
+ "group": "users",
13353
+ "name": "read-phone-security-alerts",
13354
+ "method": "GET",
13355
+ "path": "/api/v1/users/me/phone-number/security-alerts",
13356
+ "policy": "read",
13357
+ "summary": "Read Phone Security Alerts",
13358
+ "description": "Whether security alerts reach your phone, for each organisation.",
13359
+ "pathParams": [],
13360
+ "query": [],
13361
+ "body": null
13362
+ },
11653
13363
  {
11654
13364
  "group": "users",
11655
13365
  "name": "read-user-by-id",
@@ -11793,6 +13503,30 @@
11793
13503
  ]
11794
13504
  }
11795
13505
  },
13506
+ {
13507
+ "group": "users",
13508
+ "name": "set-phone-security-alerts",
13509
+ "method": "PUT",
13510
+ "path": "/api/v1/users/me/phone-number/security-alerts/{organization_id}",
13511
+ "policy": "dashboard_only",
13512
+ "summary": "Set Phone Security Alerts",
13513
+ "description": "Turn security alerts by phone on or off for one organisation where only administrators get them. Changes phone only, never email (#2438).",
13514
+ "pathParams": [
13515
+ "organization_id"
13516
+ ],
13517
+ "query": [],
13518
+ "body": {
13519
+ "required": true,
13520
+ "fields": [
13521
+ {
13522
+ "name": "opted_in",
13523
+ "type": "boolean",
13524
+ "required": true,
13525
+ "description": ""
13526
+ }
13527
+ ]
13528
+ }
13529
+ },
11796
13530
  {
11797
13531
  "group": "users",
11798
13532
  "name": "set-user-organizations",