@featureflip/mcp 0.6.0 → 0.7.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.
@@ -660,25 +660,43 @@ declare const _default: {
660
660
  "type": [
661
661
  "string",
662
662
  "null"
663
- ]
663
+ ],
664
+ "description": "The environment's key."
664
665
  },
665
666
  "name": {
666
667
  "type": [
667
668
  "string",
668
669
  "null"
669
- ]
670
+ ],
671
+ "description": "The environment's display name."
670
672
  },
671
673
  "color": {
672
674
  "type": [
673
675
  "string",
674
676
  "null"
675
- ]
677
+ ],
678
+ "description": "The environment's display color, or null."
676
679
  },
677
680
  "sortOrder": {
678
681
  "type": [
679
682
  "integer",
680
683
  "null"
681
- ]
684
+ ],
685
+ "description": "Position among the project's environments."
686
+ },
687
+ "requireChangeReason": {
688
+ "type": [
689
+ "boolean",
690
+ "null"
691
+ ],
692
+ "description": "Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above."
693
+ },
694
+ "requireConfirmation": {
695
+ "type": [
696
+ "boolean",
697
+ "null"
698
+ ],
699
+ "description": "Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API."
682
700
  }
683
701
  },
684
702
  "description": "Request body for `POST /api/v1/orgs/{org}/projects/{project}/environments`. Named\ndistinctly from the dashboard's own `CreateEnvironmentRequest`\n— both controllers share one Swagger document (see `Program.cs`'s `AddSwaggerGen``DocInclusionPredicate` override), and Swashbuckle's default schemaId is the bare type\nname, so an identical name in either namespace throws a schemaId collision at\n`--export-openapi` time."
@@ -767,7 +785,7 @@ declare const _default: {
767
785
  ]
768
786
  }
769
787
  },
770
- "description": "Request body for `POST /api/v1/orgs/{org}/projects/{project}/flags`. Named distinctly\nfrom the dashboard's own `CreateFeatureFlagRequest`\n— see PublicCreateEnvironmentRequest for the\nschemaId-collision rationale (both controllers share one Swagger document). Type\nis passed through verbatim to Type, which itself takes a\nbare string (Boolean/String/Number/Json) rather than the domain enum — invalid values surface\nas the handler's own validation failure, not a controller-level 400. ExpiresAtUtc is\noptional and advisory; a bare date (`2026-12-01`) means the end of that day in UTC, and a full\ntimestamp is stored exactly. It must be in the future and requires the flag-expiration feature\n(400 `EXPIRY_IN_PAST` / `FEATURE_NOT_ENABLED`). OwnerEmail optionally names\nthe owner (an active member, matched case-insensitively; requires the flag-ownership feature —\n400 `OWNER_NOT_MEMBER` / `FEATURE_NOT_ENABLED`). Omitted, the owner is the caller when\nthe caller is a member, so a service token creates an unowned flag. IsPermanent marks\nthe flag permanent (a kill switch, ops toggle or entitlement that is meant to stay; never reported for\ncleanup). It requires the flag-permanence feature and can't be combined with ExpiresAtUtc\n(400 `FEATURE_NOT_ENABLED` / `PERMANENT_FLAG_HAS_EXPIRY`)."
788
+ "description": "Request body for `POST /api/v1/orgs/{org}/projects/{project}/flags`. Named distinctly\nfrom the dashboard's own `CreateFeatureFlagRequest`\n— see PublicCreateEnvironmentRequest for the\nschemaId-collision rationale (both controllers share one Swagger document). Type\nis passed through verbatim to Type, which itself takes a\nbare string (Boolean/String/Number/Json) rather than the domain enum — invalid values surface\nas the handler's own validation failure, not a controller-level 400. ExpiresAtUtc is\noptional and advisory; a bare date (`2026-12-01`) means the end of that day in UTC, and a full\ntimestamp is stored exactly. It must be in the future and requires the flag-expiration feature\n(400 `EXPIRY_IN_PAST` / `FEATURE_NOT_ENABLED`). OwnerEmail optionally names\nthe owner (an active member, matched case-insensitively; requires a plan that includes flag owners,\nPro and above — 400 `OWNER_NOT_MEMBER` / `PLAN_FEATURE_UNAVAILABLE`). Omitted, the owner is the caller when\nthe caller is a member, so a service token creates an unowned flag. IsPermanent marks\nthe flag permanent (a kill switch, ops toggle or entitlement that is meant to stay; never reported for\ncleanup). It requires the flag-permanence feature and can't be combined with ExpiresAtUtc\n(400 `FEATURE_NOT_ENABLED` / `PERMANENT_FLAG_HAS_EXPIRY`)."
771
789
  },
772
790
  "PublicCreateProjectRequest": {
773
791
  "type": [
@@ -1031,7 +1049,7 @@ declare const _default: {
1031
1049
  "string",
1032
1050
  "null"
1033
1051
  ],
1034
- "description": "Allowed values: GenericHttp, Slack."
1052
+ "description": "Allowed values: GenericHttp, Slack, Datadog, Grafana."
1035
1053
  },
1036
1054
  "eventTypes": {
1037
1055
  "type": [
@@ -1068,9 +1086,15 @@ declare const _default: {
1068
1086
  "null"
1069
1087
  ]
1070
1088
  }
1089
+ },
1090
+ "credential": {
1091
+ "type": [
1092
+ "string",
1093
+ "null"
1094
+ ]
1071
1095
  }
1072
1096
  },
