@featureflip/mcp 0.9.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.
- package/README.md +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/generated/api-types.d.ts +1178 -2
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/generated/output-schemas.json.d.ts +256 -1
- package/dist/index.mjs +1 -1
- package/dist/{org-BDExAaDn.js → org-sxm8AftG.js} +174 -61
- package/dist/server.d.ts.map +1 -1
- package/dist/tools/rollout-ramps.d.ts +4 -0
- package/dist/tools/rollout-ramps.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import * as n from "zod/v4";
|
|
|
3
3
|
// src/version.ts
|
|
4
4
|
var r = {
|
|
5
5
|
name: "@featureflip/mcp",
|
|
6
|
-
version: "0.
|
|
6
|
+
version: "0.10.0",
|
|
7
7
|
mcpName: "io.github.canopy-labs/featureflip",
|
|
8
8
|
description: "MCP server for managing Featureflip feature flags from AI agents and editors",
|
|
9
9
|
keywords: [
|
|
@@ -203,6 +203,14 @@ var m = {
|
|
|
203
203
|
"GET /api/v1/orgs/{org}/projects/{project}": "ProjectResponse",
|
|
204
204
|
"GET /api/v1/orgs/{org}/projects/{project}/compare": "PublicFlagComparisonRowPagedResult",
|
|
205
205
|
"GET /api/v1/orgs/{org}/projects/{project}/default-flag-lifetime/impact": "PublicDefaultFlagLifetimeImpact",
|
|
206
|
+
"GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps": "PublicRolloutRampResponsePagedResult",
|
|
207
|
+
"GET /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}": "PublicRolloutRampResponse",
|
|
208
|
+
"POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/rules/{ruleId}/ramp": "PublicRolloutRampResponse",
|
|
209
|
+
"POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/default-rule/ramp": "PublicRolloutRampResponse",
|
|
210
|
+
"POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}/pause": "PublicRolloutRampResponse",
|
|
211
|
+
"POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}/resume": "PublicRolloutRampResponse",
|
|
212
|
+
"POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}/advance": "PublicRolloutRampResponse",
|
|
213
|
+
"POST /api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}/ramps/{rampId}/abort": "PublicRolloutRampResponse",
|
|
206
214
|
"POST /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys": "PublicCreateSdkKeyResponse",
|
|
207
215
|
"GET /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys": "PublicSdkKeyResponsePagedResult",
|
|
208
216
|
"GET /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys/{sdkKey}": "PublicSdkKeyResponse",
|
|
@@ -216,7 +224,7 @@ var m = {
|
|
|
216
224
|
"POST /api/v1/orgs/{org}/webhooks/{id}/test": "PublicTestWebhookSubscriptionResponse",
|
|
217
225
|
"GET /api/v1/orgs/{org}/webhooks/{id}/deliveries": "PublicWebhookDeliveryResponsePagedResult"
|
|
218
226
|
},
|
|
219
|
-
$defs: /* @__PURE__ */ JSON.parse("{\"ActionCapability\":{\"type\":[\"object\",\"null\"],\"properties\":{\"allowed\":{\"type\":[\"boolean\",\"null\"]},\"reason\":{\"type\":[\"string\",\"null\"]}},\"description\":\"One entry in a resource's `_actions` block: may the caller perform it, and if not, why.\"},\"MeResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"type\":{\"type\":[\"string\",\"null\"]},\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"email\":{\"type\":[\"string\",\"null\"]},\"emailVerified\":{\"type\":[\"boolean\",\"null\"]},\"organizationId\":{\"type\":[\"string\",\"null\"]},\"role\":{\"type\":[\"string\",\"null\"]},\"projectScope\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}}},\"description\":\"The authenticated caller's identity, returned by `GET /api/v1/me`. The public API\\nauthenticates two kinds of principal, so this is a `type`-discriminated shape.\\nA `\\\"user\\\"` caller (a session/JWT user or a personal access token, `ffp_...`) carries\\n`email` + `emailVerified`. A `\\\"service_token\\\"` caller (`ffs_...`) has no\\nbacking user row, so it carries `organizationId` + `role` + `projectScope` (the\\ntoken's org, its role in that org, and its project allowlist) instead. The type-inapplicable\\nfields are omitted from the response body. `projectScope` is omitted for an unrestricted\\nservice token (access to every project), never an empty list.\"},\"NextAction\":{\"type\":[\"object\",\"null\"],\"properties\":{\"method\":{\"type\":[\"string\",\"null\"]},\"path\":{\"type\":[\"string\",\"null\"]}}},\"OrganizationResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"slug\":{\"type\":[\"string\",\"null\"]},\"plan\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Solo, Team, Pro, Business, Enterprise.\"},\"isActive\":{\"type\":[\"boolean\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Public representation of an organization, returned by both `GET /api/v1/orgs` (list) and\\n`GET /api/v1/orgs/{org}` (detail). Drops dashboard-only fields (`BillingEmail` is\\nbilling-contact PII, `UpdatedAt` is dashboard audit trivia) from the dashboard's\\nOrganizationDto/OrganizationListItemDto.\"},\"OrganizationResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/OrganizationResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"ProjectResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"defaultFlagLifetimeDays\":{\"type\":[\"integer\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of a project, returned by `GET /api/v1/orgs/{org}/projects` (list),\\n`GET .../projects/{project}` (detail), and the body of a successful create/update. Drops\\nthe dashboard-only nested `Environments` collection from ProjectDto — the\\npublic API surfaces environments via their own endpoint (Task 6), not embedded here.\\nUpdatedAt is only populated from ProjectDto (the detail/create\\nshape); ProjectListItemDto doesn't carry it, so list rows leave it `null`.\\nDefaultFlagLifetimeDays is the project's default flag lifetime in days, or null (#3194).\"},\"ProjectResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/ProjectResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicAddVariationRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"value\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"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).\"},\"PublicApiErrorEnvelope\":{\"type\":[\"object\",\"null\"],\"properties\":{\"error\":{\"type\":[\"string\",\"null\"]},\"message\":{\"type\":[\"string\",\"null\"]},\"docs_url\":{\"type\":[\"string\",\"null\"]},\"fields\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}}},\"retry_after\":{\"type\":[\"integer\",\"null\"]},\"did_you_mean\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"next_actions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/NextAction\"},{\"type\":\"null\"}]}},\"connection_id\":{\"type\":[\"string\",\"null\"]},\"plan_limit\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicPlanLimit\"},{\"type\":\"null\"}]}},\"description\":\"The frozen public-API error contract. `error` codes are stable snake_case strings. Wire keys\\nare frozen snake_case too (`error`, `message`, `docs_url`, `fields`,\\n`retry_after`) — the global camelCase naming policy would otherwise emit\\n`docsUrl`/`retryAfter`, breaking the published spec. !:JsonPropertyName\\nalways wins over the policy, so these are pinned explicitly rather than relying on the\\nproperty names already being lowercase for the single-word ones.\\n`did_you_mean`, `next_actions` and `connection_id` are ADDITIVE optional keys\\n(null → omitted via the global `DefaultIgnoreCondition = WhenWritingNull`), so\\npre-existing error bodies are byte-for-byte unchanged when they're absent.\\n\\n`connection_id` is present only on the `sso_required` error: the organization\\nrequires single sign-on, and this credential didn't come through its identity provider.\\n`connection_id` identifies which SSO connection to sign in with.\\n`plan_limit` is present only on the `plan_limit_reached` error: which plan cap the\\nrequest would have exceeded, so a client can branch on it without parsing `message`.\"},\"PublicConditionGroupRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: And, Or.\"},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionRequest\"},{\"type\":\"null\"}]}}},\"description\":\"Request-side condition group, symmetric with PublicConditionGroupResponse.\"},\"PublicConditionGroupResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: And, Or.\"},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionResponse\"},{\"type\":\"null\"}]}}},\"description\":\"A condition group within a PublicTargetingRuleResponse. Maps 1:1 onto\\nConditionGroupDto. Operator is a bare wire string naming one of\\nthe `ConditionGroupOperator` members (`\\\"And\\\"`/`\\\"Or\\\"`) —\\ngroups are ANDed together at the rule level; within a group, its conditions combine using\\nthis operator.\"},\"PublicConditionRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"attribute\":{\"type\":[\"string\",\"null\"]},\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.\"},\"values\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"negate\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"Request-side condition, symmetric with PublicConditionResponse.\"},\"PublicConditionResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"attribute\":{\"type\":[\"string\",\"null\"]},\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.\"},\"values\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"negate\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"A single condition within a PublicConditionGroupResponse. Maps 1:1 onto\\nConditionDto. Operator is a bare wire string naming one of the\\n`OperatorType` members (e.g. `\\\"Equals\\\"`, `\\\"In\\\"`).\"},\"PublicConfiguredWeight\":{\"type\":[\"object\",\"null\"],\"properties\":{\"variationKey\":{\"type\":[\"string\",\"null\"],\"description\":\"The variation's key.\"},\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The variation's name, or null when the key no longer matches one of the flag's variations.\"},\"weight\":{\"type\":[\"integer\",\"null\"],\"description\":\"Percent of the rule's traffic.\"}},\"description\":\"A variation's configured share of a rollout rule.\"},\"PublicCopyFlagConfigRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"source\":{\"type\":[\"string\",\"null\"]},\"includeState\":{\"type\":[\"boolean\",\"null\"]},\"dryRun\":{\"type\":[\"boolean\",\"null\"]},\"expectedSourceETag\":{\"type\":[\"string\",\"null\"]},\"expectedTargetETag\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicCopyResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"changed\":{\"type\":[\"boolean\",\"null\"]},\"changedSections\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"before\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSnapshot\"},{\"type\":\"null\"}]},\"after\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSnapshot\"},{\"type\":\"null\"}]},\"sourceETag\":{\"type\":[\"string\",\"null\"]},\"targetETag\":{\"type\":[\"string\",\"null\"]},\"warnings\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicCopyWarning\"},{\"type\":\"null\"}]}}},\"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`.\"},\"PublicCopyWarning\":{\"type\":[\"object\",\"null\"],\"properties\":{\"code\":{\"type\":[\"string\",\"null\"]},\"message\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A non-blocking note about a copy.\"},\"PublicCreateEnvironmentRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's key.\"},\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display name.\"},\"color\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display color, or null.\"},\"sortOrder\":{\"type\":[\"integer\",\"null\"],\"description\":\"Position among the project's environments.\"},\"requireChangeReason\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above.\"},\"requireConfirmation\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API.\"}},\"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.\"},\"PublicCreateFeatureFlagRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Boolean, String, Number, Json.\"},\"description\":{\"type\":[\"string\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"initialVariations\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicCreateVariationDto\"},{\"type\":\"null\"}]}},\"clientSideVisible\":{\"type\":[\"boolean\",\"null\"]},\"expiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"ownerEmail\":{\"type\":[\"string\",\"null\"]},\"isPermanent\":{\"type\":[\"boolean\",\"null\"]}},\"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`).\"},\"PublicCreateFlagTriggerRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"action\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicCreateProjectRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `POST /api/v1/orgs/{org}/projects`. Named distinctly from the\\ndashboard's own `CreateProjectRequest` — both\\ncontrollers 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.\"},\"PublicCreateSdkKeyRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: ClientSide, ServerSide.\"}},\"description\":\"Request body for `POST /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys`.\\nType is a bare string (\\\"ClientSide\\\" or \\\"ServerSide\\\") — the controller parses it\\nagainst a NAME allowlist (not a bare TryParse``1(ReadOnlySpan{Char},Boolean,``0@), which would\\nsilently accept a numeric string like `\\\"0\\\"`) before dispatching. Named distinctly from\\nthe dashboard's own `CreateSdkKeyRequest` — both\\ncontrollers share one Swagger document, and an identical type name in either namespace throws\\na schemaId collision at `--export-openapi` time.\"},\"PublicCreateSdkKeyResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"lastFourCharacters\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: ClientSide, ServerSide.\"},\"name\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"warning\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Response body for a successful `POST .../sdk-keys`. The ONLY place the plaintext\\nKey is ever returned — PublicSdkKeyResponse (list/get) carries just\\n`LastFourCharacters`. Built directly from CreateSdkKeyResult rather than a\\nre-fetch (unlike `FeatureFlagsController.Create`'s re-fetch pattern) because the\\nplaintext key only ever exists on the create result — a subsequent\\nGetSdkKeyQuery can't recover it.\"},\"PublicCreateSegmentRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSegmentConditionDto\"},{\"type\":\"null\"}]}}},\"description\":\"Request body for `POST /api/v1/orgs/{org}/projects/{project}/segments`. Named distinctly\\nfrom the dashboard's own `CreateUserSegmentRequest` — see\\nPublicCreateEnvironmentRequest for the schemaId-collision rationale (both\\ncontrollers share one Swagger document).\"},\"PublicCreateTargetingRuleRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"description\":{\"type\":[\"string\",\"null\"]},\"variationId\":{\"type\":[\"string\",\"null\"]},\"rolloutPercentage\":{\"type\":[\"integer\",\"null\"]},\"userSegmentId\":{\"type\":[\"string\",\"null\"]},\"conditionGroups\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionGroupRequest\"},{\"type\":\"null\"}]}},\"bucketBy\":{\"type\":[\"string\",\"null\"],\"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`.\"}},\"description\":\"Request body for `POST .../rules`. The Application-side\\n`CreateTargetingRuleDto`/`CreateConditionGroupDto`/`CreateConditionDto` all take\\ntheir `Operator` as a bare string, re-parsed CASE-SENSITIVELY inside\\n`CreateTargetingRuleCommandHandler` — `FlagTargetingController`'s mapping helpers\\nvalidate every operator against the enum's member-name allowlist AND canonicalize the casing\\n(e.g. `\\\"in\\\"` → `\\\"In\\\"`) before building the command DTO, so a valid\\ncase-insensitive match never trips the handler's strict re-parse.\"},\"PublicCreateVariationDto\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"value\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A variation supplied at flag-creation time. Maps 1:1 onto\\nCreateVariationDto.\"},\"PublicCreateWebhookSubscriptionRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"url\":{\"type\":[\"string\",\"null\"]},\"provider\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: GenericHttp, Slack, Datadog, Grafana.\"},\"eventTypes\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"projectIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"environmentIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"credential\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicCreateWebhookSubscriptionResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"secret\":{\"type\":[\"string\",\"null\"]},\"warning\":{\"type\":[\"string\",\"null\"]}},\"description\":\"The created subscription's id and its signing secret. The secret is shown only here.\"},\"PublicDefaultFlagLifetimeImpact\":{\"type\":[\"object\",\"null\"],\"properties\":{\"newlyPastExpiry\":{\"type\":[\"integer\",\"null\"]},\"noLongerPastExpiry\":{\"type\":[\"integer\",\"null\"]}},\"description\":\"Response of `GET .../default-flag-lifetime/impact`: how many temporary flags with no expiry\\ndate of their own would newly be past expiry, and how many would stop being past it.\"},\"PublicEnvironmentResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's id.\"},\"key\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's key.\"},\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display name.\"},\"color\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display color, or null.\"},\"sortOrder\":{\"type\":[\"integer\",\"null\"],\"description\":\"Position among the project's environments.\"},\"requireChangeReason\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above.\"},\"requireConfirmation\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API.\"},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of an environment, returned by\\n`GET /api/v1/orgs/{org}/projects/{project}/environments` (list),\\n`GET .../environments/{env}` (detail), and the body of a successful create/update. Drops\\ninternal fields (e.g. `ProjectId` is implicit in the route) — mirrors\\n`ProjectResponse`'s minimal shape. Named `PublicEnvironmentResponse` rather than\\n`EnvironmentResponse` (unlike the sibling `ProjectResponse`, which didn't collide)\\nbecause the dashboard already has its own\\n`EnvironmentResponse` — see\\nPublicCreateEnvironmentRequest for the schemaId-collision rationale.\"},\"PublicEnvironmentResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicEnvironmentSideSummary\":{\"type\":[\"object\",\"null\"],\"properties\":{\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"ruleCount\":{\"type\":[\"integer\",\"null\"]},\"prerequisiteCount\":{\"type\":[\"integer\",\"null\"]}},\"description\":\"One side's headline numbers in a project-level comparison row.\"},\"PublicEnvironmentSnapshot\":{\"type\":[\"object\",\"null\"],\"properties\":{\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"defaultVariation\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicKeyedRef\"},{\"type\":\"null\"}]},\"strategy\":{\"type\":[\"string\",\"null\"]},\"rules\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSnapshotRule\"},{\"type\":\"null\"}]}},\"prerequisites\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicPrerequisiteDto\"},{\"type\":\"null\"}]}}},\"description\":\"A flag's configuration in one environment, as a comparison or copy result reports it.\"},\"PublicEvaluationSource\":{\"type\":[\"object\",\"null\"],\"properties\":{\"source\":{\"type\":[\"string\",\"null\"],\"description\":\"One of rule, fallthrough, off, prerequisite, error, notFound or unknown (an SDK that reports no reason, or evaluations recorded before sources were). Allowed values: rule, fallthrough, off, prerequisite, error, notFound, unknown.\"},\"ruleId\":{\"type\":[\"string\",\"null\"],\"description\":\"For a rule, its id (rules have no key). Null otherwise, or when the SDK didn't say which rule.\"},\"ruleLabel\":{\"type\":[\"string\",\"null\"],\"description\":\"For a live rule, its description or a generated label. Null otherwise.\"},\"ruleExists\":{\"type\":[\"boolean\",\"null\"],\"description\":\"False when the rule is no longer in the environment's targeting.\"},\"count\":{\"type\":[\"integer\",\"null\"],\"description\":\"Evaluations this source served.\"},\"share\":{\"type\":[\"number\",\"null\"],\"description\":\"Count as a fraction (0 to 1) of all sources' counts combined.\"},\"variations\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEvaluationVariation\"},{\"type\":\"null\"}]},\"description\":\"What this source served, with shares of this source's count.\"},\"rollout\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicRolloutCheck\"},{\"type\":\"null\"}]}},\"description\":\"The evaluations one part of the targeting served.\"},\"PublicEvaluationVariation\":{\"type\":[\"object\",\"null\"],\"properties\":{\"variationKey\":{\"type\":[\"string\",\"null\"],\"description\":\"The variation served, or null for evaluations recorded without one.\"},\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The variation's name, or null when the key no longer matches one of the flag's variations.\"},\"exists\":{\"type\":[\"boolean\",\"null\"],\"description\":\"False when the key no longer matches one of the flag's variations.\"},\"count\":{\"type\":[\"integer\",\"null\"],\"description\":\"Evaluations that served this variation.\"},\"share\":{\"type\":[\"number\",\"null\"],\"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.\"}},\"description\":\"One variation's evaluations.\"},\"PublicFlagComparison\":{\"type\":[\"object\",\"null\"],\"properties\":{\"flagKey\":{\"type\":[\"string\",\"null\"]},\"differences\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"base\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagComparisonSide\"},{\"type\":\"null\"}]},\"other\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagComparisonSide\"},{\"type\":\"null\"}]}},\"description\":\"Response of `GET .../flags/{flag}/compare`.\"},\"PublicFlagComparisonRow\":{\"type\":[\"object\",\"null\"],\"properties\":{\"flagKey\":{\"type\":[\"string\",\"null\"]},\"flagName\":{\"type\":[\"string\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"ownerUserId\":{\"type\":[\"string\",\"null\"]},\"status\":{\"type\":[\"string\",\"null\"]},\"differences\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"base\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSideSummary\"},{\"type\":\"null\"}]},\"other\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSideSummary\"},{\"type\":\"null\"}]}},\"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.\"},\"PublicFlagComparisonRowPagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagComparisonRow\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]}},\"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`).\"},\"PublicFlagComparisonSide\":{\"type\":[\"object\",\"null\"],\"properties\":{\"config\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagEnvConfigResponse\"},{\"type\":\"null\"}]},\"targeting\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicTargetingConfigResponse\"},{\"type\":\"null\"}]},\"snapshot\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSnapshot\"},{\"type\":\"null\"}]},\"ruleHasMatchInOther\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"boolean\",\"null\"]},\"description\":\"Per rule in evaluation order: whether the other environment has an equal rule.\"}},\"description\":\"One environment's side of a per-flag comparison.\"},\"PublicFlagEnvConfigResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"environmentId\":{\"type\":[\"string\",\"null\"]},\"environmentKey\":{\"type\":[\"string\",\"null\"]},\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"defaultVariationId\":{\"type\":[\"string\",\"null\"]},\"strategy\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: SingleVariation, PercentageRollout, TargetedRollout.\"},\"prerequisites\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicPrerequisiteDto\"},{\"type\":\"null\"}]}},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of a flag's config within a single environment, returned by\\n`GET .../flags/{flag}/environments` and `GET .../flags/{flag}/environments/{env}`.\\nDrops internal/dashboard-only fields present on FlagEnvironmentConfigurationDto\\n— Id (an internal row id, not part of the public\\ncontract; EnvironmentId is the addressable key), `FeatureFlagId` (implicit\\nin the route), the environment's name/color/sort-order (dashboard display fields — the public\\ncontract only needs the addressable EnvironmentKey), and `Staleness` (an\\ninternal analytics signal).\"},\"PublicFlagEvaluationsResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"environmentKey\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's key.\"},\"days\":{\"type\":[\"integer\",\"null\"],\"description\":\"The window requested: 7, 30 or 90.\"},\"fromUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"Start of the window: UTC midnight `days - 1` days ago, or the flag's creation day if later.\"},\"toUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"When the counts were read.\"},\"totalCount\":{\"type\":[\"integer\",\"null\"],\"description\":\"Evaluations in the window. Evaluation counts, not unique users.\"},\"lastEvaluatedAtUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"The last reported evaluation, or null if none was reported.\"},\"variations\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEvaluationVariation\"},{\"type\":\"null\"}]},\"description\":\"Evaluations per variation over the window.\"},\"sources\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEvaluationSource\"},{\"type\":\"null\"}]},\"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.\"}},\"description\":\"What a flag served in one environment over the window, returned by\\n`GET .../flags/{flag}/environments/{env}/evaluations` (#4225). These are evaluation\\ncounts, not unique users. They come from SDK-reported events, so an environment whose SDKs\\nreport none reads zero: no evaluations reported, not necessarily no traffic. The public\\ncounterpart of FlagEvaluationAnalyticsDto, keyed by environment key instead of\\nid and without the dashboard's daily series.\"},\"PublicFlagListItem\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Boolean, String, Number, Json.\"},\"isArchived\":{\"type\":[\"boolean\",\"null\"]},\"clientSideVisible\":{\"type\":[\"boolean\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"expiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"owner\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagOwner\"},{\"type\":\"null\"}]},\"removalPrUrl\":{\"type\":[\"string\",\"null\"]},\"isPermanent\":{\"type\":[\"boolean\",\"null\"]},\"effectiveExpiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"expirySource\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Public list-item representation of a feature flag, returned by\\n`GET .../flags`. Narrower than PublicFlagResponse — drops\\nVariations (a summary-only shape upstream) and\\nStaleness, matching the \\\"list is narrower than detail\\\"\\nsplit already present on the Application-layer DTOs.\\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.\"},\"PublicFlagListItemPagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagListItem\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicFlagOwner\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"email\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A flag's owner as returned on flag reads. Null means the flag is unowned.\"},\"PublicFlagRemovalCandidate\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"reason\":{\"type\":[\"string\",\"null\"]},\"treatment\":{\"type\":[\"boolean\",\"null\"]},\"status\":{\"type\":[\"string\",\"null\"]},\"blockedBy\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}}},\"description\":\"One dead flag the Featureflip Flag Cleanup Action should remove, returned by\\n`GET .../flags/removal-candidates`. `Treatment` is the kill decision: true → keep the\\nflag's on-branch, false → keep the off-branch. `Status` is the flag's staleness tier\\n(`\\\"Stale\\\"` or `\\\"Dead\\\"`, never `\\\"Active\\\"`) — lets a caller distinguish the two when\\n`?staleness=stale` widens the response to include both tiers. This is the ONLY public\\nprojection of staleness — PublicFlagResponse and PublicFlagListItem\\nstill omit it by design. `BlockedBy` names the live flags that still list this one as a\\nprerequisite, sorted by key; while it is non-empty the flag cannot be archived\\n(`FLAG_HAS_DEPENDENTS`), so a caller should remove those dependents first.\"},\"PublicFlagRemovalCandidatePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagRemovalCandidate\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]}},\"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`).\"},\"PublicFlagResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Boolean, String, Number, Json.\"},\"isArchived\":{\"type\":[\"boolean\",\"null\"]},\"clientSideVisible\":{\"type\":[\"boolean\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"variations\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicVariationResponse\"},{\"type\":\"null\"}]}},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"expiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"owner\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagOwner\"},{\"type\":\"null\"}]},\"removalPrUrl\":{\"type\":[\"string\",\"null\"]},\"isPermanent\":{\"type\":[\"boolean\",\"null\"]},\"effectiveExpiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"expirySource\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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.\"},\"PublicFlagTriggerResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"action\":{\"type\":[\"string\",\"null\"]},\"enabled\":{\"type\":[\"boolean\",\"null\"]},\"secretLastFour\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"lastFiredAt\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicFlagTriggerResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagTriggerResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]}},\"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`).\"},\"PublicFlagTriggerWithUrlResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"trigger\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagTriggerResponse\"},{\"type\":\"null\"}]},\"url\":{\"type\":[\"string\",\"null\"]},\"endpoint\":{\"type\":[\"string\",\"null\"]},\"secret\":{\"type\":[\"string\",\"null\"]},\"warning\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicKeyedRef\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicPlanLimit\":{\"type\":[\"object\",\"null\"],\"properties\":{\"resource\":{\"type\":[\"string\",\"null\"]},\"plan\":{\"type\":[\"string\",\"null\"]},\"max\":{\"type\":[\"integer\",\"null\"]}},\"description\":\"The cap behind a `plan_limit_reached` error. `resource` is the capped collection\\n(`projects`, `environments`, `flags`, `webhooks`, `members`);\\n`plan` is the plan's wire name, as `GET /api/v1/orgs/{org}` returns it; `max` is\\nthe cap. The environment and flag caps are per project.\"},\"PublicPrerequisiteDto\":{\"type\":[\"object\",\"null\"],\"properties\":{\"prerequisiteFlagKey\":{\"type\":[\"string\",\"null\"]},\"expectedVariationKey\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A single prerequisite entry on a flag's per-environment config. Maps 1:1 onto\\nPrerequisiteDto (read side) and PrerequisiteInput (write side).\"},\"PublicPutTargetingRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"rules\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicCreateTargetingRuleRequest\"},{\"type\":\"null\"}]}}},\"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.\"},\"PublicReorderRulesRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"ruleIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}}},\"description\":\"Request body for `PUT .../rules/reorder`. Must include every existing rule id exactly\\nonce — `ReorderTargetingRulesCommandHandler` rejects duplicate, omitted, or unknown rule\\nids with `BadRequestException`, surfaced as an HTTP 400 `bad_request` envelope\\ncarrying the handler's message.\"},\"PublicRolloutCheck\":{\"type\":[\"object\",\"null\"],\"properties\":{\"configured\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConfiguredWeight\"},{\"type\":\"null\"}]},\"description\":\"The configured weights, in percent; they sum to 100.\"},\"splitChangedAtUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"The last time the split may have changed (the rule was edited, or a variation was added), or null if it hasn't since the rule was created. A change inside the window mixes two splits.\"},\"evaluable\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Whether the check could run. See NotEvaluableReason when false.\"},\"pValue\":{\"type\":[\"number\",\"null\"],\"description\":\"The sample-ratio test's p-value, or null when not evaluable.\"},\"flagged\":{\"type\":[\"boolean\",\"null\"],\"description\":\"True only when the served split is both unlikely under the configured weights (p < 0.001) and at least 2 percentage points off for some variation.\"},\"notEvaluableReason\":{\"type\":[\"string\",\"null\"],\"description\":\"too-little-traffic or unexpected-variation when the check couldn't run; null otherwise. Allowed values: too-little-traffic, unexpected-variation.\"},\"bucketBy\":{\"type\":[\"string\",\"null\"],\"description\":\"The context attribute the rollout hashes on. A context without it skips the rule, even at 100%.\"},\"unreached\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicRolloutUnreached\"},{\"type\":\"null\"}]}},\"description\":\"A percentage-rollout rule's configured split beside a sample-ratio check of what it served.\"},\"PublicRolloutUnreached\":{\"type\":[\"object\",\"null\"],\"properties\":{\"eligibleEvaluations\":{\"type\":[\"integer\",\"null\"],\"description\":\"Evaluations that reached the flag's rules or fallthrough since SinceUtc, while this rule served none.\"},\"sinceUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"The window start, or the first UTC midnight after the rule last changed when that is later.\"}},\"description\":\"A live rollout rule that no evaluations reached.\"},\"PublicRotateWebhookSecretResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"secretId\":{\"type\":[\"string\",\"null\"]},\"secret\":{\"type\":[\"string\",\"null\"]},\"warning\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A newly added signing secret. The secret is shown only here.\"},\"PublicSdkKeyResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: ClientSide, ServerSide.\"},\"lastFourCharacters\":{\"type\":[\"string\",\"null\"]},\"isActive\":{\"type\":[\"boolean\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"lastUsedAt\":{\"type\":[\"string\",\"null\"]},\"revokedAt\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of an SDK key, returned by\\n`GET /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys` (list) and\\n`GET .../sdk-keys/{sdkKey}` (detail). Deliberately narrower than\\nSdkKeyDto — drops `RevokedBy` (an internal user id) and\\n`EnvironmentId` (implicit in the route), and carries no plaintext key field: only\\nLastFourCharacters is ever exposed once the key has been created. The plaintext\\nkey is a one-time value that appears solely in PublicCreateSdkKeyResponse.\"},\"PublicSdkKeyResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSdkKeyResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicSegmentConditionDto\":{\"type\":[\"object\",\"null\"],\"properties\":{\"attribute\":{\"type\":[\"string\",\"null\"]},\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.\"},\"values\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"negate\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"A single targeting condition on a segment, used both as input (create/update) and output\\n(Conditions). Operator is a bare string on\\nboth sides of the wire — on write it's parsed to\\nOperatorType by `SegmentsController` (an unknown\\nvalue fails closed with a 400, never silently dropped or defaulted); on read it's mapped\\nstraight through from Operator, which is already a string.\"},\"PublicSegmentResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSegmentConditionDto\"},{\"type\":\"null\"}]}},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of a user segment, returned by `GET .../segments`,\\n`GET .../segments/{segment}`, and the body of a successful create.\"},\"PublicSegmentResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSegmentResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicSetDefaultFlagLifetimeRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"days\":{\"type\":[\"integer\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/default-flag-lifetime`. `days`\\nis 1–3650, or an explicit null to remove the default. `days` is required: a body without it\\n(`{}`, or a misspelled field) is a `validation_failed` 400, never a removal, so a typo\\ncan't silently wipe the setting (#3788). A request with no body is rejected too.\"},\"PublicSetFlagExpiryRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"expiresAtUtc\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/expiry`. Expiry is a\\ndedicated sub-resource, deliberately NOT a field on PublicUpdateFeatureFlagRequest: that\\nPUT is a full replace, so a new nullable field there would let any client that doesn't know about\\nexpiry (the Terraform provider included) wipe it on every update. A bare date means the end of that\\nUTC day; a full timestamp is stored exactly.\"},\"PublicSetFlagOwnerRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"email\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/owner`. A dedicated\\nsub-resource for the same reason as expiry: the main flag PUT is a full replace, so an owner field\\nthere would let every client that doesn't know about owners wipe one. `email` must belong\\nto an active member of the organization (case-insensitive).\"},\"PublicSetFlagRemovalPrRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"url\":{\"type\":[\"string\",\"null\"]}},\"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}`).\"},\"PublicSnapshotRule\":{\"type\":[\"object\",\"null\"],\"properties\":{\"description\":{\"type\":[\"string\",\"null\"]},\"variation\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicKeyedRef\"},{\"type\":\"null\"}]},\"segment\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicKeyedRef\"},{\"type\":\"null\"}]},\"rolloutPercentage\":{\"type\":[\"integer\",\"null\"]},\"bucketBy\":{\"type\":[\"string\",\"null\"]},\"conditionGroups\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionGroupResponse\"},{\"type\":\"null\"}]}}},\"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.\"},\"PublicTargetingConfigResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"rules\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicTargetingRuleResponse\"},{\"type\":\"null\"}]}},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"The full targeting configuration for a flag in a single environment, returned by\\n`GET .../targeting`. Maps 1:1 onto TargetingConfigurationDto — including\\nits IsEnabled field, which reflects the parent\\n`FlagEnvironmentConfiguration.IsEnabled` (whether the flag is on in this environment at\\nall), not anything specific to targeting itself.\"},\"PublicTargetingRuleResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"priority\":{\"type\":[\"integer\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"variationId\":{\"type\":[\"string\",\"null\"]},\"rolloutPercentage\":{\"type\":[\"integer\",\"null\"]},\"bucketBy\":{\"type\":[\"string\",\"null\"],\"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.\"},\"userSegmentId\":{\"type\":[\"string\",\"null\"]},\"conditionGroups\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionGroupResponse\"},{\"type\":\"null\"}]}},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"A single targeting rule, returned by `GET .../rules/{ruleId}`,\\n`POST .../rules` (201 body), and nested within PublicTargetingConfigResponse.\\nMaps 1:1 onto TargetingRuleDto, dropping nothing — every field on the\\nApplication DTO is part of the public contract.\"},\"PublicTestWebhookSubscriptionResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"webhookEventId\":{\"type\":[\"string\",\"null\"]},\"webhookDeliveryId\":{\"type\":[\"string\",\"null\"]}},\"description\":\"The queued test event and its delivery. Poll the delivery log for the outcome.\"},\"PublicToggleFlagRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"enabled\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"Request body for `POST .../flags/{flag}/environments/{env}/toggle`. Named distinctly from\\nthe dashboard's own `ToggleFlagInEnvironmentRequest`\\n(which uses `IsEnabled`) — the public field is named Enabled per the phase-3c\\ncontract. Enabled is a NULLABLE `bool?` deliberately: a non-nullable value\\ntype would bind an omitted/empty body to `false` with no validation error (ASP.NET's\\nimplicit-required only covers non-nullable reference types, not value types), silently disabling\\nthe flag. The controller rejects a null Enabled with a `validation_failed` 400\\nso the intent is never ambiguous (#1806).\"},\"PublicUpdateEnvironmentRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display name.\"},\"color\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display color, or null.\"},\"sortOrder\":{\"type\":[\"integer\",\"null\"],\"description\":\"Position among the project's environments.\"},\"requireChangeReason\":{\"type\":[\"boolean\",\"null\"],\"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.\"},\"requireConfirmation\":{\"type\":[\"boolean\",\"null\"],\"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.\"}},\"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`.\"},\"PublicUpdateFeatureFlagRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"clientSideVisible\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}`. See\\nPublicCreateFeatureFlagRequest for why this is named distinctly from the\\ndashboard's `UpdateFeatureFlagRequest`. The flag's key and type are immutable via this\\nendpoint (mirrors `UpdateFeatureFlagCommand`, which has no `Key`/`Type`).\"},\"PublicUpdateFlagEnvConfigRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"defaultVariationId\":{\"type\":[\"string\",\"null\"]},\"strategy\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: SingleVariation, PercentageRollout, TargetedRollout.\"},\"prerequisites\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicPrerequisiteDto\"},{\"type\":\"null\"}]}}},\"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).\"},\"PublicUpdateFlagTriggerRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"enabled\":{\"type\":[\"boolean\",\"null\"]}},\"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.\"},\"PublicUpdateProjectRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}`. See\\nPublicCreateProjectRequest for why this is named distinctly from the\\ndashboard's `UpdateProjectRequest`.\"},\"PublicUpdateSdkKeyRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys/{sdkKey}`.\\nType and key material are immutable via this endpoint (mirrors\\nUpdateSdkKeyCommand, which\\ncarries no `Type`).\"},\"PublicUpdateSegmentRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSegmentConditionDto\"},{\"type\":\"null\"}]}}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/segments/{segment}`. The\\nsegment's key is immutable via this endpoint (mirrors `UpdateUserSegmentCommand`, which\\ncarries no `Key`).\"},\"PublicUpdateTargetingRuleRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"description\":{\"type\":[\"string\",\"null\"]},\"variationId\":{\"type\":[\"string\",\"null\"]},\"rolloutPercentage\":{\"type\":[\"integer\",\"null\"]},\"userSegmentId\":{\"type\":[\"string\",\"null\"]},\"conditionGroups\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionGroupRequest\"},{\"type\":\"null\"}]}},\"bucketBy\":{\"type\":[\"string\",\"null\"],\"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.\"}},\"description\":\"Request body for `PUT .../rules/{ruleId}`. Same shape as\\nPublicCreateTargetingRuleRequest — see its remarks on operator\\nvalidation/canonicalization, which applies identically here.\"},\"PublicUpdateVariationRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"value\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for\\n`PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/variations/{variationId}`. The\\nvariation's key is immutable via this endpoint (mirrors\\n`UpdateVariationCommand`, which\\ncarries no `Key`).\"},\"PublicUpdateWebhookSubscriptionRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"url\":{\"type\":[\"string\",\"null\"]},\"eventTypes\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"projectIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"environmentIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"credential\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicVariationResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"value\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"A single variation on a flag, as returned in Variations.\"},\"PublicWebhookDeliveryResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"webhookEventId\":{\"type\":[\"string\",\"null\"]},\"status\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Pending, Succeeded, DeadLettered.\"},\"attemptCount\":{\"type\":[\"integer\",\"null\"]},\"nextAttemptAt\":{\"type\":[\"string\",\"null\"]},\"lastResponseStatusCode\":{\"type\":[\"integer\",\"null\"]},\"lastError\":{\"type\":[\"string\",\"null\"]},\"completedAt\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]}},\"description\":\"One delivery attempt record. `status` is `Pending` (awaiting its first attempt,\\nbacking off, or in flight), `Succeeded` or `DeadLettered`.\"},\"PublicWebhookDeliveryResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicWebhookDeliveryResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]}},\"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`).\"},\"PublicWebhookSecretResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"retiredAt\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A signing secret's id and lifecycle. A secret with no `retiredAt` is active and signs every delivery.\"},\"PublicWebhookSubscriptionResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"url\":{\"type\":[\"string\",\"null\"]},\"provider\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: GenericHttp, Slack, Datadog, Grafana.\"},\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"eventTypes\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"projectIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"environmentIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"consecutiveFailureCount\":{\"type\":[\"integer\",\"null\"]},\"autoDisabledAt\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"secrets\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicWebhookSecretResponse\"},{\"type\":\"null\"}]}},\"overPlanLimit\":{\"type\":[\"boolean\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"A webhook subscription. Never carries secret material: signing secrets are listed by id and\\nlifecycle only — the value itself is returned once, when it is created or rotated.\\n`overPlanLimit` is true when the organization has more subscriptions than its plan\\nallows, which happens after a downgrade. The oldest subscriptions up to the limit keep\\ndelivering. The rest receive nothing and cannot be re-enabled, tested or redelivered to until\\nthe plan is upgraded or older subscriptions are deleted.\"},\"PublicWebhookSubscriptionResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicWebhookSubscriptionResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"}}")
|
|
227
|
+
$defs: /* @__PURE__ */ JSON.parse("{\"ActionCapability\":{\"type\":[\"object\",\"null\"],\"properties\":{\"allowed\":{\"type\":[\"boolean\",\"null\"]},\"reason\":{\"type\":[\"string\",\"null\"]}},\"description\":\"One entry in a resource's `_actions` block: may the caller perform it, and if not, why.\"},\"MeResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"type\":{\"type\":[\"string\",\"null\"]},\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"email\":{\"type\":[\"string\",\"null\"]},\"emailVerified\":{\"type\":[\"boolean\",\"null\"]},\"organizationId\":{\"type\":[\"string\",\"null\"]},\"role\":{\"type\":[\"string\",\"null\"]},\"projectScope\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}}},\"description\":\"The authenticated caller's identity, returned by `GET /api/v1/me`. The public API\\nauthenticates two kinds of principal, so this is a `type`-discriminated shape.\\nA `\\\"user\\\"` caller (a session/JWT user or a personal access token, `ffp_...`) carries\\n`email` + `emailVerified`. A `\\\"service_token\\\"` caller (`ffs_...`) has no\\nbacking user row, so it carries `organizationId` + `role` + `projectScope` (the\\ntoken's org, its role in that org, and its project allowlist) instead. The type-inapplicable\\nfields are omitted from the response body. `projectScope` is omitted for an unrestricted\\nservice token (access to every project), never an empty list.\"},\"NextAction\":{\"type\":[\"object\",\"null\"],\"properties\":{\"method\":{\"type\":[\"string\",\"null\"]},\"path\":{\"type\":[\"string\",\"null\"]}}},\"OrganizationResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"slug\":{\"type\":[\"string\",\"null\"]},\"plan\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Solo, Team, Pro, Business, Enterprise.\"},\"isActive\":{\"type\":[\"boolean\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Public representation of an organization, returned by both `GET /api/v1/orgs` (list) and\\n`GET /api/v1/orgs/{org}` (detail). Drops dashboard-only fields (`BillingEmail` is\\nbilling-contact PII, `UpdatedAt` is dashboard audit trivia) from the dashboard's\\nOrganizationDto/OrganizationListItemDto.\"},\"OrganizationResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/OrganizationResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"ProjectResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"defaultFlagLifetimeDays\":{\"type\":[\"integer\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of a project, returned by `GET /api/v1/orgs/{org}/projects` (list),\\n`GET .../projects/{project}` (detail), and the body of a successful create/update. Drops\\nthe dashboard-only nested `Environments` collection from ProjectDto — the\\npublic API surfaces environments via their own endpoint (Task 6), not embedded here.\\nUpdatedAt is only populated from ProjectDto (the detail/create\\nshape); ProjectListItemDto doesn't carry it, so list rows leave it `null`.\\nDefaultFlagLifetimeDays is the project's default flag lifetime in days, or null (#3194).\"},\"ProjectResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/ProjectResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicAbortRolloutRampRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"percent\":{\"type\":[\"integer\",\"null\"]}},\"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%.\"},\"PublicAddVariationRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"value\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"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).\"},\"PublicAdvanceRolloutRampRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"expectedStepIndex\":{\"type\":[\"integer\",\"null\"]}},\"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.\"},\"PublicApiErrorEnvelope\":{\"type\":[\"object\",\"null\"],\"properties\":{\"error\":{\"type\":[\"string\",\"null\"]},\"message\":{\"type\":[\"string\",\"null\"]},\"docs_url\":{\"type\":[\"string\",\"null\"]},\"fields\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}}},\"retry_after\":{\"type\":[\"integer\",\"null\"]},\"did_you_mean\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"next_actions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/NextAction\"},{\"type\":\"null\"}]}},\"connection_id\":{\"type\":[\"string\",\"null\"]},\"plan_limit\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicPlanLimit\"},{\"type\":\"null\"}]}},\"description\":\"The frozen public-API error contract. `error` codes are stable snake_case strings. Wire keys\\nare frozen snake_case too (`error`, `message`, `docs_url`, `fields`,\\n`retry_after`) — the global camelCase naming policy would otherwise emit\\n`docsUrl`/`retryAfter`, breaking the published spec. !:JsonPropertyName\\nalways wins over the policy, so these are pinned explicitly rather than relying on the\\nproperty names already being lowercase for the single-word ones.\\n`did_you_mean`, `next_actions` and `connection_id` are ADDITIVE optional keys\\n(null → omitted via the global `DefaultIgnoreCondition = WhenWritingNull`), so\\npre-existing error bodies are byte-for-byte unchanged when they're absent.\\n\\n`connection_id` is present only on the `sso_required` error: the organization\\nrequires single sign-on, and this credential didn't come through its identity provider.\\n`connection_id` identifies which SSO connection to sign in with.\\n`plan_limit` is present only on the `plan_limit_reached` error: which plan cap the\\nrequest would have exceeded, so a client can branch on it without parsing `message`.\"},\"PublicConditionGroupRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: And, Or.\"},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionRequest\"},{\"type\":\"null\"}]}}},\"description\":\"Request-side condition group, symmetric with PublicConditionGroupResponse.\"},\"PublicConditionGroupResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: And, Or.\"},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionResponse\"},{\"type\":\"null\"}]}}},\"description\":\"A condition group within a PublicTargetingRuleResponse. Maps 1:1 onto\\nConditionGroupDto. Operator is a bare wire string naming one of\\nthe `ConditionGroupOperator` members (`\\\"And\\\"`/`\\\"Or\\\"`) —\\ngroups are ANDed together at the rule level; within a group, its conditions combine using\\nthis operator.\"},\"PublicConditionRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"attribute\":{\"type\":[\"string\",\"null\"]},\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.\"},\"values\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"negate\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"Request-side condition, symmetric with PublicConditionResponse.\"},\"PublicConditionResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"attribute\":{\"type\":[\"string\",\"null\"]},\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.\"},\"values\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"negate\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"A single condition within a PublicConditionGroupResponse. Maps 1:1 onto\\nConditionDto. Operator is a bare wire string naming one of the\\n`OperatorType` members (e.g. `\\\"Equals\\\"`, `\\\"In\\\"`).\"},\"PublicConfiguredWeight\":{\"type\":[\"object\",\"null\"],\"properties\":{\"variationKey\":{\"type\":[\"string\",\"null\"],\"description\":\"The variation's key.\"},\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The variation's name, or null when the key no longer matches one of the flag's variations.\"},\"weight\":{\"type\":[\"integer\",\"null\"],\"description\":\"Percent of the rule's traffic.\"}},\"description\":\"A variation's configured share of a rollout rule.\"},\"PublicCopyFlagConfigRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"source\":{\"type\":[\"string\",\"null\"]},\"includeState\":{\"type\":[\"boolean\",\"null\"]},\"dryRun\":{\"type\":[\"boolean\",\"null\"]},\"expectedSourceETag\":{\"type\":[\"string\",\"null\"]},\"expectedTargetETag\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicCopyResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"changed\":{\"type\":[\"boolean\",\"null\"]},\"changedSections\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"before\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSnapshot\"},{\"type\":\"null\"}]},\"after\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSnapshot\"},{\"type\":\"null\"}]},\"sourceETag\":{\"type\":[\"string\",\"null\"]},\"targetETag\":{\"type\":[\"string\",\"null\"]},\"warnings\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicCopyWarning\"},{\"type\":\"null\"}]}}},\"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`.\"},\"PublicCopyWarning\":{\"type\":[\"object\",\"null\"],\"properties\":{\"code\":{\"type\":[\"string\",\"null\"]},\"message\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A non-blocking note about a copy.\"},\"PublicCreateEnvironmentRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's key.\"},\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display name.\"},\"color\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display color, or null.\"},\"sortOrder\":{\"type\":[\"integer\",\"null\"],\"description\":\"Position among the project's environments.\"},\"requireChangeReason\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above.\"},\"requireConfirmation\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API.\"}},\"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.\"},\"PublicCreateFeatureFlagRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Boolean, String, Number, Json.\"},\"description\":{\"type\":[\"string\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"initialVariations\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicCreateVariationDto\"},{\"type\":\"null\"}]}},\"clientSideVisible\":{\"type\":[\"boolean\",\"null\"]},\"expiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"ownerEmail\":{\"type\":[\"string\",\"null\"]},\"isPermanent\":{\"type\":[\"boolean\",\"null\"]}},\"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`).\"},\"PublicCreateFlagTriggerRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"action\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicCreateProjectRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `POST /api/v1/orgs/{org}/projects`. Named distinctly from the\\ndashboard's own `CreateProjectRequest` — both\\ncontrollers 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.\"},\"PublicCreateSdkKeyRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: ClientSide, ServerSide.\"}},\"description\":\"Request body for `POST /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys`.\\nType is a bare string (\\\"ClientSide\\\" or \\\"ServerSide\\\") — the controller parses it\\nagainst a NAME allowlist (not a bare TryParse``1(ReadOnlySpan{Char},Boolean,``0@), which would\\nsilently accept a numeric string like `\\\"0\\\"`) before dispatching. Named distinctly from\\nthe dashboard's own `CreateSdkKeyRequest` — both\\ncontrollers share one Swagger document, and an identical type name in either namespace throws\\na schemaId collision at `--export-openapi` time.\"},\"PublicCreateSdkKeyResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"lastFourCharacters\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: ClientSide, ServerSide.\"},\"name\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"warning\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Response body for a successful `POST .../sdk-keys`. The ONLY place the plaintext\\nKey is ever returned — PublicSdkKeyResponse (list/get) carries just\\n`LastFourCharacters`. Built directly from CreateSdkKeyResult rather than a\\nre-fetch (unlike `FeatureFlagsController.Create`'s re-fetch pattern) because the\\nplaintext key only ever exists on the create result — a subsequent\\nGetSdkKeyQuery can't recover it.\"},\"PublicCreateSegmentRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSegmentConditionDto\"},{\"type\":\"null\"}]}}},\"description\":\"Request body for `POST /api/v1/orgs/{org}/projects/{project}/segments`. Named distinctly\\nfrom the dashboard's own `CreateUserSegmentRequest` — see\\nPublicCreateEnvironmentRequest for the schemaId-collision rationale (both\\ncontrollers share one Swagger document).\"},\"PublicCreateTargetingRuleRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"description\":{\"type\":[\"string\",\"null\"]},\"variationId\":{\"type\":[\"string\",\"null\"]},\"rolloutPercentage\":{\"type\":[\"integer\",\"null\"]},\"userSegmentId\":{\"type\":[\"string\",\"null\"]},\"conditionGroups\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionGroupRequest\"},{\"type\":\"null\"}]}},\"bucketBy\":{\"type\":[\"string\",\"null\"],\"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`.\"}},\"description\":\"Request body for `POST .../rules`. The Application-side\\n`CreateTargetingRuleDto`/`CreateConditionGroupDto`/`CreateConditionDto` all take\\ntheir `Operator` as a bare string, re-parsed CASE-SENSITIVELY inside\\n`CreateTargetingRuleCommandHandler` — `FlagTargetingController`'s mapping helpers\\nvalidate every operator against the enum's member-name allowlist AND canonicalize the casing\\n(e.g. `\\\"in\\\"` → `\\\"In\\\"`) before building the command DTO, so a valid\\ncase-insensitive match never trips the handler's strict re-parse.\"},\"PublicCreateVariationDto\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"value\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A variation supplied at flag-creation time. Maps 1:1 onto\\nCreateVariationDto.\"},\"PublicCreateWebhookSubscriptionRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"url\":{\"type\":[\"string\",\"null\"]},\"provider\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: GenericHttp, Slack, Datadog, Grafana.\"},\"eventTypes\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"projectIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"environmentIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"credential\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicCreateWebhookSubscriptionResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"secret\":{\"type\":[\"string\",\"null\"]},\"warning\":{\"type\":[\"string\",\"null\"]}},\"description\":\"The created subscription's id and its signing secret. The secret is shown only here.\"},\"PublicDefaultFlagLifetimeImpact\":{\"type\":[\"object\",\"null\"],\"properties\":{\"newlyPastExpiry\":{\"type\":[\"integer\",\"null\"]},\"noLongerPastExpiry\":{\"type\":[\"integer\",\"null\"]}},\"description\":\"Response of `GET .../default-flag-lifetime/impact`: how many temporary flags with no expiry\\ndate of their own would newly be past expiry, and how many would stop being past it.\"},\"PublicEnvironmentResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's id.\"},\"key\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's key.\"},\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display name.\"},\"color\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display color, or null.\"},\"sortOrder\":{\"type\":[\"integer\",\"null\"],\"description\":\"Position among the project's environments.\"},\"requireChangeReason\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Require a change reason (X-Intent-Reason) on every change to flags in this environment. Business plan and above.\"},\"requireConfirmation\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Ask dashboard users to type the environment key before a change lands. Dashboard only; not enforced by the API.\"},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of an environment, returned by\\n`GET /api/v1/orgs/{org}/projects/{project}/environments` (list),\\n`GET .../environments/{env}` (detail), and the body of a successful create/update. Drops\\ninternal fields (e.g. `ProjectId` is implicit in the route) — mirrors\\n`ProjectResponse`'s minimal shape. Named `PublicEnvironmentResponse` rather than\\n`EnvironmentResponse` (unlike the sibling `ProjectResponse`, which didn't collide)\\nbecause the dashboard already has its own\\n`EnvironmentResponse` — see\\nPublicCreateEnvironmentRequest for the schemaId-collision rationale.\"},\"PublicEnvironmentResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicEnvironmentSideSummary\":{\"type\":[\"object\",\"null\"],\"properties\":{\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"ruleCount\":{\"type\":[\"integer\",\"null\"]},\"prerequisiteCount\":{\"type\":[\"integer\",\"null\"]}},\"description\":\"One side's headline numbers in a project-level comparison row.\"},\"PublicEnvironmentSnapshot\":{\"type\":[\"object\",\"null\"],\"properties\":{\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"defaultVariation\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicKeyedRef\"},{\"type\":\"null\"}]},\"strategy\":{\"type\":[\"string\",\"null\"]},\"rules\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSnapshotRule\"},{\"type\":\"null\"}]}},\"prerequisites\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicPrerequisiteDto\"},{\"type\":\"null\"}]}}},\"description\":\"A flag's configuration in one environment, as a comparison or copy result reports it.\"},\"PublicEvaluationSource\":{\"type\":[\"object\",\"null\"],\"properties\":{\"source\":{\"type\":[\"string\",\"null\"],\"description\":\"One of rule, fallthrough, off, prerequisite, error, notFound or unknown (an SDK that reports no reason, or evaluations recorded before sources were). Allowed values: rule, fallthrough, off, prerequisite, error, notFound, unknown.\"},\"ruleId\":{\"type\":[\"string\",\"null\"],\"description\":\"For a rule, its id (rules have no key). Null otherwise, or when the SDK didn't say which rule.\"},\"ruleLabel\":{\"type\":[\"string\",\"null\"],\"description\":\"For a live rule, its description or a generated label. Null otherwise.\"},\"ruleExists\":{\"type\":[\"boolean\",\"null\"],\"description\":\"False when the rule is no longer in the environment's targeting.\"},\"count\":{\"type\":[\"integer\",\"null\"],\"description\":\"Evaluations this source served.\"},\"share\":{\"type\":[\"number\",\"null\"],\"description\":\"Count as a fraction (0 to 1) of all sources' counts combined.\"},\"variations\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEvaluationVariation\"},{\"type\":\"null\"}]},\"description\":\"What this source served, with shares of this source's count.\"},\"rollout\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicRolloutCheck\"},{\"type\":\"null\"}]}},\"description\":\"The evaluations one part of the targeting served.\"},\"PublicEvaluationVariation\":{\"type\":[\"object\",\"null\"],\"properties\":{\"variationKey\":{\"type\":[\"string\",\"null\"],\"description\":\"The variation served, or null for evaluations recorded without one.\"},\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The variation's name, or null when the key no longer matches one of the flag's variations.\"},\"exists\":{\"type\":[\"boolean\",\"null\"],\"description\":\"False when the key no longer matches one of the flag's variations.\"},\"count\":{\"type\":[\"integer\",\"null\"],\"description\":\"Evaluations that served this variation.\"},\"share\":{\"type\":[\"number\",\"null\"],\"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.\"}},\"description\":\"One variation's evaluations.\"},\"PublicFlagComparison\":{\"type\":[\"object\",\"null\"],\"properties\":{\"flagKey\":{\"type\":[\"string\",\"null\"]},\"differences\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"base\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagComparisonSide\"},{\"type\":\"null\"}]},\"other\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagComparisonSide\"},{\"type\":\"null\"}]}},\"description\":\"Response of `GET .../flags/{flag}/compare`.\"},\"PublicFlagComparisonRow\":{\"type\":[\"object\",\"null\"],\"properties\":{\"flagKey\":{\"type\":[\"string\",\"null\"]},\"flagName\":{\"type\":[\"string\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"ownerUserId\":{\"type\":[\"string\",\"null\"]},\"status\":{\"type\":[\"string\",\"null\"]},\"differences\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"base\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSideSummary\"},{\"type\":\"null\"}]},\"other\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSideSummary\"},{\"type\":\"null\"}]}},\"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.\"},\"PublicFlagComparisonRowPagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagComparisonRow\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]}},\"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`).\"},\"PublicFlagComparisonSide\":{\"type\":[\"object\",\"null\"],\"properties\":{\"config\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagEnvConfigResponse\"},{\"type\":\"null\"}]},\"targeting\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicTargetingConfigResponse\"},{\"type\":\"null\"}]},\"snapshot\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEnvironmentSnapshot\"},{\"type\":\"null\"}]},\"ruleHasMatchInOther\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"boolean\",\"null\"]},\"description\":\"Per rule in evaluation order: whether the other environment has an equal rule.\"}},\"description\":\"One environment's side of a per-flag comparison.\"},\"PublicFlagEnvConfigResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"environmentId\":{\"type\":[\"string\",\"null\"]},\"environmentKey\":{\"type\":[\"string\",\"null\"]},\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"defaultVariationId\":{\"type\":[\"string\",\"null\"]},\"strategy\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: SingleVariation, PercentageRollout, TargetedRollout.\"},\"prerequisites\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicPrerequisiteDto\"},{\"type\":\"null\"}]}},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of a flag's config within a single environment, returned by\\n`GET .../flags/{flag}/environments` and `GET .../flags/{flag}/environments/{env}`.\\nDrops internal/dashboard-only fields present on FlagEnvironmentConfigurationDto\\n— Id (an internal row id, not part of the public\\ncontract; EnvironmentId is the addressable key), `FeatureFlagId` (implicit\\nin the route), the environment's name/color/sort-order (dashboard display fields — the public\\ncontract only needs the addressable EnvironmentKey), and `Staleness` (an\\ninternal analytics signal).\"},\"PublicFlagEvaluationsResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"environmentKey\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's key.\"},\"days\":{\"type\":[\"integer\",\"null\"],\"description\":\"The window requested: 7, 30 or 90.\"},\"fromUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"Start of the window: UTC midnight `days - 1` days ago, or the flag's creation day if later.\"},\"toUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"When the counts were read.\"},\"totalCount\":{\"type\":[\"integer\",\"null\"],\"description\":\"Evaluations in the window. Evaluation counts, not unique users.\"},\"lastEvaluatedAtUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"The last reported evaluation, or null if none was reported.\"},\"variations\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEvaluationVariation\"},{\"type\":\"null\"}]},\"description\":\"Evaluations per variation over the window.\"},\"sources\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicEvaluationSource\"},{\"type\":\"null\"}]},\"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.\"}},\"description\":\"What a flag served in one environment over the window, returned by\\n`GET .../flags/{flag}/environments/{env}/evaluations` (#4225). These are evaluation\\ncounts, not unique users. They come from SDK-reported events, so an environment whose SDKs\\nreport none reads zero: no evaluations reported, not necessarily no traffic. The public\\ncounterpart of FlagEvaluationAnalyticsDto, keyed by environment key instead of\\nid and without the dashboard's daily series.\"},\"PublicFlagListItem\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Boolean, String, Number, Json.\"},\"isArchived\":{\"type\":[\"boolean\",\"null\"]},\"clientSideVisible\":{\"type\":[\"boolean\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"expiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"owner\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagOwner\"},{\"type\":\"null\"}]},\"removalPrUrl\":{\"type\":[\"string\",\"null\"]},\"isPermanent\":{\"type\":[\"boolean\",\"null\"]},\"effectiveExpiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"expirySource\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Public list-item representation of a feature flag, returned by\\n`GET .../flags`. Narrower than PublicFlagResponse — drops\\nVariations (a summary-only shape upstream) and\\nStaleness, matching the \\\"list is narrower than detail\\\"\\nsplit already present on the Application-layer DTOs.\\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.\"},\"PublicFlagListItemPagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagListItem\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicFlagOwner\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"email\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A flag's owner as returned on flag reads. Null means the flag is unowned.\"},\"PublicFlagRemovalCandidate\":{\"type\":[\"object\",\"null\"],\"properties\":{\"key\":{\"type\":[\"string\",\"null\"]},\"reason\":{\"type\":[\"string\",\"null\"]},\"treatment\":{\"type\":[\"boolean\",\"null\"]},\"status\":{\"type\":[\"string\",\"null\"]},\"blockedBy\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}}},\"description\":\"One dead flag the Featureflip Flag Cleanup Action should remove, returned by\\n`GET .../flags/removal-candidates`. `Treatment` is the kill decision: true → keep the\\nflag's on-branch, false → keep the off-branch. `Status` is the flag's staleness tier\\n(`\\\"Stale\\\"` or `\\\"Dead\\\"`, never `\\\"Active\\\"`) — lets a caller distinguish the two when\\n`?staleness=stale` widens the response to include both tiers. This is the ONLY public\\nprojection of staleness — PublicFlagResponse and PublicFlagListItem\\nstill omit it by design. `BlockedBy` names the live flags that still list this one as a\\nprerequisite, sorted by key; while it is non-empty the flag cannot be archived\\n(`FLAG_HAS_DEPENDENTS`), so a caller should remove those dependents first.\"},\"PublicFlagRemovalCandidatePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagRemovalCandidate\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]}},\"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`).\"},\"PublicFlagResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Boolean, String, Number, Json.\"},\"isArchived\":{\"type\":[\"boolean\",\"null\"]},\"clientSideVisible\":{\"type\":[\"boolean\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"variations\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicVariationResponse\"},{\"type\":\"null\"}]}},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"expiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"owner\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagOwner\"},{\"type\":\"null\"}]},\"removalPrUrl\":{\"type\":[\"string\",\"null\"]},\"isPermanent\":{\"type\":[\"boolean\",\"null\"]},\"effectiveExpiresAtUtc\":{\"type\":[\"string\",\"null\"]},\"expirySource\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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.\"},\"PublicFlagTriggerResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"action\":{\"type\":[\"string\",\"null\"]},\"enabled\":{\"type\":[\"boolean\",\"null\"]},\"secretLastFour\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"lastFiredAt\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicFlagTriggerResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagTriggerResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]}},\"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`).\"},\"PublicFlagTriggerWithUrlResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"trigger\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicFlagTriggerResponse\"},{\"type\":\"null\"}]},\"url\":{\"type\":[\"string\",\"null\"]},\"endpoint\":{\"type\":[\"string\",\"null\"]},\"secret\":{\"type\":[\"string\",\"null\"]},\"warning\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicKeyedRef\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicPlanLimit\":{\"type\":[\"object\",\"null\"],\"properties\":{\"resource\":{\"type\":[\"string\",\"null\"]},\"plan\":{\"type\":[\"string\",\"null\"]},\"max\":{\"type\":[\"integer\",\"null\"]}},\"description\":\"The cap behind a `plan_limit_reached` error. `resource` is the capped collection\\n(`projects`, `environments`, `flags`, `webhooks`, `members`);\\n`plan` is the plan's wire name, as `GET /api/v1/orgs/{org}` returns it; `max` is\\nthe cap. The environment and flag caps are per project.\"},\"PublicPrerequisiteDto\":{\"type\":[\"object\",\"null\"],\"properties\":{\"prerequisiteFlagKey\":{\"type\":[\"string\",\"null\"]},\"expectedVariationKey\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A single prerequisite entry on a flag's per-environment config. Maps 1:1 onto\\nPrerequisiteDto (read side) and PrerequisiteInput (write side).\"},\"PublicPutTargetingRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"rules\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicCreateTargetingRuleRequest\"},{\"type\":\"null\"}]}}},\"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.\"},\"PublicRampStep\":{\"type\":[\"object\",\"null\"],\"properties\":{\"percent\":{\"type\":[\"integer\",\"null\"]},\"holdMinutes\":{\"type\":[\"integer\",\"null\"]}},\"description\":\"One rung of a rollout ramp: the percentage served, then how long it holds before the next rung.\"},\"PublicReorderRulesRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"ruleIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}}},\"description\":\"Request body for `PUT .../rules/reorder`. Must include every existing rule id exactly\\nonce — `ReorderTargetingRulesCommandHandler` rejects duplicate, omitted, or unknown rule\\nids with `BadRequestException`, surfaced as an HTTP 400 `bad_request` envelope\\ncarrying the handler's message.\"},\"PublicRolloutCheck\":{\"type\":[\"object\",\"null\"],\"properties\":{\"configured\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConfiguredWeight\"},{\"type\":\"null\"}]},\"description\":\"The configured weights, in percent; they sum to 100.\"},\"splitChangedAtUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"The last time the split may have changed (the rule was edited, or a variation was added), or null if it hasn't since the rule was created. A change inside the window mixes two splits.\"},\"evaluable\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Whether the check could run. See NotEvaluableReason when false.\"},\"pValue\":{\"type\":[\"number\",\"null\"],\"description\":\"The sample-ratio test's p-value, or null when not evaluable.\"},\"flagged\":{\"type\":[\"boolean\",\"null\"],\"description\":\"True only when the served split is both unlikely under the configured weights (p < 0.001) and at least 2 percentage points off for some variation.\"},\"notEvaluableReason\":{\"type\":[\"string\",\"null\"],\"description\":\"too-little-traffic or unexpected-variation when the check couldn't run; null otherwise. Allowed values: too-little-traffic, unexpected-variation.\"},\"bucketBy\":{\"type\":[\"string\",\"null\"],\"description\":\"The context attribute the rollout hashes on. A context without it skips the rule, even at 100%.\"},\"unreached\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicRolloutUnreached\"},{\"type\":\"null\"}]}},\"description\":\"A percentage-rollout rule's configured split beside a sample-ratio check of what it served.\"},\"PublicRolloutRampResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"ruleId\":{\"type\":[\"string\",\"null\"]},\"isDefaultRule\":{\"type\":[\"boolean\",\"null\"]},\"targetVariationId\":{\"type\":[\"string\",\"null\"]},\"status\":{\"type\":[\"string\",\"null\"]},\"steps\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicRampStep\"},{\"type\":\"null\"}]}},\"currentStepIndex\":{\"type\":[\"integer\",\"null\"]},\"nextStepAt\":{\"type\":[\"string\",\"null\"]},\"pausedReason\":{\"type\":[\"string\",\"null\"]},\"pausedDetail\":{\"type\":[\"string\",\"null\"]},\"startedByName\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"completedAt\":{\"type\":[\"string\",\"null\"]},\"abortedAt\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicRolloutRampResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicRolloutRampResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]}},\"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`).\"},\"PublicRolloutUnreached\":{\"type\":[\"object\",\"null\"],\"properties\":{\"eligibleEvaluations\":{\"type\":[\"integer\",\"null\"],\"description\":\"Evaluations that reached the flag's rules or fallthrough since SinceUtc, while this rule served none.\"},\"sinceUtc\":{\"type\":[\"string\",\"null\"],\"description\":\"The window start, or the first UTC midnight after the rule last changed when that is later.\"}},\"description\":\"A live rollout rule that no evaluations reached.\"},\"PublicRotateWebhookSecretResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"secretId\":{\"type\":[\"string\",\"null\"]},\"secret\":{\"type\":[\"string\",\"null\"]},\"warning\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A newly added signing secret. The secret is shown only here.\"},\"PublicSdkKeyResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"type\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: ClientSide, ServerSide.\"},\"lastFourCharacters\":{\"type\":[\"string\",\"null\"]},\"isActive\":{\"type\":[\"boolean\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"lastUsedAt\":{\"type\":[\"string\",\"null\"]},\"revokedAt\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of an SDK key, returned by\\n`GET /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys` (list) and\\n`GET .../sdk-keys/{sdkKey}` (detail). Deliberately narrower than\\nSdkKeyDto — drops `RevokedBy` (an internal user id) and\\n`EnvironmentId` (implicit in the route), and carries no plaintext key field: only\\nLastFourCharacters is ever exposed once the key has been created. The plaintext\\nkey is a one-time value that appears solely in PublicCreateSdkKeyResponse.\"},\"PublicSdkKeyResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSdkKeyResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicSegmentConditionDto\":{\"type\":[\"object\",\"null\"],\"properties\":{\"attribute\":{\"type\":[\"string\",\"null\"]},\"operator\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Equals, NotEquals, Contains, NotContains, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, In, NotIn, MatchesRegex, StartsWith, EndsWith, Before, After, SemverEquals, SemverGreaterThan, SemverGreaterThanOrEqual, SemverLessThan, SemverLessThanOrEqual.\"},\"values\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"negate\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"A single targeting condition on a segment, used both as input (create/update) and output\\n(Conditions). Operator is a bare string on\\nboth sides of the wire — on write it's parsed to\\nOperatorType by `SegmentsController` (an unknown\\nvalue fails closed with a 400, never silently dropped or defaulted); on read it's mapped\\nstraight through from Operator, which is already a string.\"},\"PublicSegmentResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSegmentConditionDto\"},{\"type\":\"null\"}]}},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"Public representation of a user segment, returned by `GET .../segments`,\\n`GET .../segments/{segment}`, and the body of a successful create.\"},\"PublicSegmentResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSegmentResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"},\"PublicSetDefaultFlagLifetimeRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"days\":{\"type\":[\"integer\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/default-flag-lifetime`. `days`\\nis 1–3650, or an explicit null to remove the default. `days` is required: a body without it\\n(`{}`, or a misspelled field) is a `validation_failed` 400, never a removal, so a typo\\ncan't silently wipe the setting (#3788). A request with no body is rejected too.\"},\"PublicSetFlagExpiryRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"expiresAtUtc\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/expiry`. Expiry is a\\ndedicated sub-resource, deliberately NOT a field on PublicUpdateFeatureFlagRequest: that\\nPUT is a full replace, so a new nullable field there would let any client that doesn't know about\\nexpiry (the Terraform provider included) wipe it on every update. A bare date means the end of that\\nUTC day; a full timestamp is stored exactly.\"},\"PublicSetFlagOwnerRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"email\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/owner`. A dedicated\\nsub-resource for the same reason as expiry: the main flag PUT is a full replace, so an owner field\\nthere would let every client that doesn't know about owners wipe one. `email` must belong\\nto an active member of the organization (case-insensitive).\"},\"PublicSetFlagRemovalPrRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"url\":{\"type\":[\"string\",\"null\"]}},\"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}`).\"},\"PublicSnapshotRule\":{\"type\":[\"object\",\"null\"],\"properties\":{\"description\":{\"type\":[\"string\",\"null\"]},\"variation\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicKeyedRef\"},{\"type\":\"null\"}]},\"segment\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicKeyedRef\"},{\"type\":\"null\"}]},\"rolloutPercentage\":{\"type\":[\"integer\",\"null\"]},\"bucketBy\":{\"type\":[\"string\",\"null\"]},\"conditionGroups\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionGroupResponse\"},{\"type\":\"null\"}]}}},\"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.\"},\"PublicStartDefaultRuleRolloutRampRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"steps\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicRampStep\"},{\"type\":\"null\"}]}},\"variationId\":{\"type\":[\"string\",\"null\"]},\"bucketBy\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicStartRolloutRampRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"steps\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicRampStep\"},{\"type\":\"null\"}]}}},\"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.\"},\"PublicTargetingConfigResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"rules\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicTargetingRuleResponse\"},{\"type\":\"null\"}]}},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"The full targeting configuration for a flag in a single environment, returned by\\n`GET .../targeting`. Maps 1:1 onto TargetingConfigurationDto — including\\nits IsEnabled field, which reflects the parent\\n`FlagEnvironmentConfiguration.IsEnabled` (whether the flag is on in this environment at\\nall), not anything specific to targeting itself.\"},\"PublicTargetingRuleResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"priority\":{\"type\":[\"integer\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"variationId\":{\"type\":[\"string\",\"null\"]},\"rolloutPercentage\":{\"type\":[\"integer\",\"null\"]},\"bucketBy\":{\"type\":[\"string\",\"null\"],\"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.\"},\"userSegmentId\":{\"type\":[\"string\",\"null\"]},\"conditionGroups\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionGroupResponse\"},{\"type\":\"null\"}]}},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"A single targeting rule, returned by `GET .../rules/{ruleId}`,\\n`POST .../rules` (201 body), and nested within PublicTargetingConfigResponse.\\nMaps 1:1 onto TargetingRuleDto, dropping nothing — every field on the\\nApplication DTO is part of the public contract.\"},\"PublicTestWebhookSubscriptionResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"webhookEventId\":{\"type\":[\"string\",\"null\"]},\"webhookDeliveryId\":{\"type\":[\"string\",\"null\"]}},\"description\":\"The queued test event and its delivery. Poll the delivery log for the outcome.\"},\"PublicToggleFlagRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"enabled\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"Request body for `POST .../flags/{flag}/environments/{env}/toggle`. Named distinctly from\\nthe dashboard's own `ToggleFlagInEnvironmentRequest`\\n(which uses `IsEnabled`) — the public field is named Enabled per the phase-3c\\ncontract. Enabled is a NULLABLE `bool?` deliberately: a non-nullable value\\ntype would bind an omitted/empty body to `false` with no validation error (ASP.NET's\\nimplicit-required only covers non-nullable reference types, not value types), silently disabling\\nthe flag. The controller rejects a null Enabled with a `validation_failed` 400\\nso the intent is never ambiguous (#1806).\"},\"PublicUpdateEnvironmentRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display name.\"},\"color\":{\"type\":[\"string\",\"null\"],\"description\":\"The environment's display color, or null.\"},\"sortOrder\":{\"type\":[\"integer\",\"null\"],\"description\":\"Position among the project's environments.\"},\"requireChangeReason\":{\"type\":[\"boolean\",\"null\"],\"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.\"},\"requireConfirmation\":{\"type\":[\"boolean\",\"null\"],\"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.\"}},\"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`.\"},\"PublicUpdateFeatureFlagRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"tags\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"clientSideVisible\":{\"type\":[\"boolean\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}`. See\\nPublicCreateFeatureFlagRequest for why this is named distinctly from the\\ndashboard's `UpdateFeatureFlagRequest`. The flag's key and type are immutable via this\\nendpoint (mirrors `UpdateFeatureFlagCommand`, which has no `Key`/`Type`).\"},\"PublicUpdateFlagEnvConfigRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"defaultVariationId\":{\"type\":[\"string\",\"null\"]},\"strategy\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: SingleVariation, PercentageRollout, TargetedRollout.\"},\"prerequisites\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicPrerequisiteDto\"},{\"type\":\"null\"}]}}},\"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).\"},\"PublicUpdateFlagTriggerRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"enabled\":{\"type\":[\"boolean\",\"null\"]}},\"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.\"},\"PublicUpdateProjectRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}`. See\\nPublicCreateProjectRequest for why this is named distinctly from the\\ndashboard's `UpdateProjectRequest`.\"},\"PublicUpdateSdkKeyRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/environments/{env}/sdk-keys/{sdkKey}`.\\nType and key material are immutable via this endpoint (mirrors\\nUpdateSdkKeyCommand, which\\ncarries no `Type`).\"},\"PublicUpdateSegmentRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"conditions\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicSegmentConditionDto\"},{\"type\":\"null\"}]}}},\"description\":\"Request body for `PUT /api/v1/orgs/{org}/projects/{project}/segments/{segment}`. The\\nsegment's key is immutable via this endpoint (mirrors `UpdateUserSegmentCommand`, which\\ncarries no `Key`).\"},\"PublicUpdateTargetingRuleRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"description\":{\"type\":[\"string\",\"null\"]},\"variationId\":{\"type\":[\"string\",\"null\"]},\"rolloutPercentage\":{\"type\":[\"integer\",\"null\"]},\"userSegmentId\":{\"type\":[\"string\",\"null\"]},\"conditionGroups\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicConditionGroupRequest\"},{\"type\":\"null\"}]}},\"bucketBy\":{\"type\":[\"string\",\"null\"],\"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.\"}},\"description\":\"Request body for `PUT .../rules/{ruleId}`. Same shape as\\nPublicCreateTargetingRuleRequest — see its remarks on operator\\nvalidation/canonicalization, which applies identically here.\"},\"PublicUpdateVariationRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"value\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]}},\"description\":\"Request body for\\n`PUT /api/v1/orgs/{org}/projects/{project}/flags/{flag}/variations/{variationId}`. The\\nvariation's key is immutable via this endpoint (mirrors\\n`UpdateVariationCommand`, which\\ncarries no `Key`).\"},\"PublicUpdateWebhookSubscriptionRequest\":{\"type\":[\"object\",\"null\"],\"properties\":{\"name\":{\"type\":[\"string\",\"null\"]},\"url\":{\"type\":[\"string\",\"null\"]},\"eventTypes\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"projectIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"environmentIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"credential\":{\"type\":[\"string\",\"null\"]}},\"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.\"},\"PublicVariationResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"key\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"value\":{\"type\":[\"string\",\"null\"]},\"description\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"A single variation on a flag, as returned in Variations.\"},\"PublicWebhookDeliveryResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"webhookEventId\":{\"type\":[\"string\",\"null\"]},\"status\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: Pending, Succeeded, DeadLettered.\"},\"attemptCount\":{\"type\":[\"integer\",\"null\"]},\"nextAttemptAt\":{\"type\":[\"string\",\"null\"]},\"lastResponseStatusCode\":{\"type\":[\"integer\",\"null\"]},\"lastError\":{\"type\":[\"string\",\"null\"]},\"completedAt\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]}},\"description\":\"One delivery attempt record. `status` is `Pending` (awaiting its first attempt,\\nbacking off, or in flight), `Succeeded` or `DeadLettered`.\"},\"PublicWebhookDeliveryResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicWebhookDeliveryResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]}},\"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`).\"},\"PublicWebhookSecretResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"retiredAt\":{\"type\":[\"string\",\"null\"]}},\"description\":\"A signing secret's id and lifecycle. A secret with no `retiredAt` is active and signs every delivery.\"},\"PublicWebhookSubscriptionResponse\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":[\"string\",\"null\"]},\"name\":{\"type\":[\"string\",\"null\"]},\"url\":{\"type\":[\"string\",\"null\"]},\"provider\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed values: GenericHttp, Slack, Datadog, Grafana.\"},\"isEnabled\":{\"type\":[\"boolean\",\"null\"]},\"eventTypes\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"projectIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"environmentIds\":{\"type\":[\"array\",\"null\"],\"items\":{\"type\":[\"string\",\"null\"]}},\"consecutiveFailureCount\":{\"type\":[\"integer\",\"null\"]},\"autoDisabledAt\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":[\"string\",\"null\"]},\"updatedAt\":{\"type\":[\"string\",\"null\"]},\"secrets\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicWebhookSecretResponse\"},{\"type\":\"null\"}]}},\"overPlanLimit\":{\"type\":[\"boolean\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"description\":\"A webhook subscription. Never carries secret material: signing secrets are listed by id and\\nlifecycle only — the value itself is returned once, when it is created or rotated.\\n`overPlanLimit` is true when the organization has more subscriptions than its plan\\nallows, which happens after a downgrade. The oldest subscriptions up to the limit keep\\ndelivering. The rest receive nothing and cannot be re-enabled, tested or redelivered to until\\nthe plan is upgraded or older subscriptions are deleted.\"},\"PublicWebhookSubscriptionResponsePagedResult\":{\"type\":[\"object\",\"null\"],\"properties\":{\"items\":{\"type\":[\"array\",\"null\"],\"items\":{\"anyOf\":[{\"$ref\":\"#/$defs/PublicWebhookSubscriptionResponse\"},{\"type\":\"null\"}]}},\"next_cursor\":{\"type\":[\"string\",\"null\"]},\"_actions\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":{\"anyOf\":[{\"$ref\":\"#/$defs/ActionCapability\"},{\"type\":\"null\"}]},\"description\":\"Capability hints: which operations the authenticated caller may perform on this resource, each with allowed + optional reason. Computed from the caller's role and the resource's state. Injected at runtime; safe to ignore. Present only on top-level resource responses — nested occurrences (e.g. a rule inside a targeting-config response) do not carry it.\"}},\"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`).\"}}")
|
|
220
228
|
}, h = m.$defs, g = m.endpoints, _ = (e) => ({ type: [e, "null"] });
|
|
221
229
|
function v(e) {
|
|
222
230
|
if (!h[e]) throw Error(`no API schema named ${e}`);
|
|
@@ -1134,8 +1142,113 @@ function de(e, t) {
|
|
|
1134
1142
|
return e === "rotate" ? _(await t.api.request("POST", `${v}/rotate`, { reason: m }), ce) : (await t.api.request("DELETE", v, { reason: m }), d({ deleted: s }));
|
|
1135
1143
|
}));
|
|
1136
1144
|
}
|
|
1145
|
+
// src/tools/rollout-ramps.ts
|
|
1146
|
+
var W = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, G = "/api/v1/orgs/{org}/projects/{project}/flags/{flag}/environments/{env}", fe = `GET ${G}/ramps`, K = `GET ${G}/ramps/{rampId}`, pe = [["PLAN_FEATURE_UNAVAILABLE", "Starting a rollout ramp needs the Team plan or above. A ramp already running keeps running and can still be paused or aborted. An organization Owner can upgrade in Billing."], ["FEATURE_NOT_ENABLED", "Rollout ramps are not enabled for this organization yet. Nothing in the request is wrong, and retrying will not help until they are."]];
|
|
1147
|
+
function me(e) {
|
|
1148
|
+
if (!(e instanceof i)) return;
|
|
1149
|
+
let t = [e.envelope.message, ...Object.values(e.envelope.fields ?? {}).flat()].join("\n");
|
|
1150
|
+
return pe.find(([e]) => t.includes(e))?.[1];
|
|
1151
|
+
}
|
|
1152
|
+
async function q(e) {
|
|
1153
|
+
try {
|
|
1154
|
+
return await e();
|
|
1155
|
+
} catch (e) {
|
|
1156
|
+
let t = f(e), n = me(e);
|
|
1157
|
+
return n && (t.content[0].text += `\n${n}`), t;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
var J = (e, t, n) => f(/* @__PURE__ */ Error(`${e} must be an id, not "${t}". See ${n}.`)), he = n.object({
|
|
1161
|
+
percent: n.number().int().min(1).max(100).describe("Rollout percentage for this step, 1-100"),
|
|
1162
|
+
holdMinutes: n.number().int().min(0).describe("Minutes to hold at this step before the next one: 5 to 43200 (30 days); ignored on the last step")
|
|
1163
|
+
});
|
|
1164
|
+
function ge(e, t) {
|
|
1165
|
+
let r = (e, n, r) => `/api/v1/orgs/${o(t.org)}/projects/${o(e)}/flags/${o(n)}/environments/${o(r)}`;
|
|
1166
|
+
e.registerTool("list_rollout_ramps", {
|
|
1167
|
+
title: "List rollout ramps",
|
|
1168
|
+
description: "List a flag's rollout ramps in one environment (the active ones, newest first, then the ten most recently finished), or get one by passing ramp. A ramp raises a percentage rollout one step at a time on a timer. Each ramp shows its status (Running, Paused, Completed, Aborted), its steps, currentStepIndex, nextStepAt, and why it paused. A single ramp comes with an etag to pass as ifMatch to manage_rollout_ramp.",
|
|
1169
|
+
inputSchema: n.object({
|
|
1170
|
+
project: D,
|
|
1171
|
+
flag: O,
|
|
1172
|
+
environment: k,
|
|
1173
|
+
ramp: n.string().optional().describe("Ramp id: get just that ramp (with its etag) instead of listing"),
|
|
1174
|
+
...j
|
|
1175
|
+
}),
|
|
1176
|
+
outputSchema: T(y(fe), y(K)),
|
|
1177
|
+
annotations: { readOnlyHint: !0 }
|
|
1178
|
+
}, async ({ project: e, flag: n, environment: i, ramp: a, limit: s, cursor: c }) => q(async () => {
|
|
1179
|
+
let l = `${r(e, n, i)}/ramps`;
|
|
1180
|
+
return a === void 0 ? d(await t.api.request("GET", l, { query: {
|
|
1181
|
+
limit: s,
|
|
1182
|
+
cursor: c
|
|
1183
|
+
} })) : W.test(a) ? d(I(await t.api.requestWithEtag("GET", `${l}/${o(a)}`))) : J("ramp", a, "list_rollout_ramps");
|
|
1184
|
+
})), e.registerTool("manage_rollout_ramp", {
|
|
1185
|
+
title: "Start, pause, resume, advance, or abort a rollout ramp",
|
|
1186
|
+
description: "Manage a rollout ramp on a flag in one environment. A ramp raises a percentage rollout step by step: it applies the first step at once, then each next step when the previous hold runs out. Every step is an audited rule change that reaches SDKs over the stream. action=start needs rule + steps: rule is a targeting rule id (from get_targeting) whose rule serves a percentage rollout, or \"default\" for the default rule. Steps (1 to 20) must rise, the first not below the rule's current rollout. A default-rule ramp may name the variation to ramp to (variation id; needed when the default rule has no rollout yet) and bucketBy, and on reaching 100% makes that variation the default. The flag must be on in the environment. action=pause keeps the rest of the hold; action=resume continues from the rule as it stands now; action=advance applies the next step now and needs expectedStepIndex (the currentStepIndex you last saw); action=abort stops the ramp and leaves the rule at percent (0-100, at or below the current one). pause, resume, advance and abort need ramp and accept ifMatch. Editing the rule by hand or turning the flag off pauses a ramp. Starting needs the Team plan or above; every write needs a Member token.",
|
|
1187
|
+
inputSchema: n.object({
|
|
1188
|
+
action: n.enum([
|
|
1189
|
+
"start",
|
|
1190
|
+
"pause",
|
|
1191
|
+
"resume",
|
|
1192
|
+
"advance",
|
|
1193
|
+
"abort"
|
|
1194
|
+
]).describe("start needs rule + steps; the others need ramp"),
|
|
1195
|
+
project: D,
|
|
1196
|
+
flag: O,
|
|
1197
|
+
environment: k,
|
|
1198
|
+
rule: n.string().optional().describe("start only: the targeting rule id (see get_targeting), or \"default\" for the default rule"),
|
|
1199
|
+
steps: n.array(he).min(1).max(20).optional().describe("start only: the ladder, in rising order"),
|
|
1200
|
+
variation: n.string().optional().describe("start on rule=\"default\" only: the variation id to ramp to (see get_flag)"),
|
|
1201
|
+
bucketBy: n.string().optional().describe("start on rule=\"default\" only: the context attribute to bucket by (default: key)"),
|
|
1202
|
+
ramp: n.string().optional().describe("Ramp id (see list_rollout_ramps); required for every action but start"),
|
|
1203
|
+
expectedStepIndex: n.number().int().min(0).optional().describe("advance only (required): the currentStepIndex you last saw; a ramp that moved on is refused (409)"),
|
|
1204
|
+
percent: n.number().int().min(0).max(100).optional().describe("abort only (required): the rollout percentage to leave the rule at"),
|
|
1205
|
+
ifMatch: F("list_rollout_ramps with ramp"),
|
|
1206
|
+
reason: A,
|
|
1207
|
+
idempotency_key: n.string().optional().describe("Idempotency-Key header for start")
|
|
1208
|
+
}),
|
|
1209
|
+
outputSchema: C(K, { etag: P }),
|
|
1210
|
+
annotations: { destructiveHint: !0 }
|
|
1211
|
+
}, async ({ action: e, project: n, flag: i, environment: a, rule: s, steps: c, variation: l, bucketBy: u, ramp: p, expectedStepIndex: m, percent: h, ifMatch: g, reason: _, idempotency_key: v }) => q(async () => {
|
|
1212
|
+
let y = r(n, i, a);
|
|
1213
|
+
if (e === "start") {
|
|
1214
|
+
if (!s || !c) return f(/* @__PURE__ */ Error("action=start requires rule and steps"));
|
|
1215
|
+
let e = c.map(({ percent: e, holdMinutes: t }) => ({
|
|
1216
|
+
percent: e,
|
|
1217
|
+
holdMinutes: t
|
|
1218
|
+
}));
|
|
1219
|
+
return s === "default" ? d(I(await t.api.requestWithEtag("POST", `${y}/default-rule/ramp`, {
|
|
1220
|
+
body: {
|
|
1221
|
+
steps: e,
|
|
1222
|
+
variationId: l ?? null,
|
|
1223
|
+
bucketBy: u ?? null
|
|
1224
|
+
},
|
|
1225
|
+
idempotencyKey: v,
|
|
1226
|
+
reason: _
|
|
1227
|
+
}))) : l !== void 0 || u !== void 0 ? f(/* @__PURE__ */ Error("variation and bucketBy apply only to rule=\"default\"; a rule ramp keeps the rule's own")) : W.test(s) ? d(I(await t.api.requestWithEtag("POST", `${y}/rules/${o(s)}/ramp`, {
|
|
1228
|
+
body: { steps: e },
|
|
1229
|
+
idempotencyKey: v,
|
|
1230
|
+
reason: _
|
|
1231
|
+
}))) : J("rule", s, "get_targeting, or pass rule=\"default\"");
|
|
1232
|
+
}
|
|
1233
|
+
if (!p) return f(/* @__PURE__ */ Error(`action=${e} requires ramp (see list_rollout_ramps)`));
|
|
1234
|
+
if (!W.test(p)) return J("ramp", p, "list_rollout_ramps");
|
|
1235
|
+
let b;
|
|
1236
|
+
if (e === "advance") {
|
|
1237
|
+
if (m === void 0) return f(/* @__PURE__ */ Error("action=advance requires expectedStepIndex: the currentStepIndex from list_rollout_ramps"));
|
|
1238
|
+
b = { expectedStepIndex: m };
|
|
1239
|
+
} else if (e === "abort") {
|
|
1240
|
+
if (h === void 0) return f(/* @__PURE__ */ Error("action=abort requires percent: the rollout percentage to leave the rule at"));
|
|
1241
|
+
b = { percent: h };
|
|
1242
|
+
}
|
|
1243
|
+
return d(I(await t.api.requestWithEtag("POST", `${y}/ramps/${o(p)}/${e}`, {
|
|
1244
|
+
body: b,
|
|
1245
|
+
ifMatch: g,
|
|
1246
|
+
reason: _
|
|
1247
|
+
})));
|
|
1248
|
+
}));
|
|
1249
|
+
}
|
|
1137
1250
|
// src/tools/environment-comparison.ts
|
|
1138
|
-
function
|
|
1251
|
+
function _e(e, t) {
|
|
1139
1252
|
let r = (e) => `/api/v1/orgs/${o(t.org)}/projects/${o(e)}`;
|
|
1140
1253
|
e.registerTool("compare_environments", {
|
|
1141
1254
|
title: "Compare environments",
|
|
@@ -1200,12 +1313,12 @@ function fe(e, t) {
|
|
|
1200
1313
|
});
|
|
1201
1314
|
}
|
|
1202
1315
|
// src/tools/targeting.ts
|
|
1203
|
-
var
|
|
1316
|
+
var ve = n.object({
|
|
1204
1317
|
attribute: n.string().describe("Context attribute name, e.g. plan, country, user_id"),
|
|
1205
1318
|
operator: n.string().describe("OperatorType member name, case-sensitive — e.g. Equals, NotEquals, Contains, In, GreaterThan"),
|
|
1206
1319
|
values: n.array(n.string()),
|
|
1207
1320
|
negate: n.boolean().optional().default(!1)
|
|
1208
|
-
}),
|
|
1321
|
+
}), Y = n.object({
|
|
1209
1322
|
description: n.string().optional(),
|
|
1210
1323
|
variationId: n.string().optional().describe("Variation served when the rule matches"),
|
|
1211
1324
|
rolloutPercentage: n.number().int().min(0).max(100).optional().describe("Percentage rollout for this rule"),
|
|
@@ -1213,13 +1326,13 @@ var pe = n.object({
|
|
|
1213
1326
|
userSegmentId: n.string().optional().describe("Match users in this segment (see list_segments)"),
|
|
1214
1327
|
conditionGroups: n.array(n.object({
|
|
1215
1328
|
operator: n.enum(["And", "Or"]).describe("How conditions inside this group combine"),
|
|
1216
|
-
conditions: n.array(
|
|
1329
|
+
conditions: n.array(ve)
|
|
1217
1330
|
})).optional().describe("Groups are ANDed together; conditions inside a group use the group operator")
|
|
1218
|
-
}),
|
|
1331
|
+
}), ye = (e) => ({
|
|
1219
1332
|
...e,
|
|
1220
1333
|
conditionGroups: e.conditionGroups ?? []
|
|
1221
1334
|
});
|
|
1222
|
-
function
|
|
1335
|
+
function be(e, t) {
|
|
1223
1336
|
let r = (e, n, r) => `/api/v1/orgs/${o(t.org)}/projects/${o(e)}/flags/${o(n)}/environments/${o(r)}/targeting`;
|
|
1224
1337
|
e.registerTool("get_targeting", {
|
|
1225
1338
|
title: "Get targeting rules",
|
|
@@ -1238,7 +1351,7 @@ function me(e, t) {
|
|
|
1238
1351
|
project: D,
|
|
1239
1352
|
flag: O,
|
|
1240
1353
|
environment: k,
|
|
1241
|
-
rules: n.array(
|
|
1354
|
+
rules: n.array(Y).describe("The complete ordered rule list; rules left out are deleted"),
|
|
1242
1355
|
ifMatch: F("get_targeting"),
|
|
1243
1356
|
reason: A
|
|
1244
1357
|
}),
|
|
@@ -1257,7 +1370,7 @@ function me(e, t) {
|
|
|
1257
1370
|
annotations: { destructiveHint: !0 }
|
|
1258
1371
|
}, async ({ project: e, flag: n, environment: i, rules: a, ifMatch: o, reason: s }) => p(async () => {
|
|
1259
1372
|
let { etag: c } = await t.api.requestWithEtag("PUT", r(e, n, i), {
|
|
1260
|
-
body: { rules: a.map(
|
|
1373
|
+
body: { rules: a.map(ye) },
|
|
1261
1374
|
ifMatch: o,
|
|
1262
1375
|
reason: s
|
|
1263
1376
|
});
|
|
@@ -1284,7 +1397,7 @@ function me(e, t) {
|
|
|
1284
1397
|
flag: O,
|
|
1285
1398
|
environment: k,
|
|
1286
1399
|
ruleId: n.string().optional().describe("Rule id from get_targeting; required for update and remove"),
|
|
1287
|
-
rule:
|
|
1400
|
+
rule: Y.optional().describe("Rule fields; required for add and update"),
|
|
1288
1401
|
ruleIds: n.array(n.string()).optional().describe("Every rule id exactly once, in evaluation order; required for reorder"),
|
|
1289
1402
|
reason: A
|
|
1290
1403
|
}),
|
|
@@ -1299,7 +1412,7 @@ function me(e, t) {
|
|
|
1299
1412
|
}, async ({ action: e, project: n, flag: r, environment: i, ruleId: a, rule: s, ruleIds: c, reason: l }) => p(async () => {
|
|
1300
1413
|
let u = `/api/v1/orgs/${o(t.org)}/projects/${o(n)}/flags/${o(r)}/environments/${o(i)}/rules`;
|
|
1301
1414
|
if (e === "add") return s ? d(await t.api.request("POST", u, {
|
|
1302
|
-
body:
|
|
1415
|
+
body: ye(s),
|
|
1303
1416
|
reason: l
|
|
1304
1417
|
})) : f(/* @__PURE__ */ Error("action=add requires rule"));
|
|
1305
1418
|
if (e === "reorder") return c ? (await t.api.request("PUT", `${u}/reorder`, {
|
|
@@ -1339,7 +1452,7 @@ function me(e, t) {
|
|
|
1339
1452
|
}));
|
|
1340
1453
|
}
|
|
1341
1454
|
// src/tools/variations.ts
|
|
1342
|
-
function
|
|
1455
|
+
function xe(e, t) {
|
|
1343
1456
|
e.registerTool("manage_variation", {
|
|
1344
1457
|
title: "Add, update, or remove a variation",
|
|
1345
1458
|
description: "Manage a flag's variations. action=add requires key + value; action=update/remove require variationId (get ids via get_flag). Removing a variation fails with VARIATION_HAS_DEPENDENTS if other flags depend on it.",
|
|
@@ -1387,8 +1500,8 @@ function he(e, t) {
|
|
|
1387
1500
|
}));
|
|
1388
1501
|
}
|
|
1389
1502
|
// src/tools/webhooks.ts
|
|
1390
|
-
var
|
|
1391
|
-
function
|
|
1503
|
+
var Se = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, X = "Requires an Admin token. A 404 on every webhook call means webhooks are not enabled for the organization.";
|
|
1504
|
+
function Ce(e) {
|
|
1392
1505
|
let t;
|
|
1393
1506
|
try {
|
|
1394
1507
|
t = new URL(e);
|
|
@@ -1397,13 +1510,13 @@ function J(e) {
|
|
|
1397
1510
|
}
|
|
1398
1511
|
return t.protocol === "https:" && t.port === "" && !t.username && !t.password && t.hostname === "hooks.slack.com" && t.pathname.startsWith("/services/");
|
|
1399
1512
|
}
|
|
1400
|
-
var
|
|
1401
|
-
function
|
|
1513
|
+
var we = "url is a Slack incoming webhook URL. Slack rejects the generic JSON payload, so every delivery would fail. Create the subscription with provider: \"Slack\" instead.";
|
|
1514
|
+
function Te(e, t) {
|
|
1402
1515
|
let r = `/api/v1/orgs/${o(t.org)}/webhooks`, i = (e) => `${r}/${o(e)}`;
|
|
1403
1516
|
async function a(e) {
|
|
1404
1517
|
let n = [];
|
|
1405
1518
|
for (let r of e) {
|
|
1406
|
-
if (
|
|
1519
|
+
if (Se.test(r)) {
|
|
1407
1520
|
n.push(r);
|
|
1408
1521
|
continue;
|
|
1409
1522
|
}
|
|
@@ -1415,7 +1528,7 @@ function ge(e, t) {
|
|
|
1415
1528
|
}
|
|
1416
1529
|
async function s(e) {
|
|
1417
1530
|
let n = e.map((e) => {
|
|
1418
|
-
if (
|
|
1531
|
+
if (Se.test(e)) return { id: e };
|
|
1419
1532
|
let t = e.indexOf("/"), n = e.slice(0, t), r = e.slice(t + 1);
|
|
1420
1533
|
if (t < 0 || !n || !r) throw Error(`Environment "${e}" needs its project: pass "<project>/<environment>", e.g. "web/production", or the environment's id.`);
|
|
1421
1534
|
return {
|
|
@@ -1436,7 +1549,7 @@ function ge(e, t) {
|
|
|
1436
1549
|
}
|
|
1437
1550
|
e.registerTool("list_webhooks", {
|
|
1438
1551
|
title: "List webhook subscriptions",
|
|
1439
|
-
description: "List the organization's outbound webhook subscriptions (url, event/project/environment filters, enabled state, failure count, signing secret ids — never secret values), plus availableEventTypes: the event types a subscription can filter on. Empty filter lists mean \"all\". Paginated via cursor. " +
|
|
1552
|
+
description: "List the organization's outbound webhook subscriptions (url, event/project/environment filters, enabled state, failure count, signing secret ids — never secret values), plus availableEventTypes: the event types a subscription can filter on. Empty filter lists mean \"all\". Paginated via cursor. " + X,
|
|
1440
1553
|
inputSchema: n.object({ ...j }),
|
|
1441
1554
|
outputSchema: C("GET /api/v1/orgs/{org}/webhooks", { availableEventTypes: {
|
|
1442
1555
|
type: "array",
|
|
@@ -1455,7 +1568,7 @@ function ge(e, t) {
|
|
|
1455
1568
|
});
|
|
1456
1569
|
})), e.registerTool("list_webhook_deliveries", {
|
|
1457
1570
|
title: "List webhook deliveries",
|
|
1458
|
-
description: "List one subscription's delivery attempts, most recent first. status is Pending (awaiting an attempt, backing off, or in flight), Succeeded or DeadLettered; lastResponseStatusCode and lastError explain a failure. Paginated via cursor. " +
|
|
1571
|
+
description: "List one subscription's delivery attempts, most recent first. status is Pending (awaiting an attempt, backing off, or in flight), Succeeded or DeadLettered; lastResponseStatusCode and lastError explain a failure. Paginated via cursor. " + X,
|
|
1459
1572
|
inputSchema: n.object({
|
|
1460
1573
|
id: n.string().describe("Subscription id (from list_webhooks)"),
|
|
1461
1574
|
...j
|
|
@@ -1467,7 +1580,7 @@ function ge(e, t) {
|
|
|
1467
1580
|
cursor: r
|
|
1468
1581
|
} })))), e.registerTool("manage_webhook", {
|
|
1469
1582
|
title: "Create, update, or delete a webhook subscription, or rotate its secret",
|
|
1470
|
-
description: "action=create requires name + url and returns the signing secret. action=update/delete/rotate_secret/retire_secret require id. provider (create only, default GenericHttp) is the destination type: a Slack incoming webhook URL (https://hooks.slack.com/services/...) needs provider: \"Slack\", which posts readable channel messages; provider: \"Datadog\" sends Events API change events (url is your site's https://event-management-intake.<site>/api/v2/events) and provider: \"Grafana\" creates annotations (url is https://<your grafana>/api/annotations). Datadog and Grafana require credential (a Datadog API key, or a Grafana service account token that can create annotations, e.g. Editor); GenericHttp and Slack refuse it. credential is write-only: stored encrypted, never returned, and never echoed in this tool's output. A subscription's provider can never change. update changes only the fields you pass and keeps the rest; pass an empty list to widen that filter back to \"all\". projects take project keys or ids; environments take \"<project>/<environment>\" keys (e.g. \"web/production\") or ids. eventTypes come from list_webhooks → availableEventTypes. create and rotate_secret return a secret that is NEVER shown again: relay it to the user verbatim so they can store it (for a GenericHttp subscription only: Slack, Datadog and Grafana never check it, so skip it there). Slack doesn't verify signatures, so a Slack subscription's secret is unused and rotate_secret is refused for one, and so are Datadog and Grafana ones, which authenticate with credential instead. On update, omit credential to keep the stored one; changing the url of a Datadog or Grafana subscription requires sending credential again. rotate_secret adds a new active secret while the old one keeps signing; retire_secret (secretId from list_webhooks) removes one and is refused for the last active secret. A project-restricted service token must list at least one project, all in its scope. " +
|
|
1583
|
+
description: "action=create requires name + url and returns the signing secret. action=update/delete/rotate_secret/retire_secret require id. provider (create only, default GenericHttp) is the destination type: a Slack incoming webhook URL (https://hooks.slack.com/services/...) needs provider: \"Slack\", which posts readable channel messages; provider: \"Datadog\" sends Events API change events (url is your site's https://event-management-intake.<site>/api/v2/events) and provider: \"Grafana\" creates annotations (url is https://<your grafana>/api/annotations). Datadog and Grafana require credential (a Datadog API key, or a Grafana service account token that can create annotations, e.g. Editor); GenericHttp and Slack refuse it. credential is write-only: stored encrypted, never returned, and never echoed in this tool's output. A subscription's provider can never change. update changes only the fields you pass and keeps the rest; pass an empty list to widen that filter back to \"all\". projects take project keys or ids; environments take \"<project>/<environment>\" keys (e.g. \"web/production\") or ids. eventTypes come from list_webhooks → availableEventTypes. create and rotate_secret return a secret that is NEVER shown again: relay it to the user verbatim so they can store it (for a GenericHttp subscription only: Slack, Datadog and Grafana never check it, so skip it there). Slack doesn't verify signatures, so a Slack subscription's secret is unused and rotate_secret is refused for one, and so are Datadog and Grafana ones, which authenticate with credential instead. On update, omit credential to keep the stored one; changing the url of a Datadog or Grafana subscription requires sending credential again. rotate_secret adds a new active secret while the old one keeps signing; retire_secret (secretId from list_webhooks) removes one and is refused for the last active secret. A project-restricted service token must list at least one project, all in its scope. " + X,
|
|
1471
1584
|
inputSchema: n.object({
|
|
1472
1585
|
action: n.enum([
|
|
1473
1586
|
"create",
|
|
@@ -1521,7 +1634,7 @@ function ge(e, t) {
|
|
|
1521
1634
|
if (e === "create") {
|
|
1522
1635
|
if (!c || !l) return f(/* @__PURE__ */ Error("action=create requires name and url"));
|
|
1523
1636
|
let e = u ?? "GenericHttp";
|
|
1524
|
-
if (e === "GenericHttp" &&
|
|
1637
|
+
if (e === "GenericHttp" && Ce(l)) return f(/* @__PURE__ */ Error(we));
|
|
1525
1638
|
let n = _ && await s(_), i = g && await a(g);
|
|
1526
1639
|
return d(await t.api.request("POST", r, {
|
|
1527
1640
|
body: {
|
|
@@ -1539,7 +1652,7 @@ function ge(e, t) {
|
|
|
1539
1652
|
if (!n) return f(/* @__PURE__ */ Error(`action=${e} requires id (see list_webhooks)`));
|
|
1540
1653
|
if (e === "update") {
|
|
1541
1654
|
let e = _ && await s(_), r = g && await a(g), { data: o, etag: u } = await t.api.requestWithEtag("GET", i(n));
|
|
1542
|
-
if (l && o.provider === "GenericHttp" &&
|
|
1655
|
+
if (l && o.provider === "GenericHttp" && Ce(l)) return f(/* @__PURE__ */ Error(`${we} This subscription is GenericHttp, and a provider can't change.`));
|
|
1543
1656
|
let p = {
|
|
1544
1657
|
name: c ?? o.name,
|
|
1545
1658
|
url: l ?? o.url,
|
|
@@ -1571,7 +1684,7 @@ function ge(e, t) {
|
|
|
1571
1684
|
})) : f(/* @__PURE__ */ Error("action=retire_secret requires secretId (see list_webhooks)"));
|
|
1572
1685
|
})), e.registerTool("deliver_webhook", {
|
|
1573
1686
|
title: "Send a test event or redeliver",
|
|
1574
|
-
description: "action=test queues one synthetic flag.toggled event to this subscription alone; action=redeliver (deliveryId from list_webhook_deliveries) re-sends a finished delivery, restarting its retry schedule. Delivery is asynchronous: read list_webhook_deliveries for the outcome. Both are refused for a disabled subscription, and redeliver for a delivery that is still Pending. " +
|
|
1687
|
+
description: "action=test queues one synthetic flag.toggled event to this subscription alone; action=redeliver (deliveryId from list_webhook_deliveries) re-sends a finished delivery, restarting its retry schedule. Delivery is asynchronous: read list_webhook_deliveries for the outcome. Both are refused for a disabled subscription, and redeliver for a delivery that is still Pending. " + X,
|
|
1575
1688
|
inputSchema: n.object({
|
|
1576
1689
|
action: n.enum(["test", "redeliver"]).describe("test sends a synthetic event; redeliver re-sends deliveryId"),
|
|
1577
1690
|
id: n.string().describe("Subscription id (from list_webhooks)"),
|
|
@@ -1591,11 +1704,11 @@ function ge(e, t) {
|
|
|
1591
1704
|
})) : f(/* @__PURE__ */ Error("action=redeliver requires deliveryId (see list_webhook_deliveries)"))));
|
|
1592
1705
|
}
|
|
1593
1706
|
// src/tools/workflows/stale-flags.ts
|
|
1594
|
-
var
|
|
1595
|
-
function
|
|
1707
|
+
var Ee = n.enum(["dead", "stale"]), Z = 50;
|
|
1708
|
+
function De(e, t) {
|
|
1596
1709
|
e.registerTool("find_stale_flags", {
|
|
1597
1710
|
title: "Find stale flags",
|
|
1598
|
-
description: `Find flags that look ready for code cleanup: not updated in N days AND either enabled in every environment (verify rollout is complete before removing — per-rule percentage ramps are not inspected) or disabled in every environment (dead — remove flag and code path). A flag whose expiry date (set_flag_expiry) has passed is always a candidate, however recently it was edited; if it is on in some environments and off in others its reason is past-expiry, meaning the owner has to decide which way to fold it. A project can give its temporary flags a default lifetime, so a flag with no date of its own can still be past expiry. Every result carries expiresAtUtc (the date set on the flag), effectiveExpiresAtUtc (the date in effect, from the flag or its project default), expirySource (explicit, project-default, or null), expired and owner (null when unowned). Flags marked permanent (kill switches, ops toggles) are never listed. Pass owner to see one person's stale flags ("me" for your own) or "none" for the unowned ones. Every result also carries blockedBy: the live flags that still list it as a prerequisite, which have to be removed and archived before it ([] when none). blockedBy is null when the server did not classify the flag as a removal candidate, which means unknown, not unblocked. A flag that other live flags list as a prerequisite has to be removed LAST, dependents first: archiving it while a dependent still names it makes that dependent fail its prerequisite check and serve its off variation, so archive_flag refuses it with FLAG_HAS_DEPENDENTS. Checks at most ${
|
|
1711
|
+
description: `Find flags that look ready for code cleanup: not updated in N days AND either enabled in every environment (verify rollout is complete before removing — per-rule percentage ramps are not inspected) or disabled in every environment (dead — remove flag and code path). A flag whose expiry date (set_flag_expiry) has passed is always a candidate, however recently it was edited; if it is on in some environments and off in others its reason is past-expiry, meaning the owner has to decide which way to fold it. A project can give its temporary flags a default lifetime, so a flag with no date of its own can still be past expiry. Every result carries expiresAtUtc (the date set on the flag), effectiveExpiresAtUtc (the date in effect, from the flag or its project default), expirySource (explicit, project-default, or null), expired and owner (null when unowned). Flags marked permanent (kill switches, ops toggles) are never listed. Pass owner to see one person's stale flags ("me" for your own) or "none" for the unowned ones. Every result also carries blockedBy: the live flags that still list it as a prerequisite, which have to be removed and archived before it ([] when none). blockedBy is null when the server did not classify the flag as a removal candidate, which means unknown, not unblocked. A flag that other live flags list as a prerequisite has to be removed LAST, dependents first: archiving it while a dependent still names it makes that dependent fail its prerequisite check and serve its off variation, so archive_flag refuses it with FLAG_HAS_DEPENDENTS. Checks at most ${Z} candidates per call, expired flags first.`,
|
|
1599
1712
|
inputSchema: n.object({
|
|
1600
1713
|
project: D,
|
|
1601
1714
|
days: n.number().int().min(1).optional().default(30).describe("Minimum age in days since last update"),
|
|
@@ -1659,7 +1772,7 @@ function ve(e, t) {
|
|
|
1659
1772
|
m.push(...(e.items ?? []).filter((e) => !!e.key && !!e.name && !!e.updatedAt && (new Date(e.updatedAt).getTime() < l || p(e)))), h = e.next_cursor ?? void 0;
|
|
1660
1773
|
} while (h);
|
|
1661
1774
|
m.sort((e, t) => Number(p(t)) - Number(p(e)));
|
|
1662
|
-
let g = m.length >
|
|
1775
|
+
let g = m.length > Z, _ = m.slice(0, Z), v = [];
|
|
1663
1776
|
for (let e of _) {
|
|
1664
1777
|
let n = await t.api.request("GET", `${s}/${o(e.key)}/environments`);
|
|
1665
1778
|
if (n.length === 0) continue;
|
|
@@ -1701,7 +1814,7 @@ function ve(e, t) {
|
|
|
1701
1814
|
...a ? { owner: a } : {},
|
|
1702
1815
|
checked: _.length,
|
|
1703
1816
|
truncated: g,
|
|
1704
|
-
...g ? { note: `Only the first ${
|
|
1817
|
+
...g ? { note: `Only the first ${Z} of ${m.length} candidates were checked.` } : {},
|
|
1705
1818
|
...y ? { blockedByNote: y } : {},
|
|
1706
1819
|
stale: v
|
|
1707
1820
|
});
|
|
@@ -1710,7 +1823,7 @@ function ve(e, t) {
|
|
|
1710
1823
|
description: "List the flags the server is confident can be removed from code, the same list the Featureflip flag cleanup GitHub Action works from. Each item has key, reason, status (Dead or Stale), treatment (true = keep the on-branch, false = keep the off-branch) and blockedBy: the live flags that still list it as a prerequisite. Only remove a flag whose blockedBy is empty. A flag that other live flags list as a prerequisite has to be removed LAST, dependents first: archiving it while a dependent still names it makes that dependent fail its prerequisite check and serve its off variation, so archive_flag refuses it with FLAG_HAS_DEPENDENTS. staleness \"dead\" (the default) returns only dead flags, \"stale\" adds stale ones. Paginated via cursor.",
|
|
1711
1824
|
inputSchema: n.object({
|
|
1712
1825
|
project: D,
|
|
1713
|
-
staleness:
|
|
1826
|
+
staleness: Ee.optional().describe("Minimum staleness tier: dead (default) or stale"),
|
|
1714
1827
|
...j
|
|
1715
1828
|
}),
|
|
1716
1829
|
outputSchema: S("GET /api/v1/orgs/{org}/projects/{project}/flags/removal-candidates"),
|
|
@@ -1718,7 +1831,7 @@ function ve(e, t) {
|
|
|
1718
1831
|
}, async ({ project: e, ...n }) => p(async () => d(await t.api.request("GET", `/api/v1/orgs/${o(t.org)}/projects/${o(e)}/flags/removal-candidates`, { query: n }))));
|
|
1719
1832
|
}
|
|
1720
1833
|
// src/tools/workflows/snippets.ts
|
|
1721
|
-
var
|
|
1834
|
+
var Oe = [
|
|
1722
1835
|
"js",
|
|
1723
1836
|
"node",
|
|
1724
1837
|
"browser",
|
|
@@ -1730,16 +1843,16 @@ var ye = [
|
|
|
1730
1843
|
"php",
|
|
1731
1844
|
"ruby",
|
|
1732
1845
|
"swift"
|
|
1733
|
-
],
|
|
1846
|
+
], ke = [
|
|
1734
1847
|
"browser",
|
|
1735
1848
|
"react",
|
|
1736
1849
|
"swift"
|
|
1737
1850
|
];
|
|
1738
|
-
function
|
|
1739
|
-
return
|
|
1851
|
+
function Ae(e) {
|
|
1852
|
+
return ke.includes(e);
|
|
1740
1853
|
}
|
|
1741
|
-
var
|
|
1742
|
-
function
|
|
1854
|
+
var Q = "Uses a SERVER-side SDK key (Featureflip dashboard → environment → SDK keys).", $ = "Uses a CLIENT-side SDK key (safe to ship to browsers/apps).";
|
|
1855
|
+
function je(e, t) {
|
|
1743
1856
|
switch (e) {
|
|
1744
1857
|
case "js": return {
|
|
1745
1858
|
install: "npm install @featureflip/js",
|
|
@@ -1754,7 +1867,7 @@ const enabled = client.boolVariation('${t}', { user_id: userId }, false);
|
|
|
1754
1867
|
if (enabled) {
|
|
1755
1868
|
// new code path
|
|
1756
1869
|
}`,
|
|
1757
|
-
notes:
|
|
1870
|
+
notes: Q
|
|
1758
1871
|
};
|
|
1759
1872
|
case "node": return {
|
|
1760
1873
|
install: "npm install @featureflip/node",
|
|
@@ -1765,7 +1878,7 @@ const enabled = client.boolVariation('${t}', { user_id: userId }, false);
|
|
|
1765
1878
|
if (enabled) {
|
|
1766
1879
|
// new code path
|
|
1767
1880
|
}`,
|
|
1768
|
-
notes:
|
|
1881
|
+
notes: Q
|
|
1769
1882
|
};
|
|
1770
1883
|
case "browser": return {
|
|
1771
1884
|
install: "npm install @featureflip/browser",
|
|
@@ -1777,7 +1890,7 @@ const enabled = client.boolVariation('${t}', false);
|
|
|
1777
1890
|
if (enabled) {
|
|
1778
1891
|
// new code path
|
|
1779
1892
|
}`,
|
|
1780
|
-
notes:
|
|
1893
|
+
notes: $
|
|
1781
1894
|
};
|
|
1782
1895
|
case "react": return {
|
|
1783
1896
|
install: "npm install @featureflip/react @featureflip/browser",
|
|
@@ -1790,7 +1903,7 @@ function MyComponent() {
|
|
|
1790
1903
|
const enabled = useFeatureFlag('${t}', false);
|
|
1791
1904
|
return enabled ? <NewExperience /> : <CurrentExperience />;
|
|
1792
1905
|
}`,
|
|
1793
|
-
notes:
|
|
1906
|
+
notes: $
|
|
1794
1907
|
};
|
|
1795
1908
|
case "python": return {
|
|
1796
1909
|
install: "pip install featureflip",
|
|
@@ -1801,7 +1914,7 @@ enabled = client.variation("${t}", {"user_id": user_id}, default=False)
|
|
|
1801
1914
|
if enabled:
|
|
1802
1915
|
# new code path
|
|
1803
1916
|
...`,
|
|
1804
|
-
notes:
|
|
1917
|
+
notes: Q
|
|
1805
1918
|
};
|
|
1806
1919
|
case "csharp": return {
|
|
1807
1920
|
install: "dotnet add package Featureflip.Client",
|
|
@@ -1814,7 +1927,7 @@ if (enabled)
|
|
|
1814
1927
|
{
|
|
1815
1928
|
// new code path
|
|
1816
1929
|
}`,
|
|
1817
|
-
notes:
|
|
1930
|
+
notes: Q
|
|
1818
1931
|
};
|
|
1819
1932
|
case "java": return {
|
|
1820
1933
|
install: "implementation 'io.featureflip:featureflip-java:2.0.0'",
|
|
@@ -1828,7 +1941,7 @@ boolean enabled = client.boolVariation("${t}",
|
|
|
1828
1941
|
if (enabled) {
|
|
1829
1942
|
// new code path
|
|
1830
1943
|
}`,
|
|
1831
|
-
notes:
|
|
1944
|
+
notes: Q
|
|
1832
1945
|
};
|
|
1833
1946
|
case "go": return {
|
|
1834
1947
|
install: "go get github.com/canopy-labs/featureflip-go/v2",
|
|
@@ -1844,7 +1957,7 @@ ctx := featureflip.EvaluationContext{UserID: userID}
|
|
|
1844
1957
|
if client.BoolVariation("${t}", ctx, false) {
|
|
1845
1958
|
// new code path
|
|
1846
1959
|
}`,
|
|
1847
|
-
notes:
|
|
1960
|
+
notes: Q
|
|
1848
1961
|
};
|
|
1849
1962
|
case "php": return {
|
|
1850
1963
|
install: "composer require featureflip/featureflip-php",
|
|
@@ -1859,7 +1972,7 @@ $enabled = $client->boolVariation('${t}', ['user_id' => $userId], false);
|
|
|
1859
1972
|
if ($enabled) {
|
|
1860
1973
|
// new code path
|
|
1861
1974
|
}`,
|
|
1862
|
-
notes:
|
|
1975
|
+
notes: Q + " Requires PSR-16 cache and PSR-18 HTTP implementations."
|
|
1863
1976
|
};
|
|
1864
1977
|
case "ruby": return {
|
|
1865
1978
|
install: "gem \"featureflip\"",
|
|
@@ -1870,7 +1983,7 @@ enabled = client.bool_variation("${t}", { "user_id" => user_id }, false)
|
|
|
1870
1983
|
if enabled
|
|
1871
1984
|
# new code path
|
|
1872
1985
|
end`,
|
|
1873
|
-
notes:
|
|
1986
|
+
notes: Q
|
|
1874
1987
|
};
|
|
1875
1988
|
case "swift": return {
|
|
1876
1989
|
install: ".package(url: \"https://github.com/canopy-labs/featureflip-swift\", from: \"2.0.0\")",
|
|
@@ -1883,12 +1996,12 @@ let enabled = client.boolVariation("${t}", default: false)
|
|
|
1883
1996
|
if enabled {
|
|
1884
1997
|
// new code path
|
|
1885
1998
|
}`,
|
|
1886
|
-
notes:
|
|
1999
|
+
notes: $
|
|
1887
2000
|
};
|
|
1888
2001
|
}
|
|
1889
2002
|
}
|
|
1890
2003
|
// src/tools/workflows/wrap-feature.ts
|
|
1891
|
-
function
|
|
2004
|
+
function Me(e, t) {
|
|
1892
2005
|
e.registerTool("wrap_feature", {
|
|
1893
2006
|
title: "Wrap a feature in a new flag",
|
|
1894
2007
|
description: "Create a Boolean feature flag and get back the SDK code snippet to guard the new code path with it. Returns the snippet only — apply the edit yourself. The flag starts DISABLED in every environment; enable it with toggle_flag when ready.",
|
|
@@ -1898,7 +2011,7 @@ function Ce(e, t) {
|
|
|
1898
2011
|
name: n.string().optional().describe("Display name; defaults to the key"),
|
|
1899
2012
|
description: n.string().optional().describe("What this flag guards"),
|
|
1900
2013
|
tags: n.array(n.string()).optional().describe("Tags for filtering, e.g. team or area"),
|
|
1901
|
-
language: n.enum(
|
|
2014
|
+
language: n.enum(Oe).describe("SDK language of the codebase being edited"),
|
|
1902
2015
|
idempotency_key: n.string().optional().describe("Idempotency-Key header for safe retries")
|
|
1903
2016
|
}),
|
|
1904
2017
|
outputSchema: w({
|
|
@@ -1927,10 +2040,10 @@ function Ce(e, t) {
|
|
|
1927
2040
|
type: "Boolean",
|
|
1928
2041
|
description: i,
|
|
1929
2042
|
tags: a,
|
|
1930
|
-
...
|
|
2043
|
+
...Ae(s) ? { clientSideVisible: !0 } : {}
|
|
1931
2044
|
},
|
|
1932
2045
|
idempotencyKey: c
|
|
1933
|
-
}), u =
|
|
2046
|
+
}), u = je(s, n);
|
|
1934
2047
|
return d({
|
|
1935
2048
|
flag: l,
|
|
1936
2049
|
integration: {
|
|
@@ -1948,16 +2061,16 @@ function Ce(e, t) {
|
|
|
1948
2061
|
}));
|
|
1949
2062
|
}
|
|
1950
2063
|
// src/server.ts
|
|
1951
|
-
function
|
|
2064
|
+
function Ne(t) {
|
|
1952
2065
|
let n = new e({
|
|
1953
2066
|
name: "featureflip",
|
|
1954
2067
|
version: r
|
|
1955
2068
|
});
|
|
1956
|
-
return ee(n, t), te(n, t), ne(n, t), re(n, t), ie(n, t), oe(n, t), de(n, t),
|
|
2069
|
+
return ee(n, t), te(n, t), ne(n, t), re(n, t), ie(n, t), oe(n, t), de(n, t), ge(n, t), _e(n, t), be(n, t), xe(n, t), Te(n, t), De(n, t), Me(n, t), n;
|
|
1957
2070
|
}
|
|
1958
2071
|
// src/config.ts
|
|
1959
|
-
var
|
|
1960
|
-
function
|
|
2072
|
+
var Pe = "FEATUREFLIP_TOKEN is required. Create one in the Featureflip dashboard — Settings → API Tokens (personal token, ffp_...) or Organization Settings → Service Tokens (ffs_...) — and set it in your MCP client config.";
|
|
2073
|
+
function Fe(e = process.env) {
|
|
1961
2074
|
let t = e.FEATUREFLIP_TOKEN?.trim();
|
|
1962
2075
|
return t ? {
|
|
1963
2076
|
token: t,
|
|
@@ -1965,13 +2078,13 @@ function Te(e = process.env) {
|
|
|
1965
2078
|
org: e.FEATUREFLIP_ORG?.trim() || void 0
|
|
1966
2079
|
} : null;
|
|
1967
2080
|
}
|
|
1968
|
-
function
|
|
1969
|
-
let t =
|
|
1970
|
-
if (!t) throw Error(
|
|
2081
|
+
function Ie(e = process.env) {
|
|
2082
|
+
let t = Fe(e);
|
|
2083
|
+
if (!t) throw Error(Pe);
|
|
1971
2084
|
return t;
|
|
1972
2085
|
}
|
|
1973
2086
|
// src/org.ts
|
|
1974
|
-
async function
|
|
2087
|
+
async function Le(e, t) {
|
|
1975
2088
|
if (t) return t;
|
|
1976
2089
|
let n = (await e.request("GET", "/api/v1/orgs", { query: { limit: 100 } })).items ?? [];
|
|
1977
2090
|
if (n.length === 1) {
|
|
@@ -1981,4 +2094,4 @@ async function De(e, t) {
|
|
|
1981
2094
|
}
|
|
1982
2095
|
throw n.length === 0 ? Error("The token can see no organizations. Check the token in the Featureflip dashboard.") : Error(`The token can see ${n.length} organizations — set FEATUREFLIP_ORG to one of: ` + n.map((e) => e.slug ?? "?").join(", "));
|
|
1983
2096
|
}
|
|
1984
|
-
export {
|
|
2097
|
+
export { Ne as a, r as c, Fe as i, Pe as n, i as o, Ie as r, u as s, Le as t };
|