@devcycle/cli 6.0.1 → 6.1.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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/api/apiClient.js +3 -3
- package/dist/api/apiClient.js.map +1 -1
- package/dist/api/features.js +2 -2
- package/dist/api/schemas.js +23 -27
- package/dist/api/schemas.js.map +1 -1
- package/dist/api/{zodClient.js → zodClientAPI.js} +188 -1070
- package/dist/api/zodClientAPI.js.map +1 -0
- package/dist/api/zodSchemas.js +1406 -0
- package/dist/api/zodSchemas.js.map +1 -0
- package/dist/auth/ApiAuth.js +1 -1
- package/dist/auth/ApiAuth.js.map +1 -1
- package/dist/auth/TokenCache.js +2 -2
- package/dist/auth/TokenCache.js.map +1 -1
- package/dist/auth/utils/getTokenPayload.js +1 -1
- package/dist/auth/utils/getTokenPayload.js.map +1 -1
- package/dist/commands/authCommand.js.map +1 -1
- package/dist/commands/base.js.map +1 -1
- package/dist/commands/cleanup/index.js.map +1 -1
- package/dist/commands/environments/list.js.map +1 -1
- package/dist/commands/keys/get.js +1 -3
- package/dist/commands/keys/get.js.map +1 -1
- package/dist/commands/overrides/get.js.map +1 -1
- package/dist/commands/projects/get.js +2 -2
- package/dist/commands/projects/get.js.map +1 -1
- package/dist/commands/projects/list.js.map +1 -1
- package/dist/commands/projects/select.js.map +1 -1
- package/dist/commands/targeting/update.js +0 -1
- package/dist/commands/targeting/update.js.map +1 -1
- package/dist/commands/updateCommand.js.map +1 -1
- package/dist/commands/variables/create.js +2 -2
- package/dist/commands/variables/create.js.map +1 -1
- package/dist/commands/variables/list.js.map +1 -1
- package/dist/flags/var-alias/index.js +1 -1
- package/dist/flags/var-alias/index.js.map +1 -1
- package/dist/mcp/server.js +11 -0
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/customPropertiesTools.js +1 -0
- package/dist/mcp/tools/customPropertiesTools.js.map +1 -1
- package/dist/mcp/tools/environmentTools.js +41 -30
- package/dist/mcp/tools/environmentTools.js.map +1 -1
- package/dist/mcp/tools/featureTools.js +36 -158
- package/dist/mcp/tools/featureTools.js.map +1 -1
- package/dist/mcp/tools/index.js +8 -6
- package/dist/mcp/tools/index.js.map +1 -1
- package/dist/mcp/tools/installGuides.generated.js +36 -0
- package/dist/mcp/tools/installGuides.generated.js.map +1 -0
- package/dist/mcp/tools/installTools.js +35 -0
- package/dist/mcp/tools/installTools.js.map +1 -0
- package/dist/mcp/tools/localProjectTools.js +6 -2
- package/dist/mcp/tools/localProjectTools.js.map +1 -1
- package/dist/mcp/tools/projectTools.js +22 -15
- package/dist/mcp/tools/projectTools.js.map +1 -1
- package/dist/mcp/tools/resultsTools.js +3 -1
- package/dist/mcp/tools/resultsTools.js.map +1 -1
- package/dist/mcp/tools/selfTargetingTools.js +8 -3
- package/dist/mcp/tools/selfTargetingTools.js.map +1 -1
- package/dist/mcp/tools/variableTools.js +3 -2
- package/dist/mcp/tools/variableTools.js.map +1 -1
- package/dist/mcp/types.js +169 -223
- package/dist/mcp/types.js.map +1 -1
- package/dist/mcp/utils/github.js +26 -0
- package/dist/mcp/utils/github.js.map +1 -0
- package/dist/ui/prompts/environmentPrompts.js +0 -1
- package/dist/ui/prompts/environmentPrompts.js.map +1 -1
- package/dist/ui/prompts/featurePrompts.js +0 -1
- package/dist/ui/prompts/featurePrompts.js.map +1 -1
- package/dist/ui/prompts/listPrompts/targetingListPrompt.js.map +1 -1
- package/dist/ui/prompts/listPrompts/variationsListPrompt.js.map +1 -1
- package/dist/ui/prompts/targetingPrompts.js +1 -1
- package/dist/ui/prompts/targetingPrompts.js.map +1 -1
- package/dist/ui/prompts/variablePrompts.js +1 -2
- package/dist/ui/prompts/variablePrompts.js.map +1 -1
- package/dist/ui/targetingTree.js +2 -4
- package/dist/ui/targetingTree.js.map +1 -1
- package/dist/ui/togglebot.js +0 -1
- package/dist/ui/togglebot.js.map +1 -1
- package/dist/utils/audiences/index.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +18 -6
- package/dist/api/apiClient.d.ts +0 -5292
- package/dist/api/apiClient.d.ts.map +0 -1
- package/dist/api/audiences.d.ts +0 -57
- package/dist/api/audiences.d.ts.map +0 -1
- package/dist/api/common.d.ts +0 -7
- package/dist/api/common.d.ts.map +0 -1
- package/dist/api/customProperties.d.ts +0 -78
- package/dist/api/customProperties.d.ts.map +0 -1
- package/dist/api/environments.d.ts +0 -139
- package/dist/api/environments.d.ts.map +0 -1
- package/dist/api/features.d.ts +0 -23
- package/dist/api/features.d.ts.map +0 -1
- package/dist/api/members.d.ts +0 -8
- package/dist/api/members.d.ts.map +0 -1
- package/dist/api/organizations.d.ts +0 -7
- package/dist/api/organizations.d.ts.map +0 -1
- package/dist/api/overrides.d.ts +0 -19
- package/dist/api/overrides.d.ts.map +0 -1
- package/dist/api/projects.d.ts +0 -154
- package/dist/api/projects.d.ts.map +0 -1
- package/dist/api/results.d.ts +0 -23
- package/dist/api/results.d.ts.map +0 -1
- package/dist/api/schemas.d.ts +0 -2387
- package/dist/api/schemas.d.ts.map +0 -1
- package/dist/api/targeting.d.ts +0 -340
- package/dist/api/targeting.d.ts.map +0 -1
- package/dist/api/userProfile.d.ts +0 -20
- package/dist/api/userProfile.d.ts.map +0 -1
- package/dist/api/variables.d.ts +0 -132
- package/dist/api/variables.d.ts.map +0 -1
- package/dist/api/variations.d.ts +0 -158
- package/dist/api/variations.d.ts.map +0 -1
- package/dist/api/zodClient.d.ts +0 -65412
- package/dist/api/zodClient.d.ts.map +0 -1
- package/dist/api/zodClient.js.map +0 -1
- package/dist/auth/ApiAuth.d.ts +0 -22
- package/dist/auth/ApiAuth.d.ts.map +0 -1
- package/dist/auth/SSOAuth.d.ts +0 -34
- package/dist/auth/SSOAuth.d.ts.map +0 -1
- package/dist/auth/TokenCache.d.ts +0 -8
- package/dist/auth/TokenCache.d.ts.map +0 -1
- package/dist/auth/config.d.ts +0 -16
- package/dist/auth/config.d.ts.map +0 -1
- package/dist/auth/utils/getOrgIdFromToken.d.ts +0 -2
- package/dist/auth/utils/getOrgIdFromToken.d.ts.map +0 -1
- package/dist/auth/utils/getTokenExpiry.d.ts +0 -2
- package/dist/auth/utils/getTokenExpiry.d.ts.map +0 -1
- package/dist/auth/utils/getTokenPayload.d.ts +0 -8
- package/dist/auth/utils/getTokenPayload.d.ts.map +0 -1
- package/dist/auth/utils/index.d.ts +0 -5
- package/dist/auth/utils/index.d.ts.map +0 -1
- package/dist/auth/utils/shouldRefreshToken.d.ts +0 -2
- package/dist/auth/utils/shouldRefreshToken.d.ts.map +0 -1
- package/dist/commands/alias/add.d.ts +0 -22
- package/dist/commands/alias/add.d.ts.map +0 -1
- package/dist/commands/authCommand.d.ts +0 -30
- package/dist/commands/authCommand.d.ts.map +0 -1
- package/dist/commands/base.d.ts +0 -59
- package/dist/commands/base.d.ts.map +0 -1
- package/dist/commands/cleanup/index.d.ts +0 -29
- package/dist/commands/cleanup/index.d.ts.map +0 -1
- package/dist/commands/createCommand.d.ts +0 -21
- package/dist/commands/createCommand.d.ts.map +0 -1
- package/dist/commands/diff/index.d.ts +0 -43
- package/dist/commands/diff/index.d.ts.map +0 -1
- package/dist/commands/environments/create.d.ts +0 -29
- package/dist/commands/environments/create.d.ts.map +0 -1
- package/dist/commands/environments/get.d.ts +0 -26
- package/dist/commands/environments/get.d.ts.map +0 -1
- package/dist/commands/environments/list.d.ts +0 -8
- package/dist/commands/environments/list.d.ts.map +0 -1
- package/dist/commands/environments/update.d.ts +0 -24
- package/dist/commands/environments/update.d.ts.map +0 -1
- package/dist/commands/features/create.d.ts +0 -28
- package/dist/commands/features/create.d.ts.map +0 -1
- package/dist/commands/features/delete.d.ts +0 -11
- package/dist/commands/features/delete.d.ts.map +0 -1
- package/dist/commands/features/get.d.ts +0 -29
- package/dist/commands/features/get.d.ts.map +0 -1
- package/dist/commands/features/list.d.ts +0 -24
- package/dist/commands/features/list.d.ts.map +0 -1
- package/dist/commands/features/update.d.ts +0 -27
- package/dist/commands/features/update.d.ts.map +0 -1
- package/dist/commands/generate/types.d.ts +0 -55
- package/dist/commands/generate/types.d.ts.map +0 -1
- package/dist/commands/getCommand.d.ts +0 -19
- package/dist/commands/getCommand.d.ts.map +0 -1
- package/dist/commands/identity/get.d.ts +0 -8
- package/dist/commands/identity/get.d.ts.map +0 -1
- package/dist/commands/identity/update.d.ts +0 -29
- package/dist/commands/identity/update.d.ts.map +0 -1
- package/dist/commands/keys/get.d.ts +0 -25
- package/dist/commands/keys/get.d.ts.map +0 -1
- package/dist/commands/login/again.d.ts +0 -9
- package/dist/commands/login/again.d.ts.map +0 -1
- package/dist/commands/login/sso.d.ts +0 -9
- package/dist/commands/login/sso.d.ts.map +0 -1
- package/dist/commands/logout/index.d.ts +0 -8
- package/dist/commands/logout/index.d.ts.map +0 -1
- package/dist/commands/organizations/get.d.ts +0 -8
- package/dist/commands/organizations/get.d.ts.map +0 -1
- package/dist/commands/organizations/list.d.ts +0 -9
- package/dist/commands/organizations/list.d.ts.map +0 -1
- package/dist/commands/organizations/select.d.ts +0 -8
- package/dist/commands/organizations/select.d.ts.map +0 -1
- package/dist/commands/overrides/clear.d.ts +0 -25
- package/dist/commands/overrides/clear.d.ts.map +0 -1
- package/dist/commands/overrides/get.d.ts +0 -34
- package/dist/commands/overrides/get.d.ts.map +0 -1
- package/dist/commands/overrides/list.d.ts +0 -31
- package/dist/commands/overrides/list.d.ts.map +0 -1
- package/dist/commands/overrides/update.d.ts +0 -25
- package/dist/commands/overrides/update.d.ts.map +0 -1
- package/dist/commands/projects/create.d.ts +0 -23
- package/dist/commands/projects/create.d.ts.map +0 -1
- package/dist/commands/projects/current.d.ts +0 -7
- package/dist/commands/projects/current.d.ts.map +0 -1
- package/dist/commands/projects/get.d.ts +0 -22
- package/dist/commands/projects/get.d.ts.map +0 -1
- package/dist/commands/projects/list.d.ts +0 -9
- package/dist/commands/projects/list.d.ts.map +0 -1
- package/dist/commands/projects/select.d.ts +0 -10
- package/dist/commands/projects/select.d.ts.map +0 -1
- package/dist/commands/repo/init.d.ts +0 -10
- package/dist/commands/repo/init.d.ts.map +0 -1
- package/dist/commands/status/index.d.ts +0 -8
- package/dist/commands/status/index.d.ts.map +0 -1
- package/dist/commands/targeting/disable.d.ts +0 -25
- package/dist/commands/targeting/disable.d.ts.map +0 -1
- package/dist/commands/targeting/enable.d.ts +0 -25
- package/dist/commands/targeting/enable.d.ts.map +0 -1
- package/dist/commands/targeting/get.d.ts +0 -36
- package/dist/commands/targeting/get.d.ts.map +0 -1
- package/dist/commands/targeting/update.d.ts +0 -30
- package/dist/commands/targeting/update.d.ts.map +0 -1
- package/dist/commands/updateCommand.d.ts +0 -7
- package/dist/commands/updateCommand.d.ts.map +0 -1
- package/dist/commands/updateCommandWithCommonProperties.d.ts +0 -20
- package/dist/commands/updateCommandWithCommonProperties.d.ts.map +0 -1
- package/dist/commands/usages/index.d.ts +0 -34
- package/dist/commands/usages/index.d.ts.map +0 -1
- package/dist/commands/variables/create.d.ts +0 -26
- package/dist/commands/variables/create.d.ts.map +0 -1
- package/dist/commands/variables/get.d.ts +0 -29
- package/dist/commands/variables/get.d.ts.map +0 -1
- package/dist/commands/variables/list.d.ts +0 -23
- package/dist/commands/variables/list.d.ts.map +0 -1
- package/dist/commands/variables/update.d.ts +0 -22
- package/dist/commands/variables/update.d.ts.map +0 -1
- package/dist/commands/variations/create.d.ts +0 -27
- package/dist/commands/variations/create.d.ts.map +0 -1
- package/dist/commands/variations/get.d.ts +0 -11
- package/dist/commands/variations/get.d.ts.map +0 -1
- package/dist/commands/variations/list.d.ts +0 -12
- package/dist/commands/variations/list.d.ts.map +0 -1
- package/dist/commands/variations/update.d.ts +0 -28
- package/dist/commands/variations/update.d.ts.map +0 -1
- package/dist/commands/wink.d.ts +0 -6
- package/dist/commands/wink.d.ts.map +0 -1
- package/dist/flags/client-name/index.d.ts +0 -5
- package/dist/flags/client-name/index.d.ts.map +0 -1
- package/dist/flags/match-pattern/index.d.ts +0 -5
- package/dist/flags/match-pattern/index.d.ts.map +0 -1
- package/dist/flags/show-regex/index.d.ts +0 -4
- package/dist/flags/show-regex/index.d.ts.map +0 -1
- package/dist/flags/var-alias/index.d.ts +0 -7
- package/dist/flags/var-alias/index.d.ts.map +0 -1
- package/dist/help.d.ts +0 -13
- package/dist/help.d.ts.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/mcp/api/interface.d.ts +0 -125
- package/dist/mcp/api/interface.d.ts.map +0 -1
- package/dist/mcp/index.d.ts +0 -3
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/server.d.ts +0 -29
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/tools/customPropertiesTools.d.ts +0 -90
- package/dist/mcp/tools/customPropertiesTools.d.ts.map +0 -1
- package/dist/mcp/tools/environmentTools.d.ts +0 -146
- package/dist/mcp/tools/environmentTools.d.ts.map +0 -1
- package/dist/mcp/tools/featureTools.d.ts +0 -1096
- package/dist/mcp/tools/featureTools.d.ts.map +0 -1
- package/dist/mcp/tools/index.d.ts +0 -12
- package/dist/mcp/tools/index.d.ts.map +0 -1
- package/dist/mcp/tools/localProjectTools.d.ts +0 -51
- package/dist/mcp/tools/localProjectTools.d.ts.map +0 -1
- package/dist/mcp/tools/projectTools.d.ts +0 -156
- package/dist/mcp/tools/projectTools.d.ts.map +0 -1
- package/dist/mcp/tools/resultsTools.d.ts +0 -35
- package/dist/mcp/tools/resultsTools.d.ts.map +0 -1
- package/dist/mcp/tools/selfTargetingTools.d.ts +0 -67
- package/dist/mcp/tools/selfTargetingTools.d.ts.map +0 -1
- package/dist/mcp/tools/variableTools.d.ts +0 -96
- package/dist/mcp/tools/variableTools.d.ts.map +0 -1
- package/dist/mcp/types.d.ts +0 -2080
- package/dist/mcp/types.d.ts.map +0 -1
- package/dist/mcp/utils/api.d.ts +0 -26
- package/dist/mcp/utils/api.d.ts.map +0 -1
- package/dist/mcp/utils/auth.d.ts +0 -26
- package/dist/mcp/utils/auth.d.ts.map +0 -1
- package/dist/mcp/utils/dashboardLinks.d.ts +0 -29
- package/dist/mcp/utils/dashboardLinks.d.ts.map +0 -1
- package/dist/mcp/utils/errorHandling.d.ts +0 -9
- package/dist/mcp/utils/errorHandling.d.ts.map +0 -1
- package/dist/mcp/utils/headers.d.ts +0 -13
- package/dist/mcp/utils/headers.d.ts.map +0 -1
- package/dist/mcp/utils/projectFormatting.d.ts +0 -29
- package/dist/mcp/utils/projectFormatting.d.ts.map +0 -1
- package/dist/types/configFile.d.ts +0 -32
- package/dist/types/configFile.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +0 -1
- package/dist/ui/autocomplete.d.ts +0 -4
- package/dist/ui/autocomplete.d.ts.map +0 -1
- package/dist/ui/constants/colors.d.ts +0 -7
- package/dist/ui/constants/colors.d.ts.map +0 -1
- package/dist/ui/promptForOrganization.d.ts +0 -3
- package/dist/ui/promptForOrganization.d.ts.map +0 -1
- package/dist/ui/promptForProject.d.ts +0 -3
- package/dist/ui/promptForProject.d.ts.map +0 -1
- package/dist/ui/prompts/commonPrompts.d.ts +0 -16
- package/dist/ui/prompts/commonPrompts.d.ts.map +0 -1
- package/dist/ui/prompts/environmentPrompts.d.ts +0 -29
- package/dist/ui/prompts/environmentPrompts.d.ts.map +0 -1
- package/dist/ui/prompts/featurePrompts.d.ts +0 -42
- package/dist/ui/prompts/featurePrompts.d.ts.map +0 -1
- package/dist/ui/prompts/identityPrompts.d.ts +0 -5
- package/dist/ui/prompts/identityPrompts.d.ts.map +0 -1
- package/dist/ui/prompts/index.d.ts +0 -7
- package/dist/ui/prompts/index.d.ts.map +0 -1
- package/dist/ui/prompts/listPrompts/filterListPrompt.d.ts +0 -18
- package/dist/ui/prompts/listPrompts/filterListPrompt.d.ts.map +0 -1
- package/dist/ui/prompts/listPrompts/listOptionsPrompt.d.ts +0 -70
- package/dist/ui/prompts/listPrompts/listOptionsPrompt.d.ts.map +0 -1
- package/dist/ui/prompts/listPrompts/promptOptions.d.ts +0 -25
- package/dist/ui/prompts/listPrompts/promptOptions.d.ts.map +0 -1
- package/dist/ui/prompts/listPrompts/targetingListPrompt.d.ts +0 -97
- package/dist/ui/prompts/listPrompts/targetingListPrompt.d.ts.map +0 -1
- package/dist/ui/prompts/listPrompts/variablesListPrompt.d.ts +0 -48
- package/dist/ui/prompts/listPrompts/variablesListPrompt.d.ts.map +0 -1
- package/dist/ui/prompts/listPrompts/variationsListPrompt.d.ts +0 -30
- package/dist/ui/prompts/listPrompts/variationsListPrompt.d.ts.map +0 -1
- package/dist/ui/prompts/overridePrompts.d.ts +0 -23
- package/dist/ui/prompts/overridePrompts.d.ts.map +0 -1
- package/dist/ui/prompts/targetingPrompts.d.ts +0 -129
- package/dist/ui/prompts/targetingPrompts.d.ts.map +0 -1
- package/dist/ui/prompts/types.d.ts +0 -30
- package/dist/ui/prompts/types.d.ts.map +0 -1
- package/dist/ui/prompts/variablePrompts.d.ts +0 -46
- package/dist/ui/prompts/variablePrompts.d.ts.map +0 -1
- package/dist/ui/prompts/variationPrompts.d.ts +0 -48
- package/dist/ui/prompts/variationPrompts.d.ts.map +0 -1
- package/dist/ui/tableOutput.d.ts +0 -8
- package/dist/ui/tableOutput.d.ts.map +0 -1
- package/dist/ui/targetingTree.d.ts +0 -10
- package/dist/ui/targetingTree.d.ts.map +0 -1
- package/dist/ui/togglebot.d.ts +0 -6
- package/dist/ui/togglebot.d.ts.map +0 -1
- package/dist/ui/writer.d.ts +0 -21
- package/dist/ui/writer.d.ts.map +0 -1
- package/dist/utils/FileFilters.d.ts +0 -14
- package/dist/utils/FileFilters.d.ts.map +0 -1
- package/dist/utils/audiences/index.d.ts +0 -4
- package/dist/utils/audiences/index.d.ts.map +0 -1
- package/dist/utils/batchRequests.d.ts +0 -2
- package/dist/utils/batchRequests.d.ts.map +0 -1
- package/dist/utils/configManager.d.ts +0 -37
- package/dist/utils/configManager.d.ts.map +0 -1
- package/dist/utils/diff/diff.d.ts +0 -3
- package/dist/utils/diff/diff.d.ts.map +0 -1
- package/dist/utils/diff/fileDiff.d.ts +0 -3
- package/dist/utils/diff/fileDiff.d.ts.map +0 -1
- package/dist/utils/diff/parse.d.ts +0 -4
- package/dist/utils/diff/parse.d.ts.map +0 -1
- package/dist/utils/environments/index.d.ts +0 -3
- package/dist/utils/environments/index.d.ts.map +0 -1
- package/dist/utils/features/quickCreateFeatureUtils.d.ts +0 -4
- package/dist/utils/features/quickCreateFeatureUtils.d.ts.map +0 -1
- package/dist/utils/fileSystem.d.ts +0 -7
- package/dist/utils/fileSystem.d.ts.map +0 -1
- package/dist/utils/git/ls-files.d.ts +0 -2
- package/dist/utils/git/ls-files.d.ts.map +0 -1
- package/dist/utils/overrides/index.d.ts +0 -10
- package/dist/utils/overrides/index.d.ts.map +0 -1
- package/dist/utils/parseKeysFromArgs.d.ts +0 -10
- package/dist/utils/parseKeysFromArgs.d.ts.map +0 -1
- package/dist/utils/parsers/BaseParser.d.ts +0 -49
- package/dist/utils/parsers/BaseParser.d.ts.map +0 -1
- package/dist/utils/parsers/android/index.d.ts +0 -13
- package/dist/utils/parsers/android/index.d.ts.map +0 -1
- package/dist/utils/parsers/csharp/index.d.ts +0 -13
- package/dist/utils/parsers/csharp/index.d.ts.map +0 -1
- package/dist/utils/parsers/custom.d.ts +0 -10
- package/dist/utils/parsers/custom.d.ts.map +0 -1
- package/dist/utils/parsers/dart/index.d.ts +0 -8
- package/dist/utils/parsers/dart/index.d.ts.map +0 -1
- package/dist/utils/parsers/golang/index.d.ts +0 -8
- package/dist/utils/parsers/golang/index.d.ts.map +0 -1
- package/dist/utils/parsers/index.d.ts +0 -16
- package/dist/utils/parsers/index.d.ts.map +0 -1
- package/dist/utils/parsers/ios/index.d.ts +0 -12
- package/dist/utils/parsers/ios/index.d.ts.map +0 -1
- package/dist/utils/parsers/java/index.d.ts +0 -8
- package/dist/utils/parsers/java/index.d.ts.map +0 -1
- package/dist/utils/parsers/javascript/index.d.ts +0 -8
- package/dist/utils/parsers/javascript/index.d.ts.map +0 -1
- package/dist/utils/parsers/nodejs/index.d.ts +0 -8
- package/dist/utils/parsers/nodejs/index.d.ts.map +0 -1
- package/dist/utils/parsers/php/index.d.ts +0 -14
- package/dist/utils/parsers/php/index.d.ts.map +0 -1
- package/dist/utils/parsers/python/index.d.ts +0 -14
- package/dist/utils/parsers/python/index.d.ts.map +0 -1
- package/dist/utils/parsers/react/index.d.ts +0 -9
- package/dist/utils/parsers/react/index.d.ts.map +0 -1
- package/dist/utils/parsers/ruby/index.d.ts +0 -8
- package/dist/utils/parsers/ruby/index.d.ts.map +0 -1
- package/dist/utils/parsers/types.d.ts +0 -29
- package/dist/utils/parsers/types.d.ts.map +0 -1
- package/dist/utils/prompts.d.ts +0 -7
- package/dist/utils/prompts.d.ts.map +0 -1
- package/dist/utils/refactor/RefactorEngine.d.ts +0 -65
- package/dist/utils/refactor/RefactorEngine.d.ts.map +0 -1
- package/dist/utils/refactor/index.d.ts +0 -3
- package/dist/utils/refactor/index.d.ts.map +0 -1
- package/dist/utils/refactor/javascript/JavascriptEngine.d.ts +0 -6
- package/dist/utils/refactor/javascript/JavascriptEngine.d.ts.map +0 -1
- package/dist/utils/refactor/javascript/index.d.ts +0 -2
- package/dist/utils/refactor/javascript/index.d.ts.map +0 -1
- package/dist/utils/refactor/utils.d.ts +0 -4
- package/dist/utils/refactor/utils.d.ts.map +0 -1
- package/dist/utils/reportValidationErrors.d.ts +0 -8
- package/dist/utils/reportValidationErrors.d.ts.map +0 -1
- package/dist/utils/targeting/index.d.ts +0 -92
- package/dist/utils/targeting/index.d.ts.map +0 -1
- package/dist/utils/usages/parse.d.ts +0 -4
- package/dist/utils/usages/parse.d.ts.map +0 -1
- package/dist/utils/validators.d.ts +0 -4
- package/dist/utils/validators.d.ts.map +0 -1
package/dist/mcp/types.js
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteCustomPropertyArgsSchema = exports.UpdateCustomPropertyArgsSchema = exports.UpsertCustomPropertyArgsSchema = exports.ListCustomPropertiesArgsSchema = exports.ProjectTotalEvaluationsQuerySchema = exports.FeatureTotalEvaluationsQuerySchema = exports.GetProjectTotalEvaluationsArgsSchema = exports.GetFeatureTotalEvaluationsArgsSchema = exports.AuditLogEntitySchema = exports.GetFeatureAuditLogHistoryArgsSchema = exports.UpdateFeatureTargetingArgsSchema = exports.ListFeatureTargetingArgsSchema = exports.UpdateVariationArgsSchema = exports.CreateVariationArgsSchema = exports.ListVariationsArgsSchema = exports.ClearSelfTargetingOverridesArgsSchema = exports.SetSelfTargetingOverrideArgsSchema = exports.UpdateSelfTargetingIdentityArgsSchema = exports.UpdateFeatureStatusArgsSchema = exports.UpdateFeatureArgsSchema = exports.CreateFeatureArgsSchema = exports.SetFeatureTargetingArgsSchema = exports.UpdateEnvironmentArgsSchema = exports.CreateEnvironmentArgsSchema = exports.GetSdkKeysArgsSchema = exports.ListEnvironmentsArgsSchema = exports.UpdateProjectArgsSchema = exports.CreateProjectArgsSchema = exports.ListProjectsArgsSchema = exports.DeleteFeatureArgsSchema = exports.DeleteVariableArgsSchema = exports.UpdateVariableArgsSchema = exports.CreateVariableArgsSchema = exports.ListVariablesArgsSchema = exports.ListFeaturesArgsSchema = void 0;
|
|
3
|
+
exports.DeleteCustomPropertyArgsSchema = exports.UpdateCustomPropertyArgsSchema = exports.UpsertCustomPropertyArgsSchema = exports.ListCustomPropertiesArgsSchema = exports.ProjectTotalEvaluationsQuerySchema = exports.FeatureTotalEvaluationsQuerySchema = exports.GetProjectTotalEvaluationsArgsSchema = exports.GetFeatureTotalEvaluationsArgsSchema = exports.AuditLogEntitySchema = exports.CleanupFeatureArgsSchema = exports.GetFeatureAuditLogHistoryArgsSchema = exports.UpdateFeatureTargetingArgsSchema = exports.ListFeatureTargetingArgsSchema = exports.UpdateVariationArgsSchema = exports.CreateVariationArgsSchema = exports.ListVariationsArgsSchema = exports.ClearSelfTargetingOverridesArgsSchema = exports.SetSelfTargetingOverrideArgsSchema = exports.UpdateSelfTargetingIdentityArgsSchema = exports.UpdateFeatureStatusArgsSchema = exports.UpdateFeatureArgsSchema = exports.CreateFeatureArgsSchema = exports.SetFeatureTargetingArgsSchema = exports.UpdateEnvironmentArgsSchema = exports.CreateEnvironmentArgsSchema = exports.GetSdkKeysArgsSchema = exports.ListEnvironmentsArgsSchema = exports.UpdateProjectArgsSchema = exports.CreateProjectArgsSchema = exports.ListProjectsArgsSchema = exports.DeleteFeatureArgsSchema = exports.DeleteVariableArgsSchema = exports.UpdateVariableArgsSchema = exports.CreateVariableArgsSchema = exports.ListVariablesArgsSchema = exports.ListFeaturesArgsSchema = exports.VariableValidationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const zodSchemas_1 = require("../api/zodSchemas");
|
|
6
6
|
const schemas_1 = require("../api/schemas");
|
|
7
7
|
// Zod schemas for MCP tool arguments
|
|
8
|
+
exports.VariableValidationSchema = zod_1.z.object({
|
|
9
|
+
schemaType: zod_1.z
|
|
10
|
+
.enum(['enum', 'regex', 'jsonSchema'])
|
|
11
|
+
.describe('Type of validation to apply'),
|
|
12
|
+
enumValues: zod_1.z
|
|
13
|
+
.union([zod_1.z.array(zod_1.z.string()), zod_1.z.array(zod_1.z.number())])
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('Required when schemaType="enum": allowable values as strings or numbers'),
|
|
16
|
+
regexPattern: zod_1.z
|
|
17
|
+
.string()
|
|
18
|
+
.optional()
|
|
19
|
+
.describe('Required when schemaType="regex": regular expression pattern to validate against'),
|
|
20
|
+
jsonSchema: zod_1.z
|
|
21
|
+
.string()
|
|
22
|
+
.optional()
|
|
23
|
+
.describe('Required when schemaType="jsonSchema": stringified JSON Schema to validate against'),
|
|
24
|
+
description: zod_1.z.string(),
|
|
25
|
+
exampleValue: zod_1.z.any().describe('Example value demonstrating a valid input'),
|
|
26
|
+
});
|
|
8
27
|
exports.ListFeaturesArgsSchema = zod_1.z.object({
|
|
9
28
|
page: zod_1.z
|
|
10
29
|
.number()
|
|
@@ -18,7 +37,7 @@ exports.ListFeaturesArgsSchema = zod_1.z.object({
|
|
|
18
37
|
.max(1000)
|
|
19
38
|
.default(100)
|
|
20
39
|
.optional()
|
|
21
|
-
.describe('Number of items per page
|
|
40
|
+
.describe('Number of items per page'),
|
|
22
41
|
sortBy: zod_1.z
|
|
23
42
|
.enum([
|
|
24
43
|
'createdAt',
|
|
@@ -29,18 +48,13 @@ exports.ListFeaturesArgsSchema = zod_1.z.object({
|
|
|
29
48
|
'propertyKey',
|
|
30
49
|
])
|
|
31
50
|
.default('createdAt')
|
|
32
|
-
.optional()
|
|
33
|
-
|
|
34
|
-
sortOrder: zod_1.z
|
|
35
|
-
.enum(['asc', 'desc'])
|
|
36
|
-
.default('desc')
|
|
37
|
-
.optional()
|
|
38
|
-
.describe('Sort order (ascending or descending)'),
|
|
51
|
+
.optional(),
|
|
52
|
+
sortOrder: zod_1.z.enum(['asc', 'desc']).default('desc').optional(),
|
|
39
53
|
search: zod_1.z
|
|
40
54
|
.string()
|
|
41
55
|
.min(3)
|
|
42
56
|
.optional()
|
|
43
|
-
.describe('Search term to filter features by name or key'),
|
|
57
|
+
.describe('Search term to filter features by "name" or "key"'),
|
|
44
58
|
staleness: zod_1.z
|
|
45
59
|
.enum(['all', 'unused', 'released', 'unmodified', 'notStale'])
|
|
46
60
|
.optional()
|
|
@@ -71,7 +85,7 @@ exports.ListVariablesArgsSchema = zod_1.z.object({
|
|
|
71
85
|
.max(1000)
|
|
72
86
|
.default(100)
|
|
73
87
|
.optional()
|
|
74
|
-
.describe('Number of items per page
|
|
88
|
+
.describe('Number of items per page'),
|
|
75
89
|
sortBy: zod_1.z
|
|
76
90
|
.enum([
|
|
77
91
|
'createdAt',
|
|
@@ -82,18 +96,13 @@ exports.ListVariablesArgsSchema = zod_1.z.object({
|
|
|
82
96
|
'propertyKey',
|
|
83
97
|
])
|
|
84
98
|
.default('createdAt')
|
|
85
|
-
.optional()
|
|
86
|
-
|
|
87
|
-
sortOrder: zod_1.z
|
|
88
|
-
.enum(['asc', 'desc'])
|
|
89
|
-
.default('desc')
|
|
90
|
-
.optional()
|
|
91
|
-
.describe('Sort order (ascending or descending)'),
|
|
99
|
+
.optional(),
|
|
100
|
+
sortOrder: zod_1.z.enum(['asc', 'desc']).default('desc').optional(),
|
|
92
101
|
search: zod_1.z
|
|
93
102
|
.string()
|
|
94
103
|
.min(3)
|
|
95
104
|
.optional()
|
|
96
|
-
.describe('Search query to filter variables
|
|
105
|
+
.describe('Search query to filter variables by "name" or "key"'),
|
|
97
106
|
feature: zod_1.z.string().optional().describe('Filter by feature key'),
|
|
98
107
|
type: zod_1.z
|
|
99
108
|
.enum(['String', 'Boolean', 'Number', 'JSON'])
|
|
@@ -104,82 +113,62 @@ exports.ListVariablesArgsSchema = zod_1.z.object({
|
|
|
104
113
|
.optional()
|
|
105
114
|
.describe('Filter by variable status'),
|
|
106
115
|
});
|
|
107
|
-
exports.CreateVariableArgsSchema =
|
|
108
|
-
key:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
defaultValue: zodClient_1.schemas.CreateVariableDto.shape.defaultValue
|
|
115
|
-
.optional()
|
|
116
|
-
.describe('Default value for the variable'),
|
|
117
|
-
_feature: zodClient_1.schemas.CreateVariableDto.shape._feature
|
|
118
|
-
.optional()
|
|
119
|
-
.describe('Feature key or ID to associate with this variable'),
|
|
120
|
-
validationSchema: zodClient_1.schemas.CreateVariableDto.shape.validationSchema
|
|
121
|
-
.optional()
|
|
122
|
-
.describe('Validation schema for variable values'),
|
|
116
|
+
exports.CreateVariableArgsSchema = zodSchemas_1.CreateVariableDto.extend({
|
|
117
|
+
key: zodSchemas_1.CreateVariableDto.shape.key.describe('Unique variable key'),
|
|
118
|
+
defaultValue: zodSchemas_1.CreateVariableDto.shape.defaultValue.describe('Default value for the variable, the data type of the defaultValue must match the variable.type'),
|
|
119
|
+
_feature: zodSchemas_1.CreateVariableDto.shape._feature.describe('Feature key or ID to associate with this variable, only set if variable is associated with a feature'),
|
|
120
|
+
validationSchema: zodSchemas_1.CreateVariableDto.shape.validationSchema.describe('Validation schema for variable values'),
|
|
121
|
+
persistent: zodSchemas_1.CreateVariableDto.shape.persistent.describe('indicating if the variable is intended to be long-lived within a feature'),
|
|
122
|
+
tags: zodSchemas_1.CreateVariableDto.shape.tags.describe('Tags to organize variables'),
|
|
123
123
|
});
|
|
124
|
-
exports.UpdateVariableArgsSchema =
|
|
124
|
+
exports.UpdateVariableArgsSchema = zodSchemas_1.UpdateVariableDto.extend({
|
|
125
125
|
key: zod_1.z
|
|
126
126
|
.string()
|
|
127
127
|
.max(100)
|
|
128
128
|
.regex(/^[a-z0-9-_.]+$/)
|
|
129
|
-
.describe('
|
|
130
|
-
|
|
129
|
+
.describe('key to identify variable'),
|
|
130
|
+
validationSchema: zodSchemas_1.UpdateVariableDto.shape.validationSchema
|
|
131
131
|
.optional()
|
|
132
|
-
.describe('
|
|
133
|
-
|
|
134
|
-
.optional()
|
|
135
|
-
.describe('Variable description (max 1000 characters)'),
|
|
136
|
-
type: zodClient_1.schemas.UpdateVariableDto.shape.type
|
|
132
|
+
.describe('Validation schema for variable values'),
|
|
133
|
+
persistent: zodSchemas_1.UpdateVariableDto.shape.persistent
|
|
137
134
|
.optional()
|
|
138
|
-
.describe('
|
|
139
|
-
|
|
135
|
+
.describe('indicating if the variable is intended to be long-lived within a feature'),
|
|
136
|
+
tags: zodSchemas_1.UpdateVariableDto.shape.tags
|
|
140
137
|
.optional()
|
|
141
|
-
.describe('
|
|
138
|
+
.describe('Tags to organize variables'),
|
|
142
139
|
});
|
|
143
140
|
exports.DeleteVariableArgsSchema = zod_1.z.object({
|
|
144
|
-
key: zod_1.z
|
|
145
|
-
.string()
|
|
146
|
-
.describe('Variable key to identify which variable to delete'),
|
|
141
|
+
key: zod_1.z.string().describe('key to identify variable to delete'),
|
|
147
142
|
});
|
|
148
143
|
exports.DeleteFeatureArgsSchema = zod_1.z.object({
|
|
149
|
-
key: zod_1.z.string().describe('
|
|
150
|
-
});
|
|
151
|
-
exports.ListProjectsArgsSchema =
|
|
152
|
-
page:
|
|
153
|
-
perPage:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
description: zodClient_1.schemas.CreateProjectDto.shape.description.describe('Project description (max 1000 characters)'),
|
|
163
|
-
color: zodClient_1.schemas.CreateProjectDto.shape.color.describe('Project color in hex format (e.g., #FF0000)'),
|
|
164
|
-
settings: zodClient_1.schemas.CreateProjectDto.shape.settings.describe('Project settings configuration'),
|
|
165
|
-
});
|
|
166
|
-
exports.UpdateProjectArgsSchema = zod_1.z.object({
|
|
144
|
+
key: zod_1.z.string().describe('key to identify feature to delete'),
|
|
145
|
+
});
|
|
146
|
+
exports.ListProjectsArgsSchema = zodSchemas_1.GetProjectsParams.extend({
|
|
147
|
+
page: zodSchemas_1.GetProjectsParams.shape.page.describe('Page number for pagination'),
|
|
148
|
+
perPage: zodSchemas_1.GetProjectsParams.shape.perPage.describe('Number of items per page'),
|
|
149
|
+
search: zodSchemas_1.GetProjectsParams.shape.search.describe('Search term to filter projects by "name" or "key"'),
|
|
150
|
+
createdBy: zodSchemas_1.GetProjectsParams.shape.createdBy.describe('Filter projects by creator user ID'),
|
|
151
|
+
});
|
|
152
|
+
exports.CreateProjectArgsSchema = zodSchemas_1.CreateProjectDto.extend({
|
|
153
|
+
key: zodSchemas_1.CreateProjectDto.shape.key.describe('Unique project key'),
|
|
154
|
+
color: zodSchemas_1.CreateProjectDto.shape.color.describe('Project color in hex format (e.g., #FF0000)'),
|
|
155
|
+
});
|
|
156
|
+
exports.UpdateProjectArgsSchema = zodSchemas_1.UpdateProjectDto.extend({
|
|
167
157
|
key: zod_1.z
|
|
168
158
|
.string()
|
|
169
159
|
.max(100)
|
|
170
160
|
.regex(/^[a-z0-9-_.]+$/)
|
|
171
|
-
.describe('
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
settings: zodClient_1.schemas.UpdateProjectDto.shape.settings.describe('Updated project settings configuration'),
|
|
161
|
+
.describe('key to identify project to update'),
|
|
162
|
+
color: zodSchemas_1.UpdateProjectDto.shape.color
|
|
163
|
+
.describe('Updated project color in hex format (e.g., #FF0000)')
|
|
164
|
+
.optional(),
|
|
176
165
|
});
|
|
177
166
|
exports.ListEnvironmentsArgsSchema = zod_1.z.object({
|
|
178
167
|
search: zod_1.z
|
|
179
168
|
.string()
|
|
180
169
|
.min(3)
|
|
181
170
|
.optional()
|
|
182
|
-
.describe('
|
|
171
|
+
.describe('filter environments by "name" or "key"'),
|
|
183
172
|
page: zod_1.z.number().min(1).optional().describe('Page number for pagination'),
|
|
184
173
|
perPage: zod_1.z
|
|
185
174
|
.number()
|
|
@@ -187,7 +176,7 @@ exports.ListEnvironmentsArgsSchema = zod_1.z.object({
|
|
|
187
176
|
.max(1000)
|
|
188
177
|
.default(100)
|
|
189
178
|
.optional()
|
|
190
|
-
.describe('Number of items per page
|
|
179
|
+
.describe('Number of items per page'),
|
|
191
180
|
sortBy: zod_1.z
|
|
192
181
|
.enum([
|
|
193
182
|
'createdAt',
|
|
@@ -197,96 +186,92 @@ exports.ListEnvironmentsArgsSchema = zod_1.z.object({
|
|
|
197
186
|
'createdBy',
|
|
198
187
|
'propertyKey',
|
|
199
188
|
])
|
|
200
|
-
.optional()
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
.enum(['asc', 'desc'])
|
|
204
|
-
.optional()
|
|
205
|
-
.describe('Sort order (ascending or descending)'),
|
|
206
|
-
createdBy: zod_1.z
|
|
207
|
-
.string()
|
|
208
|
-
.optional()
|
|
209
|
-
.describe('Filter environments by creator user ID'),
|
|
189
|
+
.optional(),
|
|
190
|
+
sortOrder: zod_1.z.enum(['asc', 'desc']).optional(),
|
|
191
|
+
createdBy: zod_1.z.string().optional().describe('Filter by creator user ID'),
|
|
210
192
|
});
|
|
211
193
|
exports.GetSdkKeysArgsSchema = zod_1.z.object({
|
|
212
|
-
environmentKey: zod_1.z.string()
|
|
194
|
+
environmentKey: zod_1.z.string(),
|
|
213
195
|
keyType: zod_1.z
|
|
214
196
|
.enum(['mobile', 'server', 'client'])
|
|
215
197
|
.optional()
|
|
216
|
-
.describe('
|
|
198
|
+
.describe('type of SDK key to retrieve'),
|
|
217
199
|
});
|
|
218
|
-
exports.CreateEnvironmentArgsSchema =
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
description: zodClient_1.schemas.CreateEnvironmentDto.shape.description.describe('Environment description (max 1000 characters)'),
|
|
222
|
-
color: zodClient_1.schemas.CreateEnvironmentDto.shape.color.describe('Environment color in hex format (e.g., #FF0000)'),
|
|
223
|
-
type: zodClient_1.schemas.CreateEnvironmentDto.shape.type.describe('Environment type (development, staging, production, or disaster_recovery)'),
|
|
224
|
-
settings: zodClient_1.schemas.CreateEnvironmentDto.shape.settings.describe('Environment settings configuration'),
|
|
200
|
+
exports.CreateEnvironmentArgsSchema = zodSchemas_1.CreateEnvironmentDto.extend({
|
|
201
|
+
key: zodSchemas_1.CreateEnvironmentDto.shape.key.describe('Unique environment key'),
|
|
202
|
+
color: zodSchemas_1.CreateEnvironmentDto.shape.color.describe('Environment color in hex format (e.g., #FF0000)'),
|
|
225
203
|
});
|
|
226
|
-
exports.UpdateEnvironmentArgsSchema =
|
|
227
|
-
key: zod_1.z
|
|
228
|
-
|
|
229
|
-
.describe('
|
|
230
|
-
|
|
231
|
-
description: zodClient_1.schemas.UpdateEnvironmentDto.shape.description.describe('Updated environment description (max 1000 characters)'),
|
|
232
|
-
color: zodClient_1.schemas.UpdateEnvironmentDto.shape.color.describe('Updated environment color in hex format (e.g., #FF0000)'),
|
|
233
|
-
type: zodClient_1.schemas.UpdateEnvironmentDto.shape.type.describe('Updated environment type (development, staging, production, or disaster_recovery)'),
|
|
234
|
-
settings: zodClient_1.schemas.UpdateEnvironmentDto.shape.settings.describe('Updated environment settings configuration'),
|
|
204
|
+
exports.UpdateEnvironmentArgsSchema = zodSchemas_1.UpdateEnvironmentDto.extend({
|
|
205
|
+
key: zod_1.z.string().describe('key to identify environment to update'),
|
|
206
|
+
color: zodSchemas_1.UpdateEnvironmentDto.shape.color
|
|
207
|
+
.describe('color in hex format (e.g., #FF0000)')
|
|
208
|
+
.optional(),
|
|
235
209
|
});
|
|
236
210
|
exports.SetFeatureTargetingArgsSchema = zod_1.z.object({
|
|
237
211
|
feature_key: zod_1.z.string().describe('Feature key to set targeting for'),
|
|
238
|
-
environment_key: zod_1.z
|
|
239
|
-
|
|
240
|
-
.
|
|
241
|
-
|
|
242
|
-
});
|
|
243
|
-
exports.CreateFeatureArgsSchema =
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
tags: zodClient_1.schemas.CreateFeatureDto.shape.tags.describe('Tags to organize features'),
|
|
255
|
-
interactive: zod_1.z
|
|
256
|
-
.boolean()
|
|
257
|
-
.optional()
|
|
258
|
-
.describe('MCP-specific: prompt for missing fields'),
|
|
259
|
-
});
|
|
260
|
-
exports.UpdateFeatureArgsSchema = zod_1.z.object({
|
|
212
|
+
environment_key: zod_1.z
|
|
213
|
+
.string()
|
|
214
|
+
.describe('Environment key to set targeting for'),
|
|
215
|
+
enabled: zod_1.z.boolean().describe('enable or disable targeting'),
|
|
216
|
+
});
|
|
217
|
+
exports.CreateFeatureArgsSchema = zodSchemas_1.CreateFeatureDto.extend({
|
|
218
|
+
key: zodSchemas_1.CreateFeatureDto.shape.key.describe('Unique feature key'),
|
|
219
|
+
variables: zodSchemas_1.CreateFeatureDto.shape.variables.describe('Array of variables to create or reassociate with this feature'),
|
|
220
|
+
configurations: zodSchemas_1.CreateFeatureDto.shape.configurations.describe('Environment-specific configurations (key-value map of environment keys to config)'),
|
|
221
|
+
variations: zodSchemas_1.CreateFeatureDto.shape.variations.describe('Array of variations for this feature'),
|
|
222
|
+
controlVariation: zodSchemas_1.CreateFeatureDto.shape.controlVariation.describe('The key of the variation that is used as the control variation for Metrics'),
|
|
223
|
+
settings: zodSchemas_1.CreateFeatureDto.shape.settings.describe('Feature-level settings configuration'),
|
|
224
|
+
sdkVisibility: zodSchemas_1.CreateFeatureDto.shape.sdkVisibility.describe('SDK Type Visibility Settings for mobile, client, and server SDKs'),
|
|
225
|
+
tags: zodSchemas_1.CreateFeatureDto.shape.tags.describe('Tags to organize features'),
|
|
226
|
+
});
|
|
227
|
+
exports.UpdateFeatureArgsSchema = zodSchemas_1.UpdateFeatureDto.extend({
|
|
261
228
|
key: zod_1.z
|
|
262
229
|
.string()
|
|
230
|
+
.min(1)
|
|
263
231
|
.max(100)
|
|
264
232
|
.regex(/^[a-z0-9-_.]+$/)
|
|
265
|
-
.describe('
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
233
|
+
.describe('key to identify feature to update'),
|
|
234
|
+
configurations: zodSchemas_1.UpdateFeatureDto.shape.configurations
|
|
235
|
+
.optional()
|
|
236
|
+
.describe('Updated environment-specific targeting configurations (key-value map of environment keys to config)'),
|
|
237
|
+
variables: zodSchemas_1.UpdateFeatureDto.shape.variables
|
|
238
|
+
.optional()
|
|
239
|
+
.describe('Updated array of variables for this feature'),
|
|
240
|
+
variations: zodSchemas_1.UpdateFeatureDto.shape.variations
|
|
241
|
+
.optional()
|
|
242
|
+
.describe('Updated array of variations for this feature'),
|
|
243
|
+
settings: zodSchemas_1.UpdateFeatureDto.shape.settings
|
|
244
|
+
.optional()
|
|
245
|
+
.describe('Updated feature-level settings configuration'),
|
|
246
|
+
sdkVisibility: zodSchemas_1.UpdateFeatureDto.shape.sdkVisibility
|
|
247
|
+
.optional()
|
|
248
|
+
.describe('Updated SDK Type Visibility Settings for mobile, client, and server SDKs'),
|
|
249
|
+
controlVariation: zodSchemas_1.UpdateFeatureDto.shape.controlVariation
|
|
250
|
+
.optional()
|
|
251
|
+
.describe('Updated control variation key for Metrics'),
|
|
252
|
+
tags: zodSchemas_1.UpdateFeatureDto.shape.tags
|
|
253
|
+
.optional()
|
|
254
|
+
.describe('Updated tags to organize features'),
|
|
255
|
+
// summary: UpdateFeatureDto.shape.summary.optional().describe(
|
|
256
|
+
// 'Updated feature summary',
|
|
257
|
+
// ),
|
|
258
|
+
// staleness: UpdateFeatureDto.shape.staleness.optional().describe(
|
|
259
|
+
// 'Updated feature staleness configuration',
|
|
260
|
+
// ),
|
|
261
|
+
});
|
|
262
|
+
exports.UpdateFeatureStatusArgsSchema = schemas_1.UpdateFeatureStatusDto.extend({
|
|
277
263
|
key: zod_1.z
|
|
278
264
|
.string()
|
|
265
|
+
.min(1)
|
|
279
266
|
.max(100)
|
|
280
267
|
.regex(/^[a-z0-9-_.]+$/)
|
|
281
|
-
.describe('
|
|
282
|
-
|
|
283
|
-
staticVariation: schemas_1.UpdateFeatureStatusDto.shape.staticVariation.describe('The variation key or ID to serve if the status is set to complete (optional)'),
|
|
268
|
+
.describe('key to identify feature to update'),
|
|
269
|
+
staticVariation: schemas_1.UpdateFeatureStatusDto.shape.staticVariation.describe('The variation key or ID to serve if the status is set to complete'),
|
|
284
270
|
});
|
|
285
271
|
exports.UpdateSelfTargetingIdentityArgsSchema = zod_1.z.object({
|
|
286
272
|
dvc_user_id: zod_1.z
|
|
287
273
|
.string()
|
|
288
|
-
.
|
|
289
|
-
.describe('DevCycle User ID for self-targeting (use null or empty string to clear)'),
|
|
274
|
+
.describe('DevCycle User ID for self-targeting (empty string to clear)'),
|
|
290
275
|
});
|
|
291
276
|
exports.SetSelfTargetingOverrideArgsSchema = zod_1.z.object({
|
|
292
277
|
feature_key: zod_1.z.string().describe('Feature key to set override for'),
|
|
@@ -304,30 +289,21 @@ exports.ClearSelfTargetingOverridesArgsSchema = zod_1.z.object({
|
|
|
304
289
|
exports.ListVariationsArgsSchema = zod_1.z.object({
|
|
305
290
|
feature_key: zod_1.z.string().describe('Feature key to list variations for'),
|
|
306
291
|
});
|
|
307
|
-
|
|
292
|
+
const variablesDescription = 'key-value map of variable keys to their values for this variation. { "variableKey1": "value1", "variableKey2": false }';
|
|
293
|
+
exports.CreateVariationArgsSchema = zodSchemas_1.CreateVariationDto.extend({
|
|
308
294
|
feature_key: zod_1.z.string().describe('Feature key to create variation for'),
|
|
309
|
-
key:
|
|
310
|
-
|
|
311
|
-
variables: zodClient_1.schemas.CreateVariationDto.shape.variables.describe('Key-value map of variable keys to their values for this variation'),
|
|
295
|
+
key: zodSchemas_1.CreateVariationDto.shape.key.describe('Unique variation key'),
|
|
296
|
+
variables: zodSchemas_1.CreateVariationDto.shape.variables.describe(variablesDescription),
|
|
312
297
|
});
|
|
313
|
-
exports.UpdateVariationArgsSchema =
|
|
298
|
+
exports.UpdateVariationArgsSchema = zodSchemas_1.UpdateFeatureVariationDto.extend({
|
|
299
|
+
key: zodSchemas_1.UpdateFeatureVariationDto.shape.key.describe('Updated variation key'),
|
|
314
300
|
feature_key: zod_1.z
|
|
315
301
|
.string()
|
|
316
302
|
.describe('Feature key that the variation belongs to'),
|
|
317
|
-
variation_key: zod_1.z
|
|
318
|
-
|
|
319
|
-
.
|
|
320
|
-
|
|
321
|
-
name: zodClient_1.schemas.UpdateFeatureVariationDto.shape.name.describe('Updated variation name (max 100 characters)'),
|
|
322
|
-
variables: zod_1.z
|
|
323
|
-
.record(zod_1.z.union([
|
|
324
|
-
zod_1.z.string(),
|
|
325
|
-
zod_1.z.number(),
|
|
326
|
-
zod_1.z.boolean(),
|
|
327
|
-
zod_1.z.record(zod_1.z.unknown()),
|
|
328
|
-
]))
|
|
329
|
-
.optional()
|
|
330
|
-
.describe('Updated key-value map of variable keys to their values for this variation'),
|
|
303
|
+
variation_key: zod_1.z.string().describe('key to identify variation to update'),
|
|
304
|
+
variables: zodSchemas_1.UpdateFeatureVariationDto.shape.variables
|
|
305
|
+
.optional()
|
|
306
|
+
.describe(`Updated ${variablesDescription}`),
|
|
331
307
|
});
|
|
332
308
|
exports.ListFeatureTargetingArgsSchema = zod_1.z.object({
|
|
333
309
|
feature_key: zod_1.z.string().describe('Feature key to list targeting for'),
|
|
@@ -336,13 +312,14 @@ exports.ListFeatureTargetingArgsSchema = zod_1.z.object({
|
|
|
336
312
|
.optional()
|
|
337
313
|
.describe('Optional environment key to filter targeting by'),
|
|
338
314
|
});
|
|
339
|
-
exports.UpdateFeatureTargetingArgsSchema =
|
|
315
|
+
exports.UpdateFeatureTargetingArgsSchema = zodSchemas_1.UpdateFeatureConfigDto.extend({
|
|
340
316
|
feature_key: zod_1.z.string().describe('Feature key to update targeting for'),
|
|
341
317
|
environment_key: zod_1.z
|
|
342
318
|
.string()
|
|
343
319
|
.describe('Environment key to update targeting in'),
|
|
344
|
-
|
|
345
|
-
|
|
320
|
+
targets: zodSchemas_1.UpdateFeatureConfigDto.shape.targets
|
|
321
|
+
.optional()
|
|
322
|
+
.describe('Updated array of targeting rules/targets for the feature'),
|
|
346
323
|
});
|
|
347
324
|
exports.GetFeatureAuditLogHistoryArgsSchema = zod_1.z.object({
|
|
348
325
|
feature_key: zod_1.z
|
|
@@ -353,24 +330,19 @@ exports.GetFeatureAuditLogHistoryArgsSchema = zod_1.z.object({
|
|
|
353
330
|
.min(1)
|
|
354
331
|
.default(1)
|
|
355
332
|
.optional()
|
|
356
|
-
.describe('Page number for pagination
|
|
333
|
+
.describe('Page number for pagination'),
|
|
357
334
|
perPage: zod_1.z
|
|
358
335
|
.number()
|
|
359
336
|
.min(1)
|
|
360
337
|
.max(1000)
|
|
361
338
|
.default(100)
|
|
362
339
|
.optional()
|
|
363
|
-
.describe('Number of items per page
|
|
340
|
+
.describe('Number of items per page'),
|
|
364
341
|
sortBy: zod_1.z
|
|
365
342
|
.enum(['createdAt', 'updatedAt', 'action', 'user'])
|
|
366
343
|
.default('createdAt')
|
|
367
|
-
.optional()
|
|
368
|
-
|
|
369
|
-
sortOrder: zod_1.z
|
|
370
|
-
.enum(['asc', 'desc'])
|
|
371
|
-
.default('desc')
|
|
372
|
-
.optional()
|
|
373
|
-
.describe('Sort order (default: desc)'),
|
|
344
|
+
.optional(),
|
|
345
|
+
sortOrder: zod_1.z.enum(['asc', 'desc']).default('desc').optional(),
|
|
374
346
|
startDate: zod_1.z
|
|
375
347
|
.string()
|
|
376
348
|
.optional()
|
|
@@ -385,10 +357,14 @@ exports.GetFeatureAuditLogHistoryArgsSchema = zod_1.z.object({
|
|
|
385
357
|
.describe('Environment key to filter audit entries by'),
|
|
386
358
|
user: zod_1.z.string().optional().describe('User ID to filter audit entries by'),
|
|
387
359
|
action: zod_1.z
|
|
388
|
-
.
|
|
360
|
+
.enum(['created', 'modified', 'deleted'])
|
|
389
361
|
.optional()
|
|
390
362
|
.describe('Action type to filter audit entries by'),
|
|
391
363
|
});
|
|
364
|
+
// Cleanup feature prompt tool args
|
|
365
|
+
exports.CleanupFeatureArgsSchema = zod_1.z.object({
|
|
366
|
+
featureKey: zod_1.z.string(),
|
|
367
|
+
});
|
|
392
368
|
// Zod schema for DevCycle Audit Log Entity - matches the actual swagger specification
|
|
393
369
|
exports.AuditLogEntitySchema = zod_1.z.object({
|
|
394
370
|
date: zod_1.z
|
|
@@ -401,40 +377,25 @@ exports.AuditLogEntitySchema = zod_1.z.object({
|
|
|
401
377
|
});
|
|
402
378
|
// Base evaluation query schema (matches API camelCase naming)
|
|
403
379
|
const BaseEvaluationQuerySchema = zod_1.z.object({
|
|
404
|
-
startDate: zod_1.z
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
.describe('Start date as Unix timestamp (optional)'),
|
|
408
|
-
endDate: zod_1.z
|
|
409
|
-
.number()
|
|
410
|
-
.optional()
|
|
411
|
-
.describe('End date as Unix timestamp (optional)'),
|
|
412
|
-
environment: zod_1.z
|
|
413
|
-
.string()
|
|
414
|
-
.optional()
|
|
415
|
-
.describe('Environment key to filter by (optional)'),
|
|
380
|
+
startDate: zod_1.z.number().optional().describe('Start date as Unix timestamp'),
|
|
381
|
+
endDate: zod_1.z.number().optional().describe('End date as Unix timestamp'),
|
|
382
|
+
environment: zod_1.z.string().optional().describe('Environment key to filter by'),
|
|
416
383
|
period: zod_1.z
|
|
417
384
|
.enum(['day', 'hour', 'month'])
|
|
418
385
|
.optional()
|
|
419
|
-
.describe('Time period for aggregation
|
|
386
|
+
.describe('Time period for aggregation'),
|
|
420
387
|
sdkType: zod_1.z
|
|
421
388
|
.enum(['client', 'server', 'mobile', 'api'])
|
|
422
389
|
.optional()
|
|
423
|
-
.describe('SDK type to filter by
|
|
390
|
+
.describe('SDK type to filter by'),
|
|
424
391
|
});
|
|
425
392
|
// MCP argument schemas (using camelCase to match API)
|
|
426
393
|
exports.GetFeatureTotalEvaluationsArgsSchema = BaseEvaluationQuerySchema.extend({
|
|
427
394
|
featureKey: zod_1.z
|
|
428
395
|
.string()
|
|
429
396
|
.describe('Feature key to get evaluation data for'),
|
|
430
|
-
platform: zod_1.z
|
|
431
|
-
|
|
432
|
-
.optional()
|
|
433
|
-
.describe('Platform to filter by (optional)'),
|
|
434
|
-
variable: zod_1.z
|
|
435
|
-
.string()
|
|
436
|
-
.optional()
|
|
437
|
-
.describe('Variable key to filter by (optional)'),
|
|
397
|
+
platform: zod_1.z.string().optional().describe('Platform to filter by'),
|
|
398
|
+
variable: zod_1.z.string().optional().describe('Variable key to filter by'),
|
|
438
399
|
});
|
|
439
400
|
exports.GetProjectTotalEvaluationsArgsSchema = BaseEvaluationQuerySchema;
|
|
440
401
|
// API query schemas (same as MCP args since we use camelCase throughout)
|
|
@@ -453,7 +414,7 @@ exports.ListCustomPropertiesArgsSchema = zod_1.z.object({
|
|
|
453
414
|
.max(1000)
|
|
454
415
|
.default(100)
|
|
455
416
|
.optional()
|
|
456
|
-
.describe('Number of items per page
|
|
417
|
+
.describe('Number of items per page'),
|
|
457
418
|
sortBy: zod_1.z
|
|
458
419
|
.enum([
|
|
459
420
|
'createdAt',
|
|
@@ -464,42 +425,27 @@ exports.ListCustomPropertiesArgsSchema = zod_1.z.object({
|
|
|
464
425
|
'propertyKey',
|
|
465
426
|
])
|
|
466
427
|
.default('createdAt')
|
|
467
|
-
.optional()
|
|
468
|
-
|
|
469
|
-
sortOrder: zod_1.z
|
|
470
|
-
.enum(['asc', 'desc'])
|
|
471
|
-
.default('desc')
|
|
472
|
-
.optional()
|
|
473
|
-
.describe('Sort order (ascending or descending)'),
|
|
428
|
+
.optional(),
|
|
429
|
+
sortOrder: zod_1.z.enum(['asc', 'desc']).default('desc').optional(),
|
|
474
430
|
search: zod_1.z
|
|
475
431
|
.string()
|
|
476
432
|
.min(3)
|
|
477
433
|
.optional()
|
|
478
|
-
.describe('Search term to filter
|
|
479
|
-
createdBy: zod_1.z
|
|
480
|
-
.string()
|
|
481
|
-
.optional()
|
|
482
|
-
.describe('Filter custom properties by creator user ID'),
|
|
434
|
+
.describe('Search term to filter by "name" or "key"'),
|
|
435
|
+
createdBy: zod_1.z.string().optional().describe('Filter by creator user ID'),
|
|
483
436
|
});
|
|
484
|
-
exports.UpsertCustomPropertyArgsSchema =
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
type: zodClient_1.schemas.CreateCustomPropertyDto.shape.type.describe('Custom property type (String, Boolean, or Number)'),
|
|
488
|
-
propertyKey: zodClient_1.schemas.CreateCustomPropertyDto.shape.propertyKey.describe('Property key to associate with the custom property'),
|
|
437
|
+
exports.UpsertCustomPropertyArgsSchema = zodSchemas_1.CreateCustomPropertyDto.extend({
|
|
438
|
+
key: zodSchemas_1.CreateCustomPropertyDto.shape.key.describe('Unique custom property key'),
|
|
439
|
+
propertyKey: zodSchemas_1.CreateCustomPropertyDto.shape.propertyKey.describe('Property key to associate with the custom property'),
|
|
489
440
|
});
|
|
490
|
-
exports.UpdateCustomPropertyArgsSchema =
|
|
441
|
+
exports.UpdateCustomPropertyArgsSchema = zodSchemas_1.UpdateCustomPropertyDto.extend({
|
|
491
442
|
key: zod_1.z
|
|
492
443
|
.string()
|
|
493
444
|
.max(100)
|
|
494
445
|
.regex(/^[a-z0-9-_.]+$/)
|
|
495
|
-
.describe('
|
|
496
|
-
name: zodClient_1.schemas.UpdateCustomPropertyDto.shape.name.describe('Updated custom property name (max 100 characters)'),
|
|
497
|
-
propertyKey: zodClient_1.schemas.UpdateCustomPropertyDto.shape.propertyKey.describe('Updated property key to associate with the custom property'),
|
|
498
|
-
type: zodClient_1.schemas.UpdateCustomPropertyDto.shape.type.describe('Updated custom property type (String, Boolean, or Number)'),
|
|
446
|
+
.describe('key to identify property to update'),
|
|
499
447
|
});
|
|
500
448
|
exports.DeleteCustomPropertyArgsSchema = zod_1.z.object({
|
|
501
|
-
key: zod_1.z
|
|
502
|
-
.string()
|
|
503
|
-
.describe('Custom property key to identify which property to delete'),
|
|
449
|
+
key: zod_1.z.string().describe('key to identify property to delete'),
|
|
504
450
|
});
|
|
505
451
|
//# sourceMappingURL=types.js.map
|