@featureflip/mcp 0.2.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.
@@ -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. Requires at least Member.
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 | null;
6692
+ type: string;
6576
6693
  /** Format: uuid */
6577
- id?: string;
6578
- name?: string | null;
6694
+ id: 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 | null;
6588
- path?: string | null;
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
@@ -6595,17 +6712,17 @@ export interface components {
6595
6712
  */
6596
6713
  OrganizationResponse: {
6597
6714
  /** Format: uuid */
6598
- id?: string;
6599
- name?: string | null;
6600
- slug?: string | null;
6715
+ id: string;
6716
+ name: string;
6717
+ slug: string;
6601
6718
  /**
6602
6719
  * @description Allowed values: Solo, Team, Pro, Business, Enterprise.
6603
- * @enum {string|null}
6720
+ * @enum {string}
6604
6721
  */
6605
- plan?: "Solo" | "Team" | "Pro" | "Business" | "Enterprise" | null;
6606
- isActive?: boolean;
6722
+ plan: "Solo" | "Team" | "Pro" | "Business" | "Enterprise";
6723
+ isActive: boolean;
6607
6724
  /** Format: date-time */
6608
- createdAt?: string;
6725
+ createdAt: string;
6609
6726
  };
6610
6727
  /**
6611
6728
  * @description A page of results plus an opaque cursor for the next page, or null when this is the last
@@ -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"][] | null;
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?: {
@@ -6639,12 +6756,12 @@ export interface components {
6639
6756
  */
6640
6757
  ProjectResponse: {
6641
6758
  /** Format: uuid */
6642
- id?: string;
6643
- key?: string | null;
6644
- name?: string | null;
6759
+ id: string;
6760
+ key: string;
6761
+ name: string;
6645
6762
  description?: string | null;
6646
6763
  /** Format: date-time */
6647
- createdAt?: string;
6764
+ createdAt: string;
6648
6765
  /** Format: date-time */
6649
6766
  updatedAt?: string | null;
6650
6767
  /** Format: int32 */
@@ -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"][] | null;
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 | null;
6685
- name?: string | null;
6686
- value?: string | null;
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 | null;
6720
- message?: string | null;
6721
- docs_url?: string | null;
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|null}
6856
+ * @enum {string}
6737
6857
  */
6738
- operator?: "And" | "Or" | null;
6739
- conditions?: components["schemas"]["PublicConditionRequest"][] | null;
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|null}
6871
+ * @enum {string}
6752
6872
  */
6753
- operator?: "And" | "Or" | null;
6754
- conditions?: components["schemas"]["PublicConditionResponse"][] | null;
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 | null;
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|null}
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" | null;
6764
- values?: string[] | null;
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,14 +6890,26 @@ export interface components {
6770
6890
  * `OperatorType` members (e.g. `"Equals"`, `"In"`).
6771
6891
  */
6772
6892
  PublicConditionResponse: {
6773
- attribute?: string | null;
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|null}
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" | null;
6779
- values?: string[] | null;
6780
- negate?: boolean;
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[];
6900
+ negate: boolean;
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;
6781
6913
  };
6782
6914
  /**
6783
6915
  * @description Request body for `POST /api/v1/orgs/{org}/projects/{project}/environments`. Named
@@ -6793,8 +6925,8 @@ export interface components {
6793
6925
  * }
6794
6926
  */
6795
6927
  PublicCreateEnvironmentRequest: {
6796
- key?: string | null;
6797
- name?: string | null;
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 | null;
6847
- name?: string | null;
6978
+ key: string;
6979
+ name: string;
6848
6980
  /**
6849
6981
  * @description Allowed values: Boolean, String, Number, Json.
6850
- * @enum {string|null}
6982
+ * @enum {string}
6851
6983
  */
6852
- type?: "Boolean" | "String" | "Number" | "Json" | null;
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 | null;
6876
- name?: string | null;
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 | null;
7026
+ name: string;
6895
7027
  description?: string | null;
6896
7028
  /**
6897
7029
  * @description Allowed values: ClientSide, ServerSide.
6898
- * @enum {string|null}
7030
+ * @enum {string}
6899
7031
  */
6900
- type?: "ClientSide" | "ServerSide" | null;
7032
+ type: "ClientSide" | "ServerSide";
6901
7033
  };
