@featureflip/mcp 0.1.12 → 0.2.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.
@@ -113,6 +113,18 @@ export interface paths {
113
113
  "application/json": components["schemas"]["PublicEnvironmentResponse"];
114
114
  };
115
115
  };
116
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
117
+ 400: {
118
+ headers: {
119
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
120
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
121
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
122
+ [name: string]: unknown;
123
+ };
124
+ content: {
125
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
126
+ };
127
+ };
116
128
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
117
129
  401: {
118
130
  headers: {
@@ -182,7 +194,10 @@ export interface paths {
182
194
  get: {
183
195
  parameters: {
184
196
  query?: never;
185
- header?: never;
197
+ header?: {
198
+ /** @description Optional. An ETag of this resource. The response is 200 only if it is still the current one; otherwise 412 `precondition_failed`. `*` or no header always reads. */
199
+ "If-Match"?: string;
200
+ };
186
201
  path: {
187
202
  org: string;
188
203
  project: string;
@@ -195,7 +210,7 @@ export interface paths {
195
210
  /** @description OK */
196
211
  200: {
197
212
  headers: {
198
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
213
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
199
214
  ETag?: string;
200
215
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
201
216
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -230,6 +245,18 @@ export interface paths {
230
245
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
231
246
  };
232
247
  };
248
+ /** @description The resource's current ETag is not the If-Match one. */
249
+ 412: {
250
+ headers: {
251
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
252
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
253
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
254
+ [name: string]: unknown;
255
+ };
256
+ content: {
257
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
258
+ };
259
+ };
233
260
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
234
261
  429: {
235
262
  headers: {
@@ -254,7 +281,7 @@ export interface paths {
254
281
  parameters: {
255
282
  query?: never;
256
283
  header?: {
257
- /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
284
+ /** @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. */
258
285
  "If-Match"?: string;
259
286
  };
260
287
  path: {
@@ -275,7 +302,7 @@ export interface paths {
275
302
  /** @description No Content */
276
303
  204: {
277
304
  headers: {
278
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
305
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
279
306
  ETag?: string;
280
307
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
281
308
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -378,7 +405,7 @@ export interface paths {
378
405
  };
379
406
  content?: never;
380
407
  };
381
- /** @description Bad Request */
408
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
382
409
  400: {
383
410
  headers: {
384
411
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -578,7 +605,7 @@ export interface paths {
578
605
  "application/json": components["schemas"]["PublicFlagResponse"];
579
606
  };
580
607
  };
581
- /** @description Bad Request */
608
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
582
609
  400: {
583
610
  headers: {
584
611
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -758,7 +785,10 @@ export interface paths {
758
785
  get: {
759
786
  parameters: {
760
787
  query?: never;
761
- header?: never;
788
+ header?: {
789
+ /** @description Optional. An ETag of this resource. The response is 200 only if it is still the current one; otherwise 412 `precondition_failed`. `*` or no header always reads. */
790
+ "If-Match"?: string;
791
+ };
762
792
  path: {
763
793
  org: string;
764
794
  project: string;
@@ -771,7 +801,7 @@ export interface paths {
771
801
  /** @description OK */
772
802
  200: {
773
803
  headers: {
774
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
804
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
775
805
  ETag?: string;
776
806
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
777
807
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -806,6 +836,18 @@ export interface paths {
806
836
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
807
837
  };
808
838
  };
839
+ /** @description The resource's current ETag is not the If-Match one. */
840
+ 412: {
841
+ headers: {
842
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
843
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
844
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
845
+ [name: string]: unknown;
846
+ };
847
+ content: {
848
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
849
+ };
850
+ };
809
851
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
810
852
  429: {
811
853
  headers: {
@@ -832,7 +874,7 @@ export interface paths {
832
874
  parameters: {
833
875
  query?: never;
834
876
  header?: {
835
- /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
877
+ /** @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. */
836
878
  "If-Match"?: string;
837
879
  };
838
880
  path: {
@@ -853,7 +895,7 @@ export interface paths {
853
895
  /** @description No Content */
854
896
  204: {
855
897
  headers: {
856
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
898
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
857
899
  ETag?: string;
858
900
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
859
901
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -957,7 +999,7 @@ export interface paths {
957
999
  };
958
1000
  content?: never;
959
1001
  };
960
- /** @description Bad Request */
1002
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
961
1003
  400: {
962
1004
  headers: {
963
1005
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -1073,7 +1115,7 @@ export interface paths {
1073
1115
  };
1074
1116
  content?: never;
1075
1117
  };
1076
- /** @description Bad Request */
1118
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
1077
1119
  400: {
1078
1120
  headers: {
1079
1121
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -1166,6 +1208,18 @@ export interface paths {
1166
1208
  };
1167
1209
  content?: never;
1168
1210
  };
1211
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
1212
+ 400: {
1213
+ headers: {
1214
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
1215
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
1216
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
1217
+ [name: string]: unknown;
1218
+ };
1219
+ content: {
1220
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
1221
+ };
1222
+ };
1169
1223
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
1170
1224
  401: {
1171
1225
  headers: {
@@ -1266,7 +1320,7 @@ export interface paths {
1266
1320
  };
1267
1321
  content?: never;
1268
1322
  };
1269
- /** @description Bad Request */
1323
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
1270
1324
  400: {
1271
1325
  headers: {
1272
1326
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -1359,6 +1413,18 @@ export interface paths {
1359
1413
  };
1360
1414
  content?: never;
1361
1415
  };
1416
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
1417
+ 400: {
1418
+ headers: {
1419
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
1420
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
1421
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
1422
+ [name: string]: unknown;
1423
+ };
1424
+ content: {
1425
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
1426
+ };
1427
+ };
1362
1428
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
1363
1429
  401: {
1364
1430
  headers: {
@@ -1453,7 +1519,7 @@ export interface paths {
1453
1519
  };
1454
1520
  content?: never;
1455
1521
  };
1456
- /** @description Bad Request */
1522
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
1457
1523
  400: {
1458
1524
  headers: {
1459
1525
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -1546,6 +1612,18 @@ export interface paths {
1546
1612
  };
1547
1613
  content?: never;
1548
1614
  };
1615
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
1616
+ 400: {
1617
+ headers: {
1618
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
1619
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
1620
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
1621
+ [name: string]: unknown;
1622
+ };
1623
+ content: {
1624
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
1625
+ };
1626
+ };
1549
1627
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
1550
1628
  401: {
1551
1629
  headers: {
@@ -1645,7 +1723,7 @@ export interface paths {
1645
1723
  };
1646
1724
  content?: never;
1647
1725
  };
1648
- /** @description Bad Request */
1726
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
1649
1727
  400: {
1650
1728
  headers: {
1651
1729
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -1737,6 +1815,18 @@ export interface paths {
1737
1815
  };
1738
1816
  content?: never;
1739
1817
  };
1818
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
1819
+ 400: {
1820
+ headers: {
1821
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
1822
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
1823
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
1824
+ [name: string]: unknown;
1825
+ };
1826
+ content: {
1827
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
1828
+ };
1829
+ };
1740
1830
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
1741
1831
  401: {
1742
1832
  headers: {
@@ -1837,7 +1927,7 @@ export interface paths {
1837
1927
  };
1838
1928
  content?: never;
1839
1929
  };
1840
- /** @description Bad Request */
1930
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
1841
1931
  400: {
1842
1932
  headers: {
1843
1933
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -1943,6 +2033,18 @@ export interface paths {
1943
2033
  };
1944
2034
  content?: never;
1945
2035
  };
2036
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
2037
+ 400: {
2038
+ headers: {
2039
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2040
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
2041
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
2042
+ [name: string]: unknown;
2043
+ };
2044
+ content: {
2045
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2046
+ };
2047
+ };
1946
2048
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
1947
2049
  401: {
1948
2050
  headers: {
@@ -2099,7 +2201,10 @@ export interface paths {
2099
2201
  get: {
2100
2202
  parameters: {
2101
2203
  query?: never;
2102
- header?: never;
2204
+ header?: {
2205
+ /** @description Optional. An ETag of this resource. The response is 200 only if it is still the current one; otherwise 412 `precondition_failed`. `*` or no header always reads. */
2206
+ "If-Match"?: string;
2207
+ };
2103
2208
  path: {
2104
2209
  org: string;
2105
2210
  project: string;
@@ -2113,7 +2218,7 @@ export interface paths {
2113
2218
  /** @description OK */
2114
2219
  200: {
2115
2220
  headers: {
2116
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
2221
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
2117
2222
  ETag?: string;
2118
2223
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2119
2224
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -2148,6 +2253,18 @@ export interface paths {
2148
2253
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2149
2254
  };
2150
2255
  };
2256
+ /** @description The resource's current ETag is not the If-Match one. */
2257
+ 412: {
2258
+ headers: {
2259
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2260
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
2261
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
2262
+ [name: string]: unknown;
2263
+ };
2264
+ content: {
2265
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2266
+ };
2267
+ };
2151
2268
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2152
2269
  429: {
2153
2270
  headers: {
@@ -2174,7 +2291,7 @@ export interface paths {
2174
2291
  parameters: {
2175
2292
  query?: never;
2176
2293
  header?: {
2177
- /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
2294
+ /** @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. */
2178
2295
  "If-Match"?: string;
2179
2296
  };
2180
2297
  path: {
@@ -2196,7 +2313,7 @@ export interface paths {
2196
2313
  /** @description No Content */
2197
2314
  204: {
2198
2315
  headers: {
2199
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
2316
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
2200
2317
  ETag?: string;
2201
2318
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2202
2319
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -2331,7 +2448,7 @@ export interface paths {
2331
2448
  };
2332
2449
  content?: never;
2333
2450
  };
2334
- /** @description Bad Request */
2451
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
2335
2452
  400: {
2336
2453
  headers: {
2337
2454
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -2418,7 +2535,10 @@ export interface paths {
2418
2535
  get: {
2419
2536
  parameters: {
2420
2537
  query?: never;
2421
- header?: never;
2538
+ header?: {
2539
+ /** @description Optional. An ETag of this resource. The response is 200 only if it is still the current one; otherwise 412 `precondition_failed`. `*` or no header always reads. */
2540
+ "If-Match"?: string;
2541
+ };
2422
2542
  path: {
2423
2543
  org: string;
2424
2544
  project: string;
@@ -2432,7 +2552,7 @@ export interface paths {
2432
2552
  /** @description OK */
2433
2553
  200: {
2434
2554
  headers: {
2435
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
2555
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
2436
2556
  ETag?: string;
2437
2557
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2438
2558
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -2467,6 +2587,18 @@ export interface paths {
2467
2587
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2468
2588
  };
2469
2589
  };
2590
+ /** @description The resource's current ETag is not the If-Match one. */
2591
+ 412: {
2592
+ headers: {
2593
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2594
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
2595
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
2596
+ [name: string]: unknown;
2597
+ };
2598
+ content: {
2599
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2600
+ };
2601
+ };
2470
2602
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2471
2603
  429: {
2472
2604
  headers: {
@@ -2493,7 +2625,7 @@ export interface paths {
2493
2625
  parameters: {
2494
2626
  query?: never;
2495
2627
  header?: {
2496
- /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
2628
+ /** @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. */
2497
2629
  "If-Match"?: string;
2498
2630
  };
2499
2631
  path: {
@@ -2515,7 +2647,7 @@ export interface paths {
2515
2647
  /** @description No Content */
2516
2648
  204: {
2517
2649
  headers: {
2518
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
2650
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
2519
2651
  ETag?: string;
2520
2652
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2521
2653
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -2655,7 +2787,7 @@ export interface paths {
2655
2787
  "application/json": components["schemas"]["PublicTargetingRuleResponse"];
2656
2788
  };
2657
2789
  };
2658
- /** @description Bad Request */
2790
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
2659
2791
  400: {
2660
2792
  headers: {
2661
2793
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -2736,7 +2868,10 @@ export interface paths {
2736
2868
  get: {
2737
2869
  parameters: {
2738
2870
  query?: never;
2739
- header?: never;
2871
+ header?: {
2872
+ /** @description Optional. An ETag of this resource. The response is 200 only if it is still the current one; otherwise 412 `precondition_failed`. `*` or no header always reads. */
2873
+ "If-Match"?: string;
2874
+ };
2740
2875
  path: {
2741
2876
  org: string;
2742
2877
  project: string;
@@ -2751,7 +2886,7 @@ export interface paths {
2751
2886
  /** @description OK */
2752
2887
  200: {
2753
2888
  headers: {
2754
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
2889
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
2755
2890
  ETag?: string;
2756
2891
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2757
2892
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -2786,6 +2921,18 @@ export interface paths {
2786
2921
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2787
2922
  };
2788
2923
  };
2924
+ /** @description The resource's current ETag is not the If-Match one. */
2925
+ 412: {
2926
+ headers: {
2927
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2928
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
2929
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
2930
+ [name: string]: unknown;
2931
+ };
2932
+ content: {
2933
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2934
+ };
2935
+ };
2789
2936
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2790
2937
  429: {
2791
2938
  headers: {
@@ -2810,7 +2957,7 @@ export interface paths {
2810
2957
  parameters: {
2811
2958
  query?: never;
2812
2959
  header?: {
2813
- /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
2960
+ /** @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. */
2814
2961
  "If-Match"?: string;
2815
2962
  };
2816
2963
  path: {
@@ -2833,7 +2980,7 @@ export interface paths {
2833
2980
  /** @description No Content */
2834
2981
  204: {
2835
2982
  headers: {
2836
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
2983
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
2837
2984
  ETag?: string;
2838
2985
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
2839
2986
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -2948,6 +3095,18 @@ export interface paths {
2948
3095
  };
2949
3096
  content?: never;
2950
3097
  };
3098
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
3099
+ 400: {
3100
+ headers: {
3101
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3102
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3103
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3104
+ [name: string]: unknown;
3105
+ };
3106
+ content: {
3107
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3108
+ };
3109
+ };
2951
3110
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
2952
3111
  401: {
2953
3112
  headers: {
@@ -3048,6 +3207,18 @@ export interface paths {
3048
3207
  };
3049
3208
  content?: never;
3050
3209
  };
3210
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
3211
+ 400: {
3212
+ headers: {
3213
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3214
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3215
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3216
+ [name: string]: unknown;
3217
+ };
3218
+ content: {
3219
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3220
+ };
3221
+ };
3051
3222
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
3052
3223
  401: {
3053
3224
  headers: {
@@ -3153,7 +3324,7 @@ export interface paths {
3153
3324
  "application/json": components["schemas"]["PublicVariationResponse"];
3154
3325
  };
3155
3326
  };
3156
- /** @description Bad Request */
3327
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
3157
3328
  400: {
3158
3329
  headers: {
3159
3330
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -3265,6 +3436,18 @@ export interface paths {
3265
3436
  };
3266
3437
  content?: never;
3267
3438
  };
3439
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
3440
+ 400: {
3441
+ headers: {
3442
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3443
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3444
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3445
+ [name: string]: unknown;
3446
+ };
3447
+ content: {
3448
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3449
+ };
3450
+ };
3268
3451
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
3269
3452
  401: {
3270
3453
  headers: {
@@ -3351,7 +3534,7 @@ export interface paths {
3351
3534
  };
3352
3535
  content?: never;
3353
3536
  };
3354
- /** @description Bad Request */
3537
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
3355
3538
  400: {
3356
3539
  headers: {
3357
3540
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -3728,6 +3911,18 @@ export interface paths {
3728
3911
  "application/json": components["schemas"]["ProjectResponse"];
3729
3912
  };
3730
3913
  };
3914
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
3915
+ 400: {
3916
+ headers: {
3917
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3918
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3919
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3920
+ [name: string]: unknown;
3921
+ };
3922
+ content: {
3923
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3924
+ };
3925
+ };
3731
3926
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
3732
3927
  401: {
3733
3928
  headers: {
@@ -3878,6 +4073,18 @@ export interface paths {
3878
4073
  };
3879
4074
  content?: never;
3880
4075
  };
4076
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
4077
+ 400: {
4078
+ headers: {
4079
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4080
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4081
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4082
+ [name: string]: unknown;
4083
+ };
4084
+ content: {
4085
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4086
+ };
4087
+ };
3881
4088
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
3882
4089
  401: {
3883
4090
  headers: {
@@ -3957,6 +4164,18 @@ export interface paths {
3957
4164
  };
3958
4165
  content?: never;
3959
4166
  };
4167
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
4168
+ 400: {
4169
+ headers: {
4170
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4171
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4172
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4173
+ [name: string]: unknown;
4174
+ };
4175
+ content: {
4176
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4177
+ };
4178
+ };
3960
4179
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
3961
4180
  401: {
3962
4181
  headers: {
@@ -4014,50 +4233,52 @@ export interface paths {
4014
4233
  patch?: never;
4015
4234
  trace?: never;
4016
4235
  };
4017
- "/api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys": {
4236
+ "/api/v1/orgs/{org}/projects/{project}/default-flag-lifetime": {
4018
4237
  parameters: {
4019
4238
  query?: never;
4020
4239
  header?: never;
4021
4240
  path?: never;
4022
4241
  cookie?: never;
4023
4242
  };
4243
+ get?: never;
4024
4244
  /**
4025
- * Lists SDK keys in the resolved environment, cursor-paginated.
4026
- * @description Like
4027
- * List, ListSdkKeysQuery has no
4028
- * `Skip`/`Take` (an environment's key count is small), so this fetches the full
4029
- * set and pages in-memory to still expose the standard cursor contract.
4245
+ * Sets or removes the project's default flag lifetime, in days (1–3650; null removes it).
4246
+ * @description Temporary
4247
+ * flags with no expiry date of their own then expire that many days after they were created, reported
4248
+ * as `expirySource: "project-default"`. Takes effect at the next hourly staleness run. Requires at
4249
+ * least Member, and the default-flag-lifetime feature to set one (400 `FEATURE_NOT_ENABLED`);
4250
+ * removing one is always allowed. `days` is required; send `{"days": null}` to remove.
4030
4251
  */
4031
- get: {
4252
+ put: {
4032
4253
  parameters: {
4033
- query?: {
4034
- limit?: number;
4035
- cursor?: string;
4036
- };
4254
+ query?: never;
4037
4255
  header?: never;
4038
4256
  path: {
4039
4257
  org: string;
4040
4258
  project: string;
4041
- env: string;
4042
4259
  };
4043
4260
  cookie?: never;
4044
4261
  };
4045
- requestBody?: never;
4262
+ requestBody?: {
4263
+ content: {
4264
+ "application/json": components["schemas"]["PublicSetDefaultFlagLifetimeRequest"];
4265
+ "text/json": components["schemas"]["PublicSetDefaultFlagLifetimeRequest"];
4266
+ "application/*+json": components["schemas"]["PublicSetDefaultFlagLifetimeRequest"];
4267
+ };
4268
+ };
4046
4269
  responses: {
4047
- /** @description OK */
4048
- 200: {
4270
+ /** @description No Content */
4271
+ 204: {
4049
4272
  headers: {
4050
4273
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4051
4274
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4052
4275
  "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4053
4276
  [name: string]: unknown;
4054
4277
  };
4055
- content: {
4056
- "application/json": components["schemas"]["PublicSdkKeyResponsePagedResult"];
4057
- };
4278
+ content?: never;
4058
4279
  };
4059
- /** @description Authentication is required, or the supplied API token is invalid or expired. */
4060
- 401: {
4280
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
4281
+ 400: {
4061
4282
  headers: {
4062
4283
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4063
4284
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -4068,8 +4289,8 @@ export interface paths {
4068
4289
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4069
4290
  };
4070
4291
  };
4071
- /** @description Not Found */
4072
- 404: {
4292
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
4293
+ 401: {
4073
4294
  headers: {
4074
4295
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4075
4296
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -4080,8 +4301,219 @@ export interface paths {
4080
4301
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4081
4302
  };
4082
4303
  };
4083
- /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
4084
- 429: {
4304
+ /** @description Forbidden */
4305
+ 403: {
4306
+ headers: {
4307
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4308
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4309
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4310
+ [name: string]: unknown;
4311
+ };
4312
+ content: {
4313
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4314
+ };
4315
+ };
4316
+ /** @description Not Found */
4317
+ 404: {
4318
+ headers: {
4319
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4320
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4321
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4322
+ [name: string]: unknown;
4323
+ };
4324
+ content: {
4325
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4326
+ };
4327
+ };
4328
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
4329
+ 429: {
4330
+ headers: {
4331
+ /** @description Number of seconds to wait before retrying the request. */
4332
+ "Retry-After"?: number;
4333
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4334
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4335
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4336
+ [name: string]: unknown;
4337
+ };
4338
+ content: {
4339
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4340
+ };
4341
+ };
4342
+ };
4343
+ };
4344
+ post?: never;
4345
+ delete?: never;
4346
+ options?: never;
4347
+ head?: never;
4348
+ patch?: never;
4349
+ trace?: never;
4350
+ };
4351
+ "/api/v1/orgs/{org}/projects/{project}/default-flag-lifetime/impact": {
4352
+ parameters: {
4353
+ query?: never;
4354
+ header?: never;
4355
+ path?: never;
4356
+ cookie?: never;
4357
+ };
4358
+ /**
4359
+ * Previews a default flag lifetime: how many temporary flags with no expiry date of their own would newly be past expiry, and how many would stop being past the current one.
4360
+ * @description Omit `days` to
4361
+ * preview removing it.
4362
+ */
4363
+ get: {
4364
+ parameters: {
4365
+ query?: {
4366
+ days?: number;
4367
+ };
4368
+ header?: never;
4369
+ path: {
4370
+ org: string;
4371
+ project: string;
4372
+ };
4373
+ cookie?: never;
4374
+ };
4375
+ requestBody?: never;
4376
+ responses: {
4377
+ /** @description OK */
4378
+ 200: {
4379
+ headers: {
4380
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4381
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4382
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4383
+ [name: string]: unknown;
4384
+ };
4385
+ content: {
4386
+ "application/json": components["schemas"]["PublicDefaultFlagLifetimeImpact"];
4387
+ };
4388
+ };
4389
+ /** @description Bad Request */
4390
+ 400: {
4391
+ headers: {
4392
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4393
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4394
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4395
+ [name: string]: unknown;
4396
+ };
4397
+ content: {
4398
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4399
+ };
4400
+ };
4401
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
4402
+ 401: {
4403
+ headers: {
4404
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4405
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4406
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4407
+ [name: string]: unknown;
4408
+ };
4409
+ content: {
4410
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4411
+ };
4412
+ };
4413
+ /** @description Not Found */
4414
+ 404: {
4415
+ headers: {
4416
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4417
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4418
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4419
+ [name: string]: unknown;
4420
+ };
4421
+ content: {
4422
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4423
+ };
4424
+ };
4425
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
4426
+ 429: {
4427
+ headers: {
4428
+ /** @description Number of seconds to wait before retrying the request. */
4429
+ "Retry-After"?: number;
4430
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4431
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4432
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4433
+ [name: string]: unknown;
4434
+ };
4435
+ content: {
4436
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4437
+ };
4438
+ };
4439
+ };
4440
+ };
4441
+ put?: never;
4442
+ post?: never;
4443
+ delete?: never;
4444
+ options?: never;
4445
+ head?: never;
4446
+ patch?: never;
4447
+ trace?: never;
4448
+ };
4449
+ "/api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys": {
4450
+ parameters: {
4451
+ query?: never;
4452
+ header?: never;
4453
+ path?: never;
4454
+ cookie?: never;
4455
+ };
4456
+ /**
4457
+ * Lists SDK keys in the resolved environment, cursor-paginated.
4458
+ * @description Like
4459
+ * List, ListSdkKeysQuery has no
4460
+ * `Skip`/`Take` (an environment's key count is small), so this fetches the full
4461
+ * set and pages in-memory to still expose the standard cursor contract.
4462
+ */
4463
+ get: {
4464
+ parameters: {
4465
+ query?: {
4466
+ limit?: number;
4467
+ cursor?: string;
4468
+ };
4469
+ header?: never;
4470
+ path: {
4471
+ org: string;
4472
+ project: string;
4473
+ env: string;
4474
+ };
4475
+ cookie?: never;
4476
+ };
4477
+ requestBody?: never;
4478
+ responses: {
4479
+ /** @description OK */
4480
+ 200: {
4481
+ headers: {
4482
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4483
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4484
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4485
+ [name: string]: unknown;
4486
+ };
4487
+ content: {
4488
+ "application/json": components["schemas"]["PublicSdkKeyResponsePagedResult"];
4489
+ };
4490
+ };
4491
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
4492
+ 401: {
4493
+ headers: {
4494
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4495
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4496
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4497
+ [name: string]: unknown;
4498
+ };
4499
+ content: {
4500
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4501
+ };
4502
+ };
4503
+ /** @description Not Found */
4504
+ 404: {
4505
+ headers: {
4506
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4507
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4508
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4509
+ [name: string]: unknown;
4510
+ };
4511
+ content: {
4512
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4513
+ };
4514
+ };
4515
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
4516
+ 429: {
4085
4517
  headers: {
4086
4518
  /** @description Number of seconds to wait before retrying the request. */
4087
4519
  "Retry-After"?: number;
@@ -4133,7 +4565,7 @@ export interface paths {
4133
4565
  "application/json": components["schemas"]["PublicCreateSdkKeyResponse"];
4134
4566
  };
4135
4567
  };
4136
- /** @description Bad Request */
4568
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
4137
4569
  400: {
4138
4570
  headers: {
4139
4571
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -4311,6 +4743,18 @@ export interface paths {
4311
4743
  };
4312
4744
  content?: never;
4313
4745
  };
4746
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
4747
+ 400: {
4748
+ headers: {
4749
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4750
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4751
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4752
+ [name: string]: unknown;
4753
+ };
4754
+ content: {
4755
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4756
+ };
4757
+ };
4314
4758
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
4315
4759
  401: {
4316
4760
  headers: {
@@ -4407,6 +4851,18 @@ export interface paths {
4407
4851
  };
4408
4852
  content?: never;
4409
4853
  };
4854
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
4855
+ 400: {
4856
+ headers: {
4857
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4858
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4859
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4860
+ [name: string]: unknown;
4861
+ };
4862
+ content: {
4863
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4864
+ };
4865
+ };
4410
4866
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
4411
4867
  401: {
4412
4868
  headers: {
@@ -4585,7 +5041,7 @@ export interface paths {
4585
5041
  "application/json": components["schemas"]["PublicSegmentResponse"];
4586
5042
  };
4587
5043
  };
4588
- /** @description Bad Request */
5044
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
4589
5045
  400: {
4590
5046
  headers: {
4591
5047
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -4672,7 +5128,10 @@ export interface paths {
4672
5128
  get: {
4673
5129
  parameters: {
4674
5130
  query?: never;
4675
- header?: never;
5131
+ header?: {
5132
+ /** @description Optional. An ETag of this resource. The response is 200 only if it is still the current one; otherwise 412 `precondition_failed`. `*` or no header always reads. */
5133
+ "If-Match"?: string;
5134
+ };
4676
5135
  path: {
4677
5136
  org: string;
4678
5137
  project: string;
@@ -4685,7 +5144,7 @@ export interface paths {
4685
5144
  /** @description OK */
4686
5145
  200: {
4687
5146
  headers: {
4688
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
5147
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
4689
5148
  ETag?: string;
4690
5149
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4691
5150
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -4720,6 +5179,18 @@ export interface paths {
4720
5179
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4721
5180
  };
4722
5181
  };
5182
+ /** @description The resource's current ETag is not the If-Match one. */
5183
+ 412: {
5184
+ headers: {
5185
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5186
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5187
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5188
+ [name: string]: unknown;
5189
+ };
5190
+ content: {
5191
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5192
+ };
5193
+ };
4723
5194
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
4724
5195
  429: {
4725
5196
  headers: {
@@ -4744,7 +5215,7 @@ export interface paths {
4744
5215
  parameters: {
4745
5216
  query?: never;
4746
5217
  header?: {
4747
- /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
5218
+ /** @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. */
4748
5219
  "If-Match"?: string;
4749
5220
  };
4750
5221
  path: {
@@ -4765,7 +5236,7 @@ export interface paths {
4765
5236
  /** @description No Content */
4766
5237
  204: {
4767
5238
  headers: {
4768
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
5239
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
4769
5240
  ETag?: string;
4770
5241
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4771
5242
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -4878,6 +5349,18 @@ export interface paths {
4878
5349
  };
4879
5350
  content?: never;
4880
5351
  };
5352
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
5353
+ 400: {
5354
+ headers: {
5355
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5356
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5357
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5358
+ [name: string]: unknown;
5359
+ };
5360
+ content: {
5361
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5362
+ };
5363
+ };
4881
5364
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
4882
5365
  401: {
4883
5366
  headers: {
@@ -5059,7 +5542,7 @@ export interface paths {
5059
5542
  "application/json": components["schemas"]["PublicCreateWebhookSubscriptionResponse"];
5060
5543
  };
5061
5544
  };
5062
- /** @description Bad Request */
5545
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
5063
5546
  400: {
5064
5547
  headers: {
5065
5548
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -5237,7 +5720,10 @@ export interface paths {
5237
5720
  get: {
5238
5721
  parameters: {
5239
5722
  query?: never;
5240
- header?: never;
5723
+ header?: {
5724
+ /** @description Optional. An ETag of this resource. The response is 200 only if it is still the current one; otherwise 412 `precondition_failed`. `*` or no header always reads. */
5725
+ "If-Match"?: string;
5726
+ };
5241
5727
  path: {
5242
5728
  org: string;
5243
5729
  id: string;
@@ -5249,7 +5735,7 @@ export interface paths {
5249
5735
  /** @description OK */
5250
5736
  200: {
5251
5737
  headers: {
5252
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
5738
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
5253
5739
  ETag?: string;
5254
5740
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5255
5741
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -5296,6 +5782,18 @@ export interface paths {
5296
5782
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5297
5783
  };
5298
5784
  };
5785
+ /** @description The resource's current ETag is not the If-Match one. */
5786
+ 412: {
5787
+ headers: {
5788
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5789
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5790
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5791
+ [name: string]: unknown;
5792
+ };
5793
+ content: {
5794
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5795
+ };
5796
+ };
5299
5797
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
5300
5798
  429: {
5301
5799
  headers: {
@@ -5321,7 +5819,7 @@ export interface paths {
5321
5819
  parameters: {
5322
5820
  query?: never;
5323
5821
  header?: {
5324
- /** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
5822
+ /** @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. */
5325
5823
  "If-Match"?: string;
5326
5824
  };
5327
5825
  path: {
@@ -5341,7 +5839,7 @@ export interface paths {
5341
5839
  /** @description No Content */
5342
5840
  204: {
5343
5841
  headers: {
5344
- /** @description Strong ETag of the resource. Send it back as If-Match on a PUT. */
5842
+ /** @description Strong ETag of the resource's whole body as sent to this caller: it changes whenever anything in the body does. Send it back as If-Match on a PUT. */
5345
5843
  ETag?: string;
5346
5844
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5347
5845
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
@@ -5453,6 +5951,18 @@ export interface paths {
5453
5951
  };
5454
5952
  content?: never;
5455
5953
  };
5954
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
5955
+ 400: {
5956
+ headers: {
5957
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5958
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5959
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5960
+ [name: string]: unknown;
5961
+ };
5962
+ content: {
5963
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5964
+ };
5965
+ };
5456
5966
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
5457
5967
  401: {
5458
5968
  headers: {
@@ -5550,6 +6060,18 @@ export interface paths {
5550
6060
  "application/json": components["schemas"]["PublicRotateWebhookSecretResponse"];
5551
6061
  };
5552
6062
  };
6063
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
6064
+ 400: {
6065
+ headers: {
6066
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
6067
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
6068
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
6069
+ [name: string]: unknown;
6070
+ };
6071
+ content: {
6072
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
6073
+ };
6074
+ };
5553
6075
  /** @description Authentication is required, or the supplied API token is invalid or expired. */
5554
6076
  401: {
5555
6077
  headers: {
@@ -5646,7 +6168,7 @@ export interface paths {
5646
6168
  };
5647
6169
  content?: never;
5648
6170
  };
5649
- /** @description Bad Request */
6171
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
5650
6172
  400: {
5651
6173
  headers: {
5652
6174
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -5754,7 +6276,7 @@ export interface paths {
5754
6276
  "application/json": components["schemas"]["PublicTestWebhookSubscriptionResponse"];
5755
6277
  };
5756
6278
  };
5757
- /** @description Bad Request */
6279
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
5758
6280
  400: {
5759
6281
  headers: {
5760
6282
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -5960,7 +6482,7 @@ export interface paths {
5960
6482
  };
5961
6483
  content?: never;
5962
6484
  };
5963
- /** @description Bad Request */
6485
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
5964
6486
  400: {
5965
6487
  headers: {
5966
6488
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -6105,6 +6627,7 @@ export interface components {
6105
6627
  * public API surfaces environments via their own endpoint (Task 6), not embedded here.
6106
6628
  * UpdatedAt is only populated from ProjectDto (the detail/create
6107
6629
  * shape); ProjectListItemDto doesn't carry it, so list rows leave it `null`.
6630
+ * DefaultFlagLifetimeDays is the project's default flag lifetime in days, or null (#3194).
6108
6631
  * @example {
6109
6632
  * "id": "0197b69f-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
6110
6633
  * "key": "checkout",
@@ -6124,6 +6647,8 @@ export interface components {
6124
6647
  createdAt?: string;
6125
6648
  /** Format: date-time */
6126
6649
  updatedAt?: string | null;
6650
+ /** Format: int32 */
6651
+ defaultFlagLifetimeDays?: number | null;
6127
6652
  /** @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. */
6128
6653
  _actions?: {
6129
6654
  [key: string]: components["schemas"]["ActionCapability"];
@@ -6530,6 +7055,16 @@ export interface components {
6530
7055
  secret?: string | null;
6531
7056
  warning?: string | null;
6532
7057
  };
7058
+ /**
7059
+ * @description Response of `GET .../default-flag-lifetime/impact`: how many temporary flags with no expiry
7060
+ * date of their own would newly be past expiry, and how many would stop being past it.
7061
+ */
7062
+ PublicDefaultFlagLifetimeImpact: {
7063
+ /** Format: int32 */
7064
+ newlyPastExpiry?: number;
7065
+ /** Format: int32 */
7066
+ noLongerPastExpiry?: number;
7067
+ };
6533
7068
  /**
6534
7069
  * @description Public representation of an environment, returned by
6535
7070
  * `GET /api/v1/orgs/{org}/projects/{project}/environments` (list),
@@ -6621,6 +7156,9 @@ export interface components {
6621
7156
  * Variations (a summary-only shape upstream) and
6622
7157
  * Staleness, matching the "list is narrower than detail"
6623
7158
  * split already present on the Application-layer DTOs.
7159
+ * EffectiveExpiresAtUtc is when the flag counts as past expiry, from its own ExpiresAtUtc
7160
+ * or its project's default lifetime; ExpirySource says which (`explicit` / `project-default`),
7161
+ * both null when neither applies.
6624
7162
  */
6625
7163
  PublicFlagListItem: {
6626
7164
  /** Format: uuid */
@@ -6644,6 +7182,9 @@ export interface components {
6644
7182
  owner?: components["schemas"]["PublicFlagOwner"];
6645
7183
  removalPrUrl?: string | null;
6646
7184
  isPermanent?: boolean;
7185
+ /** Format: date-time */
7186
+ effectiveExpiresAtUtc?: string | null;
7187
+ expirySource?: string | null;
6647
7188
  };
6648
7189
  /**
6649
7190
  * @description A page of results plus an opaque cursor for the next page, or null when this is the last
@@ -6716,6 +7257,9 @@ export interface components {
6716
7257
  * `GET .../flags/{flag}` and the body of a successful create. Drops internal/dashboard-only
6717
7258
  * fields present on FeatureFlagDto — notably `ProjectId` (implicit in the
6718
7259
  * route) and `Staleness` (an internal analytics signal, not part of the public contract).
7260
+ * EffectiveExpiresAtUtc is when the flag counts as past expiry, from its own ExpiresAtUtc
7261
+ * or its project's default lifetime; ExpirySource says which (`explicit` / `project-default`),
7262
+ * both null when neither applies.
6719
7263
  * @example {
6720
7264
  * "id": "0197b6a0-5f2a-7c3e-9b4d-1e2f3a4b5c6d",
6721
7265
  * "key": "new-checkout-flow",
@@ -6772,6 +7316,9 @@ export interface components {
6772
7316
  owner?: components["schemas"]["PublicFlagOwner"];
6773
7317
  removalPrUrl?: string | null;
6774
7318
  isPermanent?: boolean;
7319
+ /** Format: date-time */
7320
+ effectiveExpiresAtUtc?: string | null;
7321
+ expirySource?: string | null;
6775
7322
  /** @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. */
6776
7323
  _actions?: {
6777
7324
  [key: string]: components["schemas"]["ActionCapability"];
@@ -6940,6 +7487,16 @@ export interface components {
6940
7487
  [key: string]: components["schemas"]["ActionCapability"];
6941
7488
  };
6942
7489
  };
7490
+ /**
7491
+ * @description Request body for `PUT /api/v1/orgs/{org}/projects/{project}/default-flag-lifetime`. `days`
7492
+ * is 1–3650, or an explicit null to remove the default. `days` is required: a body without it
7493
+ * (`{}`, or a misspelled field) is a `validation_failed` 400, never a removal, so a typo
7494
+ * can't silently wipe the setting (#3788). A request with no body is rejected too.
7495
+ */
7496
+ PublicSetDefaultFlagLifetimeRequest: {
7497
+ /** Format: int32 */
7498
+ days?: number | null;
7499
+ };
6943
7500
  /**
6944
7501
  * @description Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/expiry`. Expiry is a
6945
7502
  * dedicated sub-resource, deliberately NOT a field on PublicUpdateFeatureFlagRequest: that