@featureflip/mcp 0.6.0 → 0.8.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.
@@ -5,20 +5,28 @@ declare const _default: {
5
5
  "GET /api/v1/orgs/{org}/projects/{project}/environments/{env}": "PublicEnvironmentResponse",
6
6
  "POST /api/v1/orgs/{org}/projects/{project}/flags": "PublicFlagResponse",
7
7
  "GET /api/v1/orgs/{org}/projects/{project}/flags": "PublicFlagListItemPagedResult",
8
+ "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/compare": "PublicFlagComparison",
8
9
  "GET /api/v1/orgs/{org}/projects/{project}/flags/removal-candidates": "PublicFlagRemovalCandidatePagedResult",
9
10
  "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}": "PublicFlagResponse",
10
11
  "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}": "PublicFlagEnvConfigResponse",
12
+ "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/copy": "PublicCopyResult",
11
13
  "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/evaluations": "PublicFlagEvaluationsResponse",
12
14
  "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/targeting": "PublicTargetingConfigResponse",
13
15
  "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/rules": "PublicTargetingRuleResponse",
14
16
  "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/rules/{ruleId}": "PublicTargetingRuleResponse",
15
17
  "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/variations": "PublicVariationResponse",
18
+ "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/triggers": "PublicFlagTriggerWithUrlResponse",
19
+ "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/triggers": "PublicFlagTriggerResponsePagedResult",
20
+ "GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/triggers/{trigger}": "PublicFlagTriggerResponse",
21
+ "PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/triggers/{trigger}": "PublicFlagTriggerResponse",
22
+ "POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/triggers/{trigger}/rotate": "PublicFlagTriggerWithUrlResponse",
16
23
  "GET /api/v1/me": "MeResponse",
17
24
  "GET /api/v1/orgs": "OrganizationResponsePagedResult",
18
25
  "GET /api/v1/orgs/{org}": "OrganizationResponse",
19
26
  "POST /api/v1/orgs/{org}/projects": "ProjectResponse",
20
27
  "GET /api/v1/orgs/{org}/projects": "ProjectResponsePagedResult",
21
28
  "GET /api/v1/orgs/{org}/projects/{project}": "ProjectResponse",
29
+ "GET /api/v1/orgs/{org}/projects/{project}/compare": "PublicFlagComparisonRowPagedResult",
22
30
  "GET /api/v1/orgs/{org}/projects/{project}/default-flag-lifetime/impact": "PublicDefaultFlagLifetimeImpact",
23
31
  "POST /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys": "PublicCreateSdkKeyResponse",
24
32
  "GET /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys": "PublicSdkKeyResponsePagedResult",
@@ -650,6 +658,141 @@ declare const _default: {
650
658
  },
651
659
  "description": "A variation's configured share of a rollout rule."
652
660
  },