6902
7034
  /**
6903
7035
  * @description Response body for a successful `POST .../sdk-keys`. The ONLY place the plaintext
@@ -6918,18 +7050,18 @@ export interface components {
6918
7050
  */
6919
7051
  PublicCreateSdkKeyResponse: {
6920
7052
  /** Format: uuid */
6921
- id?: string;
6922
- key?: string | null;
6923
- lastFourCharacters?: string | null;
7053
+ id: string;
7054
+ key: string;
7055
+ lastFourCharacters: string;
6924
7056
  /**
6925
7057
  * @description Allowed values: ClientSide, ServerSide.
6926
- * @enum {string|null}
7058
+ * @enum {string}
6927
7059
  */
6928
- type?: "ClientSide" | "ServerSide" | null;
6929
- name?: string | null;
7060
+ type: "ClientSide" | "ServerSide";
7061
+ name: string;
6930
7062
  /** Format: date-time */
6931
- createdAt?: string;
6932
- warning?: string | null;
7063
+ createdAt: 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 | null;
6957
- name?: string | null;
7088
+ key: string;
7089
+ name: string;
6958
7090
  description?: string | null;
6959
- conditions?: components["schemas"]["PublicSegmentConditionDto"][] | null;
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"][] | null;
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 | null;
7007
- name?: string | null;
7008
- value?: string | null;
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 | null;
7034
- url?: string | null;
7165
+ name: string;
7166
+ url: string;
7035
7167
  /**
7036
7168
  * @description Allowed values: GenericHttp.
7037
- * @enum {string|null}
7169
+ * @enum {string}
7038
7170
  */
7039
- provider?: "GenericHttp" | null;
7171
+ provider: "GenericHttp";
7040
7172
  eventTypes?: string[] | null;
7041
7173
  projectIds?: string[] | null;
7042
7174
  environmentIds?: string[] | null;
@@ -7051,9 +7183,9 @@ export interface components {
7051
7183
  */
7052
7184
  PublicCreateWebhookSubscriptionResponse: {
7053
7185
  /** Format: uuid */
7054
- id?: string;
7055
- secret?: string | null;
7056
- warning?: string | null;
7186
+ id: 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
@@ -7061,9 +7193,9 @@ export interface components {
7061
7193
  */
7062
7194
  PublicDefaultFlagLifetimeImpact: {
7063
7195
  /** Format: int32 */
7064
- newlyPastExpiry?: number;
7196
+ newlyPastExpiry: number;
7065
7197
  /** Format: int32 */
7066
- noLongerPastExpiry?: number;
7198
+ noLongerPastExpiry: number;
7067
7199
  };
7068
7200
  /**
7069
7201
  * @description Public representation of an environment, returned by
@@ -7085,12 +7217,12 @@ export interface components {
7085
7217
  */
7086
7218
  PublicEnvironmentResponse: {
7087
7219
  /** Format: uuid */
7088
- id?: string;
7089
- key?: string | null;
7090
- name?: string | null;
7220
+ id: string;
7221
+ key: string;
7222
+ name: string;
7091
7223
  color?: string | null;
7092
7224
  /** Format: int32 */
7093
- sortOrder?: number;
7225
+ sortOrder: number;
7094
7226
  /** @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. */
7095
7227
  _actions?: {
7096
7228
  [key: string]: components["schemas"]["ActionCapability"];
@@ -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"][] | null;
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}`.
@@ -7134,22 +7315,145 @@ export interface components {
7134
7315
  */
7135
7316
  PublicFlagEnvConfigResponse: {
7136
7317
  /** Format: uuid */
7137
- environmentId?: string;
7138
- environmentKey?: string | null;
7139
- isEnabled?: boolean;
7318
+ environmentId: string;
7319
+ environmentKey: string;
7320
+ isEnabled: boolean;
7140
7321
  /** Format: uuid */
7141
- defaultVariationId?: string;
7322
+ defaultVariationId: string;
7142
7323
  /**
7143
7324
  * @description Allowed values: SingleVariation, PercentageRollout, TargetedRollout.
7144
- * @enum {string|null}
7325
+ * @enum {string}
7145
7326
  */
7146
- strategy?: "SingleVariation" | "PercentageRollout" | "TargetedRollout" | null;
7147
- prerequisites?: components["schemas"]["PublicPrerequisiteDto"][] | null;
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
@@ -7162,26 +7466,26 @@ export interface components {
7162
7466
  */
7163
7467
  PublicFlagListItem: {
7164
7468
  /** Format: uuid */
7165
- id?: string;
7166
- key?: string | null;
7167
- name?: string | null;
7469
+ id: string;
7470
+ key: string;
7471
+ name: string;
7168
7472
  /**
7169
7473
  * @description Allowed values: Boolean, String, Number, Json.
7170
- * @enum {string|null}
7474
+ * @enum {string}
7171
7475
  */
7172
- type?: "Boolean" | "String" | "Number" | "Json" | null;
7173
- isArchived?: boolean;
7174
- clientSideVisible?: boolean;
7175
- tags?: string[] | null;
7476
+ type: "Boolean" | "String" | "Number" | "Json";
7477
+ isArchived: boolean;
7478
+ clientSideVisible: boolean;
7479
+ tags: string[];
7176
7480
  /** Format: date-time */
7177
- createdAt?: string;
7481
+ createdAt: string;
7178
7482
  /** Format: date-time */
7179
- updatedAt?: string;
7483
+ updatedAt: string;
7180
7484
  /** Format: date-time */
7181
7485
  expiresAtUtc?: string | null;
7182
7486
  owner?: components["schemas"]["PublicFlagOwner"];
7183
7487
  removalPrUrl?: string | null;
7184
- isPermanent?: boolean;
7488
+ isPermanent: boolean;
7185
7489
  /** Format: date-time */
7186
7490
  effectiveExpiresAtUtc?: string | null;
7187
7491
  expirySource?: string | null;
@@ -7204,14 +7508,15 @@ export interface components {
7204
7508
  * "q3-launch"
7205
7509
  * ],
7206
7510
  * "createdAt": "2026-06-01T12:00:00Z",
7207
- * "updatedAt": "2026-06-15T08:30:00Z"
7511
+ * "updatedAt": "2026-06-15T08:30:00Z",
7512
+ * "isPermanent": false
7208
7513
  * }
7209
7514
  * ],
7210
7515
  * "next_cursor": "MjA"
7211
7516
  * }
7212
7517
  */
7213
7518
  PublicFlagListItemPagedResult: {
7214
- items?: components["schemas"]["PublicFlagListItem"][] | null;
7519
+ items: components["schemas"]["PublicFlagListItem"][];
7215
7520
  next_cursor?: string | null;
7216
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. */
7217
7522
  _actions?: {
@@ -7221,9 +7526,9 @@ export interface components {
7221
7526
  /** @description A flag's owner as returned on flag reads. Null means the flag is unowned. */
7222
7527
  PublicFlagOwner: {
7223
7528
  /** Format: uuid */
7224
- id?: string;
7225
- email?: string | null;
7226
- name?: string | null;
7529
+ id: string;
7530
+ email: string;
7531
+ name: string;
7227
7532
  };
7228
7533
  /**
7229
7534
  * @description One dead flag the Featureflip Flag Cleanup Action should remove, returned by
@@ -7237,11 +7542,11 @@ export interface components {
7237
7542
  * (`FLAG_HAS_DEPENDENTS`), so a caller should remove those dependents first.
7238
7543
  */
7239
7544
  PublicFlagRemovalCandidate: {
7240
- key?: string | null;
7241
- reason?: string | null;
7242
- treatment?: boolean;
7243
- status?: string | null;
7244
- blockedBy?: string[] | null;
7545
+ key: string;
7546
+ reason: string;
7547
+ treatment: boolean;
7548
+ status: string;
7549
+ blockedBy: string[];
7245
7550
  };
7246
7551
  /**
7247
7552
  * @description A page of results plus an opaque cursor for the next page, or null when this is the last
@@ -7249,7 +7554,7 @@ export interface components {
7249
7554
  * `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
7250
7555
  */
7251
7556
  PublicFlagRemovalCandidatePagedResult: {
7252
- items?: components["schemas"]["PublicFlagRemovalCandidate"][] | null;
7557
+ items: components["schemas"]["PublicFlagRemovalCandidate"][];
7253
7558
  next_cursor?: string | null;
7254
7559
  };
7255
7560
  /**
@@ -7289,33 +7594,34 @@ export interface components {
7289
7594
  * }
7290
7595
  * ],
7291
7596
  * "createdAt": "2026-06-01T12:00:00Z",
7292
- * "updatedAt": "2026-06-15T08:30:00Z"
7597
+ * "updatedAt": "2026-06-15T08:30:00Z",
7598
+ * "isPermanent": false
7293
7599
  * }
7294
7600
  */
7295
7601
  PublicFlagResponse: {
7296
7602
  /** Format: uuid */
7297
- id?: string;
7298
- key?: string | null;
7299
- name?: string | null;
7603
+ id: string;
7604
+ key: string;
7605
+ name: string;
7300
7606
  description?: string | null;
7301
7607
  /**
7302
7608
  * @description Allowed values: Boolean, String, Number, Json.
7303
- * @enum {string|null}
7609
+ * @enum {string}
7304
7610
  */
7305
- type?: "Boolean" | "String" | "Number" | "Json" | null;
7306
- isArchived?: boolean;
7307
- clientSideVisible?: boolean;
7308
- tags?: string[] | null;
7309
- variations?: components["schemas"]["PublicVariationResponse"][] | null;
7611
+ type: "Boolean" | "String" | "Number" | "Json";
7612
+ isArchived: boolean;
7613
+ clientSideVisible: boolean;
7614
+ tags: string[];
7615
+ variations: components["schemas"]["PublicVariationResponse"][];
7310
7616
  /** Format: date-time */
7311
- createdAt?: string;
7617
+ createdAt: string;
7312
7618
  /** Format: date-time */
7313
- updatedAt?: string;
7619
+ updatedAt: string;
7314
7620
  /** Format: date-time */
7315
7621
  expiresAtUtc?: string | null;
7316
7622
  owner?: components["schemas"]["PublicFlagOwner"];
7317
7623
  removalPrUrl?: string | null;
7318
- isPermanent?: boolean;
7624
+ isPermanent: boolean;
7319
7625
  /** Format: date-time */
7320
7626
  effectiveExpiresAtUtc?: string | null;
7321
7627
  expirySource?: string | null;
@@ -7324,13 +7630,25 @@ export interface components {
7324
7630
  [key: string]: components["schemas"]["ActionCapability"];
7325
7631
  };
7326
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
+ };
7327
7645
  /**
7328
7646
  * @description A single prerequisite entry on a flag's per-environment config. Maps 1:1 onto
7329
7647
  * PrerequisiteDto (read side) and PrerequisiteInput (write side).
7330
7648
  */
7331
7649
  PublicPrerequisiteDto: {
7332
- prerequisiteFlagKey?: string | null;
7333
- expectedVariationKey?: string | null;
7650
+ prerequisiteFlagKey: string;
7651
+ expectedVariationKey: string;
7334
7652
  };
7335
7653
  /**
7336
7654
  * @description Request body for `PUT .../targeting` — a declarative full replace of the environment's
@@ -7354,14 +7672,38 @@ export interface components {
7354
7672
  * carrying the handler's message.
7355
7673
  */
7356
7674
  PublicReorderRulesRequest: {
7357
- ruleIds?: string[] | null;
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;
7358
7700
  };
7359
7701
  /** @description A newly added signing secret. The secret is shown only here. */
7360
7702
  PublicRotateWebhookSecretResponse: {
7361
7703
  /** Format: uuid */
7362
- secretId?: string;
7363
- secret?: string | null;
7364
- warning?: string | null;
7704
+ secretId: string;
7705
+ secret: string;
7706
+ warning: string;
7365
7707
  };
7366
7708
  /**
7367
7709
  * @description Public representation of an SDK key, returned by
@@ -7384,18 +7726,18 @@ export interface components {
7384
7726
  */
7385
7727
  PublicSdkKeyResponse: {
7386
7728
  /** Format: uuid */
7387
- id?: string;
7388
- name?: string | null;
7729
+ id: string;
7730
+ name: string;
7389
7731
  description?: string | null;
7390
7732
  /**
7391
7733
  * @description Allowed values: ClientSide, ServerSide.
7392
- * @enum {string|null}
7734
+ * @enum {string}
7393
7735
  */
7394
- type?: "ClientSide" | "ServerSide" | null;
7395
- lastFourCharacters?: string | null;
7396
- isActive?: boolean;
7736
+ type: "ClientSide" | "ServerSide";
7737
+ lastFourCharacters: string;
7738
+ isActive: boolean;
7397
7739
  /** Format: date-time */
7398
- createdAt?: string;
7740
+ createdAt: string;
7399
7741
  /** Format: date-time */
7400
7742
  lastUsedAt?: string | null;
7401
7743
  /** Format: date-time */
@@ -7411,7 +7753,7 @@ export interface components {
7411
7753
  * `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
7412
7754
  */
7413
7755
  PublicSdkKeyResponsePagedResult: {
7414
- items?: components["schemas"]["PublicSdkKeyResponse"][] | null;
7756
+ items: components["schemas"]["PublicSdkKeyResponse"][];
7415
7757
  next_cursor?: string | null;
7416
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. */
7417
7759
  _actions?: {
@@ -7427,13 +7769,13 @@ export interface components {
7427
7769
  * straight through from Operator, which is already a string.
7428
7770
  */
7429
7771
  PublicSegmentConditionDto: {
7430
- attribute?: string | null;
7772
+ attribute: string;
7431
7773
  /**
7432
7774
  * @description Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.
7433
- * @enum {string|null}
7775
+ * @enum {string}
7434
7776
  */
7435
- operator?: "Equals" | "NotEquals" | "Contains" | "NotContains" | "GreaterThan" | "LessThan" | "GreaterThanOrEqual" | "LessThanOrEqual" | "In" | "NotIn" | "MatchesRegex" | "StartsWith" | "EndsWith" | "Before" | "After" | "SemverEquals" | "SemverGreaterThan" | "SemverGreaterThanOrEqual" | "SemverLessThan" | "SemverLessThanOrEqual" | null;
7436
- values?: string[] | null;
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[];
7437
7779
  negate?: boolean;
7438
7780
  };
7439
7781
  /**
@@ -7460,15 +7802,15 @@ export interface components {
7460
7802
  */
7461
7803
  PublicSegmentResponse: {
7462
7804
  /** Format: uuid */
7463
- id?: string;
7464
- key?: string | null;
7465
- name?: string | null;
7805
+ id: string;
7806
+ key: string;
7807
+ name: string;
7466
7808
  description?: string | null;
7467
- conditions?: components["schemas"]["PublicSegmentConditionDto"][] | null;
7809
+ conditions: components["schemas"]["PublicSegmentConditionDto"][];
7468
7810
  /** Format: date-time */
7469
- createdAt?: string;
7811
+ createdAt: string;
7470
7812
  /** Format: date-time */
7471
- updatedAt?: string;
7813
+ updatedAt: string;
7472
7814
  /** @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. */
7473
7815
  _actions?: {
7474
7816
  [key: string]: components["schemas"]["ActionCapability"];
@@ -7480,7 +7822,7 @@ export interface components {
7480
7822
  * `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
7481
7823
  */
7482
7824
  PublicSegmentResponsePagedResult: {
7483
- items?: components["schemas"]["PublicSegmentResponse"][] | null;
7825
+ items: components["schemas"]["PublicSegmentResponse"][];
7484
7826
  next_cursor?: string | null;
7485
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. */
7486
7828
  _actions?: {
@@ -7495,7 +7837,7 @@ export interface components {
7495
7837
  */
7496
7838
  PublicSetDefaultFlagLifetimeRequest: {
7497
7839
  /** Format: int32 */
7498
- days?: number | null;
7840
+ days: number | null;
7499
7841
  };
7500
7842
  /**
7501
7843
  * @description Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/expiry`. Expiry is a
@@ -7534,8 +7876,8 @@ export interface components {
7534
7876
  * all), not anything specific to targeting itself.
7535
7877
  */
7536
7878
  PublicTargetingConfigResponse: {
7537
- isEnabled?: boolean;
7538
- rules?: components["schemas"]["PublicTargetingRuleResponse"][] | null;
7879
+ isEnabled: boolean;
7880
+ rules: components["schemas"]["PublicTargetingRuleResponse"][];
7539
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. */
7540
7882
  _actions?: {
7541
7883
  [key: string]: components["schemas"]["ActionCapability"];
@@ -7573,17 +7915,17 @@ export interface components {
7573
7915
  */
7574
7916
  PublicTargetingRuleResponse: {
7575
7917
  /** Format: uuid */
7576
- id?: string;
7918
+ id: string;
7577
7919
  /** Format: int32 */
7578
- priority?: number;
7920
+ priority: number;
7579
7921
  description?: string | null;
7580
7922
  /** Format: uuid */
7581
- variationId?: string;
7923
+ variationId: string;
7582
7924
  /** Format: int32 */
7583
7925
  rolloutPercentage?: number | null;
7584
7926
  /** Format: uuid */
7585
7927
  userSegmentId?: string | null;
7586
- conditionGroups?: components["schemas"]["PublicConditionGroupResponse"][] | null;
7928
+ conditionGroups: components["schemas"]["PublicConditionGroupResponse"][];
7587
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. */
7588
7930
  _actions?: {
7589
7931
  [key: string]: components["schemas"]["ActionCapability"];
@@ -7592,9 +7934,9 @@ export interface components {
7592
7934
  /** @description The queued test event and its delivery. Poll the delivery log for the outcome. */
7593
7935
  PublicTestWebhookSubscriptionResponse: {
7594
7936
  /** Format: uuid */
7595
- webhookEventId?: string;
7937
+ webhookEventId: string;
7596
7938
  /** Format: uuid */
7597
- webhookDeliveryId?: string;
7939
+ webhookDeliveryId: string;
7598
7940
  };
7599
7941
  /**
7600
7942
  * @description Request body for `POST .../flags/{flag}/environments/{env}/toggle`. Named distinctly from
@@ -7615,7 +7957,7 @@ export interface components {
7615
7957
  * dashboard's `UpdateEnvironmentRequest`.
7616
7958
  */
7617
7959
  PublicUpdateEnvironmentRequest: {
7618
- name?: string | null;
7960
+ name: string;
7619
7961
  color?: string | null;
7620
7962
  /** Format: int32 */
7621
7963
  sortOrder?: number;
@@ -7627,7 +7969,7 @@ export interface components {
7627
7969
  * endpoint (mirrors `UpdateFeatureFlagCommand`, which has no `Key`/`Type`).
7628
7970
  */
7629
7971
  PublicUpdateFeatureFlagRequest: {
7630
- name?: string | null;
7972
+ name: string;
7631
7973
  description?: string | null;
7632
7974
  tags?: string[] | null;
7633
7975
  clientSideVisible?: boolean | null;
@@ -7670,7 +8012,7 @@ export interface components {
7670
8012
  * dashboard's `UpdateProjectRequest`.
7671
8013
  */
7672
8014
  PublicUpdateProjectRequest: {
7673
- name?: string | null;
8015
+ name: string;
7674
8016
  description?: string | null;
7675
8017
  };
7676
8018
  /**
@@ -7680,7 +8022,7 @@ export interface components {
7680
8022
  * carries no `Type`).
7681
8023
  */
7682
8024
  PublicUpdateSdkKeyRequest: {
7683
- name?: string | null;
8025
+ name: string;
7684
8026
  description?: string | null;
7685
8027
  };
7686
8028
  /**
@@ -7689,9 +8031,9 @@ export interface components {
7689
8031
  * carries no `Key`).
7690
8032
  */
7691
8033
  PublicUpdateSegmentRequest: {
7692
- name?: string | null;
8034
+ name: string;
7693
8035
  description?: string | null;
7694
- conditions?: components["schemas"]["PublicSegmentConditionDto"][] | null;
8036
+ conditions: components["schemas"]["PublicSegmentConditionDto"][];
7695
8037
  };
7696
8038
  /**
7697
8039
  * @description Request body for `PUT .../rules/{ruleId}`. Same shape as
@@ -7706,7 +8048,7 @@ export interface components {
7706
8048
  rolloutPercentage?: number | null;
7707
8049
  /** Format: uuid */
7708
8050
  userSegmentId?: string | null;
7709
- conditionGroups?: components["schemas"]["PublicConditionGroupRequest"][] | null;
8051
+ conditionGroups: components["schemas"]["PublicConditionGroupRequest"][];
7710
8052
  };
7711
8053
  /**
7712
8054
  * @description Request body for
@@ -7716,8 +8058,8 @@ export interface components {
7716
8058
  * carries no `Key`).
7717
8059
  */
7718
8060
  PublicUpdateVariationRequest: {
7719
- name?: string | null;
7720
- value?: string | null;
8061
+ name: string;
8062
+ value: string;
7721
8063
  description?: string | null;
7722
8064
  };
7723
8065
  /**
@@ -7725,8 +8067,8 @@ export interface components {
7725
8067
  * "all"). `isEnabled` is required. The provider cannot be changed.
7726
8068
  */
7727
8069
  PublicUpdateWebhookSubscriptionRequest: {
7728
- name?: string | null;
7729
- url?: string | null;
8070
+ name: string;
8071
+ url: string;
7730
8072
  eventTypes?: string[] | null;
7731
8073
  projectIds?: string[] | null;
7732
8074
  environmentIds?: string[] | null;
@@ -7744,10 +8086,10 @@ export interface components {
7744
8086
  */
7745
8087
  PublicVariationResponse: {
7746
8088
  /** Format: uuid */
7747
- id?: string;
7748
- key?: string | null;
7749
- name?: string | null;
7750
- value?: string | null;
8089
+ id: string;
8090
+ key: string;
8091
+ name: string;
8092
+ value: string;
7751
8093
  description?: string | null;
7752
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. */
7753
8095
  _actions?: {
@@ -7760,25 +8102,25 @@ export interface components {
7760
8102
  */
7761
8103
  PublicWebhookDeliveryResponse: {
7762
8104
  /** Format: uuid */
7763
- id?: string;
8105
+ id: string;
7764
8106
  /** Format: uuid */
7765
- webhookEventId?: string;
8107
+ webhookEventId: string;
7766
8108
  /**
7767
8109
  * @description Allowed values: Pending, Succeeded, DeadLettered.
7768
- * @enum {string|null}
8110
+ * @enum {string}
7769
8111
  */
7770
- status?: "Pending" | "Succeeded" | "DeadLettered" | null;
8112
+ status: "Pending" | "Succeeded" | "DeadLettered";
7771
8113
  /** Format: int32 */
7772
- attemptCount?: number;
8114
+ attemptCount: number;
7773
8115
  /** Format: date-time */
7774
- nextAttemptAt?: string;
8116
+ nextAttemptAt: string;
7775
8117
  /** Format: int32 */
7776
8118
  lastResponseStatusCode?: number | null;
7777
8119
  lastError?: string | null;
7778
8120
  /** Format: date-time */
7779
8121
  completedAt?: string | null;
7780
8122
  /** Format: date-time */
7781
- createdAt?: string;
8123
+ createdAt: string;
7782
8124
  };
7783
8125
  /**
7784
8126
  * @description A page of results plus an opaque cursor for the next page, or null when this is the last
@@ -7786,15 +8128,15 @@ export interface components {
7786
8128
  * `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
7787
8129
  */
7788
8130
  PublicWebhookDeliveryResponsePagedResult: {
7789
- items?: components["schemas"]["PublicWebhookDeliveryResponse"][] | null;
8131
+ items: components["schemas"]["PublicWebhookDeliveryResponse"][];
7790
8132
  next_cursor?: string | null;
7791
8133
  };
7792
8134
  /** @description A signing secret's id and lifecycle. A secret with no `retiredAt` is active and signs every delivery. */
7793
8135
  PublicWebhookSecretResponse: {
7794
8136
  /** Format: uuid */
7795
- id?: string;
8137
+ id: string;
7796
8138
  /** Format: date-time */
7797
- createdAt?: string;
8139
+ createdAt: string;
7798
8140
  /** Format: date-time */
7799
8141
  retiredAt?: string | null;
7800
8142
  };
@@ -7822,6 +8164,7 @@ export interface components {
7822
8164
  * "0197b69f-2b3c-7d4e-9f5a-6b7c8d9e0f1a"
7823
8165
  * ],
7824
8166
  * "consecutiveFailureCount": 0,
8167
+ * "overPlanLimit": false,
7825
8168
  * "createdAt": "2026-06-01T12:00:00Z",
7826
8169
  * "updatedAt": "2026-06-15T08:30:00Z",
7827
8170
  * "secrets": [
@@ -7834,28 +8177,28 @@ export interface components {
7834
8177
  */
7835
8178
  PublicWebhookSubscriptionResponse: {
7836
8179
  /** Format: uuid */
7837
- id?: string;
7838
- name?: string | null;
7839
- url?: string | null;
8180
+ id: string;
8181
+ name: string;
8182
+ url: string;
7840
8183
  /**
7841
8184
  * @description Allowed values: GenericHttp.
7842
- * @enum {string|null}
8185
+ * @enum {string}
7843
8186
  */
7844
- provider?: "GenericHttp" | null;
7845
- isEnabled?: boolean;
7846
- eventTypes?: string[] | null;
7847
- projectIds?: string[] | null;
7848
- environmentIds?: string[] | null;
8187
+ provider: "GenericHttp";
8188
+ isEnabled: boolean;
8189
+ eventTypes: string[];
8190
+ projectIds: string[];
8191
+ environmentIds: string[];
7849
8192
  /** Format: int32 */
7850
- consecutiveFailureCount?: number;
8193
+ consecutiveFailureCount: number;
7851
8194
  /** Format: date-time */
7852
8195
  autoDisabledAt?: string | null;
7853
8196
  /** Format: date-time */
7854
- createdAt?: string;
8197
+ createdAt: string;
7855
8198
  /** Format: date-time */
7856
- updatedAt?: string;
7857
- secrets?: components["schemas"]["PublicWebhookSecretResponse"][] | null;
7858
- overPlanLimit?: boolean;
8199
+ updatedAt: string;
8200
+ secrets: components["schemas"]["PublicWebhookSecretResponse"][];
8201
+ overPlanLimit: boolean;
7859
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. */
7860
8203
  _actions?: {
7861
8204
  [key: string]: components["schemas"]["ActionCapability"];
@@ -7867,7 +8210,7 @@ export interface components {
7867
8210
  * `next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`).
7868
8211
  */
7869
8212
  PublicWebhookSubscriptionResponsePagedResult: {
7870
- items?: components["schemas"]["PublicWebhookSubscriptionResponse"][] | null;
8213
+ items: components["schemas"]["PublicWebhookSubscriptionResponse"][];
7871
8214
  next_cursor?: string | null;
7872
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. */
7873
8216
  _actions?: {