1073
- "description": "Creates a webhook subscription. `provider` is `GenericHttp`. Omit `eventTypes`,\n`projectIds` or `environmentIds` (or send an empty list) to receive every event,\nproject or environment. A token restricted to specific projects must list at least one project,\nall of them within its allowlist."
1097
+ "description": "Creates a webhook subscription. `provider` is `GenericHttp`, `Slack` (an incoming\nwebhook url), `Datadog` (your site's Events API url) or `Grafana` (your Grafana's\n`/api/annotations` url). Datadog and Grafana also need `credential`: a Datadog API key\nor a Grafana service account token. It is stored encrypted and never returned. Omit `eventTypes`,\n`projectIds` or `environmentIds` (or send an empty list) to receive every event,\nproject or environment. A token restricted to specific projects must list at least one project,\nall of them within its allowlist."
1074
1098
  },
1075
1099
  "PublicCreateWebhookSubscriptionResponse": {
1076
1100
  "type": [
@@ -1130,31 +1154,50 @@ declare const _default: {
1130
1154
  "type": [
1131
1155
  "string",
1132
1156
  "null"
1133
- ]
1157
+ ],
1158
+ "description": "The environment's id."
1134
1159
  },
1135
1160
  "key": {
1136
1161
  "type": [
1137
1162
  "string",
1138
1163
  "null"
1139
- ]
1164
+ ],
1165
+ "description": "The environment's key."
1140
1166
  },
1141
1167
  "name": {
1142
1168
  "type": [
1143
1169
  "string",
1144
1170
  "null"
1145
- ]
1171
+ ],
1172
+ "description": "The environment's display name."
1146
1173
  },
1147
1174
  "color": {
1148
1175
  "type": [
1149
1176
  "string",
1150
1177
  "null"
1151
- ]
1178
+ ],
1179
+ "description": "The environment's display color, or null."
1152
1180
  },
1153
1181
  "sortOrder": {
1154
1182
  "type": [
1155
1183
  "integer",
1156
1184
  "null"
1157
- ]
1185
+ ],
1186
+ "description": "Position among the project's environments."
1187
+ },
1188
+ "requireChangeReason": {
1189
+ "type": [
1190
+ "boolean",
1191
+ "null"
1192
+ ],
1193
+ "description": "Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above."
1194
+ },
1195
+ "requireConfirmation": {
1196
+ "type": [
1197
+ "boolean",
1198
+ "null"
1199
+ ],
1200
+ "description": "Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API."
1158
1201
  },
1159
1202
  "_actions": {
1160
1203
  "type": [
@@ -2670,19 +2713,36 @@ declare const _default: {
2670
2713
  "type": [
2671
2714
  "string",
2672
2715
  "null"
2673
- ]
2716
+ ],
2717
+ "description": "The environment's display name."
2674
2718
  },
2675
2719
  "color": {
2676
2720
  "type": [
2677
2721
  "string",
2678
2722
  "null"
2679
- ]
2723
+ ],
2724
+ "description": "The environment's display color, or null."
2680
2725
  },
2681
2726
  "sortOrder": {
2682
2727
  "type": [
2683
2728
  "integer",
2684
2729
  "null"
2685
- ]
2730
+ ],
2731
+ "description": "Position among the project's environments."
2732
+ },
2733
+ "requireChangeReason": {
2734
+ "type": [
2735
+ "boolean",
2736
+ "null"
2737
+ ],
2738
+ "description": "Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above. Omit on update to leave unchanged. Turning it off needs Admin or Owner and an X-Intent-Reason."
2739
+ },
2740
+ "requireConfirmation": {
2741
+ "type": [
2742
+ "boolean",
2743
+ "null"
2744
+ ],
2745
+ "description": "Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API. Omit on update to leave unchanged. Turning it off needs Admin or Owner and an X-Intent-Reason."
2686
2746
  }
2687
2747
  },
2688
2748
  "description": "Request body for `PUT /api/v1/orgs/{org}/projects/{project}/environments/{env}`. See\nPublicCreateEnvironmentRequest for why this is named distinctly from the\ndashboard's `UpdateEnvironmentRequest`."
@@ -2985,9 +3045,15 @@ declare const _default: {
2985
3045
  "boolean",
2986
3046
  "null"
2987
3047
  ]
3048
+ },
3049
+ "credential": {
3050
+ "type": [
3051
+ "string",
3052
+ "null"
3053
+ ]
2988
3054
  }
2989
3055
  },
2990
- "description": "Replaces a subscription's configuration (full replace — omitted lists become empty, meaning\n\"all\"). `isEnabled` is required. The provider cannot be changed."
3056
+ "description": "Replaces a subscription's configuration (full replace — omitted lists become empty, meaning\n\"all\"). `isEnabled` is required. The provider cannot be changed. `credential`\nreplaces a Datadog or Grafana subscription's stored credential; omit it to keep the current\none, unless the `url` changes, which needs the credential sent again."
2991
3057
  },
2992
3058
  "PublicVariationResponse": {
2993
3059
  "type": [
@@ -3196,7 +3262,7 @@ declare const _default: {
3196
3262
  "string",
3197
3263
  "null"
3198
3264
  ],
3199
- "description": "Allowed values: GenericHttp, Slack."
3265
+ "description": "Allowed values: GenericHttp, Slack, Datadog, Grafana."
3200
3266
  },
3201
3267
  "isEnabled": {
3202
3268
  "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-euupmplU.js";
1
+ export { o as ApiError, s as FeatureflipApi, c as PKG_VERSION, a as createServer, r as loadConfig, t as resolveOrg } from "./org-CRuyqCqx.js";