661
+ "PublicCopyFlagConfigRequest": {
662
+ "type": [
663
+ "object",
664
+ "null"
665
+ ],
666
+ "properties": {
667
+ "source": {
668
+ "type": [
669
+ "string",
670
+ "null"
671
+ ]
672
+ },
673
+ "includeState": {
674
+ "type": [
675
+ "boolean",
676
+ "null"
677
+ ]
678
+ },
679
+ "dryRun": {
680
+ "type": [
681
+ "boolean",
682
+ "null"
683
+ ]
684
+ },
685
+ "expectedSourceETag": {
686
+ "type": [
687
+ "string",
688
+ "null"
689
+ ]
690
+ },
691
+ "expectedTargetETag": {
692
+ "type": [
693
+ "string",
694
+ "null"
695
+ ]
696
+ }
697
+ },
698
+ "description": "Request body for `POST .../flags/{flag}/environments/{env}/copy`. `source` is the environment to copy\nfrom (key or id) and is required; the rest are optional. `dryRun: true` previews without writing and ignores\nthe ETags."
699
+ },
700
+ "PublicCopyResult": {
701
+ "type": [
702
+ "object",
703
+ "null"
704
+ ],
705
+ "properties": {
706
+ "changed": {
707
+ "type": [
708
+ "boolean",
709
+ "null"
710
+ ]
711
+ },
712
+ "changedSections": {
713
+ "type": [
714
+ "array",
715
+ "null"
716
+ ],
717
+ "items": {
718
+ "type": [
719
+ "string",
720
+ "null"
721
+ ]
722
+ }
723
+ },
724
+ "before": {
725
+ "anyOf": [
726
+ {
727
+ "$ref": "#/$defs/PublicEnvironmentSnapshot"
728
+ },
729
+ {
730
+ "type": "null"
731
+ }
732
+ ]
733
+ },
734
+ "after": {
735
+ "anyOf": [
736
+ {
737
+ "$ref": "#/$defs/PublicEnvironmentSnapshot"
738
+ },
739
+ {
740
+ "type": "null"
741
+ }
742
+ ]
743
+ },
744
+ "sourceETag": {
745
+ "type": [
746
+ "string",
747
+ "null"
748
+ ]
749
+ },
750
+ "targetETag": {
751
+ "type": [
752
+ "string",
753
+ "null"
754
+ ]
755
+ },
756
+ "warnings": {
757
+ "type": [
758
+ "array",
759
+ "null"
760
+ ],
761
+ "items": {
762
+ "anyOf": [
763
+ {
764
+ "$ref": "#/$defs/PublicCopyWarning"
765
+ },
766
+ {
767
+ "type": "null"
768
+ }
769
+ ]
770
+ }
771
+ }
772
+ },
773
+ "description": "Response of `POST .../flags/{flag}/environments/{env}/copy`, for a dry run and an apply alike.\n`targetETag` is the target's tag after an apply and before it on a dry run, so a dry run's tags are\nwhat the apply sends back as `expectedSourceETag` / `expectedTargetETag`."
774
+ },
775
+ "PublicCopyWarning": {
776
+ "type": [
777
+ "object",
778
+ "null"
779
+ ],
780
+ "properties": {
781
+ "code": {
782
+ "type": [
783
+ "string",
784
+ "null"
785
+ ]
786
+ },
787
+ "message": {
788
+ "type": [
789
+ "string",
790
+ "null"
791
+ ]
792
+ }
793
+ },
794
+ "description": "A non-blocking note about a copy."
795
+ },
653
796
  "PublicCreateEnvironmentRequest": {
654
797
  "type": [
655
798
  "object",
@@ -660,25 +803,43 @@ declare const _default: {
660
803
  "type": [
661
804
  "string",
662
805
  "null"
663
- ]
806
+ ],
807
+ "description": "The environment's key."
664
808
  },
665
809
  "name": {
666
810
  "type": [
667
811
  "string",
668
812
  "null"
669
- ]
813
+ ],
814
+ "description": "The environment's display name."
670
815
  },
671
816
  "color": {
672
817
  "type": [
673
818
  "string",
674
819
  "null"
675
- ]
820
+ ],
821
+ "description": "The environment's display color, or null."
676
822
  },
677
823
  "sortOrder": {
678
824
  "type": [
679
825
  "integer",
680
826
  "null"
681
- ]
827
+ ],
828
+ "description": "Position among the project's environments."
829
+ },
830
+ "requireChangeReason": {
831
+ "type": [
832
+ "boolean",
833
+ "null"
834
+ ],
835
+ "description": "Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above."
836
+ },
837
+ "requireConfirmation": {
838
+ "type": [
839
+ "boolean",
840
+ "null"
841
+ ],
842
+ "description": "Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API."
682
843
  }
683
844
  },
684
845
  "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 +928,34 @@ declare const _default: {
767
928
  ]
768
929
  }
769
930
  },
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`)."
931
+ "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`)."
932
+ },
933
+ "PublicCreateFlagTriggerRequest": {
934
+ "type": [
935
+ "object",
936
+ "null"
937
+ ],
938
+ "properties": {
939
+ "name": {
940
+ "type": [
941
+ "string",
942
+ "null"
943
+ ]
944
+ },
945
+ "action": {
946
+ "type": [
947
+ "string",
948
+ "null"
949
+ ]
950
+ },
951
+ "description": {
952
+ "type": [
953
+ "string",
954
+ "null"
955
+ ]
956
+ }
957
+ },
958
+ "description": "Request body for `POST .../triggers`. Action is `\"Enable\"` or\n`\"Disable\"`, parsed against the names only. Named apart from the dashboard's\n`CreateFlagTriggerRequest`: both controllers share one Swagger document."
771
959
  },
