@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.
- package/dist/cli.mjs +1 -1
- package/dist/generated/api-types.d.ts +33 -8
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/generated/output-schemas.json.d.ts +64 -3
- package/dist/index.mjs +1 -1
- package/dist/{org-C6HAk06Q.js → org-euupmplU.js} +88 -70
- package/dist/tools/flag-environments.d.ts.map +1 -1
- package/dist/tools/targeting.d.ts.map +1 -1
- package/dist/tools/webhooks.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, s as i, t as a } from "./org-
|
|
1
|
+
import { a as e, i as t, n, o as r, s as i, t as a } from "./org-euupmplU.js";
|
|
2
2
|
import { serveStdio as o } from "@modelcontextprotocol/server/stdio";
|
|
3
3
|
// src/unconfigured.ts
|
|
4
4
|
var s = class extends i {
|
|
@@ -7102,6 +7102,7 @@ export interface components {
|
|
|
7102
7102
|
* "description": "North American users get the new flow at 25%.",
|
|
7103
7103
|
* "variationId": "0197b6a0-6a1b-7d4f-8c2e-2f3a4b5c6d7e",
|
|
7104
7104
|
* "rolloutPercentage": 25,
|
|
7105
|
+
* "bucketBy": "user_id",
|
|
7105
7106
|
* "conditionGroups": [
|
|
7106
7107
|
* {
|
|
7107
7108
|
* "operator": "And",
|
|
@@ -7129,6 +7130,8 @@ export interface components {
|
|
|
7129
7130
|
/** Format: uuid */
|
|
7130
7131
|
userSegmentId?: string | null;
|
|
7131
7132
|
conditionGroups: components["schemas"]["PublicConditionGroupRequest"][];
|
|
7133
|
+
/** @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`. */
|
|
7134
|
+
bucketBy?: string | null;
|
|
7132
7135
|
};
|
|
7133
7136
|
/**
|
|
7134
7137
|
* @description A variation supplied at flag-creation time. Maps 1:1 onto
|
|
@@ -7146,7 +7149,7 @@ export interface components {
|
|
|
7146
7149
|
* project or environment. A token restricted to specific projects must list at least one project,
|
|
7147
7150
|
* all of them within its allowlist.
|
|
7148
7151
|
* @example {
|
|
7149
|
-
* "name": "Checkout flag changes to
|
|
7152
|
+
* "name": "Checkout flag changes to deploy pipeline",
|
|
7150
7153
|
* "url": "https://hooks.acme.example/featureflip",
|
|
7151
7154
|
* "provider": "GenericHttp",
|
|
7152
7155
|
* "eventTypes": [
|
|
@@ -7165,10 +7168,10 @@ export interface components {
|
|
|
7165
7168
|
name: string;
|
|
7166
7169
|
url: string;
|
|
7167
7170
|
/**
|
|
7168
|
-
* @description Allowed values: GenericHttp.
|
|
7171
|
+
* @description Allowed values: GenericHttp, Slack.
|
|
7169
7172
|
* @enum {string}
|
|
7170
7173
|
*/
|
|
7171
|
-
provider: "GenericHttp";
|
|
7174
|
+
provider: "GenericHttp" | "Slack";
|
|
7172
7175
|
eventTypes?: string[] | null;
|
|
7173
7176
|
projectIds?: string[] | null;
|
|
7174
7177
|
environmentIds?: string[] | null;
|
|
@@ -7400,7 +7403,8 @@ export interface components {
|
|
|
7400
7403
|
* ],
|
|
7401
7404
|
* "evaluable": true,
|
|
7402
7405
|
* "pValue": 0.074,
|
|
7403
|
-
* "flagged": false
|
|
7406
|
+
* "flagged": false,
|
|
7407
|
+
* "bucketBy": "user_id"
|
|
7404
7408
|
* }
|
|
7405
7409
|
* },
|
|
7406
7410
|
* {
|
|
@@ -7451,7 +7455,7 @@ export interface components {
|
|
|
7451
7455
|
lastEvaluatedAtUtc?: string | null;
|
|
7452
7456
|
/** @description Evaluations per variation over the window. */
|
|
7453
7457
|
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. */
|
|
7458
|
+
/** @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. */
|
|
7455
7459
|
sources: components["schemas"]["PublicEvaluationSource"][];
|
|
7456
7460
|
};
|
|
7457
7461
|
/**
|
|
@@ -7697,6 +7701,22 @@ export interface components {
|
|
|
7697
7701
|
* @enum {string|null}
|
|
7698
7702
|
*/
|
|
7699
7703
|
notEvaluableReason?: "too-little-traffic" | "unexpected-variation" | null;
|
|
7704
|
+
/** @description The context attribute the rollout hashes on. A context without it skips the rule, even at 100%. */
|
|
7705
|
+
bucketBy: string;
|
|
7706
|
+
unreached?: components["schemas"]["PublicRolloutUnreached"];
|
|
7707
|
+
};
|
|
7708
|
+
/** @description A live rollout rule that no evaluations reached. */
|
|
7709
|
+
PublicRolloutUnreached: {
|
|
7710
|
+
/**
|
|
7711
|
+
* Format: int64
|
|
7712
|
+
* @description Evaluations that reached the flag's rules or fallthrough since SinceUtc, while this rule served none.
|
|
7713
|
+
*/
|
|
7714
|
+
eligibleEvaluations: number;
|
|
7715
|
+
/**
|
|
7716
|
+
* Format: date-time
|
|
7717
|
+
* @description The window start, or the first UTC midnight after the rule last changed when that is later.
|
|
7718
|
+
*/
|
|
7719
|
+
sinceUtc: string;
|
|
7700
7720
|
};
|
|
7701
7721
|
/** @description A newly added signing secret. The secret is shown only here. */
|
|
7702
7722
|
PublicRotateWebhookSecretResponse: {
|
|
@@ -7894,6 +7914,7 @@ export interface components {
|
|
|
7894
7914
|
* "description": "North American users get the new flow at 25%.",
|
|
7895
7915
|
* "variationId": "0197b6a0-6a1b-7d4f-8c2e-2f3a4b5c6d7e",
|
|
7896
7916
|
* "rolloutPercentage": 25,
|
|
7917
|
+
* "bucketBy": "user_id",
|
|
7897
7918
|
* "userSegmentId": "0197b6a1-3c4d-7e5f-8a6b-7c8d9e0f1a2b",
|
|
7898
7919
|
* "conditionGroups": [
|
|
7899
7920
|
* {
|
|
@@ -7923,6 +7944,8 @@ export interface components {
|
|
|
7923
7944
|
variationId: string;
|
|
7924
7945
|
/** Format: int32 */
|
|
7925
7946
|
rolloutPercentage?: number | null;
|
|
7947
|
+
/** @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. */
|
|
7948
|
+
bucketBy: string;
|
|
7926
7949
|
/** Format: uuid */
|
|
7927
7950
|
userSegmentId?: string | null;
|
|
7928
7951
|
conditionGroups: components["schemas"]["PublicConditionGroupResponse"][];
|
|
@@ -8049,6 +8072,8 @@ export interface components {
|
|
|
8049
8072
|
/** Format: uuid */
|
|
8050
8073
|
userSegmentId?: string | null;
|
|
8051
8074
|
conditionGroups: components["schemas"]["PublicConditionGroupRequest"][];
|
|
8075
|
+
/** @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. */
|
|
8076
|
+
bucketBy?: string | null;
|
|
8052
8077
|
};
|
|
8053
8078
|
/**
|
|
8054
8079
|
* @description Request body for
|
|
@@ -8149,7 +8174,7 @@ export interface components {
|
|
|
8149
8174
|
* the plan is upgraded or older subscriptions are deleted.
|
|
8150
8175
|
* @example {
|
|
8151
8176
|
* "id": "0197b6a4-6f7a-7b8c-9d0e-1f2a3b4c5d6e",
|
|
8152
|
-
* "name": "Checkout flag changes to
|
|
8177
|
+
* "name": "Checkout flag changes to deploy pipeline",
|
|
8153
8178
|
* "url": "https://hooks.acme.example/featureflip",
|
|
8154
8179
|
* "provider": "GenericHttp",
|
|
8155
8180
|
* "isEnabled": true,
|
|
@@ -8181,10 +8206,10 @@ export interface components {
|
|
|
8181
8206
|
name: string;
|
|
8182
8207
|
url: string;
|
|
8183
8208
|
/**
|
|
8184
|
-
* @description Allowed values: GenericHttp.
|
|
8209
|
+
* @description Allowed values: GenericHttp, Slack.
|
|
8185
8210
|
* @enum {string}
|
|
8186
8211
|
*/
|
|
8187
|
-
provider: "GenericHttp";
|
|
8212
|
+
provider: "GenericHttp" | "Slack";
|
|
8188
8213
|
isEnabled: boolean;
|
|
8189
8214
|
eventTypes: string[];
|
|
8190
8215
|
projectIds: string[];
|