@featureflip/mcp 0.5.0 → 0.7.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.
@@ -275,8 +275,10 @@ export interface paths {
275
275
  };
276
276
  };
277
277
  /**
278
- * Updates an environment's name/color/sort order.
278
+ * Updates an environment's name/color/sort order and critical settings.
279
279
  * @description Requires at least Member.
280
+ * Turning `requireChangeReason` or `requireConfirmation` off requires Admin or Owner (403
281
+ * otherwise) and a change reason (422 otherwise); turning either on does not.
280
282
  */
281
283
  put: {
282
284
  parameters: {
@@ -284,6 +286,8 @@ export interface paths {
284
286
  header?: {
285
287
  /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
286
288
  "If-Match"?: string;
289
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
290
+ "X-Intent-Reason"?: string;
287
291
  };
288
292
  path: {
289
293
  org: string;
@@ -360,6 +364,18 @@ export interface paths {
360
364
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
361
365
  };
362
366
  };
367
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
368
+ 422: {
369
+ headers: {
370
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
371
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
372
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
373
+ [name: string]: unknown;
374
+ };
375
+ content: {
376
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
377
+ };
378
+ };
363
379
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
364
380
  429: {
365
381
  headers: {
@@ -379,14 +395,18 @@ export interface paths {
379
395
  post?: never;
380
396
  /**
381
397
  * Deletes an environment.
382
- * @description Requires at least Member. Deleting a project's last environment
398
+ * @description Requires at least Member, and a change reason when the environment requires
399
+ * one. Deleting a project's last environment
383
400
  * throws the existing `LAST_ENVIRONMENT`ValidationException, which the
384
401
  * exception filter maps to a 400 `validation_failed` envelope.
385
402
  */
386
403
  delete: {
387
404
  parameters: {
388
405
  query?: never;
389
- header?: never;
406
+ header?: {
407
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
408
+ "X-Intent-Reason"?: string;
409
+ };
390
410
  path: {
391
411
  org: string;
392
412
  project: string;
@@ -454,6 +474,18 @@ export interface paths {
454
474
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
455
475
  };
456
476
  };
477
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
478
+ 422: {
479
+ headers: {
480
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
481
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
482
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
483
+ [name: string]: unknown;
484
+ };
485
+ content: {
486
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
487
+ };
488
+ };
457
489
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
458
490
  429: {
459
491
  headers: {
@@ -868,7 +900,8 @@ export interface paths {
868
900
  };
869
901
  /**
870
902
  * Updates a flag's name/description/tags/client-side visibility.
871
- * @description Requires at least Member.
903
+ * @description Requires at least Member. Changing
904
+ * client-side visibility needs a change reason when any environment of the project requires one.
872
905
  * Key and type are immutable via this endpoint (mirrors UpdateFeatureFlagCommand,
873
906
  * which carries no `Key`/`Type`).
874
907
  */
@@ -878,6 +911,8 @@ export interface paths {
878
911
  header?: {
879
912
  /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
880
913
  "If-Match"?: string;
914
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
915
+ "X-Intent-Reason"?: string;
881
916
  };
882
917
  path: {
883
918
  org: string;
@@ -954,6 +989,18 @@ export interface paths {
954
989
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
955
990
  };
956
991
  };
992
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
993
+ 422: {
994
+ headers: {
995
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
996
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
997
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
998
+ [name: string]: unknown;
999
+ };
1000
+ content: {
1001
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
1002
+ };
1003
+ };
957
1004
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
958
1005
  429: {
959
1006
  headers: {
@@ -981,7 +1028,10 @@ export interface paths {
981
1028
  delete: {
982
1029
  parameters: {
983
1030
  query?: never;
984
- header?: never;
1031
+ header?: {
1032
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
1033
+ "X-Intent-Reason"?: string;
1034
+ };
985
1035
  path: {
986
1036
  org: string;
987
1037
  project: string;
@@ -1049,6 +1099,18 @@ export interface paths {
1049
1099
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
1050
1100
  };
1051
1101
  };
1102
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
1103
+ 422: {
1104
+ headers: {
1105
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
1106
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
1107
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
1108
+ [name: string]: unknown;
1109
+ };
1110
+ content: {
1111
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
1112
+ };
1113
+ };
1052
1114
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
1053
1115
  429: {
1054
1116
  headers: {
@@ -1290,8 +1352,8 @@ export interface paths {
1290
1352
  /**
1291
1353
  * Assigns the flag's owner by email.
1292
1354
  * @description Requires at least Member. The email must belong to an
1293
- * active member of the organization (400 `OWNER_NOT_MEMBER`) and the flag-ownership feature
1294
- * must be enabled (400 `FEATURE_NOT_ENABLED`).
1355
+ * active member of the organization (400 `OWNER_NOT_MEMBER`), and the organization's plan
1356
+ * must include flag owners, Pro and above (400 `PLAN_FEATURE_UNAVAILABLE`).
1295
1357
  */
1296
1358
  put: {
1297
1359
  parameters: {
@@ -1389,8 +1451,8 @@ export interface paths {
1389
1451
  post?: never;
1390
1452
  /**
1391
1453
  * Leaves the flag unowned.
1392
- * @description Requires at least Member. Always allowed, even when the
1393
- * flag-ownership feature is disabled.
1454
+ * @description Requires at least Member. Always allowed, including on a
1455
+ * plan without flag owners.
1394
1456
  */
1395
1457
  delete: {
1396
1458
  parameters: {
@@ -1909,7 +1971,10 @@ export interface paths {
1909
1971
  */
1910
1972
  force?: boolean;
1911
1973
  };
1912
- header?: never;
1974
+ header?: {
1975
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
1976
+ "X-Intent-Reason"?: string;
1977
+ };
1913
1978
  path: {
1914
1979
  org: string;
1915
1980
  project: string;
@@ -1977,6 +2042,18 @@ export interface paths {
1977
2042
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
1978
2043
  };
1979
2044
  };
2045
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
2046
+ 422: {
2047
+ headers: {
2048
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2049
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
2050
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
2051
+ [name: string]: unknown;
2052
+ };
2053
+ content: {
2054
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2055
+ };
2056
+ };
1980
2057
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
1981
2058
  429: {
1982
2059
  headers: {
@@ -2017,7 +2094,10 @@ export interface paths {
2017
2094
  post: {
2018
2095
  parameters: {
2019
2096
  query?: never;
2020
- header?: never;
2097
+ header?: {
2098
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
2099
+ "X-Intent-Reason"?: string;
2100
+ };
2021
2101
  path: {
2022
2102
  org: string;
2023
2103
  project: string;
@@ -2085,6 +2165,18 @@ export interface paths {
2085
2165
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2086
2166
  };
2087
2167
  };
2168
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
2169
+ 422: {
2170
+ headers: {
2171
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2172
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
2173
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
2174
+ [name: string]: unknown;
2175
+ };
2176
+ content: {
2177
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2178
+ };
2179
+ };
2088
2180
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2089
2181
  429: {
2090
2182
  headers: {
@@ -2297,6 +2389,8 @@ export interface paths {
2297
2389
  header?: {
2298
2390
  /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
2299
2391
  "If-Match"?: string;
2392
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
2393
+ "X-Intent-Reason"?: string;
2300
2394
  };
2301
2395
  path: {
2302
2396
  org: string;
@@ -2386,6 +2480,18 @@ export interface paths {
2386
2480
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2387
2481
  };
2388
2482
  };
2483
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
2484
+ 422: {
2485
+ headers: {
2486
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2487
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
2488
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
2489
+ [name: string]: unknown;
2490
+ };
2491
+ content: {
2492
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2493
+ };
2494
+ };
2389
2495
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2390
2496
  429: {
2391
2497
  headers: {
@@ -2425,7 +2531,10 @@ export interface paths {
2425
2531
  post: {
2426
2532
  parameters: {
2427
2533
  query?: never;
2428
- header?: never;
2534
+ header?: {
2535
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
2536
+ "X-Intent-Reason"?: string;
2537
+ };
2429
2538
  path: {
2430
2539
  org: string;
2431
2540
  project: string;
@@ -2500,6 +2609,18 @@ export interface paths {
2500
2609
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2501
2610
  };
2502
2611
  };
2612
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
2613
+ 422: {
2614
+ headers: {
2615
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2616
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
2617
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
2618
+ [name: string]: unknown;
2619
+ };
2620
+ content: {
2621
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2622
+ };
2623
+ };
2503
2624
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2504
2625
  429: {
2505
2626
  headers: {
@@ -2739,6 +2860,8 @@ export interface paths {
2739
2860
  header?: {
2740
2861
  /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
2741
2862
  "If-Match"?: string;
2863
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
2864
+ "X-Intent-Reason"?: string;
2742
2865
  };
2743
2866
  path: {
2744
2867
  org: string;
@@ -2828,6 +2951,18 @@ export interface paths {
2828
2951
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2829
2952
  };
2830
2953
  };
2954
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
2955
+ 422: {
2956
+ headers: {
2957
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2958
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
2959
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
2960
+ [name: string]: unknown;
2961
+ };
2962
+ content: {
2963
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2964
+ };
2965
+ };
2831
2966
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2832
2967
  429: {
2833
2968
  headers: {
@@ -2870,7 +3005,10 @@ export interface paths {
2870
3005
  post: {
2871
3006
  parameters: {
2872
3007
  query?: never;
2873
- header?: never;
3008
+ header?: {
3009
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
3010
+ "X-Intent-Reason"?: string;
3011
+ };
2874
3012
  path: {
2875
3013
  org: string;
2876
3014
  project: string;
@@ -2947,6 +3085,18 @@ export interface paths {
2947
3085
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2948
3086
  };
2949
3087
  };
3088
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
3089
+ 422: {
3090
+ headers: {
3091
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3092
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3093
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3094
+ [name: string]: unknown;
3095
+ };
3096
+ content: {
3097
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3098
+ };
3099
+ };
2950
3100
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2951
3101
  429: {
2952
3102
  headers: {
@@ -3071,6 +3221,8 @@ export interface paths {
3071
3221
  header?: {
3072
3222
  /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
3073
3223
  "If-Match"?: string;
3224
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
3225
+ "X-Intent-Reason"?: string;
3074
3226
  };
3075
3227
  path: {
3076
3228
  org: string;
@@ -3161,6 +3313,18 @@ export interface paths {
3161
3313
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3162
3314
  };
3163
3315
  };
3316
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
3317
+ 422: {
3318
+ headers: {
3319
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3320
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3321
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3322
+ [name: string]: unknown;
3323
+ };
3324
+ content: {
3325
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3326
+ };
3327
+ };
3164
3328
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3165
3329
  429: {
3166
3330
  headers: {
@@ -3185,7 +3349,10 @@ export interface paths {
3185
3349
  delete: {
3186
3350
  parameters: {
3187
3351
  query?: never;
3188
- header?: never;
3352
+ header?: {
3353
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
3354
+ "X-Intent-Reason"?: string;
3355
+ };
3189
3356
  path: {
3190
3357
  org: string;
3191
3358
  project: string;
@@ -3255,6 +3422,18 @@ export interface paths {
3255
3422
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3256
3423
  };
3257
3424
  };
3425
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
3426
+ 422: {
3427
+ headers: {
3428
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3429
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3430
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3431
+ [name: string]: unknown;
3432
+ };
3433
+ content: {
3434
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3435
+ };
3436
+ };
3258
3437
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3259
3438
  429: {
3260
3439
  headers: {
@@ -3292,7 +3471,10 @@ export interface paths {
3292
3471
  put: {
3293
3472
  parameters: {
3294
3473
  query?: never;
3295
- header?: never;
3474
+ header?: {
3475
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
3476
+ "X-Intent-Reason"?: string;
3477
+ };
3296
3478
  path: {
3297
3479
  org: string;
3298
3480
  project: string;
@@ -3367,6 +3549,18 @@ export interface paths {
3367
3549
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3368
3550
  };
3369
3551
  };
3552
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
3553
+ 422: {
3554
+ headers: {
3555
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3556
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3557
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3558
+ [name: string]: unknown;
3559
+ };
3560
+ content: {
3561
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3562
+ };
3563
+ };
3370
3564
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3371
3565
  429: {
3372
3566
  headers: {
@@ -3408,7 +3602,10 @@ export interface paths {
3408
3602
  post: {
3409
3603
  parameters: {
3410
3604
  query?: never;
3411
- header?: never;
3605
+ header?: {
3606
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
3607
+ "X-Intent-Reason"?: string;
3608
+ };
3412
3609
  path: {
3413
3610
  org: string;
3414
3611
  project: string;
@@ -3484,6 +3681,18 @@ export interface paths {
3484
3681
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3485
3682
  };
3486
3683
  };
3684
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
3685
+ 422: {
3686
+ headers: {
3687
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3688
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3689
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3690
+ [name: string]: unknown;
3691
+ };
3692
+ content: {
3693
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3694
+ };
3695
+ };
3487
3696
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3488
3697
  429: {
3489
3698
  headers: {
@@ -3521,7 +3730,10 @@ export interface paths {
3521
3730
  put: {
3522
3731
  parameters: {
3523
3732
  query?: never;
3524
- header?: never;
3733
+ header?: {
3734
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
3735
+ "X-Intent-Reason"?: string;
3736
+ };
3525
3737
  path: {
3526
3738
  org: string;
3527
3739
  project: string;
@@ -3596,6 +3808,18 @@ export interface paths {
3596
3808
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3597
3809
  };
3598
3810
  };
3811
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
3812
+ 422: {
3813
+ headers: {
3814
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3815
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3816
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3817
+ [name: string]: unknown;
3818
+ };
3819
+ content: {
3820
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3821
+ };
3822
+ };
3599
3823
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3600
3824
  429: {
3601
3825
  headers: {
@@ -3625,7 +3849,10 @@ export interface paths {
3625
3849
  delete: {
3626
3850
  parameters: {
3627
3851
  query?: never;
3628
- header?: never;
3852
+ header?: {
3853
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
3854
+ "X-Intent-Reason"?: string;
3855
+ };
3629
3856
  path: {
3630
3857
  org: string;
3631
3858
  project: string;
@@ -3694,6 +3921,18 @@ export interface paths {
3694
3921
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3695
3922
  };
3696
3923
  };
3924
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
3925
+ 422: {
3926
+ headers: {
3927
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3928
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3929
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3930
+ [name: string]: unknown;
3931
+ };
3932
+ content: {
3933
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3934
+ };
3935
+ };
3697
3936
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3698
3937
  429: {
3699
3938
  headers: {
@@ -4253,12 +4492,16 @@ export interface paths {
4253
4492
  post?: never;
4254
4493
  /**
4255
4494
  * Deletes a project.
4256
- * @description Requires at least Member.
4495
+ * @description Requires at least Member, and a change reason when any of its environments
4496
+ * requires one.
4257
4497
  */
4258
4498
  delete: {
4259
4499
  parameters: {
4260
4500
  query?: never;
4261
- header?: never;
4501
+ header?: {
4502
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
4503
+ "X-Intent-Reason"?: string;
4504
+ };
4262
4505
  path: {
4263
4506
  org: string;
4264
4507
  project: string;
@@ -4325,6 +4568,18 @@ export interface paths {
4325
4568
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4326
4569
  };
4327
4570
  };
4571
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
4572
+ 422: {
4573
+ headers: {
4574
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4575
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4576
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4577
+ [name: string]: unknown;
4578
+ };
4579
+ content: {
4580
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4581
+ };
4582
+ };
4328
4583
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
4329
4584
  429: {
4330
4585
  headers: {
@@ -4938,12 +5193,15 @@ export interface paths {
4938
5193
  put?: never;
4939
5194
  /**
4940
5195
  * Revokes an SDK key.
4941
- * @description Requires at least Member.
5196
+ * @description Requires at least Member, and a change reason when its environment requires one.
4942
5197
  */
4943
5198
  post: {
4944
5199
  parameters: {
4945
5200
  query?: never;
4946
- header?: never;
5201
+ header?: {
5202
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
5203
+ "X-Intent-Reason"?: string;
5204
+ };
4947
5205
  path: {
4948
5206
  org: string;
4949
5207
  project: string;
@@ -5012,6 +5270,18 @@ export interface paths {
5012
5270
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5013
5271
  };
5014
5272
  };
5273
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
5274
+ 422: {
5275
+ headers: {
5276
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5277
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5278
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5279
+ [name: string]: unknown;
5280
+ };
5281
+ content: {
5282
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5283
+ };
5284
+ };
5015
5285
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
5016
5286
  429: {
5017
5287
  headers: {
@@ -5127,7 +5397,10 @@ export interface paths {
5127
5397
  post: {
5128
5398
  parameters: {
5129
5399
  query?: never;
5130
- header?: never;
5400
+ header?: {
5401
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
5402
+ "X-Intent-Reason"?: string;
5403
+ };
5131
5404
  path: {
5132
5405
  org: string;
5133
5406
  project: string;
@@ -5202,6 +5475,18 @@ export interface paths {
5202
5475
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5203
5476
  };
5204
5477
  };
5478
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
5479
+ 422: {
5480
+ headers: {
5481
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5482
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5483
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5484
+ [name: string]: unknown;
5485
+ };
5486
+ content: {
5487
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5488
+ };
5489
+ };
5205
5490
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
5206
5491
  429: {
5207
5492
  headers: {
@@ -5330,6 +5615,8 @@ export interface paths {
5330
5615
  header?: {
5331
5616
  /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
5332
5617
  "If-Match"?: string;
5618
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
5619
+ "X-Intent-Reason"?: string;
5333
5620
  };
5334
5621
  path: {
5335
5622
  org: string;
@@ -5418,6 +5705,18 @@ export interface paths {
5418
5705
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5419
5706
  };
5420
5707
  };
5708
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
5709
+ 422: {
5710
+ headers: {
5711
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5712
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5713
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5714
+ [name: string]: unknown;
5715
+ };
5716
+ content: {
5717
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5718
+ };
5719
+ };
5421
5720
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
5422
5721
  429: {
5423
5722
  headers: {
@@ -5442,7 +5741,10 @@ export interface paths {
5442
5741
  delete: {
5443
5742
  parameters: {
5444
5743
  query?: never;
5445
- header?: never;
5744
+ header?: {
5745
+ /** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
5746
+ "X-Intent-Reason"?: string;
5747
+ };
5446
5748
  path: {
5447
5749
  org: string;
5448
5750
  project: string;
@@ -5510,6 +5812,18 @@ export interface paths {
5510
5812
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5511
5813
  };
5512
5814
  };
5815
+ /** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
5816
+ 422: {
5817
+ headers: {
5818
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5819
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5820
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5821
+ [name: string]: unknown;
5822
+ };
5823
+ content: {
5824
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5825
+ };
5826
+ };
5513
5827
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
5514
5828
  429: {
5515
5829
  headers: {
@@ -5928,7 +6242,9 @@ export interface paths {
5928
6242
  * Replaces a webhook subscription's configuration.
5929
6243
  * @description Requires Admin. Omitted lists become empty,
5930
6244
  * which means "all". Re-enabling a subscription that is over the plan's webhook allowance (after
5931
- * a downgrade) is a 403 `plan_limit_reached`.
6245
+ * a downgrade) is a 403 `plan_limit_reached`. Omit `credential` to keep the stored
6246
+ * one, except when changing the `url` of a Datadog or Grafana subscription: that needs
6247
+ * the credential again.
5932
6248
  */
5933
6249
  put: {
5934
6250
  parameters: {
@@ -6925,11 +7241,21 @@ export interface components {
6925
7241
  * }
6926
7242
  */
6927
7243
  PublicCreateEnvironmentRequest: {
7244
+ /** @description The environment's key. */
6928
7245
  key: string;
7246
+ /** @description The environment's display name. */
6929
7247
  name: string;
7248
+ /** @description The environment's display color, or null. */
6930
7249
  color?: string | null;
6931
- /** Format: int32 */
7250
+ /**
7251
+ * Format: int32
7252
+ * @description Position among the project's environments.
7253
+ */
6932
7254
  sortOrder?: number;
7255
+ /** @description Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above. */
7256
+ requireChangeReason?: boolean | null;
7257
+ /** @description Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API. */
7258
+ requireConfirmation?: boolean | null;
6933
7259
  };
6934
7260
  /**
6935
7261
  * @description Request body for `POST /api/v1/orgs/{org}/projects/{project}/flags`. Named distinctly
@@ -6942,8 +7268,8 @@ export interface components {
6942
7268
  * optional and advisory; a bare date (`2026-12-01`) means the end of that day in UTC, and a full
6943
7269
  * timestamp is stored exactly. It must be in the future and requires the flag-expiration feature
6944
7270
  * (400 `EXPIRY_IN_PAST` / `FEATURE_NOT_ENABLED`). OwnerEmail optionally names
6945
- * the owner (an active member, matched case-insensitively; requires the flag-ownership feature —
6946
- * 400 `OWNER_NOT_MEMBER` / `FEATURE_NOT_ENABLED`). Omitted, the owner is the caller when
7271
+ * the owner (an active member, matched case-insensitively; requires a plan that includes flag owners,
7272
+ * Pro and above — 400 `OWNER_NOT_MEMBER` / `PLAN_FEATURE_UNAVAILABLE`). Omitted, the owner is the caller when
6947
7273
  * the caller is a member, so a service token creates an unowned flag. IsPermanent marks
6948
7274
  * the flag permanent (a kill switch, ops toggle or entitlement that is meant to stay; never reported for
6949
7275
  * cleanup). It requires the flag-permanence feature and can't be combined with ExpiresAtUtc
@@ -7144,12 +7470,15 @@ export interface components {
7144
7470
  description?: string | null;
7145
7471
  };
7146
7472
  /**
7147
- * @description Creates a webhook subscription. `provider` is `GenericHttp`. Omit `eventTypes`,
7473
+ * @description Creates a webhook subscription. `provider` is `GenericHttp`, `Slack` (an incoming
7474
+ * webhook url), `Datadog` (your site's Events API url) or `Grafana` (your Grafana's
7475
+ * `/api/annotations` url). Datadog and Grafana also need `credential`: a Datadog API key
7476
+ * or a Grafana service account token. It is stored encrypted and never returned. Omit `eventTypes`,
7148
7477
  * `projectIds` or `environmentIds` (or send an empty list) to receive every event,
7149
7478
  * project or environment. A token restricted to specific projects must list at least one project,
7150
7479
  * all of them within its allowlist.
7151
7480
  * @example {
7152
- * "name": "Checkout flag changes to Slack relay",
7481
+ * "name": "Checkout flag changes to deploy pipeline",
7153
7482
  * "url": "https://hooks.acme.example/featureflip",
7154
7483
  * "provider": "GenericHttp",
7155
7484
  * "eventTypes": [
@@ -7168,13 +7497,14 @@ export interface components {
7168
7497
  name: string;
7169
7498
  url: string;
7170
7499
  /**
7171
- * @description Allowed values: GenericHttp.
7500
+ * @description Allowed values: GenericHttp, Slack, Datadog, Grafana.
7172
7501
  * @enum {string}
7173
7502
  */
7174
- provider: "GenericHttp";
7503
+ provider: "GenericHttp" | "Slack" | "Datadog" | "Grafana";
7175
7504
  eventTypes?: string[] | null;
7176
7505
  projectIds?: string[] | null;
7177
7506
  environmentIds?: string[] | null;
7507
+ credential?: string | null;
7178
7508
  };
7179
7509
  /**
7180
7510
  * @description The created subscription's id and its signing secret. The secret is shown only here.
@@ -7215,17 +7545,32 @@ export interface components {
7215
7545
  * "key": "production",
7216
7546
  * "name": "Production",
7217
7547
  * "color": "#16A34A",
7218
- * "sortOrder": 2
7548
+ * "sortOrder": 2,
7549
+ * "requireChangeReason": false,
7550
+ * "requireConfirmation": false
7219
7551
  * }
7220
7552
  */
7221
7553
  PublicEnvironmentResponse: {
7222
- /** Format: uuid */
7554
+ /**
7555
+ * Format: uuid
7556
+ * @description The environment's id.
7557
+ */
7223
7558
  id: string;
7559
+ /** @description The environment's key. */
7224
7560
  key: string;
7561
+ /** @description The environment's display name. */
7225
7562
  name: string;
7563
+ /** @description The environment's display color, or null. */
7226
7564
  color?: string | null;
7227
- /** Format: int32 */
7565
+ /**
7566
+ * Format: int32
7567
+ * @description Position among the project's environments.
7568
+ */
7228
7569
  sortOrder: number;
7570
+ /** @description Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above. */
7571
+ requireChangeReason: boolean;
7572
+ /** @description Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API. */
7573
+ requireConfirmation: boolean;
7229
7574
  /** @description Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it. */
7230
7575
  _actions?: {
7231
7576
  [key: string]: components["schemas"]["ActionCapability"];
@@ -7980,10 +8325,19 @@ export interface components {
7980
8325
  * dashboard's `UpdateEnvironmentRequest`.
7981
8326
  */
7982
8327
  PublicUpdateEnvironmentRequest: {
8328
+ /** @description The environment's display name. */
7983
8329
  name: string;
8330
+ /** @description The environment's display color, or null. */
7984
8331
  color?: string | null;
7985
- /** Format: int32 */
8332
+ /**
8333
+ * Format: int32
8334
+ * @description Position among the project's environments.
8335
+ */
7986
8336
  sortOrder?: number;
8337
+ /** @description Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above. Omit on update to leave unchanged. Turning it off needs Admin or Owner and an X-Intent-Reason. */
8338
+ requireChangeReason?: boolean | null;
8339
+ /** @description Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API. Omit on update to leave unchanged. Turning it off needs Admin or Owner and an X-Intent-Reason. */
8340
+ requireConfirmation?: boolean | null;
7987
8341
  };
7988
8342
  /**
7989
8343
  * @description Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}`. See
@@ -8089,7 +8443,9 @@ export interface components {
8089
8443
  };
8090
8444
  /**
8091
8445
  * @description Replaces a subscription's configuration (full replace — omitted lists become empty, meaning
8092
- * "all"). `isEnabled` is required. The provider cannot be changed.
8446
+ * "all"). `isEnabled` is required. The provider cannot be changed. `credential`
8447
+ * replaces a Datadog or Grafana subscription's stored credential; omit it to keep the current
8448
+ * one, unless the `url` changes, which needs the credential sent again.
8093
8449
  */
8094
8450
  PublicUpdateWebhookSubscriptionRequest: {
8095
8451
  name: string;
@@ -8098,6 +8454,7 @@ export interface components {
8098
8454
  projectIds?: string[] | null;
8099
8455
  environmentIds?: string[] | null;
8100
8456
  isEnabled?: boolean | null;
8457
+ credential?: string | null;
8101
8458
  };
8102
8459
  /**
8103
8460
  * @description A single variation on a flag, as returned in Variations.
@@ -8174,7 +8531,7 @@ export interface components {
8174
8531
  * the plan is upgraded or older subscriptions are deleted.
8175
8532
  * @example {
8176
8533
  * "id": "0197b6a4-6f7a-7b8c-9d0e-1f2a3b4c5d6e",
8177
- * "name": "Checkout flag changes to Slack relay",
8534
+ * "name": "Checkout flag changes to deploy pipeline",
8178
8535
  * "url": "https://hooks.acme.example/featureflip",
8179
8536
  * "provider": "GenericHttp",
8180
8537
  * "isEnabled": true,
@@ -8206,10 +8563,10 @@ export interface components {
8206
8563
  name: string;
8207
8564
  url: string;
8208
8565
  /**
8209
- * @description Allowed values: GenericHttp.
8566
+ * @description Allowed values: GenericHttp, Slack, Datadog, Grafana.
8210
8567
  * @enum {string}
8211
8568
  */
8212
- provider: "GenericHttp";
8569
+ provider: "GenericHttp" | "Slack" | "Datadog" | "Grafana";
8213
8570
  isEnabled: boolean;
8214
8571
  eventTypes: string[];
8215
8572
  projectIds: string[];