772
960
  "PublicCreateProjectRequest": {
773
961
  "type": [
@@ -1031,7 +1219,7 @@ declare const _default: {
1031
1219
  "string",
1032
1220
  "null"
1033
1221
  ],
1034
- "description": "Allowed values: GenericHttp, Slack."
1222
+ "description": "Allowed values: GenericHttp, Slack, Datadog, Grafana."
1035
1223
  },
1036
1224
  "eventTypes": {
1037
1225
  "type": [
@@ -1068,9 +1256,15 @@ declare const _default: {
1068
1256
  "null"
1069
1257
  ]
1070
1258
  }
1259
+ },
1260
+ "credential": {
1261
+ "type": [
1262
+ "string",
1263
+ "null"
1264
+ ]
1071
1265
  }
1072
1266
  },
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."
1267
+ "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
1268
  },
1075
1269
  "PublicCreateWebhookSubscriptionResponse": {
1076
1270
  "type": [
@@ -1130,31 +1324,50 @@ declare const _default: {
1130
1324
  "type": [
1131
1325
  "string",
1132
1326
  "null"
1133
- ]
1327
+ ],
1328
+ "description": "The environment's id."
1134
1329
  },
1135
1330
  "key": {
1136
1331
  "type": [
1137
1332
  "string",
1138
1333
  "null"
1139
- ]
1334
+ ],
1335
+ "description": "The environment's key."
1140
1336
  },
1141
1337
  "name": {
1142
1338
  "type": [
1143
1339
  "string",
1144
1340
  "null"
1145
- ]
1341
+ ],
1342
+ "description": "The environment's display name."
1146
1343
  },
1147
1344
  "color": {
1148
1345
  "type": [
1149
1346
  "string",
1150
1347
  "null"
1151
- ]
1348
+ ],
1349
+ "description": "The environment's display color, or null."
1152
1350
  },
1153
1351
  "sortOrder": {
1154
1352
  "type": [
1155
1353
  "integer",
1156
1354
  "null"
1157
- ]
1355
+ ],
1356
+ "description": "Position among the project's environments."
1357
+ },
1358
+ "requireChangeReason": {
1359
+ "type": [
1360
+ "boolean",
1361
+ "null"
1362
+ ],
1363
+ "description": "Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above."
1364
+ },
1365
+ "requireConfirmation": {
1366
+ "type": [
1367
+ "boolean",
1368
+ "null"
1369
+ ],
1370
+ "description": "Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API."
1158
1371
  },
