@featureflip/mcp 0.3.0 → 0.4.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 +6 -3
- package/dist/cli.mjs +4 -7
- package/dist/generated/api-types.d.ts +483 -143
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/generated/output-schemas.json.d.ts +337 -1
- package/dist/index.mjs +1 -1
- package/dist/{org-DFNWkYpr.js → org-C6HAk06Q.js} +45 -50
- package/dist/tools/flag-environments.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -81,7 +81,8 @@ export interface paths {
|
|
|
81
81
|
put?: never;
|
|
82
82
|
/**
|
|
83
83
|
* Creates an environment in the resolved project.
|
|
84
|
-
* @description Requires at least Member.
|
|
84
|
+
* @description Requires at least Member. An environment past
|
|
85
|
+
* the plan's per-project environment cap is a 403 `plan_limit_reached`.
|
|
85
86
|
*/
|
|
86
87
|
post: {
|
|
87
88
|
parameters: {
|
|
@@ -573,7 +574,8 @@ export interface paths {
|
|
|
573
574
|
* Type is passed through verbatim to
|
|
574
575
|
* Type (a bare string) — an invalid value surfaces as
|
|
575
576
|
* the handler's own validation failure. Re-fetches via GetFeatureFlagQuery so
|
|
576
|
-
* the response reflects exactly what was persisted (e.g. server-assigned variation ids).
|
|
577
|
+
* the response reflects exactly what was persisted (e.g. server-assigned variation ids). A flag
|
|
578
|
+
* past the plan's per-project cap on active flags is a 403 `plan_limit_reached`.
|
|
577
579
|
*/
|
|
578
580
|
post: {
|
|
579
581
|
parameters: {
|
|
@@ -2008,7 +2010,9 @@ export interface paths {
|
|
|
2008
2010
|
put?: never;
|
|
2009
2011
|
/**
|
|
2010
2012
|
* Restores a previously archived flag.
|
|
2011
|
-
* @description Requires at least Member.
|
|
2013
|
+
* @description Requires at least Member. An archived flag doesn't count
|
|
2014
|
+
* toward the plan's per-project flag cap, so restoring one into a full project is a 403
|
|
2015
|
+
* `plan_limit_reached`.
|
|
2012
2016
|
*/
|
|
2013
2017
|
post: {
|
|
2014
2018
|
parameters: {
|
|
@@ -2518,6 +2522,112 @@ export interface paths {
|
|
|
2518
2522
|
patch?: never;
|
|
2519
2523
|
trace?: never;
|
|
2520
2524
|
};
|
|
2525
|
+
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/evaluations": {
|
|
2526
|
+
parameters: {
|
|
2527
|
+
query?: never;
|
|
2528
|
+
header?: never;
|
|
2529
|
+
path?: never;
|
|
2530
|
+
cookie?: never;
|
|
2531
|
+
};
|
|
2532
|
+
/**
|
|
2533
|
+
* Gets evaluation counts for the flag in one environment.
|
|
2534
|
+
* @description Counts every evaluation over the last `days` UTC days (7, 30 or 90; default 7),
|
|
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).
|
|
2542
|
+
*/
|
|
2543
|
+
get: {
|
|
2544
|
+
parameters: {
|
|
2545
|
+
query?: {
|
|
2546
|
+
days?: 7 | 30 | 90;
|
|
2547
|
+
};
|
|
2548
|
+
header?: never;
|
|
2549
|
+
path: {
|
|
2550
|
+
org: string;
|
|
2551
|
+
project: string;
|
|
2552
|
+
flag: string;
|
|
2553
|
+
env: string;
|
|
2554
|
+
};
|
|
2555
|
+
cookie?: never;
|
|
2556
|
+
};
|
|
2557
|
+
requestBody?: never;
|
|
2558
|
+
responses: {
|
|
2559
|
+
/** @description OK */
|
|
2560
|
+
200: {
|
|
2561
|
+
headers: {
|
|
2562
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2563
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2564
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2565
|
+
[name: string]: unknown;
|
|
2566
|
+
};
|
|
2567
|
+
content: {
|
|
2568
|
+
"application/json": components["schemas"]["PublicFlagEvaluationsResponse"];
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
/** @description Bad Request */
|
|
2572
|
+
400: {
|
|
2573
|
+
headers: {
|
|
2574
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2575
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2576
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2577
|
+
[name: string]: unknown;
|
|
2578
|
+
};
|
|
2579
|
+
content: {
|
|
2580
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2581
|
+
};
|
|
2582
|
+
};
|
|
2583
|
+
/** @description Authentication is required, or the supplied API token is invalid or expired. */
|
|
2584
|
+
401: {
|
|
2585
|
+
headers: {
|
|
2586
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2587
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2588
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2589
|
+
[name: string]: unknown;
|
|
2590
|
+
};
|
|
2591
|
+
content: {
|
|
2592
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2593
|
+
};
|
|
2594
|
+
};
|
|
2595
|
+
/** @description Not Found */
|
|
2596
|
+
404: {
|
|
2597
|
+
headers: {
|
|
2598
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2599
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2600
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2601
|
+
[name: string]: unknown;
|
|
2602
|
+
};
|
|
2603
|
+
content: {
|
|
2604
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2605
|
+
};
|
|
2606
|
+
};
|
|
2607
|
+
/** @description Rate limit exceeded. Retry after the interval indicated by the Retry-After header. */
|
|
2608
|
+
429: {
|
|
2609
|
+
headers: {
|
|
2610
|
+
/** @description Number of seconds to wait before retrying the request. */
|
|
2611
|
+
"Retry-After"?: number;
|
|
2612
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
2613
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
2614
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
2615
|
+
[name: string]: unknown;
|
|
2616
|
+
};
|
|
2617
|
+
content: {
|
|
2618
|
+
"application/json": components["schemas"]["PublicApiErrorEnvelope"];
|
|
2619
|
+
};
|
|
2620
|
+
};
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
put?: never;
|
|
2624
|
+
post?: never;
|
|
2625
|
+
delete?: never;
|
|
2626
|
+
options?: never;
|
|
2627
|
+
head?: never;
|
|
2628
|
+
patch?: never;
|
|
2629
|
+
trace?: never;
|
|
2630
|
+
};
|
|
2521
2631
|
"/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/targeting": {
|
|
2522
2632
|
parameters: {
|
|
2523
2633
|
query?: never;
|
|
@@ -2619,7 +2729,9 @@ export interface paths {
|
|
|
2619
2729
|
* Declaratively replaces the resolved flag's entire targeting rule set in the resolved environment.
|
|
2620
2730
|
* @description The ordered Rules list is applied in
|
|
2621
2731
|
* array order (= evaluation order); an empty or omitted list clears all rules. Segment-scoped
|
|
2622
|
-
* rules are supported. The replace is atomic.
|
|
2732
|
+
* rules are supported. The replace is atomic. A rule identical to an existing one keeps that
|
|
2733
|
+
* rule's id (moving it to its new position); only new or changed rules get new ids.
|
|
2734
|
+
* Requires at least Member.
|
|
2623
2735
|
*/
|
|
2624
2736
|
put: {
|
|
2625
2737
|
parameters: {
|
|
@@ -3880,7 +3992,8 @@ export interface paths {
|
|
|
3880
3992
|
put?: never;
|
|
3881
3993
|
/**
|
|
3882
3994
|
* Creates a project in the resolved organization.
|
|
3883
|
-
* @description Requires at least Member.
|
|
3995
|
+
* @description Requires at least Member. A project past the
|
|
3996
|
+
* plan's project cap is a 403 `plan_limit_reached`.
|
|
3884
3997
|
*/
|
|
3885
3998
|
post: {
|
|
3886
3999
|
parameters: {
|
|
@@ -5511,7 +5624,8 @@ export interface paths {
|
|
|
5511
5624
|
/**
|
|
5512
5625
|
* Creates a webhook subscription.
|
|
5513
5626
|
* @description Requires Admin. The response carries the signing secret,
|
|
5514
|
-
* which is never shown again. Supports the `Idempotency-Key` header.
|
|
5627
|
+
* which is never shown again. Supports the `Idempotency-Key` header. A subscription past
|
|
5628
|
+
* the plan's webhook cap is a 403 `plan_limit_reached`.
|
|
5515
5629
|
*/
|
|
5516
5630
|
post: {
|
|
5517
5631
|
parameters: {
|
|
@@ -5813,7 +5927,8 @@ export interface paths {
|
|
|
5813
5927
|
/**
|
|
5814
5928
|
* Replaces a webhook subscription's configuration.
|
|
5815
5929
|
* @description Requires Admin. Omitted lists become empty,
|
|
5816
|
-
* which means "all".
|
|
5930
|
+
* 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`.
|
|
5817
5932
|
*/
|
|
5818
5933
|
put: {
|
|
5819
5934
|
parameters: {
|
|
@@ -6250,7 +6365,8 @@ export interface paths {
|
|
|
6250
6365
|
* Queues one synthetic `flag.toggled` event for this subscription alone.
|
|
6251
6366
|
* @description Requires Admin.
|
|
6252
6367
|
* Delivery is asynchronous — read the delivery log for the outcome. Refused with a 400 when
|
|
6253
|
-
* the subscription is disabled
|
|
6368
|
+
* the subscription is disabled, and with a 403 `plan_limit_reached` when it is over the
|
|
6369
|
+
* plan's webhook allowance.
|
|
6254
6370
|
*/
|
|
6255
6371
|
post: {
|
|
6256
6372
|
parameters: {
|
|
@@ -6457,7 +6573,8 @@ export interface paths {
|
|
|
6457
6573
|
* Queues a finished delivery (succeeded or dead-lettered) to be sent again, restarting its retry schedule.
|
|
6458
6574
|
* @description Requires Admin. Refused with a 400 when the delivery is still pending, when
|
|
6459
6575
|
* the subscription is disabled, or when the subscription's current project, environment or
|
|
6460
|
-
* event-type filters no longer cover the delivery's event.
|
|
6576
|
+
* event-type filters no longer cover the delivery's event. Refused with a 403
|
|
6577
|
+
* `plan_limit_reached` when the subscription is over the plan's webhook allowance.
|
|
6461
6578
|
*/
|
|
6462
6579
|
post: {
|
|
6463
6580
|
parameters: {
|
|
@@ -6572,10 +6689,10 @@ export interface components {
|
|
|
6572
6689
|
* service token (access to every project), never an empty list.
|
|
6573
6690
|
*/
|
|
6574
6691
|
MeResponse: {
|
|
6575
|
-
type: string
|
|
6692
|
+
type: string;
|
|
6576
6693
|
/** Format: uuid */
|
|
6577
6694
|
id: string;
|
|
6578
|
-
name: string
|
|
6695
|
+
name: string;
|
|
6579
6696
|
email?: string | null;
|
|
6580
6697
|
emailVerified?: boolean | null;
|
|
6581
6698
|
/** Format: uuid */
|
|
@@ -6584,8 +6701,8 @@ export interface components {
|
|
|
6584
6701
|
projectScope?: string[] | null;
|
|
6585
6702
|
};
|
|
6586
6703
|
NextAction: {
|
|
6587
|
-
method: string
|
|
6588
|
-
path: string
|
|
6704
|
+
method: string;
|
|
6705
|
+
path: string;
|
|
6589
6706
|
};
|
|
6590
6707
|
/**
|
|
6591
6708
|
* @description Public representation of an organization, returned by both `GET /api/v1/orgs` (list) and
|
|
@@ -6596,13 +6713,13 @@ export interface components {
|
|
|
6596
6713
|
OrganizationResponse: {
|
|
6597
6714
|
/** Format: uuid */
|
|
6598
6715
|
id: string;
|
|
6599
|
-
name: string
|
|
6600
|
-
slug: string
|
|
6716
|
+
name: string;
|
|
6717
|
+
slug: string;
|
|
6601
6718
|
/**
|
|
6602
6719
|
* @description Allowed values: Solo, Team, Pro, Business, Enterprise.
|
|
6603
|
-
* @enum {string
|
|
6720
|
+
* @enum {string}
|
|
6604
6721
|
*/
|
|
6605
|
-
plan: "Solo" | "Team" | "Pro" | "Business" | "Enterprise"
|
|
6722
|
+
plan: "Solo" | "Team" | "Pro" | "Business" | "Enterprise";
|
|
6606
6723
|
isActive: boolean;
|
|
6607
6724
|
/** Format: date-time */
|
|
6608
6725
|
createdAt: string;
|
|
@@ -6613,7 +6730,7 @@ export interface components {
|
|
|
6613
6730
|
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
6614
6731
|
*/
|
|
6615
6732
|
OrganizationResponsePagedResult: {
|
|
6616
|
-
items: components["schemas"]["OrganizationResponse"][]
|
|
6733
|
+
items: components["schemas"]["OrganizationResponse"][];
|
|
6617
6734
|
next_cursor?: string | null;
|
|
6618
6735
|
/** @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. */
|
|
6619
6736
|
_actions?: {
|
|
@@ -6640,8 +6757,8 @@ export interface components {
|
|
|
6640
6757
|
ProjectResponse: {
|
|
6641
6758
|
/** Format: uuid */
|
|
6642
6759
|
id: string;
|
|
6643
|
-
key: string
|
|
6644
|
-
name: string
|
|
6760
|
+
key: string;
|
|
6761
|
+
name: string;
|
|
6645
6762
|
description?: string | null;
|
|
6646
6763
|
/** Format: date-time */
|
|
6647
6764
|
createdAt: string;
|
|
@@ -6660,7 +6777,7 @@ export interface components {
|
|
|
6660
6777
|
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
6661
6778
|
*/
|
|
6662
6779
|
ProjectResponsePagedResult: {
|
|
6663
|
-
items: components["schemas"]["ProjectResponse"][]
|
|
6780
|
+
items: components["schemas"]["ProjectResponse"][];
|
|
6664
6781
|
next_cursor?: string | null;
|
|
6665
6782
|
/** @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. */
|
|
6666
6783
|
_actions?: {
|
|
@@ -6681,9 +6798,9 @@ export interface components {
|
|
|
6681
6798
|
* }
|
|
6682
6799
|
*/
|
|
6683
6800
|
PublicAddVariationRequest: {
|
|
6684
|
-
key: string
|
|
6685
|
-
name: string
|
|
6686
|
-
value: string
|
|
6801
|
+
key: string;
|
|
6802
|
+
name: string;
|
|
6803
|
+
value: string;
|
|
6687
6804
|
description?: string | null;
|
|
6688
6805
|
};
|
|
6689
6806
|
/**
|
|
@@ -6700,6 +6817,8 @@ export interface components {
|
|
|
6700
6817
|
* `connection_id` is present only on the `sso_required` error: the organization
|
|
6701
6818
|
* requires single sign-on, and this credential didn't come through its identity provider.
|
|
6702
6819
|
* `connection_id` identifies which SSO connection to sign in with.
|
|
6820
|
+
* `plan_limit` is present only on the `plan_limit_reached` error: which plan cap the
|
|
6821
|
+
* request would have exceeded, so a client can branch on it without parsing `message`.
|
|
6703
6822
|
* @example {
|
|
6704
6823
|
* "error": "not_found",
|
|
6705
6824
|
* "message": "Flag 'new-checkout-flw' was not found in project 'checkout'.",
|
|
@@ -6716,9 +6835,9 @@ export interface components {
|
|
|
6716
6835
|
* }
|
|
6717
6836
|
*/
|
|
6718
6837
|
PublicApiErrorEnvelope: {
|
|
6719
|
-
error: string
|
|
6720
|
-
message: string
|
|
6721
|
-
docs_url: string
|
|
6838
|
+
error: string;
|
|
6839
|
+
message: string;
|
|
6840
|
+
docs_url: string;
|
|
6722
6841
|
fields?: {
|
|
6723
6842
|
[key: string]: string[];
|
|
6724
6843
|
} | null;
|
|
@@ -6728,15 +6847,16 @@ export interface components {
|
|
|
6728
6847
|
next_actions?: components["schemas"]["NextAction"][] | null;
|
|
6729
6848
|
/** Format: uuid */
|
|
6730
6849
|
connection_id?: string | null;
|
|
6850
|
+
plan_limit?: components["schemas"]["PublicPlanLimit"];
|
|
6731
6851
|
};
|
|
6732
6852
|
/** @description Request-side condition group, symmetric with PublicConditionGroupResponse. */
|
|
6733
6853
|
PublicConditionGroupRequest: {
|
|
6734
6854
|
/**
|
|
6735
6855
|
* @description Allowed values: And, Or.
|
|
6736
|
-
* @enum {string
|
|
6856
|
+
* @enum {string}
|
|
6737
6857
|
*/
|
|
6738
|
-
operator: "And" | "Or"
|
|
6739
|
-
conditions: components["schemas"]["PublicConditionRequest"][]
|
|
6858
|
+
operator: "And" | "Or";
|
|
6859
|
+
conditions: components["schemas"]["PublicConditionRequest"][];
|
|
6740
6860
|
};
|
|
6741
6861
|
/**
|
|
6742
6862
|
* @description A condition group within a PublicTargetingRuleResponse. Maps 1:1 onto
|
|
@@ -6748,20 +6868,20 @@ export interface components {
|
|
|
6748
6868
|
PublicConditionGroupResponse: {
|
|
6749
6869
|
/**
|
|
6750
6870
|
* @description Allowed values: And, Or.
|
|
6751
|
-
* @enum {string
|
|
6871
|
+
* @enum {string}
|
|
6752
6872
|
*/
|
|
6753
|
-
operator: "And" | "Or"
|
|
6754
|
-
conditions: components["schemas"]["PublicConditionResponse"][]
|
|
6873
|
+
operator: "And" | "Or";
|
|
6874
|
+
conditions: components["schemas"]["PublicConditionResponse"][];
|
|
6755
6875
|
};
|
|
6756
6876
|
/** @description Request-side condition, symmetric with PublicConditionResponse. */
|
|
6757
6877
|
PublicConditionRequest: {
|
|
6758
|
-
attribute: string
|
|
6878
|
+
attribute: string;
|
|
6759
6879
|
/**
|
|
6760
6880
|
* @description Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.
|
|
6761
|
-
* @enum {string
|
|
6881
|
+
* @enum {string}
|
|
6762
6882
|
*/
|
|
6763
|
-
operator: "Equals" | "NotEquals" | "Contains" | "NotContains" | "GreaterThan" | "LessThan" | "GreaterThanOrEqual" | "LessThanOrEqual" | "In" | "NotIn" | "MatchesRegex" | "StartsWith" | "EndsWith" | "Before" | "After" | "SemverEquals" | "SemverGreaterThan" | "SemverGreaterThanOrEqual" | "SemverLessThan" | "SemverLessThanOrEqual"
|
|
6764
|
-
values: string[]
|
|
6883
|
+
operator: "Equals" | "NotEquals" | "Contains" | "NotContains" | "GreaterThan" | "LessThan" | "GreaterThanOrEqual" | "LessThanOrEqual" | "In" | "NotIn" | "MatchesRegex" | "StartsWith" | "EndsWith" | "Before" | "After" | "SemverEquals" | "SemverGreaterThan" | "SemverGreaterThanOrEqual" | "SemverLessThan" | "SemverLessThanOrEqual";
|
|
6884
|
+
values: string[];
|
|
6765
6885
|
negate?: boolean;
|
|
6766
6886
|
};
|
|
6767
6887
|
/**
|
|
@@ -6770,15 +6890,27 @@ export interface components {
|
|
|
6770
6890
|
* `OperatorType` members (e.g. `"Equals"`, `"In"`).
|
|
6771
6891
|
*/
|
|
6772
6892
|
PublicConditionResponse: {
|
|
6773
|
-
attribute: string
|
|
6893
|
+
attribute: string;
|
|
6774
6894
|
/**
|
|
6775
6895
|
* @description Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.
|
|
6776
|
-
* @enum {string
|
|
6896
|
+
* @enum {string}
|
|
6777
6897
|
*/
|
|
6778
|
-
operator: "Equals" | "NotEquals" | "Contains" | "NotContains" | "GreaterThan" | "LessThan" | "GreaterThanOrEqual" | "LessThanOrEqual" | "In" | "NotIn" | "MatchesRegex" | "StartsWith" | "EndsWith" | "Before" | "After" | "SemverEquals" | "SemverGreaterThan" | "SemverGreaterThanOrEqual" | "SemverLessThan" | "SemverLessThanOrEqual"
|
|
6779
|
-
values: string[]
|
|
6898
|
+
operator: "Equals" | "NotEquals" | "Contains" | "NotContains" | "GreaterThan" | "LessThan" | "GreaterThanOrEqual" | "LessThanOrEqual" | "In" | "NotIn" | "MatchesRegex" | "StartsWith" | "EndsWith" | "Before" | "After" | "SemverEquals" | "SemverGreaterThan" | "SemverGreaterThanOrEqual" | "SemverLessThan" | "SemverLessThanOrEqual";
|
|
6899
|
+
values: string[];
|
|
6780
6900
|
negate: boolean;
|
|
6781
6901
|
};
|
|
6902
|
+
/** @description A variation's configured share of a rollout rule. */
|
|
6903
|
+
PublicConfiguredWeight: {
|
|
6904
|
+
/** @description The variation's key. */
|
|
6905
|
+
variationKey: string;
|
|
6906
|
+
/** @description The variation's name, or null when the key no longer matches one of the flag's variations. */
|
|
6907
|
+
name?: string | null;
|
|
6908
|
+
/**
|
|
6909
|
+
* Format: int32
|
|
6910
|
+
* @description Percent of the rule's traffic.
|
|
6911
|
+
*/
|
|
6912
|
+
weight: number;
|
|
6913
|
+
};
|
|
6782
6914
|
/**
|
|
6783
6915
|
* @description Request body for `POST /api/v1/orgs/{org}/projects/{project}/environments`. Named
|
|
6784
6916
|
* distinctly from the dashboard's own `CreateEnvironmentRequest`
|
|
@@ -6793,8 +6925,8 @@ export interface components {
|
|
|
6793
6925
|
* }
|
|
6794
6926
|
*/
|
|
6795
6927
|
PublicCreateEnvironmentRequest: {
|
|
6796
|
-
key: string
|
|
6797
|
-
name: string
|
|
6928
|
+
key: string;
|
|
6929
|
+
name: string;
|
|
6798
6930
|
color?: string | null;
|
|
6799
6931
|
/** Format: int32 */
|
|
6800
6932
|
sortOrder?: number;
|
|
@@ -6843,13 +6975,13 @@ export interface components {
|
|
|
6843
6975
|
* }
|
|
6844
6976
|
*/
|
|
6845
6977
|
PublicCreateFeatureFlagRequest: {
|
|
6846
|
-
key: string
|
|
6847
|
-
name: string
|
|
6978
|
+
key: string;
|
|
6979
|
+
name: string;
|
|
6848
6980
|
/**
|
|
6849
6981
|
* @description Allowed values: Boolean, String, Number, Json.
|
|
6850
|
-
* @enum {string
|
|
6982
|
+
* @enum {string}
|
|
6851
6983
|
*/
|
|
6852
|
-
type: "Boolean" | "String" | "Number" | "Json"
|
|
6984
|
+
type: "Boolean" | "String" | "Number" | "Json";
|
|
6853
6985
|
description?: string | null;
|
|
6854
6986
|
tags?: string[] | null;
|
|
6855
6987
|
initialVariations?: components["schemas"]["PublicCreateVariationDto"][] | null;
|
|
@@ -6872,8 +7004,8 @@ export interface components {
|
|
|
6872
7004
|
* }
|
|
6873
7005
|
*/
|
|
6874
7006
|
PublicCreateProjectRequest: {
|
|
6875
|
-
key: string
|
|
6876
|
-
name: string
|
|
7007
|
+
key: string;
|
|
7008
|
+
name: string;
|
|
6877
7009
|
description?: string | null;
|
|
6878
7010
|
};
|
|
6879
7011
|
/**
|
|
@@ -6891,13 +7023,13 @@ export interface components {
|
|
|
6891
7023
|
* }
|
|
6892
7024
|
*/
|
|
6893
7025
|
PublicCreateSdkKeyRequest: {
|
|
6894
|
-
name: string
|
|
7026
|
+
name: string;
|
|
6895
7027
|
description?: string | null;
|
|
6896
7028
|
/**
|
|
6897
7029
|
* @description Allowed values: ClientSide, ServerSide.
|
|
6898
|
-
* @enum {string
|
|
7030
|
+
* @enum {string}
|
|
6899
7031
|
*/
|
|
6900
|
-
type: "ClientSide" | "ServerSide"
|
|
7032
|
+
type: "ClientSide" | "ServerSide";
|
|
6901
7033
|
};
|
|
6902
7034
|
/**
|
|
6903
7035
|
* @description Response body for a successful `POST .../sdk-keys`. The ONLY place the plaintext
|
|
@@ -6919,17 +7051,17 @@ export interface components {
|
|
|
6919
7051
|
PublicCreateSdkKeyResponse: {
|
|
6920
7052
|
/** Format: uuid */
|
|
6921
7053
|
id: string;
|
|
6922
|
-
key: string
|
|
6923
|
-
lastFourCharacters: string
|
|
7054
|
+
key: string;
|
|
7055
|
+
lastFourCharacters: string;
|
|
6924
7056
|
/**
|
|
6925
7057
|
* @description Allowed values: ClientSide, ServerSide.
|
|
6926
|
-
* @enum {string
|
|
7058
|
+
* @enum {string}
|
|
6927
7059
|
*/
|
|
6928
|
-
type: "ClientSide" | "ServerSide"
|
|
6929
|
-
name: string
|
|
7060
|
+
type: "ClientSide" | "ServerSide";
|
|
7061
|
+
name: string;
|
|
6930
7062
|
/** Format: date-time */
|
|
6931
7063
|
createdAt: string;
|
|
6932
|
-
warning: string
|
|
7064
|
+
warning: string;
|
|
6933
7065
|
};
|
|
6934
7066
|
/**
|
|
6935
7067
|
* @description Request body for `POST /api/v1/orgs/{org}/projects/{project}/segments`. Named distinctly
|
|
@@ -6953,10 +7085,10 @@ export interface components {
|
|
|
6953
7085
|
* }
|
|
6954
7086
|
*/
|
|
6955
7087
|
PublicCreateSegmentRequest: {
|
|
6956
|
-
key: string
|
|
6957
|
-
name: string
|
|
7088
|
+
key: string;
|
|
7089
|
+
name: string;
|
|
6958
7090
|
description?: string | null;
|
|
6959
|
-
conditions: components["schemas"]["PublicSegmentConditionDto"][]
|
|
7091
|
+
conditions: components["schemas"]["PublicSegmentConditionDto"][];
|
|
6960
7092
|
};
|
|
6961
7093
|
/**
|
|
6962
7094
|
* @description Request body for `POST .../rules`. The Application-side
|
|
@@ -6996,16 +7128,16 @@ export interface components {
|
|
|
6996
7128
|
rolloutPercentage?: number | null;
|
|
6997
7129
|
/** Format: uuid */
|
|
6998
7130
|
userSegmentId?: string | null;
|
|
6999
|
-
conditionGroups: components["schemas"]["PublicConditionGroupRequest"][]
|
|
7131
|
+
conditionGroups: components["schemas"]["PublicConditionGroupRequest"][];
|
|
7000
7132
|
};
|
|
7001
7133
|
/**
|
|
7002
7134
|
* @description A variation supplied at flag-creation time. Maps 1:1 onto
|
|
7003
7135
|
* CreateVariationDto.
|
|
7004
7136
|
*/
|
|
7005
7137
|
PublicCreateVariationDto: {
|
|
7006
|
-
key: string
|
|
7007
|
-
name: string
|
|
7008
|
-
value: string
|
|
7138
|
+
key: string;
|
|
7139
|
+
name: string;
|
|
7140
|
+
value: string;
|
|
7009
7141
|
description?: string | null;
|
|
7010
7142
|
};
|
|
7011
7143
|
/**
|
|
@@ -7030,13 +7162,13 @@ export interface components {
|
|
|
7030
7162
|
* }
|
|
7031
7163
|
*/
|
|
7032
7164
|
PublicCreateWebhookSubscriptionRequest: {
|
|
7033
|
-
name: string
|
|
7034
|
-
url: string
|
|
7165
|
+
name: string;
|
|
7166
|
+
url: string;
|
|
7035
7167
|
/**
|
|
7036
7168
|
* @description Allowed values: GenericHttp.
|
|
7037
|
-
* @enum {string
|
|
7169
|
+
* @enum {string}
|
|
7038
7170
|
*/
|
|
7039
|
-
provider: "GenericHttp"
|
|
7171
|
+
provider: "GenericHttp";
|
|
7040
7172
|
eventTypes?: string[] | null;
|
|
7041
7173
|
projectIds?: string[] | null;
|
|
7042
7174
|
environmentIds?: string[] | null;
|
|
@@ -7052,8 +7184,8 @@ export interface components {
|
|
|
7052
7184
|
PublicCreateWebhookSubscriptionResponse: {
|
|
7053
7185
|
/** Format: uuid */
|
|
7054
7186
|
id: string;
|
|
7055
|
-
secret: string
|
|
7056
|
-
warning: string
|
|
7187
|
+
secret: string;
|
|
7188
|
+
warning: string;
|
|
7057
7189
|
};
|
|
7058
7190
|
/**
|
|
7059
7191
|
* @description Response of `GET .../default-flag-lifetime/impact`: how many temporary flags with no expiry
|
|
@@ -7086,8 +7218,8 @@ export interface components {
|
|
|
7086
7218
|
PublicEnvironmentResponse: {
|
|
7087
7219
|
/** Format: uuid */
|
|
7088
7220
|
id: string;
|
|
7089
|
-
key: string
|
|
7090
|
-
name: string
|
|
7221
|
+
key: string;
|
|
7222
|
+
name: string;
|
|
7091
7223
|
color?: string | null;
|
|
7092
7224
|
/** Format: int32 */
|
|
7093
7225
|
sortOrder: number;
|
|
@@ -7102,13 +7234,62 @@ export interface components {
|
|
|
7102
7234
|
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
7103
7235
|
*/
|
|
7104
7236
|
PublicEnvironmentResponsePagedResult: {
|
|
7105
|
-
items: components["schemas"]["PublicEnvironmentResponse"][]
|
|
7237
|
+
items: components["schemas"]["PublicEnvironmentResponse"][];
|
|
7106
7238
|
next_cursor?: string | null;
|
|
7107
7239
|
/** @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. */
|
|
7108
7240
|
_actions?: {
|
|
7109
7241
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
7110
7242
|
};
|
|
7111
7243
|
};
|
|
7244
|
+
/** @description The evaluations one part of the targeting served. */
|
|
7245
|
+
PublicEvaluationSource: {
|
|
7246
|
+
/**
|
|
7247
|
+
* @description One of rule, fallthrough, off, prerequisite, error, notFound or unknown (an SDK that reports no reason, or evaluations recorded before sources were). Allowed values: rule, fallthrough, off, prerequisite, error, notFound, unknown.
|
|
7248
|
+
* @enum {string}
|
|
7249
|
+
*/
|
|
7250
|
+
source: "rule" | "fallthrough" | "off" | "prerequisite" | "error" | "notFound" | "unknown";
|
|
7251
|
+
/**
|
|
7252
|
+
* Format: uuid
|
|
7253
|
+
* @description For a rule, its id (rules have no key). Null otherwise, or when the SDK didn't say which rule.
|
|
7254
|
+
*/
|
|
7255
|
+
ruleId?: string | null;
|
|
7256
|
+
/** @description For a live rule, its description or a generated label. Null otherwise. */
|
|
7257
|
+
ruleLabel?: string | null;
|
|
7258
|
+
/** @description False when the rule is no longer in the environment's targeting. */
|
|
7259
|
+
ruleExists: boolean;
|
|
7260
|
+
/**
|
|
7261
|
+
* Format: int64
|
|
7262
|
+
* @description Evaluations this source served.
|
|
7263
|
+
*/
|
|
7264
|
+
count: number;
|
|
7265
|
+
/**
|
|
7266
|
+
* Format: double
|
|
7267
|
+
* @description Count as a fraction (0 to 1) of all sources' counts combined.
|
|
7268
|
+
*/
|
|
7269
|
+
share: number;
|
|
7270
|
+
/** @description What this source served, with shares of this source's count. */
|
|
7271
|
+
variations: components["schemas"]["PublicEvaluationVariation"][];
|
|
7272
|
+
rollout?: components["schemas"]["PublicRolloutCheck"];
|
|
7273
|
+
};
|
|
7274
|
+
/** @description One variation's evaluations. */
|
|
7275
|
+
PublicEvaluationVariation: {
|
|
7276
|
+
/** @description The variation served, or null for evaluations recorded without one. */
|
|
7277
|
+
variationKey?: string | null;
|
|
7278
|
+
/** @description The variation's name, or null when the key no longer matches one of the flag's variations. */
|
|
7279
|
+
name?: string | null;
|
|
7280
|
+
/** @description False when the key no longer matches one of the flag's variations. */
|
|
7281
|
+
exists: boolean;
|
|
7282
|
+
/**
|
|
7283
|
+
* Format: int64
|
|
7284
|
+
* @description Evaluations that served this variation.
|
|
7285
|
+
*/
|
|
7286
|
+
count: number;
|
|
7287
|
+
/**
|
|
7288
|
+
* Format: double
|
|
7289
|
+
* @description Count as a fraction (0 to 1) of the parent total: the window's total, or for a source's variations that source's count. 0 when the parent total is 0.
|
|
7290
|
+
*/
|
|
7291
|
+
share: number;
|
|
7292
|
+
};
|
|
7112
7293
|
/**
|
|
7113
7294
|
* @description Public representation of a flag's config within a single environment, returned by
|
|
7114
7295
|
* `GET .../flags/{flag}/environments` and `GET .../flags/{flag}/environments/{env}`.
|
|
@@ -7135,21 +7316,144 @@ export interface components {
|
|
|
7135
7316
|
PublicFlagEnvConfigResponse: {
|
|
7136
7317
|
/** Format: uuid */
|
|
7137
7318
|
environmentId: string;
|
|
7138
|
-
environmentKey: string
|
|
7319
|
+
environmentKey: string;
|
|
7139
7320
|
isEnabled: boolean;
|
|
7140
7321
|
/** Format: uuid */
|
|
7141
7322
|
defaultVariationId: string;
|
|
7142
7323
|
/**
|
|
7143
7324
|
* @description Allowed values: SingleVariation, PercentageRollout, TargetedRollout.
|
|
7144
|
-
* @enum {string
|
|
7325
|
+
* @enum {string}
|
|
7145
7326
|
*/
|
|
7146
|
-
strategy: "SingleVariation" | "PercentageRollout" | "TargetedRollout"
|
|
7147
|
-
prerequisites: components["schemas"]["PublicPrerequisiteDto"][]
|
|
7327
|
+
strategy: "SingleVariation" | "PercentageRollout" | "TargetedRollout";
|
|
7328
|
+
prerequisites: components["schemas"]["PublicPrerequisiteDto"][];
|
|
7148
7329
|
/** @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. */
|
|
7149
7330
|
_actions?: {
|
|
7150
7331
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
7151
7332
|
};
|
|
7152
7333
|
};
|
|
7334
|
+
/**
|
|
7335
|
+
* @description What a flag served in one environment over the window, returned by
|
|
7336
|
+
* `GET .../flags/{flag}/environments/{env}/evaluations` (#4225). These are evaluation
|
|
7337
|
+
* counts, not unique users. They come from SDK-reported events, so an environment whose SDKs
|
|
7338
|
+
* report none reads zero: no evaluations reported, not necessarily no traffic. The public
|
|
7339
|
+
* counterpart of FlagEvaluationAnalyticsDto, keyed by environment key instead of
|
|
7340
|
+
* id and without the dashboard's daily series.
|
|
7341
|
+
* @example {
|
|
7342
|
+
* "environmentKey": "production",
|
|
7343
|
+
* "days": 7,
|
|
7344
|
+
* "fromUtc": "2026-06-14T00:00:00Z",
|
|
7345
|
+
* "toUtc": "2026-06-20T09:15:00Z",
|
|
7346
|
+
* "totalCount": 10000,
|
|
7347
|
+
* "lastEvaluatedAtUtc": "2026-06-20T09:15:00Z",
|
|
7348
|
+
* "variations": [
|
|
7349
|
+
* {
|
|
7350
|
+
* "variationKey": "true",
|
|
7351
|
+
* "name": "On",
|
|
7352
|
+
* "exists": true,
|
|
7353
|
+
* "count": 4080,
|
|
7354
|
+
* "share": 0.408
|
|
7355
|
+
* },
|
|
7356
|
+
* {
|
|
7357
|
+
* "variationKey": "false",
|
|
7358
|
+
* "name": "Off",
|
|
7359
|
+
* "exists": true,
|
|
7360
|
+
* "count": 5920,
|
|
7361
|
+
* "share": 0.592
|
|
7362
|
+
* }
|
|
7363
|
+
* ],
|
|
7364
|
+
* "sources": [
|
|
7365
|
+
* {
|
|
7366
|
+
* "source": "rule",
|
|
7367
|
+
* "ruleId": "0197b6a3-5e6f-7a7b-8c8d-9e0f1a2b3c4d",
|
|
7368
|
+
* "ruleLabel": "Beta users 50/50",
|
|
7369
|
+
* "ruleExists": true,
|
|
7370
|
+
* "count": 8000,
|
|
7371
|
+
* "share": 0.8,
|
|
7372
|
+
* "variations": [
|
|
7373
|
+
* {
|
|
7374
|
+
* "variationKey": "true",
|
|
7375
|
+
* "name": "On",
|
|
7376
|
+
* "exists": true,
|
|
7377
|
+
* "count": 4080,
|
|
7378
|
+
* "share": 0.51
|
|
7379
|
+
* },
|
|
7380
|
+
* {
|
|
7381
|
+
* "variationKey": "false",
|
|
7382
|
+
* "name": "Off",
|
|
7383
|
+
* "exists": true,
|
|
7384
|
+
* "count": 3920,
|
|
7385
|
+
* "share": 0.49
|
|
7386
|
+
* }
|
|
7387
|
+
* ],
|
|
7388
|
+
* "rollout": {
|
|
7389
|
+
* "configured": [
|
|
7390
|
+
* {
|
|
7391
|
+
* "variationKey": "true",
|
|
7392
|
+
* "name": "On",
|
|
7393
|
+
* "weight": 50
|
|
7394
|
+
* },
|
|
7395
|
+
* {
|
|
7396
|
+
* "variationKey": "false",
|
|
7397
|
+
* "name": "Off",
|
|
7398
|
+
* "weight": 50
|
|
7399
|
+
* }
|
|
7400
|
+
* ],
|
|
7401
|
+
* "evaluable": true,
|
|
7402
|
+
* "pValue": 0.074,
|
|
7403
|
+
* "flagged": false
|
|
7404
|
+
* }
|
|
7405
|
+
* },
|
|
7406
|
+
* {
|
|
7407
|
+
* "source": "fallthrough",
|
|
7408
|
+
* "ruleExists": false,
|
|
7409
|
+
* "count": 2000,
|
|
7410
|
+
* "share": 0.2,
|
|
7411
|
+
* "variations": [
|
|
7412
|
+
* {
|
|
7413
|
+
* "variationKey": "false",
|
|
7414
|
+
* "name": "Off",
|
|
7415
|
+
* "exists": true,
|
|
7416
|
+
* "count": 2000,
|
|
7417
|
+
* "share": 1
|
|
7418
|
+
* }
|
|
7419
|
+
* ]
|
|
7420
|
+
* }
|
|
7421
|
+
* ]
|
|
7422
|
+
* }
|
|
7423
|
+
*/
|
|
7424
|
+
PublicFlagEvaluationsResponse: {
|
|
7425
|
+
/** @description The environment's key. */
|
|
7426
|
+
environmentKey: string;
|
|
7427
|
+
/**
|
|
7428
|
+
* Format: int32
|
|
7429
|
+
* @description The window requested: 7, 30 or 90.
|
|
7430
|
+
*/
|
|
7431
|
+
days: number;
|
|
7432
|
+
/**
|
|
7433
|
+
* Format: date-time
|
|
7434
|
+
* @description Start of the window: UTC midnight `days - 1` days ago, or the flag's creation day if later.
|
|
7435
|
+
*/
|
|
7436
|
+
fromUtc: string;
|
|
7437
|
+
/**
|
|
7438
|
+
* Format: date-time
|
|
7439
|
+
* @description When the counts were read.
|
|
7440
|
+
*/
|
|
7441
|
+
toUtc: string;
|
|
7442
|
+
/**
|
|
7443
|
+
* Format: int64
|
|
7444
|
+
* @description Evaluations in the window. Evaluation counts, not unique users.
|
|
7445
|
+
*/
|
|
7446
|
+
totalCount: number;
|
|
7447
|
+
/**
|
|
7448
|
+
* Format: date-time
|
|
7449
|
+
* @description The last reported evaluation, or null if none was reported.
|
|
7450
|
+
*/
|
|
7451
|
+
lastEvaluatedAtUtc?: string | null;
|
|
7452
|
+
/** @description Evaluations per variation over the window. */
|
|
7453
|
+
variations: components["schemas"]["PublicEvaluationVariation"][];
|
|
7454
|
+
/** @description Evaluations per part of the targeting that served them: live rules in evaluation order, then deleted rules, then fallthrough, off, prerequisite, error, notFound and unknown. */
|
|
7455
|
+
sources: components["schemas"]["PublicEvaluationSource"][];
|
|
7456
|
+
};
|
|
7153
7457
|
/**
|
|
7154
7458
|
* @description Public list-item representation of a feature flag, returned by
|
|
7155
7459
|
* `GET .../flags`. Narrower than PublicFlagResponse — drops
|
|
@@ -7163,16 +7467,16 @@ export interface components {
|
|
|
7163
7467
|
PublicFlagListItem: {
|
|
7164
7468
|
/** Format: uuid */
|
|
7165
7469
|
id: string;
|
|
7166
|
-
key: string
|
|
7167
|
-
name: string
|
|
7470
|
+
key: string;
|
|
7471
|
+
name: string;
|
|
7168
7472
|
/**
|
|
7169
7473
|
* @description Allowed values: Boolean, String, Number, Json.
|
|
7170
|
-
* @enum {string
|
|
7474
|
+
* @enum {string}
|
|
7171
7475
|
*/
|
|
7172
|
-
type: "Boolean" | "String" | "Number" | "Json"
|
|
7476
|
+
type: "Boolean" | "String" | "Number" | "Json";
|
|
7173
7477
|
isArchived: boolean;
|
|
7174
7478
|
clientSideVisible: boolean;
|
|
7175
|
-
tags: string[]
|
|
7479
|
+
tags: string[];
|
|
7176
7480
|
/** Format: date-time */
|
|
7177
7481
|
createdAt: string;
|
|
7178
7482
|
/** Format: date-time */
|
|
@@ -7212,7 +7516,7 @@ export interface components {
|
|
|
7212
7516
|
* }
|
|
7213
7517
|
*/
|
|
7214
7518
|
PublicFlagListItemPagedResult: {
|
|
7215
|
-
items: components["schemas"]["PublicFlagListItem"][]
|
|
7519
|
+
items: components["schemas"]["PublicFlagListItem"][];
|
|
7216
7520
|
next_cursor?: string | null;
|
|
7217
7521
|
/** @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. */
|
|
7218
7522
|
_actions?: {
|
|
@@ -7223,8 +7527,8 @@ export interface components {
|
|
|
7223
7527
|
PublicFlagOwner: {
|
|
7224
7528
|
/** Format: uuid */
|
|
7225
7529
|
id: string;
|
|
7226
|
-
email: string
|
|
7227
|
-
name: string
|
|
7530
|
+
email: string;
|
|
7531
|
+
name: string;
|
|
7228
7532
|
};
|
|
7229
7533
|
/**
|
|
7230
7534
|
* @description One dead flag the Featureflip Flag Cleanup Action should remove, returned by
|
|
@@ -7238,11 +7542,11 @@ export interface components {
|
|
|
7238
7542
|
* (`FLAG_HAS_DEPENDENTS`), so a caller should remove those dependents first.
|
|
7239
7543
|
*/
|
|
7240
7544
|
PublicFlagRemovalCandidate: {
|
|
7241
|
-
key: string
|
|
7242
|
-
reason: string
|
|
7545
|
+
key: string;
|
|
7546
|
+
reason: string;
|
|
7243
7547
|
treatment: boolean;
|
|
7244
|
-
status: string
|
|
7245
|
-
blockedBy: string[]
|
|
7548
|
+
status: string;
|
|
7549
|
+
blockedBy: string[];
|
|
7246
7550
|
};
|
|
7247
7551
|
/**
|
|
7248
7552
|
* @description A page of results plus an opaque cursor for the next page, or null when this is the last
|
|
@@ -7250,7 +7554,7 @@ export interface components {
|
|
|
7250
7554
|
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
7251
7555
|
*/
|
|
7252
7556
|
PublicFlagRemovalCandidatePagedResult: {
|
|
7253
|
-
items: components["schemas"]["PublicFlagRemovalCandidate"][]
|
|
7557
|
+
items: components["schemas"]["PublicFlagRemovalCandidate"][];
|
|
7254
7558
|
next_cursor?: string | null;
|
|
7255
7559
|
};
|
|
7256
7560
|
/**
|
|
@@ -7297,18 +7601,18 @@ export interface components {
|
|
|
7297
7601
|
PublicFlagResponse: {
|
|
7298
7602
|
/** Format: uuid */
|
|
7299
7603
|
id: string;
|
|
7300
|
-
key: string
|
|
7301
|
-
name: string
|
|
7604
|
+
key: string;
|
|
7605
|
+
name: string;
|
|
7302
7606
|
description?: string | null;
|
|
7303
7607
|
/**
|
|
7304
7608
|
* @description Allowed values: Boolean, String, Number, Json.
|
|
7305
|
-
* @enum {string
|
|
7609
|
+
* @enum {string}
|
|
7306
7610
|
*/
|
|
7307
|
-
type: "Boolean" | "String" | "Number" | "Json"
|
|
7611
|
+
type: "Boolean" | "String" | "Number" | "Json";
|
|
7308
7612
|
isArchived: boolean;
|
|
7309
7613
|
clientSideVisible: boolean;
|
|
7310
|
-
tags: string[]
|
|
7311
|
-
variations: components["schemas"]["PublicVariationResponse"][]
|
|
7614
|
+
tags: string[];
|
|
7615
|
+
variations: components["schemas"]["PublicVariationResponse"][];
|
|
7312
7616
|
/** Format: date-time */
|
|
7313
7617
|
createdAt: string;
|
|
7314
7618
|
/** Format: date-time */
|
|
@@ -7326,13 +7630,25 @@ export interface components {
|
|
|
7326
7630
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
7327
7631
|
};
|
|
7328
7632
|
};
|
|
7633
|
+
/**
|
|
7634
|
+
* @description The cap behind a `plan_limit_reached` error. `resource` is the capped collection
|
|
7635
|
+
* (`projects`, `environments`, `flags`, `webhooks`, `members`);
|
|
7636
|
+
* `plan` is the plan's wire name, as `GET /api/v1/orgs/{org}` returns it; `max` is
|
|
7637
|
+
* the cap. The environment and flag caps are per project.
|
|
7638
|
+
*/
|
|
7639
|
+
PublicPlanLimit: {
|
|
7640
|
+
resource: string;
|
|
7641
|
+
plan: string;
|
|
7642
|
+
/** Format: int32 */
|
|
7643
|
+
max: number;
|
|
7644
|
+
};
|
|
7329
7645
|
/**
|
|
7330
7646
|
* @description A single prerequisite entry on a flag's per-environment config. Maps 1:1 onto
|
|
7331
7647
|
* PrerequisiteDto (read side) and PrerequisiteInput (write side).
|
|
7332
7648
|
*/
|
|
7333
7649
|
PublicPrerequisiteDto: {
|
|
7334
|
-
prerequisiteFlagKey: string
|
|
7335
|
-
expectedVariationKey: string
|
|
7650
|
+
prerequisiteFlagKey: string;
|
|
7651
|
+
expectedVariationKey: string;
|
|
7336
7652
|
};
|
|
7337
7653
|
/**
|
|
7338
7654
|
* @description Request body for `PUT .../targeting` — a declarative full replace of the environment's
|
|
@@ -7356,14 +7672,38 @@ export interface components {
|
|
|
7356
7672
|
* carrying the handler's message.
|
|
7357
7673
|
*/
|
|
7358
7674
|
PublicReorderRulesRequest: {
|
|
7359
|
-
ruleIds: string[]
|
|
7675
|
+
ruleIds: string[];
|
|
7676
|
+
};
|
|
7677
|
+
/** @description A percentage-rollout rule's configured split beside a sample-ratio check of what it served. */
|
|
7678
|
+
PublicRolloutCheck: {
|
|
7679
|
+
/** @description The configured weights, in percent; they sum to 100. */
|
|
7680
|
+
configured: components["schemas"]["PublicConfiguredWeight"][];
|
|
7681
|
+
/**
|
|
7682
|
+
* Format: date-time
|
|
7683
|
+
* @description The last time the split may have changed (the rule was edited, or a variation was added), or null if it hasn't since the rule was created. A change inside the window mixes two splits.
|
|
7684
|
+
*/
|
|
7685
|
+
splitChangedAtUtc?: string | null;
|
|
7686
|
+
/** @description Whether the check could run. See NotEvaluableReason when false. */
|
|
7687
|
+
evaluable: boolean;
|
|
7688
|
+
/**
|
|
7689
|
+
* Format: double
|
|
7690
|
+
* @description The sample-ratio test's p-value, or null when not evaluable.
|
|
7691
|
+
*/
|
|
7692
|
+
pValue?: number | null;
|
|
7693
|
+
/** @description True only when the served split is both unlikely under the configured weights (p < 0.001) and at least 2 percentage points off for some variation. */
|
|
7694
|
+
flagged: boolean;
|
|
7695
|
+
/**
|
|
7696
|
+
* @description too-little-traffic or unexpected-variation when the check couldn't run; null otherwise. Allowed values: too-little-traffic, unexpected-variation.
|
|
7697
|
+
* @enum {string|null}
|
|
7698
|
+
*/
|
|
7699
|
+
notEvaluableReason?: "too-little-traffic" | "unexpected-variation" | null;
|
|
7360
7700
|
};
|
|
7361
7701
|
/** @description A newly added signing secret. The secret is shown only here. */
|
|
7362
7702
|
PublicRotateWebhookSecretResponse: {
|
|
7363
7703
|
/** Format: uuid */
|
|
7364
7704
|
secretId: string;
|
|
7365
|
-
secret: string
|
|
7366
|
-
warning: string
|
|
7705
|
+
secret: string;
|
|
7706
|
+
warning: string;
|
|
7367
7707
|
};
|
|
7368
7708
|
/**
|
|
7369
7709
|
* @description Public representation of an SDK key, returned by
|
|
@@ -7387,14 +7727,14 @@ export interface components {
|
|
|
7387
7727
|
PublicSdkKeyResponse: {
|
|
7388
7728
|
/** Format: uuid */
|
|
7389
7729
|
id: string;
|
|
7390
|
-
name: string
|
|
7730
|
+
name: string;
|
|
7391
7731
|
description?: string | null;
|
|
7392
7732
|
/**
|
|
7393
7733
|
* @description Allowed values: ClientSide, ServerSide.
|
|
7394
|
-
* @enum {string
|
|
7734
|
+
* @enum {string}
|
|
7395
7735
|
*/
|
|
7396
|
-
type: "ClientSide" | "ServerSide"
|
|
7397
|
-
lastFourCharacters: string
|
|
7736
|
+
type: "ClientSide" | "ServerSide";
|
|
7737
|
+
lastFourCharacters: string;
|
|
7398
7738
|
isActive: boolean;
|
|
7399
7739
|
/** Format: date-time */
|
|
7400
7740
|
createdAt: string;
|
|
@@ -7413,7 +7753,7 @@ export interface components {
|
|
|
7413
7753
|
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
7414
7754
|
*/
|
|
7415
7755
|
PublicSdkKeyResponsePagedResult: {
|
|
7416
|
-
items: components["schemas"]["PublicSdkKeyResponse"][]
|
|
7756
|
+
items: components["schemas"]["PublicSdkKeyResponse"][];
|
|
7417
7757
|
next_cursor?: string | null;
|
|
7418
7758
|
/** @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. */
|
|
7419
7759
|
_actions?: {
|
|
@@ -7429,13 +7769,13 @@ export interface components {
|
|
|
7429
7769
|
* straight through from Operator, which is already a string.
|
|
7430
7770
|
*/
|
|
7431
7771
|
PublicSegmentConditionDto: {
|
|
7432
|
-
attribute: string
|
|
7772
|
+
attribute: string;
|
|
7433
7773
|
/**
|
|
7434
7774
|
* @description Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.
|
|
7435
|
-
* @enum {string
|
|
7775
|
+
* @enum {string}
|
|
7436
7776
|
*/
|
|
7437
|
-
operator: "Equals" | "NotEquals" | "Contains" | "NotContains" | "GreaterThan" | "LessThan" | "GreaterThanOrEqual" | "LessThanOrEqual" | "In" | "NotIn" | "MatchesRegex" | "StartsWith" | "EndsWith" | "Before" | "After" | "SemverEquals" | "SemverGreaterThan" | "SemverGreaterThanOrEqual" | "SemverLessThan" | "SemverLessThanOrEqual"
|
|
7438
|
-
values: string[]
|
|
7777
|
+
operator: "Equals" | "NotEquals" | "Contains" | "NotContains" | "GreaterThan" | "LessThan" | "GreaterThanOrEqual" | "LessThanOrEqual" | "In" | "NotIn" | "MatchesRegex" | "StartsWith" | "EndsWith" | "Before" | "After" | "SemverEquals" | "SemverGreaterThan" | "SemverGreaterThanOrEqual" | "SemverLessThan" | "SemverLessThanOrEqual";
|
|
7778
|
+
values: string[];
|
|
7439
7779
|
negate?: boolean;
|
|
7440
7780
|
};
|
|
7441
7781
|
/**
|
|
@@ -7463,10 +7803,10 @@ export interface components {
|
|
|
7463
7803
|
PublicSegmentResponse: {
|
|
7464
7804
|
/** Format: uuid */
|
|
7465
7805
|
id: string;
|
|
7466
|
-
key: string
|
|
7467
|
-
name: string
|
|
7806
|
+
key: string;
|
|
7807
|
+
name: string;
|
|
7468
7808
|
description?: string | null;
|
|
7469
|
-
conditions: components["schemas"]["PublicSegmentConditionDto"][]
|
|
7809
|
+
conditions: components["schemas"]["PublicSegmentConditionDto"][];
|
|
7470
7810
|
/** Format: date-time */
|
|
7471
7811
|
createdAt: string;
|
|
7472
7812
|
/** Format: date-time */
|
|
@@ -7482,7 +7822,7 @@ export interface components {
|
|
|
7482
7822
|
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
7483
7823
|
*/
|
|
7484
7824
|
PublicSegmentResponsePagedResult: {
|
|
7485
|
-
items: components["schemas"]["PublicSegmentResponse"][]
|
|
7825
|
+
items: components["schemas"]["PublicSegmentResponse"][];
|
|
7486
7826
|
next_cursor?: string | null;
|
|
7487
7827
|
/** @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. */
|
|
7488
7828
|
_actions?: {
|
|
@@ -7537,7 +7877,7 @@ export interface components {
|
|
|
7537
7877
|
*/
|
|
7538
7878
|
PublicTargetingConfigResponse: {
|
|
7539
7879
|
isEnabled: boolean;
|
|
7540
|
-
rules: components["schemas"]["PublicTargetingRuleResponse"][]
|
|
7880
|
+
rules: components["schemas"]["PublicTargetingRuleResponse"][];
|
|
7541
7881
|
/** @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. */
|
|
7542
7882
|
_actions?: {
|
|
7543
7883
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
@@ -7585,7 +7925,7 @@ export interface components {
|
|
|
7585
7925
|
rolloutPercentage?: number | null;
|
|
7586
7926
|
/** Format: uuid */
|
|
7587
7927
|
userSegmentId?: string | null;
|
|
7588
|
-
conditionGroups: components["schemas"]["PublicConditionGroupResponse"][]
|
|
7928
|
+
conditionGroups: components["schemas"]["PublicConditionGroupResponse"][];
|
|
7589
7929
|
/** @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. */
|
|
7590
7930
|
_actions?: {
|
|
7591
7931
|
[key: string]: components["schemas"]["ActionCapability"];
|
|
@@ -7617,7 +7957,7 @@ export interface components {
|
|
|
7617
7957
|
* dashboard's `UpdateEnvironmentRequest`.
|
|
7618
7958
|
*/
|
|
7619
7959
|
PublicUpdateEnvironmentRequest: {
|
|
7620
|
-
name: string
|
|
7960
|
+
name: string;
|
|
7621
7961
|
color?: string | null;
|
|
7622
7962
|
/** Format: int32 */
|
|
7623
7963
|
sortOrder?: number;
|
|
@@ -7629,7 +7969,7 @@ export interface components {
|
|
|
7629
7969
|
* endpoint (mirrors `UpdateFeatureFlagCommand`, which has no `Key`/`Type`).
|
|
7630
7970
|
*/
|
|
7631
7971
|
PublicUpdateFeatureFlagRequest: {
|
|
7632
|
-
name: string
|
|
7972
|
+
name: string;
|
|
7633
7973
|
description?: string | null;
|
|
7634
7974
|
tags?: string[] | null;
|
|
7635
7975
|
clientSideVisible?: boolean | null;
|
|
@@ -7672,7 +8012,7 @@ export interface components {
|
|
|
7672
8012
|
* dashboard's `UpdateProjectRequest`.
|
|
7673
8013
|
*/
|
|
7674
8014
|
PublicUpdateProjectRequest: {
|
|
7675
|
-
name: string
|
|
8015
|
+
name: string;
|
|
7676
8016
|
description?: string | null;
|
|
7677
8017
|
};
|
|
7678
8018
|
/**
|
|
@@ -7682,7 +8022,7 @@ export interface components {
|
|
|
7682
8022
|
* carries no `Type`).
|
|
7683
8023
|
*/
|
|
7684
8024
|
PublicUpdateSdkKeyRequest: {
|
|
7685
|
-
name: string
|
|
8025
|
+
name: string;
|
|
7686
8026
|
description?: string | null;
|
|
7687
8027
|
};
|
|
7688
8028
|
/**
|
|
@@ -7691,9 +8031,9 @@ export interface components {
|
|
|
7691
8031
|
* carries no `Key`).
|
|
7692
8032
|
*/
|
|
7693
8033
|
PublicUpdateSegmentRequest: {
|
|
7694
|
-
name: string
|
|
8034
|
+
name: string;
|
|
7695
8035
|
description?: string | null;
|
|
7696
|
-
conditions: components["schemas"]["PublicSegmentConditionDto"][]
|
|
8036
|
+
conditions: components["schemas"]["PublicSegmentConditionDto"][];
|
|
7697
8037
|
};
|
|
7698
8038
|
/**
|
|
7699
8039
|
* @description Request body for `PUT .../rules/{ruleId}`. Same shape as
|
|
@@ -7708,7 +8048,7 @@ export interface components {
|
|
|
7708
8048
|
rolloutPercentage?: number | null;
|
|
7709
8049
|
/** Format: uuid */
|
|
7710
8050
|
userSegmentId?: string | null;
|
|
7711
|
-
conditionGroups: components["schemas"]["PublicConditionGroupRequest"][]
|
|
8051
|
+
conditionGroups: components["schemas"]["PublicConditionGroupRequest"][];
|
|
7712
8052
|
};
|
|
7713
8053
|
/**
|
|
7714
8054
|
* @description Request body for
|
|
@@ -7718,8 +8058,8 @@ export interface components {
|
|
|
7718
8058
|
* carries no `Key`).
|
|
7719
8059
|
*/
|
|
7720
8060
|
PublicUpdateVariationRequest: {
|
|
7721
|
-
name: string
|
|
7722
|
-
value: string
|
|
8061
|
+
name: string;
|
|
8062
|
+
value: string;
|
|
7723
8063
|
description?: string | null;
|
|
7724
8064
|
};
|
|
7725
8065
|
/**
|
|
@@ -7727,8 +8067,8 @@ export interface components {
|
|
|
7727
8067
|
* "all"). `isEnabled` is required. The provider cannot be changed.
|
|
7728
8068
|
*/
|
|
7729
8069
|
PublicUpdateWebhookSubscriptionRequest: {
|
|
7730
|
-
name: string
|
|
7731
|
-
url: string
|
|
8070
|
+
name: string;
|
|
8071
|
+
url: string;
|
|
7732
8072
|
eventTypes?: string[] | null;
|
|
7733
8073
|
projectIds?: string[] | null;
|
|
7734
8074
|
environmentIds?: string[] | null;
|
|
@@ -7747,9 +8087,9 @@ export interface components {
|
|
|
7747
8087
|
PublicVariationResponse: {
|
|
7748
8088
|
/** Format: uuid */
|
|
7749
8089
|
id: string;
|
|
7750
|
-
key: string
|
|
7751
|
-
name: string
|
|
7752
|
-
value: string
|
|
8090
|
+
key: string;
|
|
8091
|
+
name: string;
|
|
8092
|
+
value: string;
|
|
7753
8093
|
description?: string | null;
|
|
7754
8094
|
/** @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. */
|
|
7755
8095
|
_actions?: {
|
|
@@ -7767,9 +8107,9 @@ export interface components {
|
|
|
7767
8107
|
webhookEventId: string;
|
|
7768
8108
|
/**
|
|
7769
8109
|
* @description Allowed values: Pending, Succeeded, DeadLettered.
|
|
7770
|
-
* @enum {string
|
|
8110
|
+
* @enum {string}
|
|
7771
8111
|
*/
|
|
7772
|
-
status: "Pending" | "Succeeded" | "DeadLettered"
|
|
8112
|
+
status: "Pending" | "Succeeded" | "DeadLettered";
|
|
7773
8113
|
/** Format: int32 */
|
|
7774
8114
|
attemptCount: number;
|
|
7775
8115
|
/** Format: date-time */
|
|
@@ -7788,7 +8128,7 @@ export interface components {
|
|
|
7788
8128
|
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
7789
8129
|
*/
|
|
7790
8130
|
PublicWebhookDeliveryResponsePagedResult: {
|
|
7791
|
-
items: components["schemas"]["PublicWebhookDeliveryResponse"][]
|
|
8131
|
+
items: components["schemas"]["PublicWebhookDeliveryResponse"][];
|
|
7792
8132
|
next_cursor?: string | null;
|
|
7793
8133
|
};
|
|
7794
8134
|
/** @description A signing secret's id and lifecycle. A secret with no `retiredAt` is active and signs every delivery. */
|
|
@@ -7838,17 +8178,17 @@ export interface components {
|
|
|
7838
8178
|
PublicWebhookSubscriptionResponse: {
|
|
7839
8179
|
/** Format: uuid */
|
|
7840
8180
|
id: string;
|
|
7841
|
-
name: string
|
|
7842
|
-
url: string
|
|
8181
|
+
name: string;
|
|
8182
|
+
url: string;
|
|
7843
8183
|
/**
|
|
7844
8184
|
* @description Allowed values: GenericHttp.
|
|
7845
|
-
* @enum {string
|
|
8185
|
+
* @enum {string}
|
|
7846
8186
|
*/
|
|
7847
|
-
provider: "GenericHttp"
|
|
8187
|
+
provider: "GenericHttp";
|
|
7848
8188
|
isEnabled: boolean;
|
|
7849
|
-
eventTypes: string[]
|
|
7850
|
-
projectIds: string[]
|
|
7851
|
-
environmentIds: string[]
|
|
8189
|
+
eventTypes: string[];
|
|
8190
|
+
projectIds: string[];
|
|
8191
|
+
environmentIds: string[];
|
|
7852
8192
|
/** Format: int32 */
|
|
7853
8193
|
consecutiveFailureCount: number;
|
|
7854
8194
|
/** Format: date-time */
|
|
@@ -7857,7 +8197,7 @@ export interface components {
|
|
|
7857
8197
|
createdAt: string;
|
|
7858
8198
|
/** Format: date-time */
|
|
7859
8199
|
updatedAt: string;
|
|
7860
|
-
secrets: components["schemas"]["PublicWebhookSecretResponse"][]
|
|
8200
|
+
secrets: components["schemas"]["PublicWebhookSecretResponse"][];
|
|
7861
8201
|
overPlanLimit: boolean;
|
|
7862
8202
|
/** @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. */
|
|
7863
8203
|
_actions?: {
|
|
@@ -7870,7 +8210,7 @@ export interface components {
|
|
|
7870
8210
|
* `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
|
|
7871
8211
|
*/
|
|
7872
8212
|
PublicWebhookSubscriptionResponsePagedResult: {
|
|
7873
|
-
items: components["schemas"]["PublicWebhookSubscriptionResponse"][]
|
|
8213
|
+
items: components["schemas"]["PublicWebhookSubscriptionResponse"][];
|
|
7874
8214
|
next_cursor?: string | null;
|
|
7875
8215
|
/** @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. */
|
|
7876
8216
|
_actions?: {
|