@featureflip/mcp 0.7.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.
- package/README.md +3 -2
- package/dist/cli.mjs +1 -1
- package/dist/errors.d.ts +5 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/generated/api-types.d.ts +1202 -51
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/generated/output-schemas.json.d.ts +731 -10
- package/dist/index.mjs +1 -1
- package/dist/{org-CRuyqCqx.js → org-40S7JIbw.js} +102 -29
- package/dist/server.d.ts.map +1 -1
- package/dist/tools/environment-comparison.d.ts +4 -0
- package/dist/tools/environment-comparison.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -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",
|
|
@@ -787,6 +930,33 @@ declare const _default: {
|
|
|
787
930
|
},
|
|
788
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`)."
|
|
789
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."
|
|
959
|
+
},
|
|
790
960
|
"PublicCreateProjectRequest": {
|
|
791
961
|
"type": [
|
|
792
962
|
"object",
|
|
@@ -1267,6 +1437,96 @@ declare const _default: {
|
|
|
1267
1437
|
},
|
|
1268
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`)."
|
|
1269
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
|
+
},
|
|
1270
1530
|
"PublicEvaluationSource": {
|
|
1271
1531
|
"type": [
|
|
1272
1532
|
"object",
|
|
@@ -1372,22 +1632,229 @@ declare const _default: {
|
|
|
1372
1632
|
],
|
|
1373
1633
|
"description": "False when the key no longer matches one of the flag's variations."
|
|
1374
1634
|
},
|
|
1375
|
-
"count": {
|
|
1376
|
-
"type": [
|
|
1377
|
-
"integer",
|
|
1378
|
-
"null"
|
|
1379
|
-
],
|
|
1380
|
-
"description": "Evaluations that served this variation."
|
|
1635
|
+
"count": {
|
|
1636
|
+
"type": [
|
|
1637
|
+
"integer",
|
|
1638
|
+
"null"
|
|
1639
|
+
],
|
|
1640
|
+
"description": "Evaluations that served this variation."
|
|
1641
|
+
},
|
|
1642
|
+
"share": {
|
|
1643
|
+
"type": [
|
|
1644
|
+
"number",
|
|
1645
|
+
"null"
|
|
1646
|
+
],
|
|
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."
|
|
1648
|
+
}
|
|
1649
|
+
},
|
|
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
|
+
]
|
|
1381
1842
|
},
|
|
1382
|
-
"
|
|
1843
|
+
"ruleHasMatchInOther": {
|
|
1383
1844
|
"type": [
|
|
1384
|
-
"
|
|
1845
|
+
"array",
|
|
1385
1846
|
"null"
|
|
1386
1847
|
],
|
|
1387
|
-
"
|
|
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."
|
|
1388
1855
|
}
|
|
1389
1856
|
},
|
|
1390
|
-
"description": "One
|
|
1857
|
+
"description": "One environment's side of a per-flag comparison."
|
|
1391
1858
|
},
|
|
1392
1859
|
"PublicFlagEnvConfigResponse": {
|
|
1393
1860
|
"type": [
|
|
@@ -1957,6 +2424,170 @@ declare const _default: {
|
|
|
1957
2424
|
},
|
|
1958
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."
|
|
1959
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
|
+
},
|
|
1960
2591
|
"PublicPlanLimit": {
|
|
1961
2592
|
"type": [
|
|
1962
2593
|
"object",
|
|
@@ -2534,6 +3165,69 @@ declare const _default: {
|
|
|
2534
3165
|
},
|
|
2535
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}`)."
|
|
2536
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
|
+
},
|
|
2537
3231
|
"PublicTargetingConfigResponse": {
|
|
2538
3232
|
"type": [
|
|
2539
3233
|
"object",
|
|
@@ -2824,6 +3518,33 @@ declare const _default: {
|
|
|
2824
3518
|
},
|
|
2825
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)."
|
|
2826
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
|
+
},
|
|
2827
3548
|
"PublicUpdateProjectRequest": {
|
|
2828
3549
|
"type": [
|
|
2829
3550
|
"object",
|