@featureflip/mcp 0.4.0 → 0.6.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.
@@ -964,6 +964,13 @@ declare const _default: {
964
964
  }
965
965
  ]
966
966
  }
967
+ },
968
+ "bucketBy": {
969
+ "type": [
970
+ "string",
971
+ "null"
972
+ ],
973
+ "description": "Context attribute the rollout hashes on (default `user_id`; `userId` is accepted as an alias). A context without it skips this rule, even at 100%. Changing it reshuffles who is in the rollout. A fixed rule (no `rolloutPercentage`) never hashes and always stores `user_id`. When omitted on `PUT .../targeting`, a rollout keeps the value of the existing rollout it edits: the existing rule with the same targeting, told apart from others with that targeting by its variation, then its description, then its position. Any other rule gets `user_id`. The request is refused with 400 until it sends `bucketBy` for a rollout whose edited rule it can't tell when the answer changes its attribute: the rollout shares only its targeting with several rules that bucket differently, or it matches no existing rule while the request removes a rollout bucketed by another attribute. On create, omitting it gives `user_id`."
967
974
  }
968
975
  },
969
976
  "description": "Request body for `POST .../rules`. The Application-side\n`CreateTargetingRuleDto`/`CreateConditionGroupDto`/`CreateConditionDto` all take\ntheir `Operator` as a bare string, re-parsed CASE-SENSITIVELY inside\n`CreateTargetingRuleCommandHandler` — `FlagTargetingController`'s mapping helpers\nvalidate every operator against the enum's member-name allowlist AND canonicalize the casing\n(e.g. `\"in\"` → `\"In\"`) before building the command DTO, so a valid\ncase-insensitive match never trips the handler's strict re-parse."
@@ -1024,7 +1031,7 @@ declare const _default: {
1024
1031
  "string",
1025
1032
  "null"
1026
1033
  ],
1027
- "description": "Allowed values: GenericHttp."
1034
+ "description": "Allowed values: GenericHttp, Slack."
1028
1035
  },
1029
1036
  "eventTypes": {
1030
1037
  "type": [
@@ -1492,7 +1499,7 @@ declare const _default: {
1492
1499
  }
1493
1500
  ]
1494
1501
  },
1495
- "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."
1502
+ "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. A live percentage-rollout rule is always listed, with a count of 0 and no variations when it served nothing in the window, so its rollout check (and rollout.unreached) has a row."
1496
1503
  }
1497
1504
  },
1498
1505
  "description": "What a flag served in one environment over the window, returned by\n`GET .../flags/{flag}/environments/{env}/evaluations` (#4225). These are evaluation\ncounts, not unique users. They come from SDK-reported events, so an environment whose SDKs\nreport none reads zero: no evaluations reported, not necessarily no traffic. The public\ncounterpart of FlagEvaluationAnalyticsDto, keyed by environment key instead of\nid and without the dashboard's daily series."
@@ -2058,10 +2065,50 @@ declare const _default: {
2058
2065
  "null"
2059
2066
  ],
2060
2067
  "description": "too-little-traffic or unexpected-variation when the check couldn't run; null otherwise. Allowed values: too-little-traffic, unexpected-variation."
2068
+ },
2069
+ "bucketBy": {
2070
+ "type": [
2071
+ "string",
2072
+ "null"
2073
+ ],
2074
+ "description": "The context attribute the rollout hashes on. A context without it skips the rule, even at 100%."
2075
+ },
2076
+ "unreached": {
2077
+ "anyOf": [
2078
+ {
2079
+ "$ref": "#/$defs/PublicRolloutUnreached"
2080
+ },
2081
+ {
2082
+ "type": "null"
2083
+ }
2084
+ ]
2061
2085
  }
2062
2086
  },
2063
2087
  "description": "A percentage-rollout rule's configured split beside a sample-ratio check of what it served."
2064
2088
  },
2089
+ "PublicRolloutUnreached": {
2090
+ "type": [
2091
+ "object",
2092
+ "null"
2093
+ ],
2094
+ "properties": {
2095
+ "eligibleEvaluations": {
2096
+ "type": [
2097
+ "integer",
2098
+ "null"
2099
+ ],
2100
+ "description": "Evaluations that reached the flag's rules or fallthrough since SinceUtc, while this rule served none."
2101
+ },
2102
+ "sinceUtc": {
2103
+ "type": [
2104
+ "string",
2105
+ "null"
2106
+ ],
2107
+ "description": "The window start, or the first UTC midnight after the rule last changed when that is later."
2108
+ }
2109
+ },
2110
+ "description": "A live rollout rule that no evaluations reached."
2111
+ },
2065
2112
  "PublicRotateWebhookSecretResponse": {
2066
2113
  "type": [
2067
2114
  "object",
@@ -2528,6 +2575,13 @@ declare const _default: {
2528
2575
  "null"
2529
2576
  ]
2530
2577
  },
2578
+ "bucketBy": {
2579
+ "type": [
2580
+ "string",
2581
+ "null"
2582
+ ],
2583
+ "description": "Context attribute the rollout hashes on (default `user_id`; `userId` is accepted as an alias). A context without it skips this rule, even at 100%. Lookup is exact and case-sensitive, except `user_id`/`userId`, which both read the user id."
2584
+ },
2531
2585
  "userSegmentId": {
2532
2586
  "type": [
2533
2587
  "string",
@@ -2834,6 +2888,13 @@ declare const _default: {
2834
2888
  }
2835
2889
  ]
2836
2890
  }
2891
+ },
2892
+ "bucketBy": {
2893
+ "type": [
2894
+ "string",
2895
+ "null"
2896
+ ],
2897
+ "description": "Context attribute the rollout hashes on (default `user_id`; `userId` is accepted as an alias). Omit to keep the current value. A fixed rule (no `rolloutPercentage`) never hashes and always stores `user_id`, so one made a rollout without `bucketBy` gets `user_id`. A context without it skips this rule, even at 100%. Changing it reshuffles who is in the rollout."
2837
2898
  }
2838
2899
  },
2839
2900
  "description": "Request body for `PUT .../rules/{ruleId}`. Same shape as\nPublicCreateTargetingRuleRequest — see its remarks on operator\nvalidation/canonicalization, which applies identically here."
@@ -3135,7 +3196,7 @@ declare const _default: {
3135
3196
  "string",
3136
3197
  "null"
3137
3198
  ],
3138
- "description": "Allowed values: GenericHttp."
3199
+ "description": "Allowed values: GenericHttp, Slack."
3139
3200
  },
3140
3201
  "isEnabled": {
3141
3202
  "type": [
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { o as ApiError, s as FeatureflipApi, c as PKG_VERSION, a as createServer, r as loadConfig, t as resolveOrg } from "./org-C6HAk06Q.js";
1
+ export { o as ApiError, s as FeatureflipApi, c as PKG_VERSION, a as createServer, r as loadConfig, t as resolveOrg } from "./org-euupmplU.js";