@featureflip/mcp 0.10.1 → 0.11.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.
@@ -3,6 +3,864 @@
3
3
  * Do not make direct changes to the file.
4
4
  */
5
5
  export interface paths {
6
+ "/api/v1/orgs/{org}/change-freezes": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /**
14
+ * Lists the organization's change freezes, latest start first, cursor-paginated.
15
+ * @description `project` (key or id)
16
+ * adds that project's windows to the organization-wide ones; `status` is `Upcoming`, `Active`
17
+ * or `Ended`.
18
+ */
19
+ get: {
20
+ parameters: {
21
+ query?: {
22
+ project?: string;
23
+ status?: string;
24
+ limit?: number;
25
+ cursor?: string;
26
+ };
27
+ header?: never;
28
+ path: {
29
+ org: string;
30
+ };
31
+ cookie?: never;
32
+ };
33
+ requestBody?: never;
34
+ responses: {
35
+ /** @description OK */
36
+ 200: {
37
+ headers: {
38
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
39
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
40
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
41
+ [name: string]: unknown;
42
+ };
43
+ content: {
44
+ "application/json": components["schemas"]["PublicChangeFreezeResponsePagedResult"];
45
+ };
46
+ };
47
+ /** @description Bad Request */
48
+ 400: {
49
+ headers: {
50
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
51
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
52
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
53
+ [name: string]: unknown;
54
+ };
55
+ content: {
56
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
57
+ };
58
+ };
59
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
60
+ 401: {
61
+ headers: {
62
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
63
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
64
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
65
+ [name: string]: unknown;
66
+ };
67
+ content: {
68
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
69
+ };
70
+ };
71
+ /** @description Not Found */
72
+ 404: {
73
+ headers: {
74
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
75
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
76
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
77
+ [name: string]: unknown;
78
+ };
79
+ content: {
80
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
81
+ };
82
+ };
83
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
84
+ 429: {
85
+ headers: {
86
+ /** @description Number of seconds to wait before retrying the request. */
87
+ "Retry-After"?: number;
88
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
89
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
90
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
91
+ [name: string]: unknown;
92
+ };
93
+ content: {
94
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
95
+ };
96
+ };
97
+ };
98
+ };
99
+ put?: never;
100
+ /**
101
+ * Creates a change freeze.
102
+ * @description Requires Admin and the Business plan or above (a lower plan is a 400
103
+ * `PLAN_FEATURE_UNAVAILABLE`). Omit `startsAt` to freeze now. Supports the `Idempotency-Key` header.
104
+ */
105
+ post: {
106
+ parameters: {
107
+ query?: never;
108
+ header?: never;
109
+ path: {
110
+ org: string;
111
+ };
112
+ cookie?: never;
113
+ };
114
+ requestBody?: {
115
+ content: {
116
+ "application/json": components["schemas"]["PublicCreateChangeFreezeRequest"];
117
+ "text/json": components["schemas"]["PublicCreateChangeFreezeRequest"];
118
+ "application/*+json": components["schemas"]["PublicCreateChangeFreezeRequest"];
119
+ };
120
+ };
121
+ responses: {
122
+ /** @description Created */
123
+ 201: {
124
+ headers: {
125
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
126
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
127
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
128
+ [name: string]: unknown;
129
+ };
130
+ content: {
131
+ "application/json": components["schemas"]["PublicChangeFreezeResponse"];
132
+ };
133
+ };
134
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
135
+ 400: {
136
+ headers: {
137
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
138
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
139
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
140
+ [name: string]: unknown;
141
+ };
142
+ content: {
143
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
144
+ };
145
+ };
146
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
147
+ 401: {
148
+ headers: {
149
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
150
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
151
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
152
+ [name: string]: unknown;
153
+ };
154
+ content: {
155
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
156
+ };
157
+ };
158
+ /** @description Forbidden */
159
+ 403: {
160
+ headers: {
161
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
162
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
163
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
164
+ [name: string]: unknown;
165
+ };
166
+ content: {
167
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
168
+ };
169
+ };
170
+ /** @description Not Found */
171
+ 404: {
172
+ headers: {
173
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
174
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
175
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
176
+ [name: string]: unknown;
177
+ };
178
+ content: {
179
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
180
+ };
181
+ };
182
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
183
+ 429: {
184
+ headers: {
185
+ /** @description Number of seconds to wait before retrying the request. */
186
+ "Retry-After"?: number;
187
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
188
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
189
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
190
+ [name: string]: unknown;
191
+ };
192
+ content: {
193
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
194
+ };
195
+ };
196
+ };
197
+ };
198
+ delete?: never;
199
+ options?: never;
200
+ head?: never;
201
+ patch?: never;
202
+ trace?: never;
203
+ };
204
+ "/api/v1/orgs/{org}/change-freezes/{id}": {
205
+ parameters: {
206
+ query?: never;
207
+ header?: never;
208
+ path?: never;
209
+ cookie?: never;
210
+ };
211
+ /** Gets a change freeze by id. */
212
+ get: {
213
+ parameters: {
214
+ query?: never;
215
+ header?: {
216
+ /** @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. */
217
+ "If-Match"?: string;
218
+ };
219
+ path: {
220
+ org: string;
221
+ id: string;
222
+ };
223
+ cookie?: never;
224
+ };
225
+ requestBody?: never;
226
+ responses: {
227
+ /** @description OK */
228
+ 200: {
229
+ headers: {
230
+ /** @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. */
231
+ ETag?: string;
232
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
233
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
234
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
235
+ [name: string]: unknown;
236
+ };
237
+ content: {
238
+ "application/json": components["schemas"]["PublicChangeFreezeResponse"];
239
+ };
240
+ };
241
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
242
+ 401: {
243
+ headers: {
244
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
245
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
246
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
247
+ [name: string]: unknown;
248
+ };
249
+ content: {
250
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
251
+ };
252
+ };
253
+ /** @description Not Found */
254
+ 404: {
255
+ headers: {
256
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
257
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
258
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
259
+ [name: string]: unknown;
260
+ };
261
+ content: {
262
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
263
+ };
264
+ };
265
+ /** @description The resource's current ETag is not the If-Match one. */
266
+ 412: {
267
+ headers: {
268
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
269
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
270
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
271
+ [name: string]: unknown;
272
+ };
273
+ content: {
274
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
275
+ };
276
+ };
277
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
278
+ 429: {
279
+ headers: {
280
+ /** @description Number of seconds to wait before retrying the request. */
281
+ "Retry-After"?: number;
282
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
283
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
284
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
285
+ [name: string]: unknown;
286
+ };
287
+ content: {
288
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
289
+ };
290
+ };
291
+ };
292
+ };
293
+ put?: never;
294
+ post?: never;
295
+ /**
296
+ * Deletes a change freeze that has not started.
297
+ * @description Requires Admin. Works on every plan and when change freezes are switched off for the organization. A running or ended window is refused (400).
298
+ */
299
+ delete: {
300
+ parameters: {
301
+ query?: never;
302
+ header?: never;
303
+ path: {
304
+ org: string;
305
+ id: string;
306
+ };
307
+ cookie?: never;
308
+ };
309
+ requestBody?: never;
310
+ responses: {
311
+ /** @description No Content */
312
+ 204: {
313
+ headers: {
314
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
315
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
316
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
317
+ [name: string]: unknown;
318
+ };
319
+ content?: never;
320
+ };
321
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
322
+ 400: {
323
+ headers: {
324
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
325
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
326
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
327
+ [name: string]: unknown;
328
+ };
329
+ content: {
330
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
331
+ };
332
+ };
333
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
334
+ 401: {
335
+ headers: {
336
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
337
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
338
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
339
+ [name: string]: unknown;
340
+ };
341
+ content: {
342
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
343
+ };
344
+ };
345
+ /** @description Forbidden */
346
+ 403: {
347
+ headers: {
348
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
349
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
350
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
351
+ [name: string]: unknown;
352
+ };
353
+ content: {
354
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
355
+ };
356
+ };
357
+ /** @description Not Found */
358
+ 404: {
359
+ headers: {
360
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
361
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
362
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
363
+ [name: string]: unknown;
364
+ };
365
+ content: {
366
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
367
+ };
368
+ };
369
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
370
+ 429: {
371
+ headers: {
372
+ /** @description Number of seconds to wait before retrying the request. */
373
+ "Retry-After"?: number;
374
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
375
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
376
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
377
+ [name: string]: unknown;
378
+ };
379
+ content: {
380
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
381
+ };
382
+ };
383
+ };
384
+ };
385
+ options?: never;
386
+ head?: never;
387
+ /**
388
+ * Edits a change freeze.
389
+ * @description Requires Admin. A field left out is unchanged. An ended window cannot be edited
390
+ * and the start of an active window cannot move (400). Below the Business plan a window can only be renamed,
391
+ * have its reason edited, or end sooner; anything else is a 400 `PLAN_FEATURE_UNAVAILABLE`.
392
+ */
393
+ patch: {
394
+ parameters: {
395
+ query?: never;
396
+ header?: {
397
+ /** @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. */
398
+ "If-Match"?: string;
399
+ };
400
+ path: {
401
+ org: string;
402
+ id: string;
403
+ };
404
+ cookie?: never;
405
+ };
406
+ requestBody?: {
407
+ content: {
408
+ "application/json": components["schemas"]["PublicUpdateChangeFreezeRequest"];
409
+ "text/json": components["schemas"]["PublicUpdateChangeFreezeRequest"];
410
+ "application/*+json": components["schemas"]["PublicUpdateChangeFreezeRequest"];
411
+ };
412
+ };
413
+ responses: {
414
+ /** @description OK */
415
+ 200: {
416
+ headers: {
417
+ /** @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. */
418
+ ETag?: string;
419
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
420
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
421
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
422
+ [name: string]: unknown;
423
+ };
424
+ content: {
425
+ "application/json": components["schemas"]["PublicChangeFreezeResponse"];
426
+ };
427
+ };
428
+ /** @description Bad Request */
429
+ 400: {
430
+ headers: {
431
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
432
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
433
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
434
+ [name: string]: unknown;
435
+ };
436
+ content: {
437
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
438
+ };
439
+ };
440
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
441
+ 401: {
442
+ headers: {
443
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
444
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
445
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
446
+ [name: string]: unknown;
447
+ };
448
+ content: {
449
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
450
+ };
451
+ };
452
+ /** @description Forbidden */
453
+ 403: {
454
+ headers: {
455
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
456
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
457
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
458
+ [name: string]: unknown;
459
+ };
460
+ content: {
461
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
462
+ };
463
+ };
464
+ /** @description Not Found */
465
+ 404: {
466
+ headers: {
467
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
468
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
469
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
470
+ [name: string]: unknown;
471
+ };
472
+ content: {
473
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
474
+ };
475
+ };
476
+ /** @description The resource changed since the If-Match ETag. */
477
+ 412: {
478
+ headers: {
479
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
480
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
481
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
482
+ [name: string]: unknown;
483
+ };
484
+ content: {
485
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
486
+ };
487
+ };
488
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
489
+ 429: {
490
+ headers: {
491
+ /** @description Number of seconds to wait before retrying the request. */
492
+ "Retry-After"?: number;
493
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
494
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
495
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
496
+ [name: string]: unknown;
497
+ };
498
+ content: {
499
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
500
+ };
501
+ };
502
+ };
503
+ };
504
+ trace?: never;
505
+ };
506
+ "/api/v1/orgs/{org}/change-freezes/{id}/end": {
507
+ parameters: {
508
+ query?: never;
509
+ header?: never;
510
+ path?: never;
511
+ cookie?: never;
512
+ };
513
+ get?: never;
514
+ put?: never;
515
+ /**
516
+ * Ends a running change freeze now.
517
+ * @description Requires Admin. Works on every plan and when change freezes are
518
+ * switched off for the organization. A window that has not started is deleted instead (400). Supports
519
+ * the `Idempotency-Key` header.
520
+ */
521
+ post: {
522
+ parameters: {
523
+ query?: never;
524
+ header?: never;
525
+ path: {
526
+ org: string;
527
+ id: string;
528
+ };
529
+ cookie?: never;
530
+ };
531
+ requestBody?: never;
532
+ responses: {
533
+ /** @description OK */
534
+ 200: {
535
+ headers: {
536
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
537
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
538
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
539
+ [name: string]: unknown;
540
+ };
541
+ content: {
542
+ "application/json": components["schemas"]["PublicChangeFreezeResponse"];
543
+ };
544
+ };
545
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
546
+ 400: {
547
+ headers: {
548
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
549
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
550
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
551
+ [name: string]: unknown;
552
+ };
553
+ content: {
554
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
555
+ };
556
+ };
557
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
558
+ 401: {
559
+ headers: {
560
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
561
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
562
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
563
+ [name: string]: unknown;
564
+ };
565
+ content: {
566
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
567
+ };
568
+ };
569
+ /** @description Forbidden */
570
+ 403: {
571
+ headers: {
572
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
573
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
574
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
575
+ [name: string]: unknown;
576
+ };
577
+ content: {
578
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
579
+ };
580
+ };
581
+ /** @description Not Found */
582
+ 404: {
583
+ headers: {
584
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
585
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
586
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
587
+ [name: string]: unknown;
588
+ };
589
+ content: {
590
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
591
+ };
592
+ };
593
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
594
+ 429: {
595
+ headers: {
596
+ /** @description Number of seconds to wait before retrying the request. */
597
+ "Retry-After"?: number;
598
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
599
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
600
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
601
+ [name: string]: unknown;
602
+ };
603
+ content: {
604
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
605
+ };
606
+ };
607
+ };
608
+ };
609
+ delete?: never;
610
+ options?: never;
611
+ head?: never;
612
+ patch?: never;
613
+ trace?: never;
614
+ };
615
+ "/api/v1/orgs/{org}/change-freezes/{id}/approvals": {
616
+ parameters: {
617
+ query?: never;
618
+ header?: never;
619
+ path?: never;
620
+ cookie?: never;
621
+ };
622
+ get?: never;
623
+ put?: never;
624
+ /**
625
+ * Approves one Pending scheduled change to apply inside this change freeze when it comes due, with a reason.
626
+ * @description The
627
+ * change must be in an environment the window covers; when it applies, its audit rows and webhooks are marked
628
+ * pre-approved. The approval counts only while the approver is still an Owner or Admin. Requires Admin and the
629
+ * Business plan or above (a lower plan is a 400 `PLAN_FEATURE_UNAVAILABLE`); approving the same change twice
630
+ * is a 409. Supports the `Idempotency-Key` header.
631
+ */
632
+ post: {
633
+ parameters: {
634
+ query?: never;
635
+ header?: never;
636
+ path: {
637
+ org: string;
638
+ id: string;
639
+ };
640
+ cookie?: never;
641
+ };
642
+ requestBody?: {
643
+ content: {
644
+ "application/json": components["schemas"]["PublicGrantFreezeApprovalRequest"];
645
+ "text/json": components["schemas"]["PublicGrantFreezeApprovalRequest"];
646
+ "application/*+json": components["schemas"]["PublicGrantFreezeApprovalRequest"];
647
+ };
648
+ };
649
+ responses: {
650
+ /** @description Created */
651
+ 201: {
652
+ headers: {
653
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
654
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
655
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
656
+ [name: string]: unknown;
657
+ };
658
+ content: {
659
+ "application/json": components["schemas"]["PublicFreezeApprovalResponse"];
660
+ };
661
+ };
662
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
663
+ 400: {
664
+ headers: {
665
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
666
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
667
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
668
+ [name: string]: unknown;
669
+ };
670
+ content: {
671
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
672
+ };
673
+ };
674
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
675
+ 401: {
676
+ headers: {
677
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
678
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
679
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
680
+ [name: string]: unknown;
681
+ };
682
+ content: {
683
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
684
+ };
685
+ };
686
+ /** @description Forbidden */
687
+ 403: {
688
+ headers: {
689
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
690
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
691
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
692
+ [name: string]: unknown;
693
+ };
694
+ content: {
695
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
696
+ };
697
+ };
698
+ /** @description Not Found */
699
+ 404: {
700
+ headers: {
701
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
702
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
703
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
704
+ [name: string]: unknown;
705
+ };
706
+ content: {
707
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
708
+ };
709
+ };
710
+ /** @description Conflict */
711
+ 409: {
712
+ headers: {
713
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
714
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
715
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
716
+ [name: string]: unknown;
717
+ };
718
+ content: {
719
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
720
+ };
721
+ };
722
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
723
+ 429: {
724
+ headers: {
725
+ /** @description Number of seconds to wait before retrying the request. */
726
+ "Retry-After"?: number;
727
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
728
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
729
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
730
+ [name: string]: unknown;
731
+ };
732
+ content: {
733
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
734
+ };
735
+ };
736
+ };
737
+ };
738
+ delete?: never;
739
+ options?: never;
740
+ head?: never;
741
+ patch?: never;
742
+ trace?: never;
743
+ };
744
+ "/api/v1/orgs/{org}/change-freezes/{id}/approvals/{scheduledChangeId}": {
745
+ parameters: {
746
+ query?: never;
747
+ header?: never;
748
+ path?: never;
749
+ cookie?: never;
750
+ };
751
+ get?: never;
752
+ put?: never;
753
+ post?: never;
754
+ /**
755
+ * Withdraws a scheduled change's approval to apply inside this change freeze.
756
+ * @description Requires Admin. Works on every plan
757
+ * and when change freezes are switched off for the organization. Withdrawing the approval of a change that is no
758
+ * longer pending (being applied, applied, failed or cancelled) is a 409: it would have no effect.
759
+ */
760
+ delete: {
761
+ parameters: {
762
+ query?: never;
763
+ header?: never;
764
+ path: {
765
+ org: string;
766
+ id: string;
767
+ scheduledChangeId: string;
768
+ };
769
+ cookie?: never;
770
+ };
771
+ requestBody?: never;
772
+ responses: {
773
+ /** @description No Content */
774
+ 204: {
775
+ headers: {
776
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
777
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
778
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
779
+ [name: string]: unknown;
780
+ };
781
+ content?: never;
782
+ };
783
+ /** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
784
+ 400: {
785
+ headers: {
786
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
787
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
788
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
789
+ [name: string]: unknown;
790
+ };
791
+ content: {
792
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
793
+ };
794
+ };
795
+ /** @description Authentication is required, or the supplied API token is invalid or expired. */
796
+ 401: {
797
+ headers: {
798
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
799
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
800
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
801
+ [name: string]: unknown;
802
+ };
803
+ content: {
804
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
805
+ };
806
+ };
807
+ /** @description Forbidden */
808
+ 403: {
809
+ headers: {
810
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
811
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
812
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
813
+ [name: string]: unknown;
814
+ };
815
+ content: {
816
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
817
+ };
818
+ };
819
+ /** @description Not Found */
820
+ 404: {
821
+ headers: {
822
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
823
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
824
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
825
+ [name: string]: unknown;
826
+ };
827
+ content: {
828
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
829
+ };
830
+ };
831
+ /** @description Conflict */
832
+ 409: {
833
+ headers: {
834
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
835
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
836
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
837
+ [name: string]: unknown;
838
+ };
839
+ content: {
840
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
841
+ };
842
+ };
843
+ /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
844
+ 429: {
845
+ headers: {
846
+ /** @description Number of seconds to wait before retrying the request. */
847
+ "Retry-After"?: number;
848
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
849
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
850
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
851
+ [name: string]: unknown;
852
+ };
853
+ content: {
854
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
855
+ };
856
+ };
857
+ };
858
+ };
859
+ options?: never;
860
+ head?: never;
861
+ patch?: never;
862
+ trace?: never;
863
+ };
6
864
  "/api/v1/orgs/{org}/projects/{project}/environments": {
7
865
  parameters: {
8
866
  query?: never;
@@ -406,6 +1264,8 @@ export interface paths {
406
1264
  header?: {
407
1265
  /** @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
1266
  "X-Intent-Reason"?: string;
1267
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
1268
+ "X-Freeze-Override"?: boolean;
409
1269
  };
410
1270
  path: {
411
1271
  org: string;
@@ -486,6 +1346,18 @@ export interface paths {
486
1346
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
487
1347
  };
488
1348
  };
1349
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
1350
+ 423: {
1351
+ headers: {
1352
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
1353
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
1354
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
1355
+ [name: string]: unknown;
1356
+ };
1357
+ content: {
1358
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
1359
+ };
1360
+ };
489
1361
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
490
1362
  429: {
491
1363
  headers: {
@@ -2492,6 +3364,8 @@ export interface paths {
2492
3364
  "If-Match"?: string;
2493
3365
  /** @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. */
2494
3366
  "X-Intent-Reason"?: string;
3367
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
3368
+ "X-Freeze-Override"?: boolean;
2495
3369
  };
2496
3370
  path: {
2497
3371
  org: string;
@@ -2593,6 +3467,18 @@ export interface paths {
2593
3467
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2594
3468
  };
2595
3469
  };
3470
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
3471
+ 423: {
3472
+ headers: {
3473
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3474
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3475
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3476
+ [name: string]: unknown;
3477
+ };
3478
+ content: {
3479
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3480
+ };
3481
+ };
2596
3482
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2597
3483
  429: {
2598
3484
  headers: {
@@ -2639,6 +3525,8 @@ export interface paths {
2639
3525
  header?: {
2640
3526
  /** @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. */
2641
3527
  "X-Intent-Reason"?: string;
3528
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
3529
+ "X-Freeze-Override"?: boolean;
2642
3530
  };
2643
3531
  path: {
2644
3532
  org: string;
@@ -2740,6 +3628,18 @@ export interface paths {
2740
3628
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2741
3629
  };
2742
3630
  };
3631
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
3632
+ 423: {
3633
+ headers: {
3634
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3635
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3636
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3637
+ [name: string]: unknown;
3638
+ };
3639
+ content: {
3640
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3641
+ };
3642
+ };
2743
3643
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2744
3644
  429: {
2745
3645
  headers: {
@@ -2781,6 +3681,8 @@ export interface paths {
2781
3681
  header?: {
2782
3682
  /** @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. */
2783
3683
  "X-Intent-Reason"?: string;
3684
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
3685
+ "X-Freeze-Override"?: boolean;
2784
3686
  };
2785
3687
  path: {
2786
3688
  org: string;
@@ -2868,6 +3770,18 @@ export interface paths {
2868
3770
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
2869
3771
  };
2870
3772
  };
3773
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
3774
+ 423: {
3775
+ headers: {
3776
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
3777
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
3778
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
3779
+ [name: string]: unknown;
3780
+ };
3781
+ content: {
3782
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3783
+ };
3784
+ };
2871
3785
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
2872
3786
  429: {
2873
3787
  headers: {
@@ -3109,6 +4023,8 @@ export interface paths {
3109
4023
  "If-Match"?: string;
3110
4024
  /** @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. */
3111
4025
  "X-Intent-Reason"?: string;
4026
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
4027
+ "X-Freeze-Override"?: boolean;
3112
4028
  };
3113
4029
  path: {
3114
4030
  org: string;
@@ -3210,6 +4126,18 @@ export interface paths {
3210
4126
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3211
4127
  };
3212
4128
  };
4129
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
4130
+ 423: {
4131
+ headers: {
4132
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4133
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4134
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4135
+ [name: string]: unknown;
4136
+ };
4137
+ content: {
4138
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4139
+ };
4140
+ };
3213
4141
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3214
4142
  429: {
3215
4143
  headers: {
@@ -3255,6 +4183,8 @@ export interface paths {
3255
4183
  header?: {
3256
4184
  /** @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. */
3257
4185
  "X-Intent-Reason"?: string;
4186
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
4187
+ "X-Freeze-Override"?: boolean;
3258
4188
  };
3259
4189
  path: {
3260
4190
  org: string;
@@ -3344,6 +4274,18 @@ export interface paths {
3344
4274
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3345
4275
  };
3346
4276
  };
4277
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
4278
+ 423: {
4279
+ headers: {
4280
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4281
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4282
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4283
+ [name: string]: unknown;
4284
+ };
4285
+ content: {
4286
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4287
+ };
4288
+ };
3347
4289
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3348
4290
  429: {
3349
4291
  headers: {
@@ -3470,6 +4412,8 @@ export interface paths {
3470
4412
  "If-Match"?: string;
3471
4413
  /** @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. */
3472
4414
  "X-Intent-Reason"?: string;
4415
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
4416
+ "X-Freeze-Override"?: boolean;
3473
4417
  };
3474
4418
  path: {
3475
4419
  org: string;
@@ -3572,6 +4516,18 @@ export interface paths {
3572
4516
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3573
4517
  };
3574
4518
  };
4519
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
4520
+ 423: {
4521
+ headers: {
4522
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4523
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4524
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4525
+ [name: string]: unknown;
4526
+ };
4527
+ content: {
4528
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4529
+ };
4530
+ };
3575
4531
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3576
4532
  429: {
3577
4533
  headers: {
@@ -3599,6 +4555,8 @@ export interface paths {
3599
4555
  header?: {
3600
4556
  /** @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. */
3601
4557
  "X-Intent-Reason"?: string;
4558
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
4559
+ "X-Freeze-Override"?: boolean;
3602
4560
  };
3603
4561
  path: {
3604
4562
  org: string;
@@ -3681,6 +4639,18 @@ export interface paths {
3681
4639
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3682
4640
  };
3683
4641
  };
4642
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
4643
+ 423: {
4644
+ headers: {
4645
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4646
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4647
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4648
+ [name: string]: unknown;
4649
+ };
4650
+ content: {
4651
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4652
+ };
4653
+ };
3684
4654
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3685
4655
  429: {
3686
4656
  headers: {
@@ -3721,6 +4691,8 @@ export interface paths {
3721
4691
  header?: {
3722
4692
  /** @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. */
3723
4693
  "X-Intent-Reason"?: string;
4694
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
4695
+ "X-Freeze-Override"?: boolean;
3724
4696
  };
3725
4697
  path: {
3726
4698
  org: string;
@@ -3808,6 +4780,18 @@ export interface paths {
3808
4780
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
3809
4781
  };
3810
4782
  };
4783
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
4784
+ 423: {
4785
+ headers: {
4786
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4787
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4788
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4789
+ [name: string]: unknown;
4790
+ };
4791
+ content: {
4792
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
4793
+ };
4794
+ };
3811
4795
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
3812
4796
  429: {
3813
4797
  headers: {
@@ -5369,7 +6353,7 @@ export interface paths {
5369
6353
  /**
5370
6354
  * Deletes a project.
5371
6355
  * @description Requires at least Member, and a change reason when any of its environments
5372
- * requires one.
6356
+ * requires one. A change freeze on any of its environments refuses it.
5373
6357
  */
5374
6358
  delete: {
5375
6359
  parameters: {
@@ -5377,6 +6361,8 @@ export interface paths {
5377
6361
  header?: {
5378
6362
  /** @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. */
5379
6363
  "X-Intent-Reason"?: string;
6364
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
6365
+ "X-Freeze-Override"?: boolean;
5380
6366
  };
5381
6367
  path: {
5382
6368
  org: string;
@@ -5456,6 +6442,18 @@ export interface paths {
5456
6442
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
5457
6443
  };
5458
6444
  };
6445
+ /** @description An environment in this project is frozen (error code change_frozen; the change_freeze object names the window, the frozen environment, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
6446
+ 423: {
6447
+ headers: {
6448
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
6449
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
6450
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
6451
+ [name: string]: unknown;
6452
+ };
6453
+ content: {
6454
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
6455
+ };
6456
+ };
5459
6457
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
5460
6458
  429: {
5461
6459
  headers: {
@@ -6007,6 +7005,8 @@ export interface paths {
6007
7005
  header?: {
6008
7006
  /** @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. */
6009
7007
  "X-Intent-Reason"?: string;
7008
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
7009
+ "X-Freeze-Override"?: boolean;
6010
7010
  };
6011
7011
  path: {
6012
7012
  org: string;
@@ -6109,6 +7109,18 @@ export interface paths {
6109
7109
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
6110
7110
  };
6111
7111
  };
7112
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
7113
+ 423: {
7114
+ headers: {
7115
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
7116
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
7117
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
7118
+ [name: string]: unknown;
7119
+ };
7120
+ content: {
7121
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
7122
+ };
7123
+ };
6112
7124
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
6113
7125
  429: {
6114
7126
  headers: {
@@ -6152,6 +7164,8 @@ export interface paths {
6152
7164
  header?: {
6153
7165
  /** @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. */
6154
7166
  "X-Intent-Reason"?: string;
7167
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
7168
+ "X-Freeze-Override"?: boolean;
6155
7169
  };
6156
7170
  path: {
6157
7171
  org: string;
@@ -6253,6 +7267,18 @@ export interface paths {
6253
7267
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
6254
7268
  };
6255
7269
  };
7270
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
7271
+ 423: {
7272
+ headers: {
7273
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
7274
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
7275
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
7276
+ [name: string]: unknown;
7277
+ };
7278
+ content: {
7279
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
7280
+ };
7281
+ };
6256
7282
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
6257
7283
  429: {
6258
7284
  headers: {
@@ -6437,6 +7463,8 @@ export interface paths {
6437
7463
  "If-Match"?: string;
6438
7464
  /** @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. */
6439
7465
  "X-Intent-Reason"?: string;
7466
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
7467
+ "X-Freeze-Override"?: boolean;
6440
7468
  };
6441
7469
  path: {
6442
7470
  org: string;
@@ -6547,6 +7575,18 @@ export interface paths {
6547
7575
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
6548
7576
  };
6549
7577
  };
7578
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
7579
+ 423: {
7580
+ headers: {
7581
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
7582
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
7583
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
7584
+ [name: string]: unknown;
7585
+ };
7586
+ content: {
7587
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
7588
+ };
7589
+ };
6550
7590
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
6551
7591
  429: {
6552
7592
  headers: {
@@ -6591,6 +7631,8 @@ export interface paths {
6591
7631
  "If-Match"?: string;
6592
7632
  /** @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. */
6593
7633
  "X-Intent-Reason"?: string;
7634
+ /** @description Owner/Admin only: `true` breaks an active change freeze for this one request; requires X-Intent-Reason. */
7635
+ "X-Freeze-Override"?: boolean;
6594
7636
  };
6595
7637
  path: {
6596
7638
  org: string;
@@ -6707,6 +7749,18 @@ export interface paths {
6707
7749
  "application/json": components["schemas"]["PublicApiErrorEnvelope"];
6708
7750
  };
6709
7751
  };
7752
+ /** @description A change freeze covers this environment (error code change_frozen; the change_freeze object names the window, when it ends and whether the caller may break it). An Owner or Admin can retry with X-Freeze-Override: true and an X-Intent-Reason. */
7753
+ 423: {
7754
+ headers: {
7755
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
7756
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
7757
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
7758
+ [name: string]: unknown;
7759
+ };
7760
+ content: {
7761
+ "application/json": components["schemas"]["PublicApiErrorEnvelope"];
7762
+ };
7763
+ };
6710
7764
  /** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
6711
7765
  429: {
6712
7766
  headers: {
@@ -8124,6 +9178,8 @@ export interface paths {
8124
9178
  /**
8125
9179
  * Lists the event types a subscription can filter on.
8126
9180
  * @description Requires Admin.
9181
+ *
9182
+ * Event types for features not enabled on the organization are omitted.
8127
9183
  */
8128
9184
  get: {
8129
9185
  parameters: {
@@ -9225,6 +10281,8 @@ export interface components {
9225
10281
  * `connection_id` identifies which SSO connection to sign in with.
9226
10282
  * `plan_limit` is present only on the `plan_limit_reached` error: which plan cap the
9227
10283
  * request would have exceeded, so a client can branch on it without parsing `message`.
10284
+ * `change_freeze` is present only on the `change_frozen` error (#4645): the change freeze that refused the
10285
+ * write, so a client can show when it ends and whether the caller may break it, without parsing `message`.
9228
10286
  * @example {
9229
10287
  * "error": "not_found",
9230
10288
  * "message": "Flag 'new-checkout-flw' was not found in project 'checkout'.",
@@ -9254,6 +10312,82 @@ export interface components {
9254
10312
  /** Format: uuid */
9255
10313
  connection_id?: string | null;
9256
10314
  plan_limit?: components["schemas"]["PublicPlanLimit"];
10315
+ change_freeze?: components["schemas"]["PublicChangeFreeze"];
10316
+ };
10317
+ /**
10318
+ * @description The freeze behind a `change_frozen` error: `id` and `name` of the window, the environment's
10319
+ * `environment_key`, `ends_at` (UTC; always present, null for an open-ended window) and whether the caller's role may
10320
+ * break it (`can_override`, with `X-Freeze-Override: true` and an `X-Intent-Reason`).
10321
+ */
10322
+ PublicChangeFreeze: {
10323
+ /** Format: uuid */
10324
+ id: string;
10325
+ name: string;
10326
+ environment_key: string;
10327
+ /** Format: date-time */
10328
+ ends_at?: string | null;
10329
+ can_override: boolean;
10330
+ };
10331
+ /**
10332
+ * @description A change freeze window. `project` is the project's key, or null for an organization-wide window.
10333
+ * An organization-wide window names its environments by key (`environmentKeys`, matched in every project);
10334
+ * a project window names them by id, and returns both `environmentIds` and the current
10335
+ * `environmentKeys` of those environments. `status` is time-based only: `Upcoming`, `Active`
10336
+ * or `Ended`. `enforcing` is true when the window is `Active` and is actually in force: it has
10337
+ * started enforcing, or the organization's plan includes change freezes. `wontStartReason` is `Plan`
10338
+ * when the window has not started enforcing and the organization's plan no longer includes change freezes, so it
10339
+ * will not enforce. `approvals` lists the scheduled changes approved to land inside the window.
10340
+ */
10341
+ PublicChangeFreezeResponse: {
10342
+ /** Format: uuid */
10343
+ id: string;
10344
+ project?: string | null;
10345
+ name: string;
10346
+ reason: string;
10347
+ allEnvironments: boolean;
10348
+ environmentKeys: string[];
10349
+ environmentIds: string[];
10350
+ /** Format: date-time */
10351
+ startsAt: string;
10352
+ /** Format: date-time */
10353
+ endsAt?: string | null;
10354
+ /** Format: date-time */
10355
+ endedAt?: string | null;
10356
+ /**
10357
+ * @description Allowed values: Hold, Fail.
10358
+ * @enum {string}
10359
+ */
10360
+ scheduledChangePolicy: "Hold" | "Fail";
10361
+ /**
10362
+ * @description Allowed values: Upcoming, Active, Ended.
10363
+ * @enum {string}
10364
+ */
10365
+ status: "Upcoming" | "Active" | "Ended";
10366
+ enforcing: boolean;
10367
+ /**
10368
+ * @description Allowed values: Plan.
10369
+ * @enum {string|null}
10370
+ */
10371
+ wontStartReason?: "Plan" | null;
10372
+ approvals: components["schemas"]["PublicFreezeApprovalResponse"][];
10373
+ createdByEmail: string;
10374
+ /** @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. */
10375
+ _actions?: {
10376
+ [key: string]: components["schemas"]["ActionCapability"];
10377
+ };
10378
+ };
10379
+ /**
10380
+ * @description A page of results plus an opaque cursor for the next page, or null when this is the last
10381
+ * page. Wire keys are frozen: `items` (already lowercase under the camelCase policy) and
10382
+ * `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
10383
+ */
10384
+ PublicChangeFreezeResponsePagedResult: {
10385
+ items: components["schemas"]["PublicChangeFreezeResponse"][];
10386
+ next_cursor?: string | null;
10387
+ /** @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. */
10388
+ _actions?: {
10389
+ [key: string]: components["schemas"]["ActionCapability"];
10390
+ };
9257
10391
  };
9258
10392
  /** @description Request-side condition group, symmetric with PublicConditionGroupResponse. */
9259
10393
  PublicConditionGroupRequest: {
@@ -9348,6 +10482,31 @@ export interface components {
9348
10482
  code: string;
9349
10483
  message: string;
9350
10484
  };
10485
+ /**
10486
+ * @description Creates a change freeze. `project` (key or id) makes it a project window; omit it for an
10487
+ * organization-wide one. Omit `startsAt` to freeze now (then `endsAt` may be omitted for an
10488
+ * open-ended freeze); a scheduled freeze needs both. Times are UTC and must carry an offset (`Z`).
10489
+ * Name the environments with `environmentKeys` (a project window accepts keys too, resolved within
10490
+ * the project) and/or `environmentIds`, or set `allEnvironments`.
10491
+ * `scheduledChangePolicy` is `Hold` (the default) or `Fail`.
10492
+ */
10493
+ PublicCreateChangeFreezeRequest: {
10494
+ name: string;
10495
+ reason: string;
10496
+ project?: string | null;
10497
+ allEnvironments?: boolean | null;
10498
+ environmentKeys?: string[] | null;
10499
+ environmentIds?: string[] | null;
10500
+ /** Format: date-time */
10501
+ startsAt?: string | null;
10502
+ /** Format: date-time */
10503
+ endsAt?: string | null;
10504
+ /**
10505
+ * @description Allowed values: Hold, Fail.
10506
+ * @enum {string|null}
10507
+ */
10508
+ scheduledChangePolicy?: "Hold" | "Fail" | null;
10509
+ };
9351
10510
  /**
9352
10511
  * @description Request body for `POST /api/v1/orgs/{org}/projects/{project}/environments`. Named
9353
10512
  * distinctly from the dashboard's own `CreateEnvironmentRequest`
@@ -10208,6 +11367,37 @@ export interface components {
10208
11367
  secret: string;
10209
11368
  warning: string;
10210
11369
  };
11370
+ /**
11371
+ * @description A scheduled change that a person approved to land inside a change freeze. `stands` is whether the approval
11372
+ * counts right now: false once the approver is no longer an active Owner or Admin, and the window then holds or fails
11373
+ * the change as if it were not approved.
11374
+ */
11375
+ PublicFreezeApprovalResponse: {
11376
+ /** Format: uuid */
11377
+ scheduledChangeId: string;
11378
+ /** Format: uuid */
11379
+ flagId: string;
11380
+ flagKey?: string | null;
11381
+ /** Format: uuid */
11382
+ environmentId: string;
11383
+ /** Format: date-time */
11384
+ scheduledAtUtc: string;
11385
+ reason: string;
11386
+ approvedByEmail: string;
11387
+ /** Format: date-time */
11388
+ approvedAt: string;
11389
+ stands: boolean;
11390
+ };
11391
+ /**
11392
+ * @description Approves one Pending scheduled change to apply inside the change freeze when it comes due, with a required
11393
+ * `reason`. The change must be in an environment the window covers. `scheduledChangeId` is required: a
11394
+ * missing or empty one is a 400 naming the field.
11395
+ */
11396
+ PublicGrantFreezeApprovalRequest: {
11397
+ /** Format: uuid */
11398
+ scheduledChangeId: string | null;
11399
+ reason: string;
11400
+ };
10211
11401
  /** @description An id with its key and name beside it, as the other v1 responses pair them. Key and name are null only for a deleted target. */
10212
11402
  PublicKeyedRef: {
10213
11403
  /** Format: uuid */
@@ -10641,6 +11831,27 @@ export interface components {
10641
11831
  PublicToggleFlagRequest: {
10642
11832
  enabled?: boolean | null;
10643
11833
  };
11834
+ /**
11835
+ * @description Edits a change freeze; a field left out is left as it was. An ended window cannot be edited, and the
11836
+ * start of an active window cannot move. Send `If-Match` with the ETag from the last read to
11837
+ * guard against a concurrent edit.
11838
+ */
11839
+ PublicUpdateChangeFreezeRequest: {
11840
+ name?: string | null;
11841
+ reason?: string | null;
11842
+ allEnvironments?: boolean | null;
11843
+ environmentKeys?: string[] | null;
11844
+ environmentIds?: string[] | null;
11845
+ /** Format: date-time */
11846
+ startsAt?: string | null;
11847
+ /** Format: date-time */
11848
+ endsAt?: string | null;
11849
+ /**
11850
+ * @description Allowed values: Hold, Fail.
11851
+ * @enum {string|null}
11852
+ */
11853
+ scheduledChangePolicy?: "Hold" | "Fail" | null;
11854
+ };
10644
11855
  /**
10645
11856
  * @description Request body for `PUT /api/v1/orgs/{org}/projects/{project}/environments/{env}`. See
10646
11857
  * PublicCreateEnvironmentRequest for why this is named distinctly from the