1159
1372
  "_actions": {
1160
1373
  "type": [
@@ -1224,6 +1437,96 @@ declare const _default: {
1224
1437
  },
1225
1438
  "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`)."
1226
1439
  },
1440
+ "PublicEnvironmentSideSummary": {
1441
+ "type": [
1442
+ "object",
1443
+ "null"
1444
+ ],
1445
+ "properties": {
1446
+ "isEnabled": {
1447
+ "type": [
1448
+ "boolean",
1449
+ "null"
1450
+ ]
1451
+ },
1452
+ "ruleCount": {
1453
+ "type": [
1454
+ "integer",
1455
+ "null"
1456
+ ]
1457
+ },
1458
+ "prerequisiteCount": {
1459
+ "type": [
1460
+ "integer",
1461
+ "null"
1462
+ ]
1463
+ }
1464
+ },
1465
+ "description": "One side's headline numbers in a project-level comparison row."
1466
+ },
1467
+ "PublicEnvironmentSnapshot": {
1468
+ "type": [
1469
+ "object",
1470
+ "null"
1471
+ ],
1472
+ "properties": {
1473
+ "isEnabled": {
1474
+ "type": [
1475
+ "boolean",
1476
+ "null"
1477
+ ]
1478
+ },
1479
+ "defaultVariation": {
1480
+ "anyOf": [
1481
+ {
1482
+ "$ref": "#/$defs/PublicKeyedRef"
1483
+ },
1484
+ {
1485
+ "type": "null"
1486
+ }
1487
+ ]
1488
+ },
1489
+ "strategy": {
1490
+ "type": [
1491
+ "string",
1492
+ "null"
1493
+ ]
1494
+ },
1495
+ "rules": {
1496
+ "type": [
1497
+ "array",
1498
+ "null"
1499
+ ],
1500
+ "items": {
1501
+ "anyOf": [
1502
+ {
1503
+ "$ref": "#/$defs/PublicSnapshotRule"
1504
+ },
1505
+ {
1506
+ "type": "null"
1507
+ }
1508
+ ]
1509
+ }
1510
+ },
1511
+ "prerequisites": {
1512
+ "type": [
1513
+ "array",
1514
+ "null"
1515
+ ],
1516
+ "items": {
1517
+ "anyOf": [
1518
+ {
1519
+ "$ref": "#/$defs/PublicPrerequisiteDto"
1520
+ },
1521
+ {
1522
+ "type": "null"
1523
+ }
1524
+ ]
1525
+ }
1526
+ }
1527
+ },
1528
+ "description": "A flag's configuration in one environment, as a comparison or copy result reports it."
1529
+ },
1227
1530
  "PublicEvaluationSource": {
1228
1531
  "type": [
1229
1532
  "object",
@@ -1344,7 +1647,214 @@ declare const _default: {
1344
1647
  "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."
1345
1648
  }
1346
1649
  },
1347
- "description": "One variation's evaluations."
1650
+ "description": "One variation's evaluations."
1651
+ },
1652
+ "PublicFlagComparison": {
1653
+ "type": [
1654
+ "object",
1655
+ "null"
1656
+ ],
1657
+ "properties": {
1658
+ "flagKey": {
1659
+ "type": [
1660
+ "string",
1661
+ "null"
1662
+ ]
1663
+ },
1664
+ "differences": {
1665
+ "type": [
1666
+ "array",
1667
+ "null"
1668
+ ],
1669
+ "items": {
1670
+ "type": [
1671
+ "string",
1672
+ "null"
1673
+ ]
1674
+ }
1675
+ },
1676
+ "base": {
1677
+ "anyOf": [
1678
+ {
1679
+ "$ref": "#/$defs/PublicFlagComparisonSide"
1680
+ },
1681
+ {
1682
+ "type": "null"
1683
+ }
1684
+ ]
1685
+ },
1686
+ "other": {
1687
+ "anyOf": [
1688
+ {
1689
+ "$ref": "#/$defs/PublicFlagComparisonSide"
1690
+ },
1691
+ {
1692
+ "type": "null"
1693
+ }
1694
+ ]
1695
+ }
1696
+ },
1697
+ "description": "Response of `GET .../flags/{flag}/compare`."
1698
+ },
1699
+ "PublicFlagComparisonRow": {
1700
+ "type": [
1701
+ "object",
1702
+ "null"
1703
+ ],
1704
+ "properties": {
1705
+ "flagKey": {
1706
+ "type": [
1707
+ "string",
1708
+ "null"
1709
+ ]
1710
+ },
1711
+ "flagName": {
1712
+ "type": [
1713
+ "string",
1714
+ "null"
1715
+ ]
1716
+ },
1717
+ "tags": {
1718
+ "type": [
1719
+ "array",
1720
+ "null"
1721
+ ],
1722
+ "items": {
1723
+ "type": [
1724
+ "string",
1725
+ "null"
1726
+ ]
1727
+ }
1728
+ },
1729
+ "ownerUserId": {
1730
+ "type": [
1731
+ "string",
1732
+ "null"
1733
+ ]
1734
+ },
1735
+ "status": {
1736
+ "type": [
1737
+ "string",
1738
+ "null"
1739
+ ]
1740
+ },
1741
+ "differences": {
1742
+ "type": [
1743
+ "array",
1744
+ "null"
1745
+ ],
1746
+ "items": {
1747
+ "type": [
1748
+ "string",
1749
+ "null"
1750
+ ]
1751
+ }
1752
+ },
1753
+ "base": {
1754
+ "anyOf": [
1755
+ {
1756
+ "$ref": "#/$defs/PublicEnvironmentSideSummary"
1757
+ },
1758
+ {
1759
+ "type": "null"
1760
+ }
1761
+ ]
1762
+ },
1763
+ "other": {
1764
+ "anyOf": [
1765
+ {
1766
+ "$ref": "#/$defs/PublicEnvironmentSideSummary"
1767
+ },
1768
+ {
1769
+ "type": "null"
1770
+ }
1771
+ ]
1772
+ }
1773
+ },
1774
+ "description": "One flag in `GET .../projects/{project}/compare`. `differences` lists the sections that differ\n(`state`, `defaultVariation`, `strategy`, `rules`, `prerequisites`). A side is null when\nthe flag has no configuration in that environment."
1775
+ },
1776
+ "PublicFlagComparisonRowPagedResult": {
1777
+ "type": [
1778
+ "object",
1779
+ "null"
1780
+ ],
1781
+ "properties": {
1782
+ "items": {
1783
+ "type": [
1784
+ "array",
1785
+ "null"
1786
+ ],
1787
+ "items": {
1788
+ "anyOf": [
1789
+ {
1790
+ "$ref": "#/$defs/PublicFlagComparisonRow"
1791
+ },
1792
+ {
1793
+ "type": "null"
1794
+ }
1795
+ ]
1796
+ }
1797
+ },
1798
+ "next_cursor": {
1799
+ "type": [
1800
+ "string",
1801
+ "null"
1802
+ ]
1803
+ }
1804
+ },
1805
+ "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`)."
1806
+ },
1807
+ "PublicFlagComparisonSide": {
1808
+ "type": [
1809
+ "object",
1810
+ "null"
1811
+ ],
1812
+ "properties": {
1813
+ "config": {
1814
+ "anyOf": [
1815
+ {
1816
+ "$ref": "#/$defs/PublicFlagEnvConfigResponse"
1817
+ },
1818
+ {
1819
+ "type": "null"
1820
+ }
1821
+ ]
1822
+ },
1823
+ "targeting": {
1824
+ "anyOf": [
1825
+ {
1826
+ "$ref": "#/$defs/PublicTargetingConfigResponse"
1827
+ },
1828
+ {
1829
+ "type": "null"
1830
+ }
1831
+ ]
1832
+ },
1833
+ "snapshot": {
1834
+ "anyOf": [
1835
+ {
1836
+ "$ref": "#/$defs/PublicEnvironmentSnapshot"
1837
+ },
1838
+ {
1839
+ "type": "null"
1840
+ }
1841
+ ]
1842
+ },
1843
+ "ruleHasMatchInOther": {
1844
+ "type": [
1845
+ "array",
1846
+ "null"
1847
+ ],
1848
+ "items": {
1849
+ "type": [
1850
+ "boolean",
1851
+ "null"
1852
+ ]
1853
+ },
1854
+ "description": "Per rule in evaluation order: whether the other environment has an equal rule."
1855
+ }
1856
+ },
1857
+ "description": "One environment's side of a per-flag comparison."
1348
1858
  },
1349
1859
  "PublicFlagEnvConfigResponse": {
1350
1860
  "type": [
@@ -1914,6 +2424,170 @@ declare const _default: {
1914
2424
  },
1915
2425
  "description": "Public detail representation of a feature flag, returned by\n`GET .../flags/{flag}` and the body of a successful create. Drops internal/dashboard-only\nfields present on FeatureFlagDto — notably `ProjectId` (implicit in the\nroute) and `Staleness` (an internal analytics signal, not part of the public contract).\nEffectiveExpiresAtUtc is when the flag counts as past expiry, from its own ExpiresAtUtc\nor its project's default lifetime; ExpirySource says which (`explicit` / `project-default`),\nboth null when neither applies."
1916
2426
  },
2427
+ "PublicFlagTriggerResponse": {
2428
+ "type": [
2429
+ "object",
2430
+ "null"
2431
+ ],
2432
+ "properties": {
2433
+ "id": {
2434
+ "type": [
2435
+ "string",
2436
+ "null"
2437
+ ]
2438
+ },
2439
+ "name": {
2440
+ "type": [
2441
+ "string",
2442
+ "null"
2443
+ ]
2444
+ },
2445
+ "description": {
2446
+ "type": [
2447
+ "string",
2448
+ "null"
2449
+ ]
2450
+ },
2451
+ "action": {
2452
+ "type": [
2453
+ "string",
2454
+ "null"
2455
+ ]
2456
+ },
2457
+ "enabled": {
2458
+ "type": [
2459
+ "boolean",
2460
+ "null"
2461
+ ]
2462
+ },
2463
+ "secretLastFour": {
2464
+ "type": [
2465
+ "string",
2466
+ "null"
2467
+ ]
2468
+ },
2469
+ "createdAt": {
2470
+ "type": [
2471
+ "string",
2472
+ "null"
2473
+ ]
2474
+ },
2475
+ "updatedAt": {
2476
+ "type": [
2477
+ "string",
2478
+ "null"
2479
+ ]
2480
+ },
2481
+ "lastFiredAt": {
2482
+ "type": [
2483
+ "string",
2484
+ "null"
2485
+ ]
2486
+ }
2487
+ },
2488
+ "description": "A flag trigger (#4651) as `/api/v1` returns it. Carries only the secret's last four characters:\nthe URL is returned once, by PublicFlagTriggerWithUrlResponse. Flag and environment are\nimplicit in the route."
2489
+ },
2490
+ "PublicFlagTriggerResponsePagedResult": {
2491
+ "type": [
2492
+ "object",
2493
+ "null"
2494
+ ],
2495
+ "properties": {
2496
+ "items": {
2497
+ "type": [
2498
+ "array",
2499
+ "null"
2500
+ ],
2501
+ "items": {
2502
+ "anyOf": [
2503
+ {
2504
+ "$ref": "#/$defs/PublicFlagTriggerResponse"
2505
+ },
2506
+ {
2507
+ "type": "null"
2508
+ }
2509
+ ]
2510
+ }
2511
+ },
2512
+ "next_cursor": {
2513
+ "type": [
2514
+ "string",
2515
+ "null"
2516
+ ]
2517
+ }
2518
+ },
2519
+ "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`)."
2520
+ },
2521
+ "PublicFlagTriggerWithUrlResponse": {
2522
+ "type": [
2523
+ "object",
2524
+ "null"
2525
+ ],
2526
+ "properties": {
2527
+ "trigger": {
2528
+ "anyOf": [
2529
+ {
2530
+ "$ref": "#/$defs/PublicFlagTriggerResponse"
2531
+ },
2532
+ {
2533
+ "type": "null"
2534
+ }
2535
+ ]
2536
+ },
2537
+ "url": {
2538
+ "type": [
2539
+ "string",
2540
+ "null"
2541
+ ]
2542
+ },
2543
+ "endpoint": {
2544
+ "type": [
2545
+ "string",
2546
+ "null"
2547
+ ]
2548
+ },
2549
+ "secret": {
2550
+ "type": [
2551
+ "string",
2552
+ "null"
2553
+ ]
2554
+ },
2555
+ "warning": {
2556
+ "type": [
2557
+ "string",
2558
+ "null"
2559
+ ]
2560
+ }
2561
+ },
2562
+ "description": "The only response that carries a trigger's secret: create and rotate. Fire it by POSTing to\nUrl, or to Endpoint with `Authorization: Bearer {Secret}`, which keeps\nthe secret out of the URL. Anyone holding either can fire the trigger, so store it as a secret in the\nmonitoring tool."
2563
+ },
2564
+ "PublicKeyedRef": {
2565
+ "type": [
2566
+ "object",
2567
+ "null"
2568
+ ],
2569
+ "properties": {
2570
+ "id": {
2571
+ "type": [
2572
+ "string",
2573
+ "null"
2574
+ ]
2575
+ },
2576
+ "key": {
2577
+ "type": [
2578
+ "string",
2579
+ "null"
2580
+ ]
2581
+ },
2582
+ "name": {
2583
+ "type": [
2584
+ "string",
2585
+ "null"
2586
+ ]
2587
+ }
2588
+ },
2589
+ "description": "An id with its key and name beside it, as the other v1 responses pair them. Key and name are null only for a deleted target."
2590
+ },
1917
2591
  "PublicPlanLimit": {
1918
2592
  "type": [
1919
2593
  "object",
@@ -2491,6 +3165,69 @@ declare const _default: {
2491
3165
  },
2492
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}`)."
2493
3167
  },
3168
+ "PublicSnapshotRule": {
3169
+ "type": [
3170
+ "object",
3171
+ "null"
3172
+ ],
3173
+ "properties": {
3174
+ "description": {
3175
+ "type": [
3176
+ "string",
3177
+ "null"
3178
+ ]
3179
+ },
3180
+ "variation": {
3181
+ "anyOf": [
3182
+ {
3183
+ "$ref": "#/$defs/PublicKeyedRef"
3184
+ },
3185
+ {
3186
+ "type": "null"
3187
+ }
3188
+ ]
3189
+ },
3190
+ "segment": {
3191
+ "anyOf": [
3192
+ {
3193
+ "$ref": "#/$defs/PublicKeyedRef"
3194
+ },
3195
+ {
3196
+ "type": "null"
3197
+ }
3198
+ ]
3199
+ },
3200
+ "rolloutPercentage": {
3201
+ "type": [
3202
+ "integer",
3203
+ "null"
3204
+ ]
3205
+ },
3206
+ "bucketBy": {
3207
+ "type": [
3208
+ "string",
3209
+ "null"
3210
+ ]
3211
+ },
3212
+ "conditionGroups": {
3213
+ "type": [
3214
+ "array",
3215
+ "null"
3216
+ ],
3217
+ "items": {
3218
+ "anyOf": [
3219
+ {
3220
+ "$ref": "#/$defs/PublicConditionGroupResponse"
3221
+ },
3222
+ {
3223
+ "type": "null"
3224
+ }
3225
+ ]
3226
+ }
3227
+ }
3228
+ },
3229
+ "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
+ },
2494
3231
  "PublicTargetingConfigResponse": {
2495
3232
  "type": [
2496
3233
  "object",
@@ -2670,19 +3407,36 @@ declare const _default: {
2670
3407
  "type": [
2671
3408
  "string",
2672
3409
  "null"
2673
- ]
3410
+ ],
3411
+ "description": "The environment's display name."
2674
3412
  },
2675
3413
  "color": {
2676
3414
  "type": [
2677
3415
  "string",
2678
3416
  "null"
2679
- ]
3417
+ ],
3418
+ "description": "The environment's display color, or null."
2680
3419
  },
2681
3420
  "sortOrder": {
2682
3421
  "type": [
2683
3422
  "integer",
2684
3423
  "null"
2685
- ]
3424
+ ],
3425
+ "description": "Position among the project's environments."
3426
+ },
3427
+ "requireChangeReason": {
3428
+ "type": [
3429
+ "boolean",
3430
+ "null"
3431
+ ],
3432
+ "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."
3433
+ },
3434
+ "requireConfirmation": {
3435
+ "type": [
3436
+ "boolean",
3437
+ "null"
3438
+ ],
3439
+ "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
3440
  }
2687
3441
  },
2688
3442
  "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`."
@@ -2764,6 +3518,33 @@ declare const _default: {
2764
3518
  },
2765
3519
  "description": "Request body for `PUT .../flags/{flag}/environments/{env}`. Named distinctly from the\ndashboard's own `UpdateFlagEnvironmentConfigurationRequest`\n— see PublicCreateEnvironmentRequest for the schemaId-collision rationale (both\ncontrollers share one Swagger document). Strategy is passed through verbatim to\nStrategy\n— the existing command validator name-allowlists it (SingleVariation/PercentageRollout/\nTargetedRollout or null), so an invalid value surfaces as the handler's own 400, not a\ncontroller-level guard. A null Prerequisites leaves prerequisites untouched; a\nnon-null list replaces them wholesale (mirrors UpdateFlagPrerequisitesCommand's\nreplace-all semantics)."
2766
3520
  },
3521
+ "PublicUpdateFlagTriggerRequest": {
3522
+ "type": [
3523
+ "object",
3524
+ "null"
3525
+ ],
3526
+ "properties": {
3527
+ "name": {
3528
+ "type": [
3529
+ "string",
3530
+ "null"
3531
+ ]
3532
+ },
3533
+ "description": {
3534
+ "type": [
3535
+ "string",
3536
+ "null"
3537
+ ]
3538
+ },
3539
+ "enabled": {
3540
+ "type": [
3541
+ "boolean",
3542
+ "null"
3543
+ ]
3544
+ }
3545
+ },
3546
+ "description": "Request body for `PUT .../triggers/{trigger}`. The action is fixed at creation. Enabled is\nnullable so leaving it out is a 400 rather than a bound `false` that silently turns the trigger off."
3547
+ },
2767
3548
  "PublicUpdateProjectRequest": {
2768
3549
  "type": [
2769
3550
  "object",
@@ -2985,9 +3766,15 @@ declare const _default: {
2985
3766
  "boolean",
2986
3767
  "null"
2987
3768
  ]
3769
+ },
3770
+ "credential": {
3771
+ "type": [
3772
+ "string",
3773
+ "null"
3774
+ ]
2988
3775
  }
2989
3776
  },
2990
- "description": "Replaces a subscription's configuration (full replace — omitted lists become empty, meaning\n\"all\"). `isEnabled` is required. The provider cannot be changed."
3777
+ "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
3778
  },
2992
3779
  "PublicVariationResponse": {
2993
3780
  "type": [
@@ -3196,7 +3983,7 @@ declare const _default: {
3196
3983
  "string",
3197
3984
  "null"
3198
3985
  ],
3199
- "description": "Allowed values: GenericHttp, Slack."
3986
+ "description": "Allowed values: GenericHttp, Slack, Datadog, Grafana."
3200
3987
  },
3201
3988
  "isEnabled": {
3202
3989
  "type": [