@featureflip/mcp 0.6.0 → 0.8.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.
- package/README.md +3 -2
- package/dist/cli.mjs +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/errors.d.ts +5 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/generated/api-types.d.ts +1578 -70
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/generated/output-schemas.json.d.ts +805 -18
- package/dist/index.mjs +1 -1
- package/dist/{org-euupmplU.js → org-40S7JIbw.js} +332 -191
- package/dist/server.d.ts.map +1 -1
- package/dist/tools/environment-comparison.d.ts +4 -0
- package/dist/tools/environment-comparison.d.ts.map +1 -0
- package/dist/tools/environments.d.ts.map +1 -1
- package/dist/tools/flag-environments.d.ts.map +1 -1
- package/dist/tools/flags.d.ts.map +1 -1
- package/dist/tools/params.d.ts +1 -0
- package/dist/tools/params.d.ts.map +1 -1
- package/dist/tools/sdk-keys.d.ts.map +1 -1
- package/dist/tools/segments.d.ts.map +1 -1
- package/dist/tools/targeting.d.ts.map +1 -1
- package/dist/tools/variations.d.ts.map +1 -1
- package/dist/tools/webhooks.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -275,8 +275,10 @@ export interface paths {
|
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
/**
|
|
278
|
-
* Updates an environment's name/color/sort order.
|
|
278
|
+
* Updates an environment's name/color/sort order and critical settings.
|
|
279
279
|
* @description Requires at least Member.
|
|
280
|
+
* Turning `requireChangeReason` or `requireConfirmation` off requires Admin or Owner (403
|
|
281
|
+
* otherwise) and a change reason (422 otherwise); turning either on does not.
|
|
280
282
|
*/
|
|
281
283
|
put: {
|
|
282
284
|
parameters: {
|
|
@@ -284,6 +286,8 @@ export interface paths {
|
|
|
284
286
|
header?: {
|
|
285
287
|
/** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
|
|
286
288
|
"If-Match"?: string;
|
|
289
|
+
/** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
|
|
290
|
+
"X-Intent-Reason"?: string;
|
|
287
291
|
};
|
|
288
292
|
path: {
|
|
289
293
|
org: string;
|
|
@@ -360,6 +364,18 @@ export interface paths {
|
|
|
360
364
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
361
365
|
};
|
|
362
366
|
};
|
|
367
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
368
|
+
422: {
|
|
369
|
+
headers: {
|
|
370
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
371
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
372
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
373
|
+
[name: string]: unknown;
|
|
374
|
+
};
|
|
375
|
+
content: {
|
|
376
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
377
|
+
};
|
|
378
|
+
};
|
|
363
379
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
364
380
|
429: {
|
|
365
381
|
headers: {
|
|
@@ -379,14 +395,18 @@ export interface paths {
|
|
|
379
395
|
post?: never;
|
|
380
396
|
/**
|
|
381
397
|
* Deletes an environment.
|
|
382
|
-
* @description Requires at least Member
|
|
398
|
+
* @description Requires at least Member, and a change reason when the environment requires
|
|
399
|
+
* one. Deleting a project's last environment
|
|
383
400
|
* throws the existing `LAST_ENVIRONMENT`ValidationException, which the
|
|
384
401
|
* exception filter maps to a 400 `validation_failed` envelope.
|
|
385
402
|
*/
|
|
386
403
|
delete: {
|
|
387
404
|
parameters: {
|
|
388
405
|
query?: never;
|
|
389
|
-
header?:
|
|
406
|
+
header?: {
|
|
407
|
+
/** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
|
|
408
|
+
"X-Intent-Reason"?: string;
|
|
409
|
+
};
|
|
390
410
|
path: {
|
|
391
411
|
org: string;
|
|
392
412
|
project: string;
|
|
@@ -454,6 +474,18 @@ export interface paths {
|
|
|
454
474
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
455
475
|
};
|
|
456
476
|
};
|
|
477
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
478
|
+
422: {
|
|
479
|
+
headers: {
|
|
480
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
481
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
482
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
483
|
+
[name: string]: unknown;
|
|
484
|
+
};
|
|
485
|
+
content: {
|
|
486
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
487
|
+
};
|
|
488
|
+
};
|
|
457
489
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
458
490
|
429: {
|
|
459
491
|
headers: {
|
|
@@ -677,6 +709,107 @@ export interface paths {
|
|
|
677
709
|
patch?: never;
|
|
678
710
|
trace?: never;
|
|
679
711
|
};
|
|
712
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/compare": {
|
|
713
|
+
parameters: {
|
|
714
|
+
query?: never;
|
|
715
|
+
header?: never;
|
|
716
|
+
path?: never;
|
|
717
|
+
cookie?: never;
|
|
718
|
+
};
|
|
719
|
+
/**
|
|
720
|
+
* Compares the resolved flag's configuration between two environments (`base` and `other`, key or id), side by side: each side carries the flag's environment config and targeting rules, and `ruleHasMatchInOther` marks per rule whether the other environment has an equal one.
|
|
721
|
+
* @description A side is null where
|
|
722
|
+
* the flag has no configuration. Open to any role. Routed as `{flag}/compare` so a flag keyed
|
|
723
|
+
* `compare` stays addressable.
|
|
724
|
+
*/
|
|
725
|
+
get: {
|
|
726
|
+
parameters: {
|
|
727
|
+
query?: {
|
|
728
|
+
base?: string;
|
|
729
|
+
other?: string;
|
|
730
|
+
};
|
|
731
|
+
header?: never;
|
|
732
|
+
path: {
|
|
733
|
+
org: string;
|
|
734
|
+
project: string;
|
|
735
|
+
flag: string;
|
|
736
|
+
};
|
|
737
|
+
cookie?: never;
|
|
738
|
+
};
|
|
739
|
+
requestBody?: never;
|
|
740
|
+
responses: {
|
|
741
|
+
/** @description OK */
|
|
742
|
+
200: {
|
|
743
|
+
headers: {
|
|
744
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
745
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
746
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
747
|
+
[name: string]: unknown;
|
|
748
|
+
};
|
|
749
|
+
content: {
|
|
750
|
+
"application/json": components["schemas"]["PublicFlagComparison"];
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
/** @description Bad Request */
|
|
754
|
+
400: {
|
|
755
|
+
headers: {
|
|
756
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
757
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
758
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
759
|
+
[name: string]: unknown;
|
|
760
|
+
};
|
|
761
|
+
content: {
|
|
762
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
766
|
+
401: {
|
|
767
|
+
headers: {
|
|
768
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
769
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
770
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
771
|
+
[name: string]: unknown;
|
|
772
|
+
};
|
|
773
|
+
content: {
|
|
774
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
/** @description Not Found */
|
|
778
|
+
404: {
|
|
779
|
+
headers: {
|
|
780
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
781
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
782
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
783
|
+
[name: string]: unknown;
|
|
784
|
+
};
|
|
785
|
+
content: {
|
|
786
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
790
|
+
429: {
|
|
791
|
+
headers: {
|
|
792
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
793
|
+
"Retry-After"?: number;
|
|
794
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
795
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
796
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
797
|
+
[name: string]: unknown;
|
|
798
|
+
};
|
|
799
|
+
content: {
|
|
800
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
put?: never;
|
|
806
|
+
post?: never;
|
|
807
|
+
delete?: never;
|
|
808
|
+
options?: never;
|
|
809
|
+
head?: never;
|
|
810
|
+
patch?: never;
|
|
811
|
+
trace?: never;
|
|
812
|
+
};
|
|
680
813
|
"/api/v1/orgs/{org}/projects/{project}/flags/removal-candidates": {
|
|
681
814
|
parameters: {
|
|
682
815
|
query?: never;
|
|
@@ -868,7 +1001,8 @@ export interface paths {
|
|
|
868
1001
|
};
|
|
869
1002
|
/**
|
|
870
1003
|
* Updates a flag's name/description/tags/client-side visibility.
|
|
871
|
-
* @description Requires at least Member.
|
|
1004
|
+
* @description Requires at least Member. Changing
|
|
1005
|
+
* client-side visibility needs a change reason when any environment of the project requires one.
|
|
872
1006
|
* Key and type are immutable via this endpoint (mirrors UpdateFeatureFlagCommand,
|
|
873
1007
|
* which carries no `Key`/`Type`).
|
|
874
1008
|
*/
|
|
@@ -878,6 +1012,8 @@ export interface paths {
|
|
|
878
1012
|
header?: {
|
|
879
1013
|
/** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
|
|
880
1014
|
"If-Match"?: string;
|
|
1015
|
+
/** @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. */
|
|
1016
|
+
"X-Intent-Reason"?: string;
|
|
881
1017
|
};
|
|
882
1018
|
path: {
|
|
883
1019
|
org: string;
|
|
@@ -954,6 +1090,18 @@ export interface paths {
|
|
|
954
1090
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
955
1091
|
};
|
|
956
1092
|
};
|
|
1093
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
1094
|
+
422: {
|
|
1095
|
+
headers: {
|
|
1096
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
1097
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
1098
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
1099
|
+
[name: string]: unknown;
|
|
1100
|
+
};
|
|
1101
|
+
content: {
|
|
1102
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
1103
|
+
};
|
|
1104
|
+
};
|
|
957
1105
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
958
1106
|
429: {
|
|
959
1107
|
headers: {
|
|
@@ -981,7 +1129,10 @@ export interface paths {
|
|
|
981
1129
|
delete: {
|
|
982
1130
|
parameters: {
|
|
983
1131
|
query?: never;
|
|
984
|
-
header?:
|
|
1132
|
+
header?: {
|
|
1133
|
+
/** @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. */
|
|
1134
|
+
"X-Intent-Reason"?: string;
|
|
1135
|
+
};
|
|
985
1136
|
path: {
|
|
986
1137
|
org: string;
|
|
987
1138
|
project: string;
|
|
@@ -1049,6 +1200,18 @@ export interface paths {
|
|
|
1049
1200
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
1050
1201
|
};
|
|
1051
1202
|
};
|
|
1203
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
1204
|
+
422: {
|
|
1205
|
+
headers: {
|
|
1206
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
1207
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
1208
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
1209
|
+
[name: string]: unknown;
|
|
1210
|
+
};
|
|
1211
|
+
content: {
|
|
1212
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1052
1215
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
1053
1216
|
429: {
|
|
1054
1217
|
headers: {
|
|
@@ -1290,8 +1453,8 @@ export interface paths {
|
|
|
1290
1453
|
/**
|
|
1291
1454
|
* Assigns the flag's owner by email.
|
|
1292
1455
|
* @description Requires at least Member. The email must belong to an
|
|
1293
|
-
* active member of the organization (400 `OWNER_NOT_MEMBER`) and the
|
|
1294
|
-
* must
|
|
1456
|
+
* active member of the organization (400 `OWNER_NOT_MEMBER`), and the organization's plan
|
|
1457
|
+
* must include flag owners, Pro and above (400 `PLAN_FEATURE_UNAVAILABLE`).
|
|
1295
1458
|
*/
|
|
1296
1459
|
put: {
|
|
1297
1460
|
parameters: {
|
|
@@ -1389,8 +1552,8 @@ export interface paths {
|
|
|
1389
1552
|
post?: never;
|
|
1390
1553
|
/**
|
|
1391
1554
|
* Leaves the flag unowned.
|
|
1392
|
-
* @description Requires at least Member. Always allowed,
|
|
1393
|
-
*
|
|
1555
|
+
* @description Requires at least Member. Always allowed, including on a
|
|
1556
|
+
* plan without flag owners.
|
|
1394
1557
|
*/
|
|
1395
1558
|
delete: {
|
|
1396
1559
|
parameters: {
|
|
@@ -1909,7 +2072,10 @@ export interface paths {
|
|
|
1909
2072
|
*/
|
|
1910
2073
|
force?: boolean;
|
|
1911
2074
|
};
|
|
1912
|
-
header?:
|
|
2075
|
+
header?: {
|
|
2076
|
+
/** @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. */
|
|
2077
|
+
"X-Intent-Reason"?: string;
|
|
2078
|
+
};
|
|
1913
2079
|
path: {
|
|
1914
2080
|
org: string;
|
|
1915
2081
|
project: string;
|
|
@@ -1977,6 +2143,18 @@ export interface paths {
|
|
|
1977
2143
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
1978
2144
|
};
|
|
1979
2145
|
};
|
|
2146
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
2147
|
+
422: {
|
|
2148
|
+
headers: {
|
|
2149
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2150
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2151
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2152
|
+
[name: string]: unknown;
|
|
2153
|
+
};
|
|
2154
|
+
content: {
|
|
2155
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2156
|
+
};
|
|
2157
|
+
};
|
|
1980
2158
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
1981
2159
|
429: {
|
|
1982
2160
|
headers: {
|
|
@@ -2017,7 +2195,10 @@ export interface paths {
|
|
|
2017
2195
|
post: {
|
|
2018
2196
|
parameters: {
|
|
2019
2197
|
query?: never;
|
|
2020
|
-
header?:
|
|
2198
|
+
header?: {
|
|
2199
|
+
/** @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. */
|
|
2200
|
+
"X-Intent-Reason"?: string;
|
|
2201
|
+
};
|
|
2021
2202
|
path: {
|
|
2022
2203
|
org: string;
|
|
2023
2204
|
project: string;
|
|
@@ -2085,6 +2266,18 @@ export interface paths {
|
|
|
2085
2266
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2086
2267
|
};
|
|
2087
2268
|
};
|
|
2269
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
2270
|
+
422: {
|
|
2271
|
+
headers: {
|
|
2272
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2273
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2274
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2275
|
+
[name: string]: unknown;
|
|
2276
|
+
};
|
|
2277
|
+
content: {
|
|
2278
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2279
|
+
};
|
|
2280
|
+
};
|
|
2088
2281
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
2089
2282
|
429: {
|
|
2090
2283
|
headers: {
|
|
@@ -2297,6 +2490,8 @@ export interface paths {
|
|
|
2297
2490
|
header?: {
|
|
2298
2491
|
/** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
|
|
2299
2492
|
"If-Match"?: string;
|
|
2493
|
+
/** @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
|
+
"X-Intent-Reason"?: string;
|
|
2300
2495
|
};
|
|
2301
2496
|
path: {
|
|
2302
2497
|
org: string;
|
|
@@ -2386,6 +2581,18 @@ export interface paths {
|
|
|
2386
2581
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2387
2582
|
};
|
|
2388
2583
|
};
|
|
2584
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
2585
|
+
422: {
|
|
2586
|
+
headers: {
|
|
2587
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2588
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2589
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2590
|
+
[name: string]: unknown;
|
|
2591
|
+
};
|
|
2592
|
+
content: {
|
|
2593
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2389
2596
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
2390
2597
|
429: {
|
|
2391
2598
|
headers: {
|
|
@@ -2409,7 +2616,7 @@ export interface paths {
|
|
|
2409
2616
|
patch?: never;
|
|
2410
2617
|
trace?: never;
|
|
2411
2618
|
};
|
|
2412
|
-
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/
|
|
2619
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/copy": {
|
|
2413
2620
|
parameters: {
|
|
2414
2621
|
query?: never;
|
|
2415
2622
|
header?: never;
|
|
@@ -2419,13 +2626,20 @@ export interface paths {
|
|
|
2419
2626
|
get?: never;
|
|
2420
2627
|
put?: never;
|
|
2421
2628
|
/**
|
|
2422
|
-
*
|
|
2423
|
-
* @description
|
|
2629
|
+
* Copies the resolved flag's targeting (default variation, strategy, rules, prerequisites, and with `includeState` the on/off state) from `source` (key or id) into this environment, all or nothing.
|
|
2630
|
+
* @description With `dryRun` it only previews, ignoring the ETags and needing neither a change reason nor a writable
|
|
2631
|
+
* organization. Both return what changed plus `sourceETag`/`targetETag`; an apply that sends
|
|
2632
|
+
* `expectedSourceETag`/`expectedTargetETag` from the preview is refused with 412
|
|
2633
|
+
* `precondition_failed` if either environment changed since. Requires at least Member and the plan's
|
|
2634
|
+
* copy feature (400 `PLAN_FEATURE_UNAVAILABLE`).
|
|
2424
2635
|
*/
|
|
2425
2636
|
post: {
|
|
2426
2637
|
parameters: {
|
|
2427
2638
|
query?: never;
|
|
2428
|
-
header?:
|
|
2639
|
+
header?: {
|
|
2640
|
+
/** @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
|
+
"X-Intent-Reason"?: string;
|
|
2642
|
+
};
|
|
2429
2643
|
path: {
|
|
2430
2644
|
org: string;
|
|
2431
2645
|
project: string;
|
|
@@ -2436,21 +2650,23 @@ export interface paths {
|
|
|
2436
2650
|
};
|
|
2437
2651
|
requestBody?: {
|
|
2438
2652
|
content: {
|
|
2439
|
-
"application/json": components["schemas"]["
|
|
2440
|
-
"text/json": components["schemas"]["
|
|
2441
|
-
"application/*+json": components["schemas"]["
|
|
2653
|
+
"application/json": components["schemas"]["PublicCopyFlagConfigRequest"];
|
|
2654
|
+
"text/json": components["schemas"]["PublicCopyFlagConfigRequest"];
|
|
2655
|
+
"application/*+json": components["schemas"]["PublicCopyFlagConfigRequest"];
|
|
2442
2656
|
};
|
|
2443
2657
|
};
|
|
2444
2658
|
responses: {
|
|
2445
|
-
/** @description
|
|
2446
|
-
|
|
2659
|
+
/** @description OK */
|
|
2660
|
+
200: {
|
|
2447
2661
|
headers: {
|
|
2448
2662
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2449
2663
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2450
2664
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2451
2665
|
[name: string]: unknown;
|
|
2452
2666
|
};
|
|
2453
|
-
content
|
|
2667
|
+
content: {
|
|
2668
|
+
"application/json": components["schemas"]["PublicCopyResult"];
|
|
2669
|
+
};
|
|
2454
2670
|
};
|
|
2455
2671
|
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
2456
2672
|
400: {
|
|
@@ -2500,6 +2716,30 @@ export interface paths {
|
|
|
2500
2716
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2501
2717
|
};
|
|
2502
2718
|
};
|
|
2719
|
+
/** @description Precondition Failed */
|
|
2720
|
+
412: {
|
|
2721
|
+
headers: {
|
|
2722
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2723
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2724
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2725
|
+
[name: string]: unknown;
|
|
2726
|
+
};
|
|
2727
|
+
content: {
|
|
2728
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2729
|
+
};
|
|
2730
|
+
};
|
|
2731
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
2732
|
+
422: {
|
|
2733
|
+
headers: {
|
|
2734
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2735
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2736
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2737
|
+
[name: string]: unknown;
|
|
2738
|
+
};
|
|
2739
|
+
content: {
|
|
2740
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2741
|
+
};
|
|
2742
|
+
};
|
|
2503
2743
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
2504
2744
|
429: {
|
|
2505
2745
|
headers: {
|
|
@@ -2522,30 +2762,26 @@ export interface paths {
|
|
|
2522
2762
|
patch?: never;
|
|
2523
2763
|
trace?: never;
|
|
2524
2764
|
};
|
|
2525
|
-
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/
|
|
2765
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/toggle": {
|
|
2526
2766
|
parameters: {
|
|
2527
2767
|
query?: never;
|
|
2528
2768
|
header?: never;
|
|
2529
2769
|
path?: never;
|
|
2530
2770
|
cookie?: never;
|
|
2531
2771
|
};
|
|
2772
|
+
get?: never;
|
|
2773
|
+
put?: never;
|
|
2532
2774
|
/**
|
|
2533
|
-
*
|
|
2534
|
-
* @description
|
|
2535
|
-
* starting no earlier than the flag's creation day. These are evaluation counts, not unique
|
|
2536
|
-
* users. They come from SDK-reported events, so an environment whose SDKs report none reads
|
|
2537
|
-
* zero: no evaluations reported, not necessarily no traffic. Sources are ordered live rules in
|
|
2538
|
-
* evaluation order, then deleted rules, then fallthrough, off, prerequisite, error, notFound
|
|
2539
|
-
* and unknown. On a percentage-rollout rule, `rollout.flagged` is true when the served
|
|
2540
|
-
* split is statistically off the configured weights (p < 0.001 and at least 2 percentage
|
|
2541
|
-
* points off for some variation).
|
|
2775
|
+
* Enables or disables the resolved flag in a resolved environment.
|
|
2776
|
+
* @description Requires at least Member.
|
|
2542
2777
|
*/
|
|
2543
|
-
|
|
2778
|
+
post: {
|
|
2544
2779
|
parameters: {
|
|
2545
|
-
query?:
|
|
2546
|
-
|
|
2780
|
+
query?: never;
|
|
2781
|
+
header?: {
|
|
2782
|
+
/** @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
|
+
"X-Intent-Reason"?: string;
|
|
2547
2784
|
};
|
|
2548
|
-
header?: never;
|
|
2549
2785
|
path: {
|
|
2550
2786
|
org: string;
|
|
2551
2787
|
project: string;
|
|
@@ -2554,21 +2790,25 @@ export interface paths {
|
|
|
2554
2790
|
};
|
|
2555
2791
|
cookie?: never;
|
|
2556
2792
|
};
|
|
2557
|
-
requestBody?:
|
|
2793
|
+
requestBody?: {
|
|
2794
|
+
content: {
|
|
2795
|
+
"application/json": components["schemas"]["PublicToggleFlagRequest"];
|
|
2796
|
+
"text/json": components["schemas"]["PublicToggleFlagRequest"];
|
|
2797
|
+
"application/*+json": components["schemas"]["PublicToggleFlagRequest"];
|
|
2798
|
+
};
|
|
2799
|
+
};
|
|
2558
2800
|
responses: {
|
|
2559
|
-
/** @description
|
|
2560
|
-
|
|
2801
|
+
/** @description No Content */
|
|
2802
|
+
204: {
|
|
2561
2803
|
headers: {
|
|
2562
2804
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2563
2805
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2564
2806
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2565
2807
|
[name: string]: unknown;
|
|
2566
2808
|
};
|
|
2567
|
-
content
|
|
2568
|
-
"application/json": components["schemas"]["PublicFlagEvaluationsResponse"];
|
|
2569
|
-
};
|
|
2809
|
+
content?: never;
|
|
2570
2810
|
};
|
|
2571
|
-
/** @description
|
|
2811
|
+
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
2572
2812
|
400: {
|
|
2573
2813
|
headers: {
|
|
2574
2814
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
@@ -2592,8 +2832,136 @@ export interface paths {
|
|
|
2592
2832
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2593
2833
|
};
|
|
2594
2834
|
};
|
|
2595
|
-
/** @description
|
|
2596
|
-
|
|
2835
|
+
/** @description Forbidden */
|
|
2836
|
+
403: {
|
|
2837
|
+
headers: {
|
|
2838
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2839
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2840
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2841
|
+
[name: string]: unknown;
|
|
2842
|
+
};
|
|
2843
|
+
content: {
|
|
2844
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2845
|
+
};
|
|
2846
|
+
};
|
|
2847
|
+
/** @description Not Found */
|
|
2848
|
+
404: {
|
|
2849
|
+
headers: {
|
|
2850
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2851
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2852
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2853
|
+
[name: string]: unknown;
|
|
2854
|
+
};
|
|
2855
|
+
content: {
|
|
2856
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2857
|
+
};
|
|
2858
|
+
};
|
|
2859
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
2860
|
+
422: {
|
|
2861
|
+
headers: {
|
|
2862
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2863
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2864
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2865
|
+
[name: string]: unknown;
|
|
2866
|
+
};
|
|
2867
|
+
content: {
|
|
2868
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2869
|
+
};
|
|
2870
|
+
};
|
|
2871
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
2872
|
+
429: {
|
|
2873
|
+
headers: {
|
|
2874
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
2875
|
+
"Retry-After"?: number;
|
|
2876
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2877
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2878
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2879
|
+
[name: string]: unknown;
|
|
2880
|
+
};
|
|
2881
|
+
content: {
|
|
2882
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2883
|
+
};
|
|
2884
|
+
};
|
|
2885
|
+
};
|
|
2886
|
+
};
|
|
2887
|
+
delete?: never;
|
|
2888
|
+
options?: never;
|
|
2889
|
+
head?: never;
|
|
2890
|
+
patch?: never;
|
|
2891
|
+
trace?: never;
|
|
2892
|
+
};
|
|
2893
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/evaluations": {
|
|
2894
|
+
parameters: {
|
|
2895
|
+
query?: never;
|
|
2896
|
+
header?: never;
|
|
2897
|
+
path?: never;
|
|
2898
|
+
cookie?: never;
|
|
2899
|
+
};
|
|
2900
|
+
/**
|
|
2901
|
+
* Gets evaluation counts for the flag in one environment.
|
|
2902
|
+
* @description Counts every evaluation over the last `days` UTC days (7, 30 or 90; default 7),
|
|
2903
|
+
* starting no earlier than the flag's creation day. These are evaluation counts, not unique
|
|
2904
|
+
* users. They come from SDK-reported events, so an environment whose SDKs report none reads
|
|
2905
|
+
* zero: no evaluations reported, not necessarily no traffic. Sources are ordered live rules in
|
|
2906
|
+
* evaluation order, then deleted rules, then fallthrough, off, prerequisite, error, notFound
|
|
2907
|
+
* and unknown. On a percentage-rollout rule, `rollout.flagged` is true when the served
|
|
2908
|
+
* split is statistically off the configured weights (p < 0.001 and at least 2 percentage
|
|
2909
|
+
* points off for some variation).
|
|
2910
|
+
*/
|
|
2911
|
+
get: {
|
|
2912
|
+
parameters: {
|
|
2913
|
+
query?: {
|
|
2914
|
+
days?: 7 | 30 | 90;
|
|
2915
|
+
};
|
|
2916
|
+
header?: never;
|
|
2917
|
+
path: {
|
|
2918
|
+
org: string;
|
|
2919
|
+
project: string;
|
|
2920
|
+
flag: string;
|
|
2921
|
+
env: string;
|
|
2922
|
+
};
|
|
2923
|
+
cookie?: never;
|
|
2924
|
+
};
|
|
2925
|
+
requestBody?: never;
|
|
2926
|
+
responses: {
|
|
2927
|
+
/** @description OK */
|
|
2928
|
+
200: {
|
|
2929
|
+
headers: {
|
|
2930
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2931
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2932
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2933
|
+
[name: string]: unknown;
|
|
2934
|
+
};
|
|
2935
|
+
content: {
|
|
2936
|
+
"application/json": components["schemas"]["PublicFlagEvaluationsResponse"];
|
|
2937
|
+
};
|
|
2938
|
+
};
|
|
2939
|
+
/** @description Bad Request */
|
|
2940
|
+
400: {
|
|
2941
|
+
headers: {
|
|
2942
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2943
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2944
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2945
|
+
[name: string]: unknown;
|
|
2946
|
+
};
|
|
2947
|
+
content: {
|
|
2948
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2949
|
+
};
|
|
2950
|
+
};
|
|
2951
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
2952
|
+
401: {
|
|
2953
|
+
headers: {
|
|
2954
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2955
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2956
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2957
|
+
[name: string]: unknown;
|
|
2958
|
+
};
|
|
2959
|
+
content: {
|
|
2960
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2961
|
+
};
|
|
2962
|
+
};
|
|
2963
|
+
/** @description Not Found */
|
|
2964
|
+
404: {
|
|
2597
2965
|
headers: {
|
|
2598
2966
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2599
2967
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
@@ -2739,6 +3107,8 @@ export interface paths {
|
|
|
2739
3107
|
header?: {
|
|
2740
3108
|
/** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
|
|
2741
3109
|
"If-Match"?: string;
|
|
3110
|
+
/** @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
|
+
"X-Intent-Reason"?: string;
|
|
2742
3112
|
};
|
|
2743
3113
|
path: {
|
|
2744
3114
|
org: string;
|
|
@@ -2828,6 +3198,18 @@ export interface paths {
|
|
|
2828
3198
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2829
3199
|
};
|
|
2830
3200
|
};
|
|
3201
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
3202
|
+
422: {
|
|
3203
|
+
headers: {
|
|
3204
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3205
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3206
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3207
|
+
[name: string]: unknown;
|
|
3208
|
+
};
|
|
3209
|
+
content: {
|
|
3210
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3211
|
+
};
|
|
3212
|
+
};
|
|
2831
3213
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
2832
3214
|
429: {
|
|
2833
3215
|
headers: {
|
|
@@ -2870,7 +3252,10 @@ export interface paths {
|
|
|
2870
3252
|
post: {
|
|
2871
3253
|
parameters: {
|
|
2872
3254
|
query?: never;
|
|
2873
|
-
header?:
|
|
3255
|
+
header?: {
|
|
3256
|
+
/** @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
|
+
"X-Intent-Reason"?: string;
|
|
3258
|
+
};
|
|
2874
3259
|
path: {
|
|
2875
3260
|
org: string;
|
|
2876
3261
|
project: string;
|
|
@@ -2947,6 +3332,18 @@ export interface paths {
|
|
|
2947
3332
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2948
3333
|
};
|
|
2949
3334
|
};
|
|
3335
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
3336
|
+
422: {
|
|
3337
|
+
headers: {
|
|
3338
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3339
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3340
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3341
|
+
[name: string]: unknown;
|
|
3342
|
+
};
|
|
3343
|
+
content: {
|
|
3344
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3345
|
+
};
|
|
3346
|
+
};
|
|
2950
3347
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
2951
3348
|
429: {
|
|
2952
3349
|
headers: {
|
|
@@ -3071,6 +3468,8 @@ export interface paths {
|
|
|
3071
3468
|
header?: {
|
|
3072
3469
|
/** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
|
|
3073
3470
|
"If-Match"?: string;
|
|
3471
|
+
/** @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
|
+
"X-Intent-Reason"?: string;
|
|
3074
3473
|
};
|
|
3075
3474
|
path: {
|
|
3076
3475
|
org: string;
|
|
@@ -3161,6 +3560,18 @@ export interface paths {
|
|
|
3161
3560
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3162
3561
|
};
|
|
3163
3562
|
};
|
|
3563
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
3564
|
+
422: {
|
|
3565
|
+
headers: {
|
|
3566
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3567
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3568
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3569
|
+
[name: string]: unknown;
|
|
3570
|
+
};
|
|
3571
|
+
content: {
|
|
3572
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3573
|
+
};
|
|
3574
|
+
};
|
|
3164
3575
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
3165
3576
|
429: {
|
|
3166
3577
|
headers: {
|
|
@@ -3185,7 +3596,10 @@ export interface paths {
|
|
|
3185
3596
|
delete: {
|
|
3186
3597
|
parameters: {
|
|
3187
3598
|
query?: never;
|
|
3188
|
-
header?:
|
|
3599
|
+
header?: {
|
|
3600
|
+
/** @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
|
+
"X-Intent-Reason"?: string;
|
|
3602
|
+
};
|
|
3189
3603
|
path: {
|
|
3190
3604
|
org: string;
|
|
3191
3605
|
project: string;
|
|
@@ -3255,6 +3669,18 @@ export interface paths {
|
|
|
3255
3669
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3256
3670
|
};
|
|
3257
3671
|
};
|
|
3672
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
3673
|
+
422: {
|
|
3674
|
+
headers: {
|
|
3675
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3676
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3677
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3678
|
+
[name: string]: unknown;
|
|
3679
|
+
};
|
|
3680
|
+
content: {
|
|
3681
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3682
|
+
};
|
|
3683
|
+
};
|
|
3258
3684
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
3259
3685
|
429: {
|
|
3260
3686
|
headers: {
|
|
@@ -3292,7 +3718,10 @@ export interface paths {
|
|
|
3292
3718
|
put: {
|
|
3293
3719
|
parameters: {
|
|
3294
3720
|
query?: never;
|
|
3295
|
-
header?:
|
|
3721
|
+
header?: {
|
|
3722
|
+
/** @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
|
+
"X-Intent-Reason"?: string;
|
|
3724
|
+
};
|
|
3296
3725
|
path: {
|
|
3297
3726
|
org: string;
|
|
3298
3727
|
project: string;
|
|
@@ -3367,6 +3796,18 @@ export interface paths {
|
|
|
3367
3796
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3368
3797
|
};
|
|
3369
3798
|
};
|
|
3799
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
3800
|
+
422: {
|
|
3801
|
+
headers: {
|
|
3802
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3803
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3804
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3805
|
+
[name: string]: unknown;
|
|
3806
|
+
};
|
|
3807
|
+
content: {
|
|
3808
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3809
|
+
};
|
|
3810
|
+
};
|
|
3370
3811
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
3371
3812
|
429: {
|
|
3372
3813
|
headers: {
|
|
@@ -3408,7 +3849,10 @@ export interface paths {
|
|
|
3408
3849
|
post: {
|
|
3409
3850
|
parameters: {
|
|
3410
3851
|
query?: never;
|
|
3411
|
-
header?:
|
|
3852
|
+
header?: {
|
|
3853
|
+
/** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
|
|
3854
|
+
"X-Intent-Reason"?: string;
|
|
3855
|
+
};
|
|
3412
3856
|
path: {
|
|
3413
3857
|
org: string;
|
|
3414
3858
|
project: string;
|
|
@@ -3484,6 +3928,18 @@ export interface paths {
|
|
|
3484
3928
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3485
3929
|
};
|
|
3486
3930
|
};
|
|
3931
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
3932
|
+
422: {
|
|
3933
|
+
headers: {
|
|
3934
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3935
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3936
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3937
|
+
[name: string]: unknown;
|
|
3938
|
+
};
|
|
3939
|
+
content: {
|
|
3940
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3487
3943
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
3488
3944
|
429: {
|
|
3489
3945
|
headers: {
|
|
@@ -3521,7 +3977,10 @@ export interface paths {
|
|
|
3521
3977
|
put: {
|
|
3522
3978
|
parameters: {
|
|
3523
3979
|
query?: never;
|
|
3524
|
-
header?:
|
|
3980
|
+
header?: {
|
|
3981
|
+
/** @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. */
|
|
3982
|
+
"X-Intent-Reason"?: string;
|
|
3983
|
+
};
|
|
3525
3984
|
path: {
|
|
3526
3985
|
org: string;
|
|
3527
3986
|
project: string;
|
|
@@ -3596,6 +4055,18 @@ export interface paths {
|
|
|
3596
4055
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3597
4056
|
};
|
|
3598
4057
|
};
|
|
4058
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
4059
|
+
422: {
|
|
4060
|
+
headers: {
|
|
4061
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4062
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4063
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4064
|
+
[name: string]: unknown;
|
|
4065
|
+
};
|
|
4066
|
+
content: {
|
|
4067
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4068
|
+
};
|
|
4069
|
+
};
|
|
3599
4070
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
3600
4071
|
429: {
|
|
3601
4072
|
headers: {
|
|
@@ -3625,7 +4096,10 @@ export interface paths {
|
|
|
3625
4096
|
delete: {
|
|
3626
4097
|
parameters: {
|
|
3627
4098
|
query?: never;
|
|
3628
|
-
header?:
|
|
4099
|
+
header?: {
|
|
4100
|
+
/** @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. */
|
|
4101
|
+
"X-Intent-Reason"?: string;
|
|
4102
|
+
};
|
|
3629
4103
|
path: {
|
|
3630
4104
|
org: string;
|
|
3631
4105
|
project: string;
|
|
@@ -3694,6 +4168,18 @@ export interface paths {
|
|
|
3694
4168
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3695
4169
|
};
|
|
3696
4170
|
};
|
|
4171
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
4172
|
+
422: {
|
|
4173
|
+
headers: {
|
|
4174
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4175
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4176
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4177
|
+
[name: string]: unknown;
|
|
4178
|
+
};
|
|
4179
|
+
content: {
|
|
4180
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4181
|
+
};
|
|
4182
|
+
};
|
|
3697
4183
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
3698
4184
|
429: {
|
|
3699
4185
|
headers: {
|
|
@@ -3715,6 +4201,635 @@ export interface paths {
|
|
|
3715
4201
|
patch?: never;
|
|
3716
4202
|
trace?: never;
|
|
3717
4203
|
};
|
|
4204
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/triggers": {
|
|
4205
|
+
parameters: {
|
|
4206
|
+
query?: never;
|
|
4207
|
+
header?: never;
|
|
4208
|
+
path?: never;
|
|
4209
|
+
cookie?: never;
|
|
4210
|
+
};
|
|
4211
|
+
/** Lists the flag's triggers in the environment, cursor-paginated. */
|
|
4212
|
+
get: {
|
|
4213
|
+
parameters: {
|
|
4214
|
+
query?: {
|
|
4215
|
+
limit?: number;
|
|
4216
|
+
cursor?: string;
|
|
4217
|
+
};
|
|
4218
|
+
header?: never;
|
|
4219
|
+
path: {
|
|
4220
|
+
org: string;
|
|
4221
|
+
project: string;
|
|
4222
|
+
flag: string;
|
|
4223
|
+
env: string;
|
|
4224
|
+
};
|
|
4225
|
+
cookie?: never;
|
|
4226
|
+
};
|
|
4227
|
+
requestBody?: never;
|
|
4228
|
+
responses: {
|
|
4229
|
+
/** @description OK */
|
|
4230
|
+
200: {
|
|
4231
|
+
headers: {
|
|
4232
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4233
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4234
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4235
|
+
[name: string]: unknown;
|
|
4236
|
+
};
|
|
4237
|
+
content: {
|
|
4238
|
+
"application/json": components["schemas"]["PublicFlagTriggerResponsePagedResult"];
|
|
4239
|
+
};
|
|
4240
|
+
};
|
|
4241
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
4242
|
+
401: {
|
|
4243
|
+
headers: {
|
|
4244
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4245
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4246
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4247
|
+
[name: string]: unknown;
|
|
4248
|
+
};
|
|
4249
|
+
content: {
|
|
4250
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4251
|
+
};
|
|
4252
|
+
};
|
|
4253
|
+
/** @description Not Found */
|
|
4254
|
+
404: {
|
|
4255
|
+
headers: {
|
|
4256
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4257
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4258
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4259
|
+
[name: string]: unknown;
|
|
4260
|
+
};
|
|
4261
|
+
content: {
|
|
4262
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4263
|
+
};
|
|
4264
|
+
};
|
|
4265
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
4266
|
+
429: {
|
|
4267
|
+
headers: {
|
|
4268
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
4269
|
+
"Retry-After"?: number;
|
|
4270
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4271
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4272
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4273
|
+
[name: string]: unknown;
|
|
4274
|
+
};
|
|
4275
|
+
content: {
|
|
4276
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4277
|
+
};
|
|
4278
|
+
};
|
|
4279
|
+
};
|
|
4280
|
+
};
|
|
4281
|
+
put?: never;
|
|
4282
|
+
/**
|
|
4283
|
+
* Creates a trigger.
|
|
4284
|
+
* @description Returns its URL exactly once.
|
|
4285
|
+
*/
|
|
4286
|
+
post: {
|
|
4287
|
+
parameters: {
|
|
4288
|
+
query?: never;
|
|
4289
|
+
header?: {
|
|
4290
|
+
/** @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. */
|
|
4291
|
+
"X-Intent-Reason"?: string;
|
|
4292
|
+
};
|
|
4293
|
+
path: {
|
|
4294
|
+
org: string;
|
|
4295
|
+
project: string;
|
|
4296
|
+
flag: string;
|
|
4297
|
+
env: string;
|
|
4298
|
+
};
|
|
4299
|
+
cookie?: never;
|
|
4300
|
+
};
|
|
4301
|
+
requestBody?: {
|
|
4302
|
+
content: {
|
|
4303
|
+
"application/json": components["schemas"]["PublicCreateFlagTriggerRequest"];
|
|
4304
|
+
"text/json": components["schemas"]["PublicCreateFlagTriggerRequest"];
|
|
4305
|
+
"application/*+json": components["schemas"]["PublicCreateFlagTriggerRequest"];
|
|
4306
|
+
};
|
|
4307
|
+
};
|
|
4308
|
+
responses: {
|
|
4309
|
+
/** @description Created */
|
|
4310
|
+
201: {
|
|
4311
|
+
headers: {
|
|
4312
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4313
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4314
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4315
|
+
[name: string]: unknown;
|
|
4316
|
+
};
|
|
4317
|
+
content: {
|
|
4318
|
+
"application/json": components["schemas"]["PublicFlagTriggerWithUrlResponse"];
|
|
4319
|
+
};
|
|
4320
|
+
};
|
|
4321
|
+
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
4322
|
+
400: {
|
|
4323
|
+
headers: {
|
|
4324
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4325
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4326
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4327
|
+
[name: string]: unknown;
|
|
4328
|
+
};
|
|
4329
|
+
content: {
|
|
4330
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4331
|
+
};
|
|
4332
|
+
};
|
|
4333
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
4334
|
+
401: {
|
|
4335
|
+
headers: {
|
|
4336
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4337
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4338
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4339
|
+
[name: string]: unknown;
|
|
4340
|
+
};
|
|
4341
|
+
content: {
|
|
4342
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4343
|
+
};
|
|
4344
|
+
};
|
|
4345
|
+
/** @description Forbidden */
|
|
4346
|
+
403: {
|
|
4347
|
+
headers: {
|
|
4348
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4349
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4350
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4351
|
+
[name: string]: unknown;
|
|
4352
|
+
};
|
|
4353
|
+
content: {
|
|
4354
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4355
|
+
};
|
|
4356
|
+
};
|
|
4357
|
+
/** @description Not Found */
|
|
4358
|
+
404: {
|
|
4359
|
+
headers: {
|
|
4360
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4361
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4362
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4363
|
+
[name: string]: unknown;
|
|
4364
|
+
};
|
|
4365
|
+
content: {
|
|
4366
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4367
|
+
};
|
|
4368
|
+
};
|
|
4369
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
4370
|
+
422: {
|
|
4371
|
+
headers: {
|
|
4372
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4373
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4374
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4375
|
+
[name: string]: unknown;
|
|
4376
|
+
};
|
|
4377
|
+
content: {
|
|
4378
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4379
|
+
};
|
|
4380
|
+
};
|
|
4381
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
4382
|
+
429: {
|
|
4383
|
+
headers: {
|
|
4384
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
4385
|
+
"Retry-After"?: number;
|
|
4386
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4387
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4388
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4389
|
+
[name: string]: unknown;
|
|
4390
|
+
};
|
|
4391
|
+
content: {
|
|
4392
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4393
|
+
};
|
|
4394
|
+
};
|
|
4395
|
+
};
|
|
4396
|
+
};
|
|
4397
|
+
delete?: never;
|
|
4398
|
+
options?: never;
|
|
4399
|
+
head?: never;
|
|
4400
|
+
patch?: never;
|
|
4401
|
+
trace?: never;
|
|
4402
|
+
};
|
|
4403
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/triggers/{trigger}": {
|
|
4404
|
+
parameters: {
|
|
4405
|
+
query?: never;
|
|
4406
|
+
header?: never;
|
|
4407
|
+
path?: never;
|
|
4408
|
+
cookie?: never;
|
|
4409
|
+
};
|
|
4410
|
+
/** Gets a trigger by id. */
|
|
4411
|
+
get: {
|
|
4412
|
+
parameters: {
|
|
4413
|
+
query?: never;
|
|
4414
|
+
header?: never;
|
|
4415
|
+
path: {
|
|
4416
|
+
org: string;
|
|
4417
|
+
project: string;
|
|
4418
|
+
flag: string;
|
|
4419
|
+
env: string;
|
|
4420
|
+
trigger: string;
|
|
4421
|
+
};
|
|
4422
|
+
cookie?: never;
|
|
4423
|
+
};
|
|
4424
|
+
requestBody?: never;
|
|
4425
|
+
responses: {
|
|
4426
|
+
/** @description OK */
|
|
4427
|
+
200: {
|
|
4428
|
+
headers: {
|
|
4429
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4430
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4431
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4432
|
+
[name: string]: unknown;
|
|
4433
|
+
};
|
|
4434
|
+
content: {
|
|
4435
|
+
"application/json": components["schemas"]["PublicFlagTriggerResponse"];
|
|
4436
|
+
};
|
|
4437
|
+
};
|
|
4438
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
4439
|
+
401: {
|
|
4440
|
+
headers: {
|
|
4441
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4442
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4443
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4444
|
+
[name: string]: unknown;
|
|
4445
|
+
};
|
|
4446
|
+
content: {
|
|
4447
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4448
|
+
};
|
|
4449
|
+
};
|
|
4450
|
+
/** @description Not Found */
|
|
4451
|
+
404: {
|
|
4452
|
+
headers: {
|
|
4453
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4454
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4455
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4456
|
+
[name: string]: unknown;
|
|
4457
|
+
};
|
|
4458
|
+
content: {
|
|
4459
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4460
|
+
};
|
|
4461
|
+
};
|
|
4462
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
4463
|
+
429: {
|
|
4464
|
+
headers: {
|
|
4465
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
4466
|
+
"Retry-After"?: number;
|
|
4467
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4468
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4469
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4470
|
+
[name: string]: unknown;
|
|
4471
|
+
};
|
|
4472
|
+
content: {
|
|
4473
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4474
|
+
};
|
|
4475
|
+
};
|
|
4476
|
+
};
|
|
4477
|
+
};
|
|
4478
|
+
/**
|
|
4479
|
+
* Renames a trigger, replaces its description, or turns it off and on.
|
|
4480
|
+
* @description Requires at least Member.
|
|
4481
|
+
*/
|
|
4482
|
+
put: {
|
|
4483
|
+
parameters: {
|
|
4484
|
+
query?: never;
|
|
4485
|
+
header?: {
|
|
4486
|
+
/** @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. */
|
|
4487
|
+
"X-Intent-Reason"?: string;
|
|
4488
|
+
};
|
|
4489
|
+
path: {
|
|
4490
|
+
org: string;
|
|
4491
|
+
project: string;
|
|
4492
|
+
flag: string;
|
|
4493
|
+
env: string;
|
|
4494
|
+
trigger: string;
|
|
4495
|
+
};
|
|
4496
|
+
cookie?: never;
|
|
4497
|
+
};
|
|
4498
|
+
requestBody?: {
|
|
4499
|
+
content: {
|
|
4500
|
+
"application/json": components["schemas"]["PublicUpdateFlagTriggerRequest"];
|
|
4501
|
+
"text/json": components["schemas"]["PublicUpdateFlagTriggerRequest"];
|
|
4502
|
+
"application/*+json": components["schemas"]["PublicUpdateFlagTriggerRequest"];
|
|
4503
|
+
};
|
|
4504
|
+
};
|
|
4505
|
+
responses: {
|
|
4506
|
+
/** @description OK */
|
|
4507
|
+
200: {
|
|
4508
|
+
headers: {
|
|
4509
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4510
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4511
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4512
|
+
[name: string]: unknown;
|
|
4513
|
+
};
|
|
4514
|
+
content: {
|
|
4515
|
+
"application/json": components["schemas"]["PublicFlagTriggerResponse"];
|
|
4516
|
+
};
|
|
4517
|
+
};
|
|
4518
|
+
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
4519
|
+
400: {
|
|
4520
|
+
headers: {
|
|
4521
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4522
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4523
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4524
|
+
[name: string]: unknown;
|
|
4525
|
+
};
|
|
4526
|
+
content: {
|
|
4527
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4528
|
+
};
|
|
4529
|
+
};
|
|
4530
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
4531
|
+
401: {
|
|
4532
|
+
headers: {
|
|
4533
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4534
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4535
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4536
|
+
[name: string]: unknown;
|
|
4537
|
+
};
|
|
4538
|
+
content: {
|
|
4539
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4540
|
+
};
|
|
4541
|
+
};
|
|
4542
|
+
/** @description Forbidden */
|
|
4543
|
+
403: {
|
|
4544
|
+
headers: {
|
|
4545
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4546
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4547
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4548
|
+
[name: string]: unknown;
|
|
4549
|
+
};
|
|
4550
|
+
content: {
|
|
4551
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4552
|
+
};
|
|
4553
|
+
};
|
|
4554
|
+
/** @description Not Found */
|
|
4555
|
+
404: {
|
|
4556
|
+
headers: {
|
|
4557
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4558
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4559
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4560
|
+
[name: string]: unknown;
|
|
4561
|
+
};
|
|
4562
|
+
content: {
|
|
4563
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4564
|
+
};
|
|
4565
|
+
};
|
|
4566
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
4567
|
+
422: {
|
|
4568
|
+
headers: {
|
|
4569
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4570
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4571
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4572
|
+
[name: string]: unknown;
|
|
4573
|
+
};
|
|
4574
|
+
content: {
|
|
4575
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4576
|
+
};
|
|
4577
|
+
};
|
|
4578
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
4579
|
+
429: {
|
|
4580
|
+
headers: {
|
|
4581
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
4582
|
+
"Retry-After"?: number;
|
|
4583
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4584
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4585
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4586
|
+
[name: string]: unknown;
|
|
4587
|
+
};
|
|
4588
|
+
content: {
|
|
4589
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4590
|
+
};
|
|
4591
|
+
};
|
|
4592
|
+
};
|
|
4593
|
+
};
|
|
4594
|
+
post?: never;
|
|
4595
|
+
/**
|
|
4596
|
+
* Deletes a trigger.
|
|
4597
|
+
* @description Its URL stops working at once. Requires at least Member.
|
|
4598
|
+
*/
|
|
4599
|
+
delete: {
|
|
4600
|
+
parameters: {
|
|
4601
|
+
query?: never;
|
|
4602
|
+
header?: {
|
|
4603
|
+
/** @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. */
|
|
4604
|
+
"X-Intent-Reason"?: string;
|
|
4605
|
+
};
|
|
4606
|
+
path: {
|
|
4607
|
+
org: string;
|
|
4608
|
+
project: string;
|
|
4609
|
+
flag: string;
|
|
4610
|
+
env: string;
|
|
4611
|
+
trigger: string;
|
|
4612
|
+
};
|
|
4613
|
+
cookie?: never;
|
|
4614
|
+
};
|
|
4615
|
+
requestBody?: never;
|
|
4616
|
+
responses: {
|
|
4617
|
+
/** @description No Content */
|
|
4618
|
+
204: {
|
|
4619
|
+
headers: {
|
|
4620
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4621
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4622
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4623
|
+
[name: string]: unknown;
|
|
4624
|
+
};
|
|
4625
|
+
content?: never;
|
|
4626
|
+
};
|
|
4627
|
+
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
4628
|
+
400: {
|
|
4629
|
+
headers: {
|
|
4630
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4631
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4632
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4633
|
+
[name: string]: unknown;
|
|
4634
|
+
};
|
|
4635
|
+
content: {
|
|
4636
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4637
|
+
};
|
|
4638
|
+
};
|
|
4639
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
4640
|
+
401: {
|
|
4641
|
+
headers: {
|
|
4642
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4643
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4644
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4645
|
+
[name: string]: unknown;
|
|
4646
|
+
};
|
|
4647
|
+
content: {
|
|
4648
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4649
|
+
};
|
|
4650
|
+
};
|
|
4651
|
+
/** @description Forbidden */
|
|
4652
|
+
403: {
|
|
4653
|
+
headers: {
|
|
4654
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4655
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4656
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4657
|
+
[name: string]: unknown;
|
|
4658
|
+
};
|
|
4659
|
+
content: {
|
|
4660
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4661
|
+
};
|
|
4662
|
+
};
|
|
4663
|
+
/** @description Not Found */
|
|
4664
|
+
404: {
|
|
4665
|
+
headers: {
|
|
4666
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4667
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4668
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4669
|
+
[name: string]: unknown;
|
|
4670
|
+
};
|
|
4671
|
+
content: {
|
|
4672
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4673
|
+
};
|
|
4674
|
+
};
|
|
4675
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
4676
|
+
422: {
|
|
4677
|
+
headers: {
|
|
4678
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4679
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4680
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4681
|
+
[name: string]: unknown;
|
|
4682
|
+
};
|
|
4683
|
+
content: {
|
|
4684
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4685
|
+
};
|
|
4686
|
+
};
|
|
4687
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
4688
|
+
429: {
|
|
4689
|
+
headers: {
|
|
4690
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
4691
|
+
"Retry-After"?: number;
|
|
4692
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4693
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4694
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4695
|
+
[name: string]: unknown;
|
|
4696
|
+
};
|
|
4697
|
+
content: {
|
|
4698
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4699
|
+
};
|
|
4700
|
+
};
|
|
4701
|
+
};
|
|
4702
|
+
};
|
|
4703
|
+
options?: never;
|
|
4704
|
+
head?: never;
|
|
4705
|
+
patch?: never;
|
|
4706
|
+
trace?: never;
|
|
4707
|
+
};
|
|
4708
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/triggers/{trigger}/rotate": {
|
|
4709
|
+
parameters: {
|
|
4710
|
+
query?: never;
|
|
4711
|
+
header?: never;
|
|
4712
|
+
path?: never;
|
|
4713
|
+
cookie?: never;
|
|
4714
|
+
};
|
|
4715
|
+
get?: never;
|
|
4716
|
+
put?: never;
|
|
4717
|
+
/**
|
|
4718
|
+
* Replaces a trigger's URL.
|
|
4719
|
+
* @description The old URL stops working at once; the new one is returned exactly once.
|
|
4720
|
+
*/
|
|
4721
|
+
post: {
|
|
4722
|
+
parameters: {
|
|
4723
|
+
query?: never;
|
|
4724
|
+
header?: {
|
|
4725
|
+
/** @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. */
|
|
4726
|
+
"X-Intent-Reason"?: string;
|
|
4727
|
+
};
|
|
4728
|
+
path: {
|
|
4729
|
+
org: string;
|
|
4730
|
+
project: string;
|
|
4731
|
+
flag: string;
|
|
4732
|
+
env: string;
|
|
4733
|
+
trigger: string;
|
|
4734
|
+
};
|
|
4735
|
+
cookie?: never;
|
|
4736
|
+
};
|
|
4737
|
+
requestBody?: never;
|
|
4738
|
+
responses: {
|
|
4739
|
+
/** @description OK */
|
|
4740
|
+
200: {
|
|
4741
|
+
headers: {
|
|
4742
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4743
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4744
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4745
|
+
[name: string]: unknown;
|
|
4746
|
+
};
|
|
4747
|
+
content: {
|
|
4748
|
+
"application/json": components["schemas"]["PublicFlagTriggerWithUrlResponse"];
|
|
4749
|
+
};
|
|
4750
|
+
};
|
|
4751
|
+
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
4752
|
+
400: {
|
|
4753
|
+
headers: {
|
|
4754
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4755
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4756
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4757
|
+
[name: string]: unknown;
|
|
4758
|
+
};
|
|
4759
|
+
content: {
|
|
4760
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4761
|
+
};
|
|
4762
|
+
};
|
|
4763
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
4764
|
+
401: {
|
|
4765
|
+
headers: {
|
|
4766
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4767
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4768
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4769
|
+
[name: string]: unknown;
|
|
4770
|
+
};
|
|
4771
|
+
content: {
|
|
4772
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4773
|
+
};
|
|
4774
|
+
};
|
|
4775
|
+
/** @description Forbidden */
|
|
4776
|
+
403: {
|
|
4777
|
+
headers: {
|
|
4778
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4779
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4780
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4781
|
+
[name: string]: unknown;
|
|
4782
|
+
};
|
|
4783
|
+
content: {
|
|
4784
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4785
|
+
};
|
|
4786
|
+
};
|
|
4787
|
+
/** @description Not Found */
|
|
4788
|
+
404: {
|
|
4789
|
+
headers: {
|
|
4790
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4791
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4792
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4793
|
+
[name: string]: unknown;
|
|
4794
|
+
};
|
|
4795
|
+
content: {
|
|
4796
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4797
|
+
};
|
|
4798
|
+
};
|
|
4799
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
4800
|
+
422: {
|
|
4801
|
+
headers: {
|
|
4802
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4803
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4804
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4805
|
+
[name: string]: unknown;
|
|
4806
|
+
};
|
|
4807
|
+
content: {
|
|
4808
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4809
|
+
};
|
|
4810
|
+
};
|
|
4811
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
4812
|
+
429: {
|
|
4813
|
+
headers: {
|
|
4814
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
4815
|
+
"Retry-After"?: number;
|
|
4816
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4817
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4818
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4819
|
+
[name: string]: unknown;
|
|
4820
|
+
};
|
|
4821
|
+
content: {
|
|
4822
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4823
|
+
};
|
|
4824
|
+
};
|
|
4825
|
+
};
|
|
4826
|
+
};
|
|
4827
|
+
delete?: never;
|
|
4828
|
+
options?: never;
|
|
4829
|
+
head?: never;
|
|
4830
|
+
patch?: never;
|
|
4831
|
+
trace?: never;
|
|
4832
|
+
};
|
|
3718
4833
|
"/api/v1/me": {
|
|
3719
4834
|
parameters: {
|
|
3720
4835
|
query?: never;
|
|
@@ -4253,12 +5368,16 @@ export interface paths {
|
|
|
4253
5368
|
post?: never;
|
|
4254
5369
|
/**
|
|
4255
5370
|
* Deletes a project.
|
|
4256
|
-
* @description Requires at least Member
|
|
5371
|
+
* @description Requires at least Member, and a change reason when any of its environments
|
|
5372
|
+
* requires one.
|
|
4257
5373
|
*/
|
|
4258
5374
|
delete: {
|
|
4259
5375
|
parameters: {
|
|
4260
5376
|
query?: never;
|
|
4261
|
-
header?:
|
|
5377
|
+
header?: {
|
|
5378
|
+
/** @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
|
+
"X-Intent-Reason"?: string;
|
|
5380
|
+
};
|
|
4262
5381
|
path: {
|
|
4263
5382
|
org: string;
|
|
4264
5383
|
project: string;
|
|
@@ -4325,6 +5444,122 @@ export interface paths {
|
|
|
4325
5444
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4326
5445
|
};
|
|
4327
5446
|
};
|
|
5447
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
5448
|
+
422: {
|
|
5449
|
+
headers: {
|
|
5450
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
5451
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5452
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5453
|
+
[name: string]: unknown;
|
|
5454
|
+
};
|
|
5455
|
+
content: {
|
|
5456
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5457
|
+
};
|
|
5458
|
+
};
|
|
5459
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
5460
|
+
429: {
|
|
5461
|
+
headers: {
|
|
5462
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
5463
|
+
"Retry-After"?: number;
|
|
5464
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
5465
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5466
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5467
|
+
[name: string]: unknown;
|
|
5468
|
+
};
|
|
5469
|
+
content: {
|
|
5470
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5471
|
+
};
|
|
5472
|
+
};
|
|
5473
|
+
};
|
|
5474
|
+
};
|
|
5475
|
+
options?: never;
|
|
5476
|
+
head?: never;
|
|
5477
|
+
patch?: never;
|
|
5478
|
+
trace?: never;
|
|
5479
|
+
};
|
|
5480
|
+
"/api/v1/orgs/{org}/projects/{project}/compare": {
|
|
5481
|
+
parameters: {
|
|
5482
|
+
query?: never;
|
|
5483
|
+
header?: never;
|
|
5484
|
+
path?: never;
|
|
5485
|
+
cookie?: never;
|
|
5486
|
+
};
|
|
5487
|
+
/**
|
|
5488
|
+
* Compares every active flag's configuration between two environments of the project (`base` and `other`, key or id), cursor-paginated.
|
|
5489
|
+
* @description `differentOnly` hides flags that match. Each row lists the
|
|
5490
|
+
* sections that differ (`state`, `defaultVariation`, `strategy`, `rules`,
|
|
5491
|
+
* `prerequisites`); a side is null where the flag has no configuration. Open to any role. A route
|
|
5492
|
+
* `.../compare` sits beside `.../{project}` rather than under `environments` so an environment keyed
|
|
5493
|
+
* `compare` stays addressable.
|
|
5494
|
+
*/
|
|
5495
|
+
get: {
|
|
5496
|
+
parameters: {
|
|
5497
|
+
query?: {
|
|
5498
|
+
base?: string;
|
|
5499
|
+
other?: string;
|
|
5500
|
+
differentOnly?: boolean;
|
|
5501
|
+
tag?: string;
|
|
5502
|
+
owner?: string;
|
|
5503
|
+
limit?: number;
|
|
5504
|
+
cursor?: string;
|
|
5505
|
+
};
|
|
5506
|
+
header?: never;
|
|
5507
|
+
path: {
|
|
5508
|
+
org: string;
|
|
5509
|
+
project: string;
|
|
5510
|
+
};
|
|
5511
|
+
cookie?: never;
|
|
5512
|
+
};
|
|
5513
|
+
requestBody?: never;
|
|
5514
|
+
responses: {
|
|
5515
|
+
/** @description OK */
|
|
5516
|
+
200: {
|
|
5517
|
+
headers: {
|
|
5518
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
5519
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5520
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5521
|
+
[name: string]: unknown;
|
|
5522
|
+
};
|
|
5523
|
+
content: {
|
|
5524
|
+
"application/json": components["schemas"]["PublicFlagComparisonRowPagedResult"];
|
|
5525
|
+
};
|
|
5526
|
+
};
|
|
5527
|
+
/** @description Bad Request */
|
|
5528
|
+
400: {
|
|
5529
|
+
headers: {
|
|
5530
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
5531
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5532
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5533
|
+
[name: string]: unknown;
|
|
5534
|
+
};
|
|
5535
|
+
content: {
|
|
5536
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5537
|
+
};
|
|
5538
|
+
};
|
|
5539
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
5540
|
+
401: {
|
|
5541
|
+
headers: {
|
|
5542
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
5543
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5544
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5545
|
+
[name: string]: unknown;
|
|
5546
|
+
};
|
|
5547
|
+
content: {
|
|
5548
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5549
|
+
};
|
|
5550
|
+
};
|
|
5551
|
+
/** @description Not Found */
|
|
5552
|
+
404: {
|
|
5553
|
+
headers: {
|
|
5554
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
5555
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5556
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5557
|
+
[name: string]: unknown;
|
|
5558
|
+
};
|
|
5559
|
+
content: {
|
|
5560
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5561
|
+
};
|
|
5562
|
+
};
|
|
4328
5563
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
4329
5564
|
429: {
|
|
4330
5565
|
headers: {
|
|
@@ -4341,6 +5576,9 @@ export interface paths {
|
|
|
4341
5576
|
};
|
|
4342
5577
|
};
|
|
4343
5578
|
};
|
|
5579
|
+
put?: never;
|
|
5580
|
+
post?: never;
|
|
5581
|
+
delete?: never;
|
|
4344
5582
|
options?: never;
|
|
4345
5583
|
head?: never;
|
|
4346
5584
|
patch?: never;
|
|
@@ -4938,12 +6176,15 @@ export interface paths {
|
|
|
4938
6176
|
put?: never;
|
|
4939
6177
|
/**
|
|
4940
6178
|
* Revokes an SDK key.
|
|
4941
|
-
* @description Requires at least Member.
|
|
6179
|
+
* @description Requires at least Member, and a change reason when its environment requires one.
|
|
4942
6180
|
*/
|
|
4943
6181
|
post: {
|
|
4944
6182
|
parameters: {
|
|
4945
6183
|
query?: never;
|
|
4946
|
-
header?:
|
|
6184
|
+
header?: {
|
|
6185
|
+
/** @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. */
|
|
6186
|
+
"X-Intent-Reason"?: string;
|
|
6187
|
+
};
|
|
4947
6188
|
path: {
|
|
4948
6189
|
org: string;
|
|
4949
6190
|
project: string;
|
|
@@ -5012,6 +6253,18 @@ export interface paths {
|
|
|
5012
6253
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5013
6254
|
};
|
|
5014
6255
|
};
|
|
6256
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
6257
|
+
422: {
|
|
6258
|
+
headers: {
|
|
6259
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6260
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6261
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6262
|
+
[name: string]: unknown;
|
|
6263
|
+
};
|
|
6264
|
+
content: {
|
|
6265
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
6266
|
+
};
|
|
6267
|
+
};
|
|
5015
6268
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
5016
6269
|
429: {
|
|
5017
6270
|
headers: {
|
|
@@ -5127,7 +6380,10 @@ export interface paths {
|
|
|
5127
6380
|
post: {
|
|
5128
6381
|
parameters: {
|
|
5129
6382
|
query?: never;
|
|
5130
|
-
header?:
|
|
6383
|
+
header?: {
|
|
6384
|
+
/** @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. */
|
|
6385
|
+
"X-Intent-Reason"?: string;
|
|
6386
|
+
};
|
|
5131
6387
|
path: {
|
|
5132
6388
|
org: string;
|
|
5133
6389
|
project: string;
|
|
@@ -5202,6 +6458,18 @@ export interface paths {
|
|
|
5202
6458
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5203
6459
|
};
|
|
5204
6460
|
};
|
|
6461
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
6462
|
+
422: {
|
|
6463
|
+
headers: {
|
|
6464
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6465
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6466
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6467
|
+
[name: string]: unknown;
|
|
6468
|
+
};
|
|
6469
|
+
content: {
|
|
6470
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
6471
|
+
};
|
|
6472
|
+
};
|
|
5205
6473
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
5206
6474
|
429: {
|
|
5207
6475
|
headers: {
|
|
@@ -5330,6 +6598,8 @@ export interface paths {
|
|
|
5330
6598
|
header?: {
|
|
5331
6599
|
/** @description Optional. The ETag from a GET of this resource. The write applies only if the resource still has that ETag, meaning nothing in its body has changed since; otherwise 412 `precondition_failed`. `*` or no header applies the write unconditionally. */
|
|
5332
6600
|
"If-Match"?: string;
|
|
6601
|
+
/** @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. */
|
|
6602
|
+
"X-Intent-Reason"?: string;
|
|
5333
6603
|
};
|
|
5334
6604
|
path: {
|
|
5335
6605
|
org: string;
|
|
@@ -5418,6 +6688,18 @@ export interface paths {
|
|
|
5418
6688
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5419
6689
|
};
|
|
5420
6690
|
};
|
|
6691
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
6692
|
+
422: {
|
|
6693
|
+
headers: {
|
|
6694
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6695
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6696
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6697
|
+
[name: string]: unknown;
|
|
6698
|
+
};
|
|
6699
|
+
content: {
|
|
6700
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
6701
|
+
};
|
|
6702
|
+
};
|
|
5421
6703
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
5422
6704
|
429: {
|
|
5423
6705
|
headers: {
|
|
@@ -5442,7 +6724,10 @@ export interface paths {
|
|
|
5442
6724
|
delete: {
|
|
5443
6725
|
parameters: {
|
|
5444
6726
|
query?: never;
|
|
5445
|
-
header?:
|
|
6727
|
+
header?: {
|
|
6728
|
+
/** @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. */
|
|
6729
|
+
"X-Intent-Reason"?: string;
|
|
6730
|
+
};
|
|
5446
6731
|
path: {
|
|
5447
6732
|
org: string;
|
|
5448
6733
|
project: string;
|
|
@@ -5510,6 +6795,18 @@ export interface paths {
|
|
|
5510
6795
|
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5511
6796
|
};
|
|
5512
6797
|
};
|
|
6798
|
+
/** @description A change reason is required: this change affects an environment that requires one (error code change_reason_required). Retry with the X-Intent-Reason header. */
|
|
6799
|
+
422: {
|
|
6800
|
+
headers: {
|
|
6801
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6802
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6803
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6804
|
+
[name: string]: unknown;
|
|
6805
|
+
};
|
|
6806
|
+
content: {
|
|
6807
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
6808
|
+
};
|
|
6809
|
+
};
|
|
5513
6810
|
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
5514
6811
|
429: {
|
|
5515
6812
|
headers: {
|
|
@@ -5928,7 +7225,9 @@ export interface paths {
|
|
|
5928
7225
|
* Replaces a webhook subscription's configuration.
|
|
5929
7226
|
* @description Requires Admin. Omitted lists become empty,
|
|
5930
7227
|
* which means "all". Re-enabling a subscription that is over the plan's webhook allowance (after
|
|
5931
|
-
* a downgrade) is a 403 `plan_limit_reached`.
|
|
7228
|
+
* a downgrade) is a 403 `plan_limit_reached`. Omit `credential` to keep the stored
|
|
7229
|
+
* one, except when changing the `url` of a Datadog or Grafana subscription: that needs
|
|
7230
|
+
* the credential again.
|
|
5932
7231
|
*/
|
|
5933
7232
|
put: {
|
|
5934
7233
|
parameters: {
|
|
@@ -6911,6 +8210,37 @@ export interface components {
|
|
|
6911
8210
|
*/
|
|
6912
8211
|
weight: number;
|
|
6913
8212
|
};
|
|
8213
|
+
/**
|
|
8214
|
+
* @description Request body for `POST .../flags/{flag}/environments/{env}/copy`. `source` is the environment to copy
|
|
8215
|
+
* from (key or id) and is required; the rest are optional. `dryRun: true` previews without writing and ignores
|
|
8216
|
+
* the ETags.
|
|
8217
|
+
*/
|
|
8218
|
+
PublicCopyFlagConfigRequest: {
|
|
8219
|
+
source: string;
|
|
8220
|
+
includeState?: boolean | null;
|
|
8221
|
+
dryRun?: boolean | null;
|
|
8222
|
+
expectedSourceETag?: string | null;
|
|
8223
|
+
expectedTargetETag?: string | null;
|
|
8224
|
+
};
|
|
8225
|
+
/**
|
|
8226
|
+
* @description Response of `POST .../flags/{flag}/environments/{env}/copy`, for a dry run and an apply alike.
|
|
8227
|
+
* `targetETag` is the target's tag after an apply and before it on a dry run, so a dry run's tags are
|
|
8228
|
+
* what the apply sends back as `expectedSourceETag` / `expectedTargetETag`.
|
|
8229
|
+
*/
|
|
8230
|
+
PublicCopyResult: {
|
|
8231
|
+
changed: boolean;
|
|
8232
|
+
changedSections: string[];
|
|
8233
|
+
before?: components["schemas"]["PublicEnvironmentSnapshot"];
|
|
8234
|
+
after: components["schemas"]["PublicEnvironmentSnapshot"];
|
|
8235
|
+
sourceETag: string;
|
|
8236
|
+
targetETag: string;
|
|
8237
|
+
warnings: components["schemas"]["PublicCopyWarning"][];
|
|
8238
|
+
};
|
|
8239
|
+
/** @description A non-blocking note about a copy. */
|
|
8240
|
+
PublicCopyWarning: {
|
|
8241
|
+
code: string;
|
|
8242
|
+
message: string;
|
|
8243
|
+
};
|
|
6914
8244
|
/**
|
|
6915
8245
|
* @description Request body for `POST /api/v1/orgs/{org}/projects/{project}/environments`. Named
|
|
6916
8246
|
* distinctly from the dashboard's own `CreateEnvironmentRequest`
|
|
@@ -6925,11 +8255,21 @@ export interface components {
|
|
|
6925
8255
|
* }
|
|
6926
8256
|
*/
|
|
6927
8257
|
PublicCreateEnvironmentRequest: {
|
|
8258
|
+
/** @description The environment's key. */
|
|
6928
8259
|
key: string;
|
|
8260
|
+
/** @description The environment's display name. */
|
|
6929
8261
|
name: string;
|
|
8262
|
+
/** @description The environment's display color, or null. */
|
|
6930
8263
|
color?: string | null;
|
|
6931
|
-
/**
|
|
8264
|
+
/**
|
|
8265
|
+
* Format: int32
|
|
8266
|
+
* @description Position among the project's environments.
|
|
8267
|
+
*/
|
|
6932
8268
|
sortOrder?: number;
|
|
8269
|
+
/** @description Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above. */
|
|
8270
|
+
requireChangeReason?: boolean | null;
|
|
8271
|
+
/** @description Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API. */
|
|
8272
|
+
requireConfirmation?: boolean | null;
|
|
6933
8273
|
};
|
|
6934
8274
|
/**
|
|
6935
8275
|
* @description Request body for `POST /api/v1/orgs/{org}/projects/{project}/flags`. Named distinctly
|
|
@@ -6942,8 +8282,8 @@ export interface components {
|
|
|
6942
8282
|
* optional and advisory; a bare date (`2026-12-01`) means the end of that day in UTC, and a full
|
|
6943
8283
|
* timestamp is stored exactly. It must be in the future and requires the flag-expiration feature
|
|
6944
8284
|
* (400 `EXPIRY_IN_PAST` / `FEATURE_NOT_ENABLED`). OwnerEmail optionally names
|
|
6945
|
-
* the owner (an active member, matched case-insensitively; requires
|
|
6946
|
-
* 400 `OWNER_NOT_MEMBER` / `
|
|
8285
|
+
* the owner (an active member, matched case-insensitively; requires a plan that includes flag owners,
|
|
8286
|
+
* Pro and above — 400 `OWNER_NOT_MEMBER` / `PLAN_FEATURE_UNAVAILABLE`). Omitted, the owner is the caller when
|
|
6947
8287
|
* the caller is a member, so a service token creates an unowned flag. IsPermanent marks
|
|
6948
8288
|
* the flag permanent (a kill switch, ops toggle or entitlement that is meant to stay; never reported for
|
|
6949
8289
|
* cleanup). It requires the flag-permanence feature and can't be combined with ExpiresAtUtc
|
|
@@ -6991,6 +8331,16 @@ export interface components {
|
|
|
6991
8331
|
ownerEmail?: string | null;
|
|
6992
8332
|
isPermanent?: boolean;
|
|
6993
8333
|
};
|
|
8334
|
+
/**
|
|
8335
|
+
* @description Request body for `POST .../triggers`. Action is `"Enable"` or
|
|
8336
|
+
* `"Disable"`, parsed against the names only. Named apart from the dashboard's
|
|
8337
|
+
* `CreateFlagTriggerRequest`: both controllers share one Swagger document.
|
|
8338
|
+
*/
|
|
8339
|
+
PublicCreateFlagTriggerRequest: {
|
|
8340
|
+
name: string;
|
|
8341
|
+
action: string;
|
|
8342
|
+
description?: string | null;
|
|
8343
|
+
};
|
|
6994
8344
|
/**
|
|
6995
8345
|
* @description Request body for `POST /api/v1/orgs/{org}/projects`. Named distinctly from the
|
|
6996
8346
|
* dashboard's own `CreateProjectRequest` — both
|
|
@@ -7144,7 +8494,10 @@ export interface components {
|
|
|
7144
8494
|
description?: string | null;
|
|
7145
8495
|
};
|
|
7146
8496
|
/**
|
|
7147
|
-
* @description Creates a webhook subscription. `provider` is `GenericHttp
|
|
8497
|
+
* @description Creates a webhook subscription. `provider` is `GenericHttp`, `Slack` (an incoming
|
|
8498
|
+
* webhook url), `Datadog` (your site's Events API url) or `Grafana` (your Grafana's
|
|
8499
|
+
* `/api/annotations` url). Datadog and Grafana also need `credential`: a Datadog API key
|
|
8500
|
+
* or a Grafana service account token. It is stored encrypted and never returned. Omit `eventTypes`,
|
|
7148
8501
|
* `projectIds` or `environmentIds` (or send an empty list) to receive every event,
|
|
7149
8502
|
* project or environment. A token restricted to specific projects must list at least one project,
|
|
7150
8503
|
* all of them within its allowlist.
|
|
@@ -7168,13 +8521,14 @@ export interface components {
|
|
|
7168
8521
|
name: string;
|
|
7169
8522
|
url: string;
|
|
7170
8523
|
/**
|
|
7171
|
-
* @description Allowed values: GenericHttp, Slack.
|
|
8524
|
+
* @description Allowed values: GenericHttp, Slack, Datadog, Grafana.
|
|
7172
8525
|
* @enum {string}
|
|
7173
8526
|
*/
|
|
7174
|
-
provider: "GenericHttp" | "Slack";
|
|
8527
|
+
provider: "GenericHttp" | "Slack" | "Datadog" | "Grafana";
|
|
7175
8528
|
eventTypes?: string[] | null;
|
|
7176
8529
|
projectIds?: string[] | null;
|
|
7177
8530
|
environmentIds?: string[] | null;
|
|
8531
|
+
credential?: string | null;
|
|
7178
8532
|
};
|
|
7179
8533
|
/**
|
|
7180
8534
|
* @description The created subscription's id and its signing secret. The secret is shown only here.
|
|
@@ -7215,17 +8569,32 @@ export interface components {
|
|
|
7215
8569
|
* "key": "production",
|
|
7216
8570
|
* "name": "Production",
|
|
7217
8571
|
* "color": "#16A34A",
|
|
7218
|
-
* "sortOrder": 2
|
|
8572
|
+
* "sortOrder": 2,
|
|
8573
|
+
* "requireChangeReason": false,
|
|
8574
|
+
* "requireConfirmation": false
|
|
7219
8575
|
* }
|
|
7220
8576
|
*/
|
|
7221
8577
|
PublicEnvironmentResponse: {
|
|
7222
|
-
/**
|
|
8578
|
+
/**
|
|
8579
|
+
* Format: uuid
|
|
8580
|
+
* @description The environment's id.
|
|
8581
|
+
*/
|
|
7223
8582
|
id: string;
|
|
8583
|
+
/** @description The environment's key. */
|
|
7224
8584
|
key: string;
|
|
8585
|
+
/** @description The environment's display name. */
|
|
7225
8586
|
name: string;
|
|
8587
|
+
/** @description The environment's display color, or null. */
|
|
7226
8588
|
color?: string | null;
|
|
7227
|
-
/**
|
|
8589
|
+
/**
|
|
8590
|
+
* Format: int32
|
|
8591
|
+
* @description Position among the project's environments.
|
|
8592
|
+
*/
|
|
7228
8593
|
sortOrder: number;
|
|
8594
|
+
/** @description Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above. */
|
|
8595
|
+
requireChangeReason: boolean;
|
|
8596
|
+
/** @description Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API. */
|
|
8597
|
+
requireConfirmation: boolean;
|
|
7229
8598
|
/** @description Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it. */
|
|
7230
8599
|
_actions?: {
|
|
7231
8600
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
@@ -7244,6 +8613,22 @@ export interface components {
|
|
|
7244
8613
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
7245
8614
|
};
|
|
7246
8615
|
};
|
|
8616
|
+
/** @description One side's headline numbers in a project-level comparison row. */
|
|
8617
|
+
PublicEnvironmentSideSummary: {
|
|
8618
|
+
isEnabled: boolean;
|
|
8619
|
+
/** Format: int32 */
|
|
8620
|
+
ruleCount: number;
|
|
8621
|
+
/** Format: int32 */
|
|
8622
|
+
prerequisiteCount: number;
|
|
8623
|
+
};
|
|
8624
|
+
/** @description A flag's configuration in one environment, as a comparison or copy result reports it. */
|
|
8625
|
+
PublicEnvironmentSnapshot: {
|
|
8626
|
+
isEnabled: boolean;
|
|
8627
|
+
defaultVariation: components["schemas"]["PublicKeyedRef"];
|
|
8628
|
+
strategy: string;
|
|
8629
|
+
rules: components["schemas"]["PublicSnapshotRule"][];
|
|
8630
|
+
prerequisites: components["schemas"]["PublicPrerequisiteDto"][];
|
|
8631
|
+
};
|
|
7247
8632
|
/** @description The evaluations one part of the targeting served. */
|
|
7248
8633
|
PublicEvaluationSource: {
|
|
7249
8634
|
/**
|
|
@@ -7293,6 +8678,46 @@ export interface components {
|
|
|
7293
8678
|
*/
|
|
7294
8679
|
share: number;
|
|
7295
8680
|
};
|
|
8681
|
+
/** @description Response of `GET .../flags/{flag}/compare`. */
|
|
8682
|
+
PublicFlagComparison: {
|
|
8683
|
+
flagKey: string;
|
|
8684
|
+
differences: string[];
|
|
8685
|
+
base?: components["schemas"]["PublicFlagComparisonSide"];
|
|
8686
|
+
other?: components["schemas"]["PublicFlagComparisonSide"];
|
|
8687
|
+
};
|
|
8688
|
+
/**
|
|
8689
|
+
* @description One flag in `GET .../projects/{project}/compare`. `differences` lists the sections that differ
|
|
8690
|
+
* (`state`, `defaultVariation`, `strategy`, `rules`, `prerequisites`). A side is null when
|
|
8691
|
+
* the flag has no configuration in that environment.
|
|
8692
|
+
*/
|
|
8693
|
+
PublicFlagComparisonRow: {
|
|
8694
|
+
flagKey: string;
|
|
8695
|
+
flagName: string;
|
|
8696
|
+
tags: string[];
|
|
8697
|
+
/** Format: uuid */
|
|
8698
|
+
ownerUserId?: string | null;
|
|
8699
|
+
status: string;
|
|
8700
|
+
differences: string[];
|
|
8701
|
+
base?: components["schemas"]["PublicEnvironmentSideSummary"];
|
|
8702
|
+
other?: components["schemas"]["PublicEnvironmentSideSummary"];
|
|
8703
|
+
};
|
|
8704
|
+
/**
|
|
8705
|
+
* @description A page of results plus an opaque cursor for the next page, or null when this is the last
|
|
8706
|
+
* page. Wire keys are frozen: `items` (already lowercase under the camelCase policy) and
|
|
8707
|
+
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
8708
|
+
*/
|
|
8709
|
+
PublicFlagComparisonRowPagedResult: {
|
|
8710
|
+
items: components["schemas"]["PublicFlagComparisonRow"][];
|
|
8711
|
+
next_cursor?: string | null;
|
|
8712
|
+
};
|
|
8713
|
+
/** @description One environment's side of a per-flag comparison. */
|
|
8714
|
+
PublicFlagComparisonSide: {
|
|
8715
|
+
config: components["schemas"]["PublicFlagEnvConfigResponse"];
|
|
8716
|
+
targeting: components["schemas"]["PublicTargetingConfigResponse"];
|
|
8717
|
+
snapshot: components["schemas"]["PublicEnvironmentSnapshot"];
|
|
8718
|
+
/** @description Per rule in evaluation order: whether the other environment has an equal rule. */
|
|
8719
|
+
ruleHasMatchInOther: boolean[];
|
|
8720
|
+
};
|
|
7296
8721
|
/**
|
|
7297
8722
|
* @description Public representation of a flag's config within a single environment, returned by
|
|
7298
8723
|
* `GET .../flags/{flag}/environments` and `GET .../flags/{flag}/environments/{env}`.
|
|
@@ -7634,6 +9059,55 @@ export interface components {
|
|
|
7634
9059
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
7635
9060
|
};
|
|
7636
9061
|
};
|
|
9062
|
+
/**
|
|
9063
|
+
* @description A flag trigger (#4651) as `/api/v1` returns it. Carries only the secret's last four characters:
|
|
9064
|
+
* the URL is returned once, by PublicFlagTriggerWithUrlResponse. Flag and environment are
|
|
9065
|
+
* implicit in the route.
|
|
9066
|
+
*/
|
|
9067
|
+
PublicFlagTriggerResponse: {
|
|
9068
|
+
/** Format: uuid */
|
|
9069
|
+
id: string;
|
|
9070
|
+
name: string;
|
|
9071
|
+
description?: string | null;
|
|
9072
|
+
action: string;
|
|
9073
|
+
enabled: boolean;
|
|
9074
|
+
secretLastFour: string;
|
|
9075
|
+
/** Format: date-time */
|
|
9076
|
+
createdAt: string;
|
|
9077
|
+
/** Format: date-time */
|
|
9078
|
+
updatedAt: string;
|
|
9079
|
+
/** Format: date-time */
|
|
9080
|
+
lastFiredAt?: string | null;
|
|
9081
|
+
};
|
|
9082
|
+
/**
|
|
9083
|
+
* @description A page of results plus an opaque cursor for the next page, or null when this is the last
|
|
9084
|
+
* page. Wire keys are frozen: `items` (already lowercase under the camelCase policy) and
|
|
9085
|
+
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
9086
|
+
*/
|
|
9087
|
+
PublicFlagTriggerResponsePagedResult: {
|
|
9088
|
+
items: components["schemas"]["PublicFlagTriggerResponse"][];
|
|
9089
|
+
next_cursor?: string | null;
|
|
9090
|
+
};
|
|
9091
|
+
/**
|
|
9092
|
+
* @description The only response that carries a trigger's secret: create and rotate. Fire it by POSTing to
|
|
9093
|
+
* Url, or to Endpoint with `Authorization: Bearer {Secret}`, which keeps
|
|
9094
|
+
* the secret out of the URL. Anyone holding either can fire the trigger, so store it as a secret in the
|
|
9095
|
+
* monitoring tool.
|
|
9096
|
+
*/
|
|
9097
|
+
PublicFlagTriggerWithUrlResponse: {
|
|
9098
|
+
trigger: components["schemas"]["PublicFlagTriggerResponse"];
|
|
9099
|
+
url: string;
|
|
9100
|
+
endpoint: string;
|
|
9101
|
+
secret: string;
|
|
9102
|
+
warning: string;
|
|
9103
|
+
};
|
|
9104
|
+
/** @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. */
|
|
9105
|
+
PublicKeyedRef: {
|
|
9106
|
+
/** Format: uuid */
|
|
9107
|
+
id: string;
|
|
9108
|
+
key?: string | null;
|
|
9109
|
+
name?: string | null;
|
|
9110
|
+
};
|
|
7637
9111
|
/**
|
|
7638
9112
|
* @description The cap behind a `plan_limit_reached` error. `resource` is the capped collection
|
|
7639
9113
|
* (`projects`, `environments`, `flags`, `webhooks`, `members`);
|
|
@@ -7888,6 +9362,19 @@ export interface components {
|
|
|
7888
9362
|
PublicSetFlagRemovalPrRequest: {
|
|
7889
9363
|
url?: string | null;
|
|
7890
9364
|
};
|
|
9365
|
+
/**
|
|
9366
|
+
* @description A targeting rule as a comparison or copy shows it: the variation and segment with key and name, and the
|
|
9367
|
+
* condition groups in the shape the targeting endpoints return.
|
|
9368
|
+
*/
|
|
9369
|
+
PublicSnapshotRule: {
|
|
9370
|
+
description?: string | null;
|
|
9371
|
+
variation: components["schemas"]["PublicKeyedRef"];
|
|
9372
|
+
segment?: components["schemas"]["PublicKeyedRef"];
|
|
9373
|
+
/** Format: int32 */
|
|
9374
|
+
rolloutPercentage?: number | null;
|
|
9375
|
+
bucketBy?: string | null;
|
|
9376
|
+
conditionGroups: components["schemas"]["PublicConditionGroupResponse"][];
|
|
9377
|
+
};
|
|
7891
9378
|
/**
|
|
7892
9379
|
* @description The full targeting configuration for a flag in a single environment, returned by
|
|
7893
9380
|
* `GET .../targeting`. Maps 1:1 onto TargetingConfigurationDto — including
|
|
@@ -7980,10 +9467,19 @@ export interface components {
|
|
|
7980
9467
|
* dashboard's `UpdateEnvironmentRequest`.
|
|
7981
9468
|
*/
|
|
7982
9469
|
PublicUpdateEnvironmentRequest: {
|
|
9470
|
+
/** @description The environment's display name. */
|
|
7983
9471
|
name: string;
|
|
9472
|
+
/** @description The environment's display color, or null. */
|
|
7984
9473
|
color?: string | null;
|
|
7985
|
-
/**
|
|
9474
|
+
/**
|
|
9475
|
+
* Format: int32
|
|
9476
|
+
* @description Position among the project's environments.
|
|
9477
|
+
*/
|
|
7986
9478
|
sortOrder?: number;
|
|
9479
|
+
/** @description Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above. Omit on update to leave unchanged. Turning it off needs Admin or Owner and an X-Intent-Reason. */
|
|
9480
|
+
requireChangeReason?: boolean | null;
|
|
9481
|
+
/** @description Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API. Omit on update to leave unchanged. Turning it off needs Admin or Owner and an X-Intent-Reason. */
|
|
9482
|
+
requireConfirmation?: boolean | null;
|
|
7987
9483
|
};
|
|
7988
9484
|
/**
|
|
7989
9485
|
* @description Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}`. See
|
|
@@ -8029,6 +9525,15 @@ export interface components {
|
|
|
8029
9525
|
strategy?: "SingleVariation" | "PercentageRollout" | "TargetedRollout" | null;
|
|
8030
9526
|
prerequisites?: components["schemas"]["PublicPrerequisiteDto"][] | null;
|
|
8031
9527
|
};
|
|
9528
|
+
/**
|
|
9529
|
+
* @description Request body for `PUT .../triggers/{trigger}`. The action is fixed at creation. Enabled is
|
|
9530
|
+
* nullable so leaving it out is a 400 rather than a bound `false` that silently turns the trigger off.
|
|
9531
|
+
*/
|
|
9532
|
+
PublicUpdateFlagTriggerRequest: {
|
|
9533
|
+
name: string;
|
|
9534
|
+
description?: string | null;
|
|
9535
|
+
enabled?: boolean | null;
|
|
9536
|
+
};
|
|
8032
9537
|
/**
|
|
8033
9538
|
* @description Request body for `PUT /api/v1/orgs/{org}/projects/{project}`. See
|
|
8034
9539
|
* PublicCreateProjectRequest for why this is named distinctly from the
|
|
@@ -8089,7 +9594,9 @@ export interface components {
|
|
|
8089
9594
|
};
|
|
8090
9595
|
/**
|
|
8091
9596
|
* @description Replaces a subscription's configuration (full replace — omitted lists become empty, meaning
|
|
8092
|
-
* "all"). `isEnabled` is required. The provider cannot be changed.
|
|
9597
|
+
* "all"). `isEnabled` is required. The provider cannot be changed. `credential`
|
|
9598
|
+
* replaces a Datadog or Grafana subscription's stored credential; omit it to keep the current
|
|
9599
|
+
* one, unless the `url` changes, which needs the credential sent again.
|
|
8093
9600
|
*/
|
|
8094
9601
|
PublicUpdateWebhookSubscriptionRequest: {
|
|
8095
9602
|
name: string;
|
|
@@ -8098,6 +9605,7 @@ export interface components {
|
|
|
8098
9605
|
projectIds?: string[] | null;
|
|
8099
9606
|
environmentIds?: string[] | null;
|
|
8100
9607
|
isEnabled?: boolean | null;
|
|
9608
|
+
credential?: string | null;
|
|
8101
9609
|
};
|
|
8102
9610
|
/**
|
|
8103
9611
|
* @description A single variation on a flag, as returned in Variations.
|
|
@@ -8206,10 +9714,10 @@ export interface components {
|
|
|
8206
9714
|
name: string;
|
|
8207
9715
|
url: string;
|
|
8208
9716
|
/**
|
|
8209
|
-
* @description Allowed values: GenericHttp, Slack.
|
|
9717
|
+
* @description Allowed values: GenericHttp, Slack, Datadog, Grafana.
|
|
8210
9718
|
* @enum {string}
|
|
8211
9719
|
*/
|
|
8212
|
-
provider: "GenericHttp" | "Slack";
|
|
9720
|
+
provider: "GenericHttp" | "Slack" | "Datadog" | "Grafana";
|
|
8213
9721
|
isEnabled: boolean;
|
|
8214
9722
|
eventTypes: string[];
|
|
8215
9723
|
projectIds: string[];
|