@featureflip/mcp 0.7.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/errors.d.ts +5 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/generated/api-types.d.ts +1202 -51
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/generated/output-schemas.json.d.ts +731 -10
- package/dist/index.mjs +1 -1
- package/dist/{org-CRuyqCqx.js → org-40S7JIbw.js} +102 -29
- 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/package.json +2 -2
|
@@ -709,6 +709,107 @@ export interface paths {
|
|
|
709
709
|
patch?: never;
|
|
710
710
|
trace?: never;
|
|
711
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
|
+
};
|
|
712
813
|
"/api/v1/orgs/{org}/projects/{project}/flags/removal-candidates": {
|
|
713
814
|
parameters: {
|
|
714
815
|
query?: never;
|
|
@@ -2515,6 +2616,152 @@ export interface paths {
|
|
|
2515
2616
|
patch?: never;
|
|
2516
2617
|
trace?: never;
|
|
2517
2618
|
};
|
|
2619
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/copy": {
|
|
2620
|
+
parameters: {
|
|
2621
|
+
query?: never;
|
|
2622
|
+
header?: never;
|
|
2623
|
+
path?: never;
|
|
2624
|
+
cookie?: never;
|
|
2625
|
+
};
|
|
2626
|
+
get?: never;
|
|
2627
|
+
put?: never;
|
|
2628
|
+
/**
|
|
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`).
|
|
2635
|
+
*/
|
|
2636
|
+
post: {
|
|
2637
|
+
parameters: {
|
|
2638
|
+
query?: never;
|
|
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
|
+
};
|
|
2643
|
+
path: {
|
|
2644
|
+
org: string;
|
|
2645
|
+
project: string;
|
|
2646
|
+
flag: string;
|
|
2647
|
+
env: string;
|
|
2648
|
+
};
|
|
2649
|
+
cookie?: never;
|
|
2650
|
+
};
|
|
2651
|
+
requestBody?: {
|
|
2652
|
+
content: {
|
|
2653
|
+
"application/json": components["schemas"]["PublicCopyFlagConfigRequest"];
|
|
2654
|
+
"text/json": components["schemas"]["PublicCopyFlagConfigRequest"];
|
|
2655
|
+
"application/*+json": components["schemas"]["PublicCopyFlagConfigRequest"];
|
|
2656
|
+
};
|
|
2657
|
+
};
|
|
2658
|
+
responses: {
|
|
2659
|
+
/** @description OK */
|
|
2660
|
+
200: {
|
|
2661
|
+
headers: {
|
|
2662
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2663
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2664
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2665
|
+
[name: string]: unknown;
|
|
2666
|
+
};
|
|
2667
|
+
content: {
|
|
2668
|
+
"application/json": components["schemas"]["PublicCopyResult"];
|
|
2669
|
+
};
|
|
2670
|
+
};
|
|
2671
|
+
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
2672
|
+
400: {
|
|
2673
|
+
headers: {
|
|
2674
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2675
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2676
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2677
|
+
[name: string]: unknown;
|
|
2678
|
+
};
|
|
2679
|
+
content: {
|
|
2680
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2681
|
+
};
|
|
2682
|
+
};
|
|
2683
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
2684
|
+
401: {
|
|
2685
|
+
headers: {
|
|
2686
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2687
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2688
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2689
|
+
[name: string]: unknown;
|
|
2690
|
+
};
|
|
2691
|
+
content: {
|
|
2692
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2693
|
+
};
|
|
2694
|
+
};
|
|
2695
|
+
/** @description Forbidden */
|
|
2696
|
+
403: {
|
|
2697
|
+
headers: {
|
|
2698
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2699
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2700
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2701
|
+
[name: string]: unknown;
|
|
2702
|
+
};
|
|
2703
|
+
content: {
|
|
2704
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2705
|
+
};
|
|
2706
|
+
};
|
|
2707
|
+
/** @description Not Found */
|
|
2708
|
+
404: {
|
|
2709
|
+
headers: {
|
|
2710
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2711
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2712
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2713
|
+
[name: string]: unknown;
|
|
2714
|
+
};
|
|
2715
|
+
content: {
|
|
2716
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2717
|
+
};
|
|
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
|
+
};
|
|
2743
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
2744
|
+
429: {
|
|
2745
|
+
headers: {
|
|
2746
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
2747
|
+
"Retry-After"?: number;
|
|
2748
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2749
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2750
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2751
|
+
[name: string]: unknown;
|
|
2752
|
+
};
|
|
2753
|
+
content: {
|
|
2754
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2755
|
+
};
|
|
2756
|
+
};
|
|
2757
|
+
};
|
|
2758
|
+
};
|
|
2759
|
+
delete?: never;
|
|
2760
|
+
options?: never;
|
|
2761
|
+
head?: never;
|
|
2762
|
+
patch?: never;
|
|
2763
|
+
trace?: never;
|
|
2764
|
+
};
|
|
2518
2765
|
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/toggle": {
|
|
2519
2766
|
parameters: {
|
|
2520
2767
|
query?: never;
|
|
@@ -3591,15 +3838,648 @@ export interface paths {
|
|
|
3591
3838
|
path?: never;
|
|
3592
3839
|
cookie?: never;
|
|
3593
3840
|
};
|
|
3594
|
-
get?: never;
|
|
3595
|
-
put?: never;
|
|
3841
|
+
get?: never;
|
|
3842
|
+
put?: never;
|
|
3843
|
+
/**
|
|
3844
|
+
* Adds a variation to the resolved flag.
|
|
3845
|
+
* @description Requires at least Member. Re-fetches the flag via
|
|
3846
|
+
* GetFeatureFlagQuery and locates the new variation by the id returned from
|
|
3847
|
+
* AddVariationCommand so the response reflects exactly what was persisted.
|
|
3848
|
+
*/
|
|
3849
|
+
post: {
|
|
3850
|
+
parameters: {
|
|
3851
|
+
query?: never;
|
|
3852
|
+
header?: {
|
|
3853
|
+
/** @description Why you are making this change, recorded in the audit log. Percent-encoded UTF-8 (encode it the way encodeURIComponent does); at most 2048 characters after decoding. Required when the target environment — or, for project-wide changes, any environment in the project — requires a change reason; without one the request is refused with 422 change_reason_required. */
|
|
3854
|
+
"X-Intent-Reason"?: string;
|
|
3855
|
+
};
|
|
3856
|
+
path: {
|
|
3857
|
+
org: string;
|
|
3858
|
+
project: string;
|
|
3859
|
+
flag: string;
|
|
3860
|
+
};
|
|
3861
|
+
cookie?: never;
|
|
3862
|
+
};
|
|
3863
|
+
requestBody?: {
|
|
3864
|
+
content: {
|
|
3865
|
+
"application/json": components["schemas"]["PublicAddVariationRequest"];
|
|
3866
|
+
"text/json": components["schemas"]["PublicAddVariationRequest"];
|
|
3867
|
+
"application/*+json": components["schemas"]["PublicAddVariationRequest"];
|
|
3868
|
+
};
|
|
3869
|
+
};
|
|
3870
|
+
responses: {
|
|
3871
|
+
/** @description Created */
|
|
3872
|
+
201: {
|
|
3873
|
+
headers: {
|
|
3874
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3875
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3876
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3877
|
+
[name: string]: unknown;
|
|
3878
|
+
};
|
|
3879
|
+
content: {
|
|
3880
|
+
"application/json": components["schemas"]["PublicVariationResponse"];
|
|
3881
|
+
};
|
|
3882
|
+
};
|
|
3883
|
+
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
3884
|
+
400: {
|
|
3885
|
+
headers: {
|
|
3886
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3887
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3888
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3889
|
+
[name: string]: unknown;
|
|
3890
|
+
};
|
|
3891
|
+
content: {
|
|
3892
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3893
|
+
};
|
|
3894
|
+
};
|
|
3895
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
3896
|
+
401: {
|
|
3897
|
+
headers: {
|
|
3898
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3899
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3900
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3901
|
+
[name: string]: unknown;
|
|
3902
|
+
};
|
|
3903
|
+
content: {
|
|
3904
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3905
|
+
};
|
|
3906
|
+
};
|
|
3907
|
+
/** @description Forbidden */
|
|
3908
|
+
403: {
|
|
3909
|
+
headers: {
|
|
3910
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3911
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3912
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3913
|
+
[name: string]: unknown;
|
|
3914
|
+
};
|
|
3915
|
+
content: {
|
|
3916
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3917
|
+
};
|
|
3918
|
+
};
|
|
3919
|
+
/** @description Not Found */
|
|
3920
|
+
404: {
|
|
3921
|
+
headers: {
|
|
3922
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3923
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3924
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3925
|
+
[name: string]: unknown;
|
|
3926
|
+
};
|
|
3927
|
+
content: {
|
|
3928
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3929
|
+
};
|
|
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
|
+
};
|
|
3943
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
3944
|
+
429: {
|
|
3945
|
+
headers: {
|
|
3946
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
3947
|
+
"Retry-After"?: number;
|
|
3948
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3949
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3950
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3951
|
+
[name: string]: unknown;
|
|
3952
|
+
};
|
|
3953
|
+
content: {
|
|
3954
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
3955
|
+
};
|
|
3956
|
+
};
|
|
3957
|
+
};
|
|
3958
|
+
};
|
|
3959
|
+
delete?: never;
|
|
3960
|
+
options?: never;
|
|
3961
|
+
head?: never;
|
|
3962
|
+
patch?: never;
|
|
3963
|
+
trace?: never;
|
|
3964
|
+
};
|
|
3965
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/variations/{variationId}": {
|
|
3966
|
+
parameters: {
|
|
3967
|
+
query?: never;
|
|
3968
|
+
header?: never;
|
|
3969
|
+
path?: never;
|
|
3970
|
+
cookie?: never;
|
|
3971
|
+
};
|
|
3972
|
+
get?: never;
|
|
3973
|
+
/**
|
|
3974
|
+
* Updates a variation's name/value/description.
|
|
3975
|
+
* @description Requires at least Member. The variation's key is immutable via this endpoint.
|
|
3976
|
+
*/
|
|
3977
|
+
put: {
|
|
3978
|
+
parameters: {
|
|
3979
|
+
query?: never;
|
|
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
|
+
};
|
|
3984
|
+
path: {
|
|
3985
|
+
org: string;
|
|
3986
|
+
project: string;
|
|
3987
|
+
flag: string;
|
|
3988
|
+
variationId: string;
|
|
3989
|
+
};
|
|
3990
|
+
cookie?: never;
|
|
3991
|
+
};
|
|
3992
|
+
requestBody?: {
|
|
3993
|
+
content: {
|
|
3994
|
+
"application/json": components["schemas"]["PublicUpdateVariationRequest"];
|
|
3995
|
+
"text/json": components["schemas"]["PublicUpdateVariationRequest"];
|
|
3996
|
+
"application/*+json": components["schemas"]["PublicUpdateVariationRequest"];
|
|
3997
|
+
};
|
|
3998
|
+
};
|
|
3999
|
+
responses: {
|
|
4000
|
+
/** @description No Content */
|
|
4001
|
+
204: {
|
|
4002
|
+
headers: {
|
|
4003
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4004
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4005
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4006
|
+
[name: string]: unknown;
|
|
4007
|
+
};
|
|
4008
|
+
content?: never;
|
|
4009
|
+
};
|
|
4010
|
+
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
4011
|
+
400: {
|
|
4012
|
+
headers: {
|
|
4013
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4014
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4015
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4016
|
+
[name: string]: unknown;
|
|
4017
|
+
};
|
|
4018
|
+
content: {
|
|
4019
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4020
|
+
};
|
|
4021
|
+
};
|
|
4022
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
4023
|
+
401: {
|
|
4024
|
+
headers: {
|
|
4025
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4026
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4027
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4028
|
+
[name: string]: unknown;
|
|
4029
|
+
};
|
|
4030
|
+
content: {
|
|
4031
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4032
|
+
};
|
|
4033
|
+
};
|
|
4034
|
+
/** @description Forbidden */
|
|
4035
|
+
403: {
|
|
4036
|
+
headers: {
|
|
4037
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4038
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4039
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4040
|
+
[name: string]: unknown;
|
|
4041
|
+
};
|
|
4042
|
+
content: {
|
|
4043
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4044
|
+
};
|
|
4045
|
+
};
|
|
4046
|
+
/** @description Not Found */
|
|
4047
|
+
404: {
|
|
4048
|
+
headers: {
|
|
4049
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4050
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4051
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4052
|
+
[name: string]: unknown;
|
|
4053
|
+
};
|
|
4054
|
+
content: {
|
|
4055
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4056
|
+
};
|
|
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
|
+
};
|
|
4070
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
4071
|
+
429: {
|
|
4072
|
+
headers: {
|
|
4073
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
4074
|
+
"Retry-After"?: number;
|
|
4075
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4076
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4077
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4078
|
+
[name: string]: unknown;
|
|
4079
|
+
};
|
|
4080
|
+
content: {
|
|
4081
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4082
|
+
};
|
|
4083
|
+
};
|
|
4084
|
+
};
|
|
4085
|
+
};
|
|
4086
|
+
post?: never;
|
|
4087
|
+
/**
|
|
4088
|
+
* Removes a variation from the resolved flag.
|
|
4089
|
+
* @description Requires at least Member. A variation with
|
|
4090
|
+
* dependents (used as default variation, referenced by a targeting rule, or flagged
|
|
4091
|
+
* `VARIATION_HAS_DEPENDENTS`) throws the existing
|
|
4092
|
+
* ValidationException, which the
|
|
4093
|
+
* exception filter maps to a 400 `validation_failed` envelope — this action doesn't
|
|
4094
|
+
* special-case it.
|
|
4095
|
+
*/
|
|
4096
|
+
delete: {
|
|
4097
|
+
parameters: {
|
|
4098
|
+
query?: never;
|
|
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
|
+
};
|
|
4103
|
+
path: {
|
|
4104
|
+
org: string;
|
|
4105
|
+
project: string;
|
|
4106
|
+
flag: string;
|
|
4107
|
+
variationId: string;
|
|
4108
|
+
};
|
|
4109
|
+
cookie?: never;
|
|
4110
|
+
};
|
|
4111
|
+
requestBody?: never;
|
|
4112
|
+
responses: {
|
|
4113
|
+
/** @description No Content */
|
|
4114
|
+
204: {
|
|
4115
|
+
headers: {
|
|
4116
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4117
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4118
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4119
|
+
[name: string]: unknown;
|
|
4120
|
+
};
|
|
4121
|
+
content?: never;
|
|
4122
|
+
};
|
|
4123
|
+
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
4124
|
+
400: {
|
|
4125
|
+
headers: {
|
|
4126
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4127
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4128
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4129
|
+
[name: string]: unknown;
|
|
4130
|
+
};
|
|
4131
|
+
content: {
|
|
4132
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4133
|
+
};
|
|
4134
|
+
};
|
|
4135
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
4136
|
+
401: {
|
|
4137
|
+
headers: {
|
|
4138
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4139
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4140
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4141
|
+
[name: string]: unknown;
|
|
4142
|
+
};
|
|
4143
|
+
content: {
|
|
4144
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4145
|
+
};
|
|
4146
|
+
};
|
|
4147
|
+
/** @description Forbidden */
|
|
4148
|
+
403: {
|
|
4149
|
+
headers: {
|
|
4150
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4151
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4152
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4153
|
+
[name: string]: unknown;
|
|
4154
|
+
};
|
|
4155
|
+
content: {
|
|
4156
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4157
|
+
};
|
|
4158
|
+
};
|
|
4159
|
+
/** @description Not Found */
|
|
4160
|
+
404: {
|
|
4161
|
+
headers: {
|
|
4162
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4163
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4164
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4165
|
+
[name: string]: unknown;
|
|
4166
|
+
};
|
|
4167
|
+
content: {
|
|
4168
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4169
|
+
};
|
|
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
|
+
};
|
|
4183
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
4184
|
+
429: {
|
|
4185
|
+
headers: {
|
|
4186
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
4187
|
+
"Retry-After"?: number;
|
|
4188
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
4189
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
4190
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
4191
|
+
[name: string]: unknown;
|
|
4192
|
+
};
|
|
4193
|
+
content: {
|
|
4194
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
4195
|
+
};
|
|
4196
|
+
};
|
|
4197
|
+
};
|
|
4198
|
+
};
|
|
4199
|
+
options?: never;
|
|
4200
|
+
head?: never;
|
|
4201
|
+
patch?: never;
|
|
4202
|
+
trace?: never;
|
|
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
|
+
};
|
|
3596
4478
|
/**
|
|
3597
|
-
*
|
|
3598
|
-
* @description Requires at least Member.
|
|
3599
|
-
* GetFeatureFlagQuery and locates the new variation by the id returned from
|
|
3600
|
-
* AddVariationCommand so the response reflects exactly what was persisted.
|
|
4479
|
+
* Renames a trigger, replaces its description, or turns it off and on.
|
|
4480
|
+
* @description Requires at least Member.
|
|
3601
4481
|
*/
|
|
3602
|
-
|
|
4482
|
+
put: {
|
|
3603
4483
|
parameters: {
|
|
3604
4484
|
query?: never;
|
|
3605
4485
|
header?: {
|
|
@@ -3610,19 +4490,21 @@ export interface paths {
|
|
|
3610
4490
|
org: string;
|
|
3611
4491
|
project: string;
|
|
3612
4492
|
flag: string;
|
|
4493
|
+
env: string;
|
|
4494
|
+
trigger: string;
|
|
3613
4495
|
};
|
|
3614
4496
|
cookie?: never;
|
|
3615
4497
|
};
|
|
3616
4498
|
requestBody?: {
|
|
3617
4499
|
content: {
|
|
3618
|
-
"application/json": components["schemas"]["
|
|
3619
|
-
"text/json": components["schemas"]["
|
|
3620
|
-
"application/*+json": components["schemas"]["
|
|
4500
|
+
"application/json": components["schemas"]["PublicUpdateFlagTriggerRequest"];
|
|
4501
|
+
"text/json": components["schemas"]["PublicUpdateFlagTriggerRequest"];
|
|
4502
|
+
"application/*+json": components["schemas"]["PublicUpdateFlagTriggerRequest"];
|
|
3621
4503
|
};
|
|
3622
4504
|
};
|
|
3623
4505
|
responses: {
|
|
3624
|
-
/** @description
|
|
3625
|
-
|
|
4506
|
+
/** @description OK */
|
|
4507
|
+
200: {
|
|
3626
4508
|
headers: {
|
|
3627
4509
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3628
4510
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
@@ -3630,7 +4512,7 @@ export interface paths {
|
|
|
3630
4512
|
[name: string]: unknown;
|
|
3631
4513
|
};
|
|
3632
4514
|
content: {
|
|
3633
|
-
"application/json": components["schemas"]["
|
|
4515
|
+
"application/json": components["schemas"]["PublicFlagTriggerResponse"];
|
|
3634
4516
|
};
|
|
3635
4517
|
};
|
|
3636
4518
|
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
@@ -3709,25 +4591,12 @@ export interface paths {
|
|
|
3709
4591
|
};
|
|
3710
4592
|
};
|
|
3711
4593
|
};
|
|
3712
|
-
|
|
3713
|
-
options?: never;
|
|
3714
|
-
head?: never;
|
|
3715
|
-
patch?: never;
|
|
3716
|
-
trace?: never;
|
|
3717
|
-
};
|
|
3718
|
-
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/variations/{variationId}": {
|
|
3719
|
-
parameters: {
|
|
3720
|
-
query?: never;
|
|
3721
|
-
header?: never;
|
|
3722
|
-
path?: never;
|
|
3723
|
-
cookie?: never;
|
|
3724
|
-
};
|
|
3725
|
-
get?: never;
|
|
4594
|
+
post?: never;
|
|
3726
4595
|
/**
|
|
3727
|
-
*
|
|
3728
|
-
* @description
|
|
4596
|
+
* Deletes a trigger.
|
|
4597
|
+
* @description Its URL stops working at once. Requires at least Member.
|
|
3729
4598
|
*/
|
|
3730
|
-
|
|
4599
|
+
delete: {
|
|
3731
4600
|
parameters: {
|
|
3732
4601
|
query?: never;
|
|
3733
4602
|
header?: {
|
|
@@ -3738,17 +4607,12 @@ export interface paths {
|
|
|
3738
4607
|
org: string;
|
|
3739
4608
|
project: string;
|
|
3740
4609
|
flag: string;
|
|
3741
|
-
|
|
4610
|
+
env: string;
|
|
4611
|
+
trigger: string;
|
|
3742
4612
|
};
|
|
3743
4613
|
cookie?: never;
|
|
3744
4614
|
};
|
|
3745
|
-
requestBody?:
|
|
3746
|
-
content: {
|
|
3747
|
-
"application/json": components["schemas"]["PublicUpdateVariationRequest"];
|
|
3748
|
-
"text/json": components["schemas"]["PublicUpdateVariationRequest"];
|
|
3749
|
-
"application/*+json": components["schemas"]["PublicUpdateVariationRequest"];
|
|
3750
|
-
};
|
|
3751
|
-
};
|
|
4615
|
+
requestBody?: never;
|
|
3752
4616
|
responses: {
|
|
3753
4617
|
/** @description No Content */
|
|
3754
4618
|
204: {
|
|
@@ -3836,17 +4700,25 @@ export interface paths {
|
|
|
3836
4700
|
};
|
|
3837
4701
|
};
|
|
3838
4702
|
};
|
|
3839
|
-
|
|
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;
|
|
3840
4717
|
/**
|
|
3841
|
-
*
|
|
3842
|
-
* @description
|
|
3843
|
-
* dependents (used as default variation, referenced by a targeting rule, or flagged
|
|
3844
|
-
* `VARIATION_HAS_DEPENDENTS`) throws the existing
|
|
3845
|
-
* ValidationException, which the
|
|
3846
|
-
* exception filter maps to a 400 `validation_failed` envelope — this action doesn't
|
|
3847
|
-
* special-case it.
|
|
4718
|
+
* Replaces a trigger's URL.
|
|
4719
|
+
* @description The old URL stops working at once; the new one is returned exactly once.
|
|
3848
4720
|
*/
|
|
3849
|
-
|
|
4721
|
+
post: {
|
|
3850
4722
|
parameters: {
|
|
3851
4723
|
query?: never;
|
|
3852
4724
|
header?: {
|
|
@@ -3857,21 +4729,24 @@ export interface paths {
|
|
|
3857
4729
|
org: string;
|
|
3858
4730
|
project: string;
|
|
3859
4731
|
flag: string;
|
|
3860
|
-
|
|
4732
|
+
env: string;
|
|
4733
|
+
trigger: string;
|
|
3861
4734
|
};
|
|
3862
4735
|
cookie?: never;
|
|
3863
4736
|
};
|
|
3864
4737
|
requestBody?: never;
|
|
3865
4738
|
responses: {
|
|
3866
|
-
/** @description
|
|
3867
|
-
|
|
4739
|
+
/** @description OK */
|
|
4740
|
+
200: {
|
|
3868
4741
|
headers: {
|
|
3869
4742
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
3870
4743
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
3871
4744
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
3872
4745
|
[name: string]: unknown;
|
|
3873
4746
|
};
|
|
3874
|
-
content
|
|
4747
|
+
content: {
|
|
4748
|
+
"application/json": components["schemas"]["PublicFlagTriggerWithUrlResponse"];
|
|
4749
|
+
};
|
|
3875
4750
|
};
|
|
3876
4751
|
/** @description The request is malformed, or it carries an If-Match header, which this endpoint can't evaluate. Send no If-Match, or `*`. */
|
|
3877
4752
|
400: {
|
|
@@ -3949,6 +4824,7 @@ export interface paths {
|
|
|
3949
4824
|
};
|
|
3950
4825
|
};
|
|
3951
4826
|
};
|
|
4827
|
+
delete?: never;
|
|
3952
4828
|
options?: never;
|
|
3953
4829
|
head?: never;
|
|
3954
4830
|
patch?: never;
|
|
@@ -4601,6 +5477,113 @@ export interface paths {
|
|
|
4601
5477
|
patch?: never;
|
|
4602
5478
|
trace?: never;
|
|
4603
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
|
+
};
|
|
5563
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
5564
|
+
429: {
|
|
5565
|
+
headers: {
|
|
5566
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
5567
|
+
"Retry-After"?: number;
|
|
5568
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
5569
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5570
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5571
|
+
[name: string]: unknown;
|
|
5572
|
+
};
|
|
5573
|
+
content: {
|
|
5574
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
5575
|
+
};
|
|
5576
|
+
};
|
|
5577
|
+
};
|
|
5578
|
+
};
|
|
5579
|
+
put?: never;
|
|
5580
|
+
post?: never;
|
|
5581
|
+
delete?: never;
|
|
5582
|
+
options?: never;
|
|
5583
|
+
head?: never;
|
|
5584
|
+
patch?: never;
|
|
5585
|
+
trace?: never;
|
|
5586
|
+
};
|
|
4604
5587
|
"/api/v1/orgs/{org}/projects/{project}/default-flag-lifetime": {
|
|
4605
5588
|
parameters: {
|
|
4606
5589
|
query?: never;
|
|
@@ -7227,6 +8210,37 @@ export interface components {
|
|
|
7227
8210
|
*/
|
|
7228
8211
|
weight: number;
|
|
7229
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
|
+
};
|
|
7230
8244
|
/**
|
|
7231
8245
|
* @description Request body for `POST /api/v1/orgs/{org}/projects/{project}/environments`. Named
|
|
7232
8246
|
* distinctly from the dashboard's own `CreateEnvironmentRequest`
|
|
@@ -7317,6 +8331,16 @@ export interface components {
|
|
|
7317
8331
|
ownerEmail?: string | null;
|
|
7318
8332
|
isPermanent?: boolean;
|
|
7319
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
|
+
};
|
|
7320
8344
|
/**
|
|
7321
8345
|
* @description Request body for `POST /api/v1/orgs/{org}/projects`. Named distinctly from the
|
|
7322
8346
|
* dashboard's own `CreateProjectRequest` — both
|
|
@@ -7589,6 +8613,22 @@ export interface components {
|
|
|
7589
8613
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
7590
8614
|
};
|
|
7591
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
|
+
};
|
|
7592
8632
|
/** @description The evaluations one part of the targeting served. */
|
|
7593
8633
|
PublicEvaluationSource: {
|
|
7594
8634
|
/**
|
|
@@ -7638,6 +8678,46 @@ export interface components {
|
|
|
7638
8678
|
*/
|
|
7639
8679
|
share: number;
|
|
7640
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
|
+
};
|
|
7641
8721
|
/**
|
|
7642
8722
|
* @description Public representation of a flag's config within a single environment, returned by
|
|
7643
8723
|
* `GET .../flags/{flag}/environments` and `GET .../flags/{flag}/environments/{env}`.
|
|
@@ -7979,6 +9059,55 @@ export interface components {
|
|
|
7979
9059
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
7980
9060
|
};
|
|
7981
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
|
+
};
|
|
7982
9111
|
/**
|
|
7983
9112
|
* @description The cap behind a `plan_limit_reached` error. `resource` is the capped collection
|
|
7984
9113
|
* (`projects`, `environments`, `flags`, `webhooks`, `members`);
|
|
@@ -8233,6 +9362,19 @@ export interface components {
|
|
|
8233
9362
|
PublicSetFlagRemovalPrRequest: {
|
|
8234
9363
|
url?: string | null;
|
|
8235
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
|
+
};
|
|
8236
9378
|
/**
|
|
8237
9379
|
* @description The full targeting configuration for a flag in a single environment, returned by
|
|
8238
9380
|
* `GET .../targeting`. Maps 1:1 onto TargetingConfigurationDto — including
|
|
@@ -8383,6 +9525,15 @@ export interface components {
|
|
|
8383
9525
|
strategy?: "SingleVariation" | "PercentageRollout" | "TargetedRollout" | null;
|
|
8384
9526
|
prerequisites?: components["schemas"]["PublicPrerequisiteDto"][] | null;
|
|
8385
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
|
+
};
|
|
8386
9537
|
/**
|
|
8387
9538
|
* @description Request body for `PUT /api/v1/orgs/{org}/projects/{project}`. See
|
|
8388
9539
|
* PublicCreateProjectRequest for why this is named distinctly from the
|