@featureflip/mcp 0.8.0 → 0.10.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.
@@ -28,6 +28,14 @@ declare const _default: {
28
28
  "GET /api/v1/orgs/{org}/projects/{project}": "ProjectResponse",
29
29
  "GET /api/v1/orgs/{org}/projects/{project}/compare": "PublicFlagComparisonRowPagedResult",
30
30
  "GET /api/v1/orgs/{org}/projects/{project}/default-flag-lifetime/impact": "PublicDefaultFlagLifetimeImpact",
31
+ "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps": "PublicRolloutRampResponsePagedResult",
32
+ "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}": "PublicRolloutRampResponse",
33
+ "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/rules/{ruleId}/ramp": "PublicRolloutRampResponse",
34
+ "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/default-rule/ramp": "PublicRolloutRampResponse",
35
+ "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}/pause": "PublicRolloutRampResponse",
36
+ "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}/resume": "PublicRolloutRampResponse",
37
+ "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}/advance": "PublicRolloutRampResponse",
38
+ "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}/abort": "PublicRolloutRampResponse",
31
39
  "POST /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys": "PublicCreateSdkKeyResponse",
32
40
  "GET /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys": "PublicSdkKeyResponsePagedResult",
33
41
  "GET /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys/{sdkKey}": "PublicSdkKeyResponse",
@@ -356,6 +364,21 @@ declare const _default: {
356
364
  },
357
365
  "description": "A page of results plus an opaque cursor for the next page, or null when this is the last\npage. Wire keys are frozen: `items` (already lowercase under the camelCase policy) and\n`next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`)."
358
366
  },
367
+ "PublicAbortRolloutRampRequest": {
368
+ "type": [
369
+ "object",
370
+ "null"
371
+ ],
372
+ "properties": {
373
+ "percent": {
374
+ "type": [
375
+ "integer",
376
+ "null"
377
+ ]
378
+ }
379
+ },
380
+ "description": "Request body for `POST …/ramps/{rampId}/abort`: the percentage (0-100) to leave the rule at. Required, so\na missing value is a 400 rather than an abort to 0%."
381
+ },
359
382
  "PublicAddVariationRequest": {
360
383
  "type": [
361
384
  "object",
@@ -389,6 +412,21 @@ declare const _default: {
389
412
  },
390
413
  "description": "Request body for\n`POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/variations`. Named distinctly\nfrom the dashboard's own `AddVariationRequest` —\nsee PublicCreateEnvironmentRequest for the schemaId-collision rationale (both\ncontrollers share one Swagger document)."
391
414
  },
415
+ "PublicAdvanceRolloutRampRequest": {
416
+ "type": [
417
+ "object",
418
+ "null"
419
+ ],
420
+ "properties": {
421
+ "expectedStepIndex": {
422
+ "type": [
423
+ "integer",
424
+ "null"
425
+ ]
426
+ }
427
+ },
428
+ "description": "Request body for `POST …/ramps/{rampId}/advance`: the `currentStepIndex` the caller last saw. If the\nramp has moved on since, the advance is a 409, so two racing advances can't skip a step."
429
+ },
392
430
  "PublicApiErrorEnvelope": {
393
431
  "type": [
394
432
  "object",
@@ -2661,6 +2699,27 @@ declare const _default: {
2661
2699
  },
2662
2700
  "description": "Request body for `PUT .../targeting` — a declarative full replace of the environment's\nordered targeting rule set. Rules are applied in array order (index = priority, so the array\norder IS the evaluation order). Rules is nullable so that an OMITTED `rules`\nfield (a body of `{}`) binds successfully instead of failing ASP.NET Core's implicit\nrequired-property check on non-nullable reference types — both an omitted `rules` field\nand an explicit empty list (`{ \"rules\": [] }`) clear all targeting rules for the\nenvironment. Each element is a PublicCreateTargetingRuleRequest (identical to the\n`POST .../rules` body), so `UserSegmentId` is supported — segment-scoped rules can be\nsubmitted through this endpoint. The replace is atomic (all-or-nothing): the whole rule set is\nswapped in one transaction, or nothing changes."
2663
2701
  },
2702
+ "PublicRampStep": {
2703
+ "type": [
2704
+ "object",
2705
+ "null"
2706
+ ],
2707
+ "properties": {
2708
+ "percent": {
2709
+ "type": [
2710
+ "integer",
2711
+ "null"
2712
+ ]
2713
+ },
2714
+ "holdMinutes": {
2715
+ "type": [
2716
+ "integer",
2717
+ "null"
2718
+ ]
2719
+ }
2720
+ },
2721
+ "description": "One rung of a rollout ramp: the percentage served, then how long it holds before the next rung."
2722
+ },
2664
2723
  "PublicReorderRulesRequest": {
2665
2724
  "type": [
2666
2725
  "object",
@@ -2760,6 +2819,140 @@ declare const _default: {
2760
2819
  },
2761
2820
  "description": "A percentage-rollout rule's configured split beside a sample-ratio check of what it served."
2762
2821
  },
2822
+ "PublicRolloutRampResponse": {
2823
+ "type": [
2824
+ "object",
2825
+ "null"
2826
+ ],
2827
+ "properties": {
2828
+ "id": {
2829
+ "type": [
2830
+ "string",
2831
+ "null"
2832
+ ]
2833
+ },
2834
+ "ruleId": {
2835
+ "type": [
2836
+ "string",
2837
+ "null"
2838
+ ]
2839
+ },
2840
+ "isDefaultRule": {
2841
+ "type": [
2842
+ "boolean",
2843
+ "null"
2844
+ ]
2845
+ },
2846
+ "targetVariationId": {
2847
+ "type": [
2848
+ "string",
2849
+ "null"
2850
+ ]
2851
+ },
2852
+ "status": {
2853
+ "type": [
2854
+ "string",
2855
+ "null"
2856
+ ]
2857
+ },
2858
+ "steps": {
2859
+ "type": [
2860
+ "array",
2861
+ "null"
2862
+ ],
2863
+ "items": {
2864
+ "anyOf": [
2865
+ {
2866
+ "$ref": "#/$defs/PublicRampStep"
2867
+ },
2868
+ {
2869
+ "type": "null"
2870
+ }
2871
+ ]
2872
+ }
2873
+ },
2874
+ "currentStepIndex": {
2875
+ "type": [
2876
+ "integer",
2877
+ "null"
2878
+ ]
2879
+ },
2880
+ "nextStepAt": {
2881
+ "type": [
2882
+ "string",
2883
+ "null"
2884
+ ]
2885
+ },
2886
+ "pausedReason": {
2887
+ "type": [
2888
+ "string",
2889
+ "null"
2890
+ ]
2891
+ },
2892
+ "pausedDetail": {
2893
+ "type": [
2894
+ "string",
2895
+ "null"
2896
+ ]
2897
+ },
2898
+ "startedByName": {
2899
+ "type": [
2900
+ "string",
2901
+ "null"
2902
+ ]
2903
+ },
2904
+ "createdAt": {
2905
+ "type": [
2906
+ "string",
2907
+ "null"
2908
+ ]
2909
+ },
2910
+ "completedAt": {
2911
+ "type": [
2912
+ "string",
2913
+ "null"
2914
+ ]
2915
+ },
2916
+ "abortedAt": {
2917
+ "type": [
2918
+ "string",
2919
+ "null"
2920
+ ]
2921
+ }
2922
+ },
2923
+ "description": "A rollout ramp (#4653, #5180) as `/api/v1` returns it. Flag and environment are implicit in the route.\nA ramp drives either a targeting rule (RuleId set) or the default rule\n(IsDefaultRule true, TargetVariationId the variation it rolls out).\nStatus is `Running`, `Paused`, `Completed` or `Aborted`.\nCurrentStepIndex is the step last applied, -1 before the first. NextStepAt is\nset only while running and not yet on the last step."
2924
+ },
2925
+ "PublicRolloutRampResponsePagedResult": {
2926
+ "type": [
2927
+ "object",
2928
+ "null"
2929
+ ],
2930
+ "properties": {
2931
+ "items": {
2932
+ "type": [
2933
+ "array",
2934
+ "null"
2935
+ ],
2936
+ "items": {
2937
+ "anyOf": [
2938
+ {
2939
+ "$ref": "#/$defs/PublicRolloutRampResponse"
2940
+ },
2941
+ {
2942
+ "type": "null"
2943
+ }
2944
+ ]
2945
+ }
2946
+ },
2947
+ "next_cursor": {
2948
+ "type": [
2949
+ "string",
2950
+ "null"
2951
+ ]
2952
+ }
2953
+ },
2954
+ "description": "A page of results plus an opaque cursor for the next page, or null when this is the last\npage. Wire keys are frozen: `items` (already lowercase under the camelCase policy) and\n`next_cursor` (pinned explicitly — the policy alone would emit `nextCursor`)."
2955
+ },
2763
2956
  "PublicRolloutUnreached": {
2764
2957
  "type": [
2765
2958
  "object",
@@ -3163,7 +3356,7 @@ declare const _default: {
3163
3356
  ]
3164
3357
  }
3165
3358
  },
3166
- "description": "Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/removal-pr`: the\npull request that removes this flag from code, as opened by the Featureflip Flag Cleanup Action.\nA dedicated sub-resource for the same reason as expiry and owner. `url` must be an https\npull request URL (`https://{host}/{owner}/{repo}/pull/{number}`)."
3359
+ "description": "Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/removal-pr`: the\npull request that removes this flag from code, as opened by the Featureflip Flag Cleanup Action.\nA dedicated sub-resource for the same reason as expiry and owner. `url` must be an https\npull or merge request URL (`https://{host}/{owner}/{repo}/pull/{number}`, a GitLab\n`https://{host}/{group}/{project}/-/merge_requests/{number}` or a Bitbucket Cloud\n`https://{host}/{workspace}/{repo}/pull-requests/{number}`)."
3167
3360
  },
3168
3361
  "PublicSnapshotRule": {
3169
3362
  "type": [
@@ -3228,6 +3421,68 @@ declare const _default: {
3228
3421
  },
3229
3422
  "description": "A targeting rule as a comparison or copy shows it: the variation and segment with key and name, and the\ncondition groups in the shape the targeting endpoints return."
3230
3423
  },
3424
+ "PublicStartDefaultRuleRolloutRampRequest": {
3425
+ "type": [
3426
+ "object",
3427
+ "null"
3428
+ ],
3429
+ "properties": {
3430
+ "steps": {
3431
+ "type": [
3432
+ "array",
3433
+ "null"
3434
+ ],
3435
+ "items": {
3436
+ "anyOf": [
3437
+ {
3438
+ "$ref": "#/$defs/PublicRampStep"
3439
+ },
3440
+ {
3441
+ "type": "null"
3442
+ }
3443
+ ]
3444
+ }
3445
+ },
3446
+ "variationId": {
3447
+ "type": [
3448
+ "string",
3449
+ "null"
3450
+ ]
3451
+ },
3452
+ "bucketBy": {
3453
+ "type": [
3454
+ "string",
3455
+ "null"
3456
+ ]
3457
+ }
3458
+ },
3459
+ "description": "Request body for `POST …/default-rule/ramp`. VariationId (and optionally\nBucketBy) set the rollout up when the default rule has none; with one configured they may be\nomitted, or must match it. A ladder ending at 100% finalises: the variation becomes the default variation."
3460
+ },
3461
+ "PublicStartRolloutRampRequest": {
3462
+ "type": [
3463
+ "object",
3464
+ "null"
3465
+ ],
3466
+ "properties": {
3467
+ "steps": {
3468
+ "type": [
3469
+ "array",
3470
+ "null"
3471
+ ],
3472
+ "items": {
3473
+ "anyOf": [
3474
+ {
3475
+ "$ref": "#/$defs/PublicRampStep"
3476
+ },
3477
+ {
3478
+ "type": "null"
3479
+ }
3480
+ ]
3481
+ }
3482
+ }
3483
+ },
3484
+ "description": "Request body for `POST …/rules/{ruleId}/ramp`. Between 1 and 20 steps, each percentage above the last and\nthe first not below the rule's current rollout; every hold but the last is 5 minutes to 30 days. Elements are\nnullable so a null step is a field error, not a 500."
3485
+ },
3231
3486
  "PublicTargetingConfigResponse": {
3232
3487
  "type": [
3233
3488
  "object",
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-40S7JIbw.js";
1
+ export { o as ApiError, s as FeatureflipApi, c as PKG_VERSION, a as createServer, r as loadConfig, t as resolveOrg } from "./org-sxm8AftG.js";