@devcycle/cli 6.0.2 → 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/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/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/commands/authCommand.js.map +1 -1
- package/dist/commands/base.js.map +1 -1
- package/dist/commands/environments/list.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/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/mcp/tools/featureTools.js +11 -155
- package/dist/mcp/tools/featureTools.js.map +1 -1
- package/dist/mcp/tools/variableTools.js +1 -1
- package/dist/mcp/tools/variableTools.js.map +1 -1
- package/dist/mcp/types.js +95 -103
- package/dist/mcp/types.js.map +1 -1
- package/dist/ui/prompts/environmentPrompts.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.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +6 -2
- 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/installGuides.generated.d.ts +0 -3
- package/dist/mcp/tools/installGuides.generated.d.ts.map +0 -1
- package/dist/mcp/tools/installTools.d.ts +0 -3
- package/dist/mcp/tools/installTools.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 -2106
- 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/github.d.ts +0 -2
- package/dist/mcp/utils/github.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
|
@@ -1,1015 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.v2Api = exports.api = exports.
|
|
3
|
+
exports.v2Api = exports.api = exports.PreconditionFailedErrorResponse = exports.CannotDeleteLastItemErrorResponse = exports.NotFoundErrorResponse = exports.ConflictErrorResponse = exports.BadRequestErrorResponse = void 0;
|
|
4
4
|
exports.createApiClient = createApiClient;
|
|
5
5
|
exports.createV2ApiClient = createV2ApiClient;
|
|
6
6
|
const core_1 = require("@zodios/core");
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
|
-
|
|
9
|
-
* IMPORTANT: MCP Schema Compatibility
|
|
10
|
-
*
|
|
11
|
-
* The MCP (Model Context Protocol) requires that all array types in JSON schemas
|
|
12
|
-
* have an 'items' property. When using Zod schemas that will be converted to JSON
|
|
13
|
-
* schemas for MCP tools:
|
|
14
|
-
*
|
|
15
|
-
* ❌ NEVER use: z.array(z.any()) - This doesn't generate the required 'items' property
|
|
16
|
-
* ✅ ALWAYS use: z.array(z.unknown()) - This generates proper JSON schemas
|
|
17
|
-
*
|
|
18
|
-
* Similarly:
|
|
19
|
-
* ❌ NEVER use: z.record(z.any())
|
|
20
|
-
* ✅ ALWAYS use: z.record(z.unknown())
|
|
21
|
-
*
|
|
22
|
-
* The z.unknown() type provides the same runtime flexibility as z.any() but
|
|
23
|
-
* generates valid JSON schemas that pass MCP validation.
|
|
24
|
-
*/
|
|
25
|
-
const EdgeDBSettings = zod_1.z.object({ enabled: zod_1.z.boolean() });
|
|
26
|
-
const ColorSettings = zod_1.z.object({
|
|
27
|
-
primary: zod_1.z
|
|
28
|
-
.string()
|
|
29
|
-
.max(9)
|
|
30
|
-
.regex(/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/),
|
|
31
|
-
secondary: zod_1.z
|
|
32
|
-
.string()
|
|
33
|
-
.max(9)
|
|
34
|
-
.regex(/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/),
|
|
35
|
-
});
|
|
36
|
-
const OptInSettings = zod_1.z.object({
|
|
37
|
-
title: zod_1.z.string().max(100),
|
|
38
|
-
description: zod_1.z.string().max(1000),
|
|
39
|
-
enabled: zod_1.z.boolean(),
|
|
40
|
-
imageURL: zod_1.z.string(),
|
|
41
|
-
colors: ColorSettings,
|
|
42
|
-
poweredByAlignment: zod_1.z.enum(['center', 'left', 'right', 'hidden']),
|
|
43
|
-
});
|
|
44
|
-
const SDKTypeVisibilitySettings = zod_1.z.object({
|
|
45
|
-
enabledInFeatureSettings: zod_1.z.boolean(),
|
|
46
|
-
});
|
|
47
|
-
const ObfuscationSettings = zod_1.z.object({
|
|
48
|
-
enabled: zod_1.z.boolean(),
|
|
49
|
-
required: zod_1.z.boolean(),
|
|
50
|
-
});
|
|
51
|
-
const StalenessSettings = zod_1.z
|
|
52
|
-
.object({
|
|
53
|
-
enabled: zod_1.z.boolean(),
|
|
54
|
-
})
|
|
55
|
-
.optional();
|
|
56
|
-
const ProjectSettings = zod_1.z.object({
|
|
57
|
-
edgeDB: EdgeDBSettings,
|
|
58
|
-
optIn: OptInSettings,
|
|
59
|
-
sdkTypeVisibility: SDKTypeVisibilitySettings,
|
|
60
|
-
obfuscation: ObfuscationSettings,
|
|
61
|
-
staleness: StalenessSettings,
|
|
62
|
-
});
|
|
63
|
-
const GetProjectsParams = zod_1.z.object({
|
|
64
|
-
page: zod_1.z.number().gte(1).optional().default(1),
|
|
65
|
-
perPage: zod_1.z.number().gte(1).lte(1000).optional().default(100),
|
|
66
|
-
sortBy: zod_1.z
|
|
67
|
-
.enum([
|
|
68
|
-
'createdAt',
|
|
69
|
-
'updatedAt',
|
|
70
|
-
'name',
|
|
71
|
-
'key',
|
|
72
|
-
'createdBy',
|
|
73
|
-
'propertyKey',
|
|
74
|
-
])
|
|
75
|
-
.optional()
|
|
76
|
-
.default('createdAt'),
|
|
77
|
-
sortOrder: zod_1.z.enum(['asc', 'desc']).optional().default('desc'),
|
|
78
|
-
search: zod_1.z.string().optional(),
|
|
79
|
-
createdBy: zod_1.z.string().optional(),
|
|
80
|
-
});
|
|
81
|
-
const CreateProjectDto = zod_1.z.object({
|
|
82
|
-
name: zod_1.z.string().max(100),
|
|
83
|
-
key: zod_1.z
|
|
84
|
-
.string()
|
|
85
|
-
.max(100)
|
|
86
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
87
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
88
|
-
color: zod_1.z
|
|
89
|
-
.string()
|
|
90
|
-
.max(9)
|
|
91
|
-
.regex(/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/)
|
|
92
|
-
.optional(),
|
|
93
|
-
settings: ProjectSettings.optional(),
|
|
94
|
-
});
|
|
95
|
-
const Project = zod_1.z.object({
|
|
96
|
-
name: zod_1.z.string().max(100),
|
|
97
|
-
key: zod_1.z
|
|
98
|
-
.string()
|
|
99
|
-
.max(100)
|
|
100
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
101
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
102
|
-
color: zod_1.z
|
|
103
|
-
.string()
|
|
104
|
-
.max(9)
|
|
105
|
-
.regex(/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/)
|
|
106
|
-
.optional(),
|
|
107
|
-
_id: zod_1.z.string(),
|
|
108
|
-
_organization: zod_1.z.string(),
|
|
109
|
-
_createdBy: zod_1.z.string(),
|
|
110
|
-
settings: ProjectSettings,
|
|
111
|
-
createdAt: zod_1.z.string().datetime(),
|
|
112
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
113
|
-
hasJiraIntegration: zod_1.z.boolean(),
|
|
114
|
-
});
|
|
8
|
+
const zodSchemas_1 = require("./zodSchemas");
|
|
115
9
|
const BadRequestErrorResponse = zod_1.z.object({
|
|
116
10
|
statusCode: zod_1.z.number(),
|
|
117
11
|
message: zod_1.z.object({}).partial(),
|
|
118
12
|
error: zod_1.z.string(),
|
|
119
13
|
});
|
|
14
|
+
exports.BadRequestErrorResponse = BadRequestErrorResponse;
|
|
120
15
|
const ConflictErrorResponse = zod_1.z.object({
|
|
121
16
|
statusCode: zod_1.z.number(),
|
|
122
17
|
message: zod_1.z.object({}).partial(),
|
|
123
18
|
error: zod_1.z.string(),
|
|
124
19
|
errorType: zod_1.z.string(),
|
|
125
20
|
});
|
|
21
|
+
exports.ConflictErrorResponse = ConflictErrorResponse;
|
|
126
22
|
const NotFoundErrorResponse = zod_1.z.object({
|
|
127
23
|
statusCode: zod_1.z.number(),
|
|
128
24
|
message: zod_1.z.object({}).partial(),
|
|
129
25
|
error: zod_1.z.string(),
|
|
130
26
|
});
|
|
131
|
-
|
|
132
|
-
.object({
|
|
133
|
-
name: zod_1.z.string().max(100),
|
|
134
|
-
key: zod_1.z
|
|
135
|
-
.string()
|
|
136
|
-
.max(100)
|
|
137
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
138
|
-
description: zod_1.z.string().max(1000),
|
|
139
|
-
color: zod_1.z
|
|
140
|
-
.string()
|
|
141
|
-
.max(9)
|
|
142
|
-
.regex(/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/),
|
|
143
|
-
settings: ProjectSettings,
|
|
144
|
-
})
|
|
145
|
-
.partial();
|
|
27
|
+
exports.NotFoundErrorResponse = NotFoundErrorResponse;
|
|
146
28
|
const CannotDeleteLastItemErrorResponse = zod_1.z.object({
|
|
147
29
|
statusCode: zod_1.z.number(),
|
|
148
30
|
message: zod_1.z.object({}).partial(),
|
|
149
31
|
error: zod_1.z.string(),
|
|
150
32
|
});
|
|
151
|
-
|
|
152
|
-
.object({ appIconURI: zod_1.z.string().max(2048) })
|
|
153
|
-
.partial();
|
|
154
|
-
const CreateEnvironmentDto = zod_1.z.object({
|
|
155
|
-
name: zod_1.z.string().max(100).nonempty(),
|
|
156
|
-
key: zod_1.z
|
|
157
|
-
.string()
|
|
158
|
-
.max(100)
|
|
159
|
-
.nonempty()
|
|
160
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
161
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
162
|
-
color: zod_1.z
|
|
163
|
-
.string()
|
|
164
|
-
.max(9)
|
|
165
|
-
.regex(/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/)
|
|
166
|
-
.optional(),
|
|
167
|
-
type: zod_1.z.enum(['development', 'staging', 'production', 'disaster_recovery']),
|
|
168
|
-
settings: EnvironmentSettings.optional(),
|
|
169
|
-
});
|
|
170
|
-
const APIKey = zod_1.z.object({
|
|
171
|
-
key: zod_1.z.string(),
|
|
172
|
-
createdAt: zod_1.z.string().datetime(),
|
|
173
|
-
compromised: zod_1.z.boolean(),
|
|
174
|
-
});
|
|
175
|
-
const SDKKeys = zod_1.z.object({
|
|
176
|
-
mobile: zod_1.z.array(APIKey),
|
|
177
|
-
client: zod_1.z.array(APIKey),
|
|
178
|
-
server: zod_1.z.array(APIKey),
|
|
179
|
-
});
|
|
180
|
-
const Environment = zod_1.z.object({
|
|
181
|
-
name: zod_1.z.string().max(100),
|
|
182
|
-
key: zod_1.z
|
|
183
|
-
.string()
|
|
184
|
-
.max(100)
|
|
185
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
186
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
187
|
-
color: zod_1.z
|
|
188
|
-
.string()
|
|
189
|
-
.max(9)
|
|
190
|
-
.regex(/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/)
|
|
191
|
-
.optional(),
|
|
192
|
-
_id: zod_1.z.string(),
|
|
193
|
-
_project: zod_1.z.string(),
|
|
194
|
-
type: zod_1.z.enum(['development', 'staging', 'production', 'disaster_recovery']),
|
|
195
|
-
_createdBy: zod_1.z.string(),
|
|
196
|
-
createdAt: zod_1.z.string().datetime(),
|
|
197
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
198
|
-
sdkKeys: SDKKeys,
|
|
199
|
-
settings: EnvironmentSettings.optional(),
|
|
200
|
-
readonly: zod_1.z.boolean(),
|
|
201
|
-
});
|
|
202
|
-
const UpdateEnvironmentDto = zod_1.z
|
|
203
|
-
.object({
|
|
204
|
-
name: zod_1.z.string().max(100),
|
|
205
|
-
key: zod_1.z
|
|
206
|
-
.string()
|
|
207
|
-
.max(100)
|
|
208
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
209
|
-
description: zod_1.z.string().max(1000),
|
|
210
|
-
color: zod_1.z
|
|
211
|
-
.string()
|
|
212
|
-
.max(9)
|
|
213
|
-
.regex(/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/),
|
|
214
|
-
type: zod_1.z.enum([
|
|
215
|
-
'development',
|
|
216
|
-
'staging',
|
|
217
|
-
'production',
|
|
218
|
-
'disaster_recovery',
|
|
219
|
-
]),
|
|
220
|
-
settings: EnvironmentSettings,
|
|
221
|
-
})
|
|
222
|
-
.partial();
|
|
223
|
-
const GenerateSdkTokensDto = zod_1.z
|
|
224
|
-
.object({ client: zod_1.z.boolean(), server: zod_1.z.boolean(), mobile: zod_1.z.boolean() })
|
|
225
|
-
.partial();
|
|
226
|
-
const AllFilter = zod_1.z.object({
|
|
227
|
-
type: zod_1.z.literal('all').default('all'),
|
|
228
|
-
_audiences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
229
|
-
values: zod_1.z.array(zod_1.z.string()).optional(),
|
|
230
|
-
});
|
|
231
|
-
const OptInFilter = zod_1.z.object({
|
|
232
|
-
type: zod_1.z.literal('optIn').default('optIn'),
|
|
233
|
-
_audiences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
234
|
-
values: zod_1.z.array(zod_1.z.string()).optional(),
|
|
235
|
-
});
|
|
236
|
-
const UserFilter = zod_1.z.object({
|
|
237
|
-
subType: zod_1.z.enum(['user_id', 'email', 'platform', 'deviceModel']),
|
|
238
|
-
comparator: zod_1.z.enum([
|
|
239
|
-
'=',
|
|
240
|
-
'!=',
|
|
241
|
-
'exist',
|
|
242
|
-
'!exist',
|
|
243
|
-
'contain',
|
|
244
|
-
'!contain',
|
|
245
|
-
'startWith',
|
|
246
|
-
'!startWith',
|
|
247
|
-
'endWith',
|
|
248
|
-
'!endWith',
|
|
249
|
-
]),
|
|
250
|
-
values: zod_1.z.array(zod_1.z.string()).optional(),
|
|
251
|
-
_audiences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
252
|
-
type: zod_1.z.literal('user').default('user'),
|
|
253
|
-
});
|
|
254
|
-
const UserCountryFilter = zod_1.z.object({
|
|
255
|
-
subType: zod_1.z.literal('country').default('country'),
|
|
256
|
-
comparator: zod_1.z.enum([
|
|
257
|
-
'=',
|
|
258
|
-
'!=',
|
|
259
|
-
'exist',
|
|
260
|
-
'!exist',
|
|
261
|
-
'contain',
|
|
262
|
-
'!contain',
|
|
263
|
-
'startWith',
|
|
264
|
-
'!startWith',
|
|
265
|
-
'endWith',
|
|
266
|
-
'!endWith',
|
|
267
|
-
]),
|
|
268
|
-
values: zod_1.z.array(zod_1.z.string()),
|
|
269
|
-
_audiences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
270
|
-
type: zod_1.z.literal('user').default('user'),
|
|
271
|
-
});
|
|
272
|
-
const UserAppVersionFilter = zod_1.z.object({
|
|
273
|
-
comparator: zod_1.z.enum(['=', '!=', '>', '>=', '<', '<=', 'exist', '!exist']),
|
|
274
|
-
values: zod_1.z.array(zod_1.z.string()).optional(),
|
|
275
|
-
_audiences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
276
|
-
type: zod_1.z.literal('user').default('user'),
|
|
277
|
-
subType: zod_1.z.literal('appVersion').default('appVersion'),
|
|
278
|
-
});
|
|
279
|
-
const UserPlatformVersionFilter = zod_1.z.object({
|
|
280
|
-
comparator: zod_1.z.enum(['=', '!=', '>', '>=', '<', '<=', 'exist', '!exist']),
|
|
281
|
-
values: zod_1.z.array(zod_1.z.string()).optional(),
|
|
282
|
-
_audiences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
283
|
-
type: zod_1.z.literal('user').default('user'),
|
|
284
|
-
subType: zod_1.z.literal('platformVersion').default('platformVersion'),
|
|
285
|
-
});
|
|
286
|
-
const UserCustomFilter = zod_1.z.object({
|
|
287
|
-
comparator: zod_1.z.enum([
|
|
288
|
-
'=',
|
|
289
|
-
'!=',
|
|
290
|
-
'>',
|
|
291
|
-
'>=',
|
|
292
|
-
'<',
|
|
293
|
-
'<=',
|
|
294
|
-
'exist',
|
|
295
|
-
'!exist',
|
|
296
|
-
'contain',
|
|
297
|
-
'!contain',
|
|
298
|
-
'startWith',
|
|
299
|
-
'!startWith',
|
|
300
|
-
'endWith',
|
|
301
|
-
'!endWith',
|
|
302
|
-
]),
|
|
303
|
-
dataKey: zod_1.z.string().min(1),
|
|
304
|
-
dataKeyType: zod_1.z.enum(['String', 'Boolean', 'Number']),
|
|
305
|
-
values: zod_1.z.array(zod_1.z.union([zod_1.z.boolean(), zod_1.z.string(), zod_1.z.number()])).optional(),
|
|
306
|
-
_audiences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
307
|
-
type: zod_1.z.literal('user').default('user'),
|
|
308
|
-
subType: zod_1.z.literal('customData').default('customData'),
|
|
309
|
-
});
|
|
310
|
-
const AudienceOperator = zod_1.z.object({
|
|
311
|
-
filters: zod_1.z.array(zod_1.z.union([
|
|
312
|
-
AllFilter.passthrough(),
|
|
313
|
-
OptInFilter.passthrough(),
|
|
314
|
-
UserFilter.passthrough(),
|
|
315
|
-
UserCountryFilter.passthrough(),
|
|
316
|
-
UserAppVersionFilter.passthrough(),
|
|
317
|
-
UserPlatformVersionFilter.passthrough(),
|
|
318
|
-
UserCustomFilter.passthrough(),
|
|
319
|
-
])),
|
|
320
|
-
operator: zod_1.z.enum(['and', 'or']),
|
|
321
|
-
});
|
|
322
|
-
const CreateAudienceDto = zod_1.z.object({
|
|
323
|
-
name: zod_1.z.string().max(100).optional(),
|
|
324
|
-
key: zod_1.z
|
|
325
|
-
.string()
|
|
326
|
-
.max(100)
|
|
327
|
-
.regex(/^[a-z0-9-_.]+$/)
|
|
328
|
-
.optional(),
|
|
329
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
330
|
-
filters: AudienceOperator,
|
|
331
|
-
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
332
|
-
});
|
|
333
|
-
const Audience = zod_1.z.object({
|
|
334
|
-
name: zod_1.z.string().max(100).optional(),
|
|
335
|
-
key: zod_1.z
|
|
336
|
-
.string()
|
|
337
|
-
.max(100)
|
|
338
|
-
.regex(/^[a-z0-9-_.]+$/)
|
|
339
|
-
.optional(),
|
|
340
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
341
|
-
_id: zod_1.z.string(),
|
|
342
|
-
_project: zod_1.z.string(),
|
|
343
|
-
filters: AudienceOperator,
|
|
344
|
-
source: zod_1.z
|
|
345
|
-
.enum([
|
|
346
|
-
'api',
|
|
347
|
-
'dashboard',
|
|
348
|
-
'importer',
|
|
349
|
-
'github.code_usages',
|
|
350
|
-
'github.pr_insights',
|
|
351
|
-
'bitbucket.code_usages',
|
|
352
|
-
'bitbucket.pr_insights',
|
|
353
|
-
'terraform',
|
|
354
|
-
'cli',
|
|
355
|
-
])
|
|
356
|
-
.optional(),
|
|
357
|
-
_createdBy: zod_1.z.string().optional(),
|
|
358
|
-
createdAt: zod_1.z.string().datetime(),
|
|
359
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
360
|
-
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
361
|
-
});
|
|
362
|
-
const UpdateAudienceDto = zod_1.z
|
|
363
|
-
.object({
|
|
364
|
-
name: zod_1.z.string().max(100),
|
|
365
|
-
key: zod_1.z
|
|
366
|
-
.string()
|
|
367
|
-
.max(100)
|
|
368
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
369
|
-
description: zod_1.z.string().max(1000),
|
|
370
|
-
filters: AudienceOperator,
|
|
371
|
-
tags: zod_1.z.array(zod_1.z.string()),
|
|
372
|
-
})
|
|
373
|
-
.partial();
|
|
374
|
-
const VariableValidationEntity = zod_1.z.object({
|
|
375
|
-
schemaType: zod_1.z.enum(['enum', 'regex', 'jsonSchema']),
|
|
376
|
-
enumValues: zod_1.z.union([zod_1.z.array(zod_1.z.string()), zod_1.z.array(zod_1.z.number())]).optional(),
|
|
377
|
-
regexPattern: zod_1.z.string().optional(),
|
|
378
|
-
jsonSchema: zod_1.z.string().optional(),
|
|
379
|
-
description: zod_1.z.string(),
|
|
380
|
-
exampleValue: zod_1.z.any(),
|
|
381
|
-
});
|
|
382
|
-
const CreateVariableDto = zod_1.z.object({
|
|
383
|
-
name: zod_1.z.string().max(100).optional(),
|
|
384
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
385
|
-
key: zod_1.z
|
|
386
|
-
.string()
|
|
387
|
-
.max(100)
|
|
388
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
389
|
-
_feature: zod_1.z.string().optional(),
|
|
390
|
-
type: zod_1.z.enum(['String', 'Boolean', 'Number', 'JSON']),
|
|
391
|
-
defaultValue: zod_1.z.any().optional(),
|
|
392
|
-
validationSchema: VariableValidationEntity.optional(),
|
|
393
|
-
});
|
|
394
|
-
const Variable = zod_1.z.object({
|
|
395
|
-
name: zod_1.z.string().max(100).optional(),
|
|
396
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
397
|
-
key: zod_1.z
|
|
398
|
-
.string()
|
|
399
|
-
.max(100)
|
|
400
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
401
|
-
_id: zod_1.z.string(),
|
|
402
|
-
_project: zod_1.z.string(),
|
|
403
|
-
_feature: zod_1.z.string().optional(),
|
|
404
|
-
type: zod_1.z.enum(['String', 'Boolean', 'Number', 'JSON']),
|
|
405
|
-
status: zod_1.z.enum(['active', 'archived']),
|
|
406
|
-
defaultValue: zod_1.z.any().optional(),
|
|
407
|
-
source: zod_1.z.enum([
|
|
408
|
-
'api',
|
|
409
|
-
'dashboard',
|
|
410
|
-
'importer',
|
|
411
|
-
'github.code_usages',
|
|
412
|
-
'github.pr_insights',
|
|
413
|
-
'bitbucket.code_usages',
|
|
414
|
-
'bitbucket.pr_insights',
|
|
415
|
-
'terraform',
|
|
416
|
-
'cli',
|
|
417
|
-
]),
|
|
418
|
-
_createdBy: zod_1.z.string().optional(),
|
|
419
|
-
createdAt: zod_1.z.string().datetime(),
|
|
420
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
421
|
-
validationSchema: VariableValidationEntity.optional(),
|
|
422
|
-
persistent: zod_1.z.boolean().optional(),
|
|
423
|
-
});
|
|
424
|
-
const UpdateVariableDto = zod_1.z
|
|
425
|
-
.object({
|
|
426
|
-
name: zod_1.z.string().max(100),
|
|
427
|
-
description: zod_1.z.string().max(1000),
|
|
428
|
-
key: zod_1.z
|
|
429
|
-
.string()
|
|
430
|
-
.max(100)
|
|
431
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
432
|
-
type: zod_1.z.enum(['String', 'Boolean', 'Number', 'JSON']),
|
|
433
|
-
validationSchema: VariableValidationEntity,
|
|
434
|
-
})
|
|
435
|
-
.partial();
|
|
436
|
-
const UpdateVariableStatusDto = zod_1.z.object({
|
|
437
|
-
status: zod_1.z.enum(['active', 'archived']),
|
|
438
|
-
});
|
|
439
|
-
const ReassociateVariableDto = zod_1.z.object({
|
|
440
|
-
key: zod_1.z
|
|
441
|
-
.string()
|
|
442
|
-
.max(100)
|
|
443
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
444
|
-
});
|
|
445
|
-
const FeatureVariationDto = zod_1.z.object({
|
|
446
|
-
_id: zod_1.z.string(),
|
|
447
|
-
key: zod_1.z
|
|
448
|
-
.string()
|
|
449
|
-
.max(100)
|
|
450
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
451
|
-
name: zod_1.z.string().max(100),
|
|
452
|
-
variables: zod_1.z
|
|
453
|
-
.record(zod_1.z.union([
|
|
454
|
-
zod_1.z.string(),
|
|
455
|
-
zod_1.z.number(),
|
|
456
|
-
zod_1.z.boolean(),
|
|
457
|
-
zod_1.z.array(zod_1.z.unknown()),
|
|
458
|
-
zod_1.z.object({}).partial().passthrough(),
|
|
459
|
-
]))
|
|
460
|
-
.optional(),
|
|
461
|
-
});
|
|
462
|
-
const FeatureSettingsDto = zod_1.z.object({
|
|
463
|
-
publicName: zod_1.z.string().max(100),
|
|
464
|
-
publicDescription: zod_1.z.string().max(1000),
|
|
465
|
-
optInEnabled: zod_1.z.boolean(),
|
|
466
|
-
});
|
|
467
|
-
const FeatureSDKVisibilityDto = zod_1.z.object({
|
|
468
|
-
mobile: zod_1.z.boolean(),
|
|
469
|
-
client: zod_1.z.boolean(),
|
|
470
|
-
server: zod_1.z.boolean(),
|
|
471
|
-
});
|
|
472
|
-
const CreateFeatureDto = zod_1.z.object({
|
|
473
|
-
name: zod_1.z.string().max(100),
|
|
474
|
-
key: zod_1.z
|
|
475
|
-
.string()
|
|
476
|
-
.max(100)
|
|
477
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
478
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
479
|
-
variables: zod_1.z
|
|
480
|
-
.array(zod_1.z.union([CreateVariableDto, ReassociateVariableDto]))
|
|
481
|
-
.optional(),
|
|
482
|
-
configurations: zod_1.z
|
|
483
|
-
.record(zod_1.z.string(), zod_1.z.object({
|
|
484
|
-
targets: zod_1.z.array(zod_1.z.unknown()).optional(),
|
|
485
|
-
status: zod_1.z.string().optional(),
|
|
486
|
-
}))
|
|
487
|
-
.optional(),
|
|
488
|
-
variations: zod_1.z.array(FeatureVariationDto.partial()).optional(),
|
|
489
|
-
controlVariation: zod_1.z.string().optional(),
|
|
490
|
-
settings: FeatureSettingsDto.optional(),
|
|
491
|
-
sdkVisibility: FeatureSDKVisibilityDto.optional(),
|
|
492
|
-
type: zod_1.z.enum(['release', 'experiment', 'permission', 'ops']).optional(),
|
|
493
|
-
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
494
|
-
});
|
|
495
|
-
const Variation = zod_1.z.object({
|
|
496
|
-
key: zod_1.z
|
|
497
|
-
.string()
|
|
498
|
-
.max(100)
|
|
499
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
500
|
-
name: zod_1.z.string().max(100),
|
|
501
|
-
variables: zod_1.z
|
|
502
|
-
.record(zod_1.z.union([
|
|
503
|
-
zod_1.z.string(),
|
|
504
|
-
zod_1.z.number(),
|
|
505
|
-
zod_1.z.boolean(),
|
|
506
|
-
zod_1.z.array(zod_1.z.unknown()),
|
|
507
|
-
zod_1.z.object({}).partial().passthrough(),
|
|
508
|
-
]))
|
|
509
|
-
.optional(),
|
|
510
|
-
_id: zod_1.z.string(),
|
|
511
|
-
});
|
|
512
|
-
const CreateVariationDto = zod_1.z.object({
|
|
513
|
-
key: zod_1.z
|
|
514
|
-
.string()
|
|
515
|
-
.max(100)
|
|
516
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
517
|
-
name: zod_1.z.string().max(100),
|
|
518
|
-
variables: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
519
|
-
});
|
|
520
|
-
const FeatureSettings = zod_1.z.object({
|
|
521
|
-
publicName: zod_1.z.string().max(100),
|
|
522
|
-
publicDescription: zod_1.z.string().max(1000),
|
|
523
|
-
optInEnabled: zod_1.z.boolean(),
|
|
524
|
-
});
|
|
525
|
-
const FeatureSDKVisibility = zod_1.z.object({
|
|
526
|
-
mobile: zod_1.z.boolean(),
|
|
527
|
-
client: zod_1.z.boolean(),
|
|
528
|
-
server: zod_1.z.boolean(),
|
|
529
|
-
});
|
|
33
|
+
exports.CannotDeleteLastItemErrorResponse = CannotDeleteLastItemErrorResponse;
|
|
530
34
|
const PreconditionFailedErrorResponse = zod_1.z.object({
|
|
531
35
|
statusCode: zod_1.z.number(),
|
|
532
36
|
message: zod_1.z.object({}).partial(),
|
|
533
37
|
error: zod_1.z.string(),
|
|
534
38
|
});
|
|
535
|
-
|
|
536
|
-
.object({
|
|
537
|
-
name: zod_1.z.string().max(100),
|
|
538
|
-
key: zod_1.z
|
|
539
|
-
.string()
|
|
540
|
-
.max(100)
|
|
541
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
542
|
-
description: zod_1.z.string().max(1000),
|
|
543
|
-
variables: zod_1.z.array(zod_1.z.union([CreateVariableDto, ReassociateVariableDto])),
|
|
544
|
-
variations: zod_1.z.array(FeatureVariationDto),
|
|
545
|
-
settings: FeatureSettingsDto,
|
|
546
|
-
sdkVisibility: FeatureSDKVisibilityDto,
|
|
547
|
-
type: zod_1.z.enum(['release', 'experiment', 'permission', 'ops']),
|
|
548
|
-
tags: zod_1.z.array(zod_1.z.string()),
|
|
549
|
-
controlVariation: zod_1.z.string(),
|
|
550
|
-
})
|
|
551
|
-
.partial();
|
|
552
|
-
const LinkJiraIssueDto = zod_1.z.object({ issueId: zod_1.z.string() });
|
|
553
|
-
const JiraIssueLink = zod_1.z.object({ issueId: zod_1.z.string() });
|
|
554
|
-
const UpdateFeatureVariationDto = zod_1.z
|
|
555
|
-
.object({
|
|
556
|
-
key: zod_1.z
|
|
557
|
-
.string()
|
|
558
|
-
.max(100)
|
|
559
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
560
|
-
name: zod_1.z.string().max(100),
|
|
561
|
-
variables: zod_1.z.record(zod_1.z.union([
|
|
562
|
-
zod_1.z.string(),
|
|
563
|
-
zod_1.z.number(),
|
|
564
|
-
zod_1.z.boolean(),
|
|
565
|
-
zod_1.z.array(zod_1.z.unknown()),
|
|
566
|
-
zod_1.z.object({}).partial().passthrough(),
|
|
567
|
-
])),
|
|
568
|
-
_id: zod_1.z.string(),
|
|
569
|
-
})
|
|
570
|
-
.partial();
|
|
571
|
-
const AudienceMatchFilter = zod_1.z.object({
|
|
572
|
-
type: zod_1.z.literal('audienceMatch').default('audienceMatch'),
|
|
573
|
-
comparator: zod_1.z.enum(['=', '!=']).optional(),
|
|
574
|
-
_audiences: zod_1.z.array(zod_1.z.string()).optional(),
|
|
575
|
-
});
|
|
576
|
-
const AudienceOperatorWithAudienceMatchFilter = zod_1.z.object({
|
|
577
|
-
filters: zod_1.z.array(zod_1.z.union([
|
|
578
|
-
AllFilter.passthrough(),
|
|
579
|
-
OptInFilter.passthrough(),
|
|
580
|
-
UserFilter.passthrough(),
|
|
581
|
-
UserCountryFilter.passthrough(),
|
|
582
|
-
UserAppVersionFilter.passthrough(),
|
|
583
|
-
UserPlatformVersionFilter.passthrough(),
|
|
584
|
-
UserCustomFilter.passthrough(),
|
|
585
|
-
AudienceMatchFilter.passthrough(),
|
|
586
|
-
])),
|
|
587
|
-
operator: zod_1.z.enum(['and', 'or']),
|
|
588
|
-
});
|
|
589
|
-
const TargetAudience = zod_1.z.object({
|
|
590
|
-
name: zod_1.z.string().max(100).optional(),
|
|
591
|
-
filters: AudienceOperatorWithAudienceMatchFilter,
|
|
592
|
-
});
|
|
593
|
-
const RolloutStage = zod_1.z.object({
|
|
594
|
-
percentage: zod_1.z.number().gte(0).lte(1),
|
|
595
|
-
type: zod_1.z.enum(['linear', 'discrete']),
|
|
596
|
-
date: zod_1.z.string().datetime(),
|
|
597
|
-
});
|
|
598
|
-
const Rollout = zod_1.z.object({
|
|
599
|
-
startPercentage: zod_1.z.number().gte(0).lte(1).optional(),
|
|
600
|
-
type: zod_1.z.enum(['schedule', 'gradual', 'stepped']),
|
|
601
|
-
startDate: zod_1.z.string().datetime(),
|
|
602
|
-
stages: zod_1.z.array(RolloutStage).optional(),
|
|
603
|
-
});
|
|
604
|
-
const TargetDistribution = zod_1.z.object({
|
|
605
|
-
percentage: zod_1.z.number().gte(0).lte(1),
|
|
606
|
-
_variation: zod_1.z.string(),
|
|
607
|
-
});
|
|
608
|
-
const Target = zod_1.z.object({
|
|
609
|
-
_id: zod_1.z.string(),
|
|
610
|
-
name: zod_1.z.string().optional(),
|
|
611
|
-
audience: TargetAudience,
|
|
612
|
-
filters: zod_1.z.array(zod_1.z.unknown()).optional(),
|
|
613
|
-
rollout: Rollout.nullable().optional(),
|
|
614
|
-
distribution: zod_1.z.array(TargetDistribution),
|
|
615
|
-
bucketingKey: zod_1.z.string().optional(),
|
|
616
|
-
});
|
|
617
|
-
const FeatureConfig = zod_1.z.object({
|
|
618
|
-
_feature: zod_1.z.string(),
|
|
619
|
-
_environment: zod_1.z.string(),
|
|
620
|
-
_createdBy: zod_1.z.string(),
|
|
621
|
-
status: zod_1.z.enum(['active', 'inactive', 'archived']),
|
|
622
|
-
startedAt: zod_1.z.string().datetime().optional(),
|
|
623
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
624
|
-
targets: zod_1.z.array(Target),
|
|
625
|
-
readonly: zod_1.z.boolean(),
|
|
626
|
-
hasStaticConfig: zod_1.z.boolean().optional(),
|
|
627
|
-
});
|
|
628
|
-
const UpdateTargetDto = zod_1.z.object({
|
|
629
|
-
_id: zod_1.z.string().optional(),
|
|
630
|
-
name: zod_1.z.string().optional(),
|
|
631
|
-
rollout: Rollout.nullable().optional(),
|
|
632
|
-
distribution: zod_1.z.array(TargetDistribution),
|
|
633
|
-
audience: TargetAudience,
|
|
634
|
-
});
|
|
635
|
-
const UpdateFeatureConfigDto = zod_1.z
|
|
636
|
-
.object({
|
|
637
|
-
targets: zod_1.z.array(UpdateTargetDto),
|
|
638
|
-
status: zod_1.z.enum(['active', 'inactive', 'archived']),
|
|
639
|
-
})
|
|
640
|
-
.partial();
|
|
641
|
-
const ResultSummaryDto = zod_1.z.object({
|
|
642
|
-
result: zod_1.z
|
|
643
|
-
.object({
|
|
644
|
-
counts: zod_1.z
|
|
645
|
-
.object({
|
|
646
|
-
total: zod_1.z.number(),
|
|
647
|
-
withFeature: zod_1.z.number(),
|
|
648
|
-
accessedFeature: zod_1.z.number(),
|
|
649
|
-
})
|
|
650
|
-
.partial(),
|
|
651
|
-
})
|
|
652
|
-
.partial(),
|
|
653
|
-
cached: zod_1.z.boolean(),
|
|
654
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
655
|
-
});
|
|
656
|
-
const Feature = zod_1.z.object({
|
|
657
|
-
name: zod_1.z.string().max(100),
|
|
658
|
-
key: zod_1.z
|
|
659
|
-
.string()
|
|
660
|
-
.max(100)
|
|
661
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
662
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
663
|
-
_id: zod_1.z.string(),
|
|
664
|
-
_project: zod_1.z.string(),
|
|
665
|
-
source: zod_1.z.enum([
|
|
666
|
-
'api',
|
|
667
|
-
'dashboard',
|
|
668
|
-
'importer',
|
|
669
|
-
'github.code_usages',
|
|
670
|
-
'github.pr_insights',
|
|
671
|
-
'bitbucket.code_usages',
|
|
672
|
-
'bitbucket.pr_insights',
|
|
673
|
-
'terraform',
|
|
674
|
-
'cli',
|
|
675
|
-
]),
|
|
676
|
-
type: zod_1.z.enum(['release', 'experiment', 'permission', 'ops']).optional(),
|
|
677
|
-
status: zod_1.z.enum(['active', 'complete', 'archived']).optional(),
|
|
678
|
-
configurations: zod_1.z.array(FeatureConfig.partial()).optional(),
|
|
679
|
-
_createdBy: zod_1.z.string().optional(),
|
|
680
|
-
createdAt: zod_1.z.string().datetime(),
|
|
681
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
682
|
-
variations: zod_1.z.array(Variation),
|
|
683
|
-
controlVariation: zod_1.z.string(),
|
|
684
|
-
variables: zod_1.z.array(Variable),
|
|
685
|
-
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
686
|
-
ldLink: zod_1.z.string().optional(),
|
|
687
|
-
readonly: zod_1.z.boolean(),
|
|
688
|
-
settings: FeatureSettings.partial().optional(),
|
|
689
|
-
sdkVisibility: FeatureSDKVisibility.optional(),
|
|
690
|
-
staleness: zod_1.z
|
|
691
|
-
.object({
|
|
692
|
-
stale: zod_1.z.boolean(),
|
|
693
|
-
updatedAt: zod_1.z.string().datetime().optional(),
|
|
694
|
-
disabled: zod_1.z.boolean().optional(),
|
|
695
|
-
snoozedUntil: zod_1.z.string().datetime().optional(),
|
|
696
|
-
reason: zod_1.z.string().optional(),
|
|
697
|
-
metaData: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
698
|
-
})
|
|
699
|
-
.optional(),
|
|
700
|
-
});
|
|
701
|
-
const FeatureDataPoint = zod_1.z.object({
|
|
702
|
-
values: zod_1.z.object({}).partial(),
|
|
703
|
-
date: zod_1.z.string().datetime(),
|
|
704
|
-
});
|
|
705
|
-
const ResultEvaluationsByHourDto = zod_1.z.object({
|
|
706
|
-
result: zod_1.z.object({ evaluations: zod_1.z.array(FeatureDataPoint) }).partial(),
|
|
707
|
-
cached: zod_1.z.boolean(),
|
|
708
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
709
|
-
});
|
|
710
|
-
const ProjectDataPoint = zod_1.z.object({
|
|
711
|
-
date: zod_1.z.string().datetime(),
|
|
712
|
-
value: zod_1.z.number(),
|
|
713
|
-
});
|
|
714
|
-
const ResultProjectEvaluationsByHourDto = zod_1.z.object({
|
|
715
|
-
result: zod_1.z.object({ evaluations: zod_1.z.array(ProjectDataPoint) }).partial(),
|
|
716
|
-
cached: zod_1.z.boolean(),
|
|
717
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
718
|
-
});
|
|
719
|
-
const CreateCustomPropertyDto = zod_1.z.object({
|
|
720
|
-
name: zod_1.z.string().max(100),
|
|
721
|
-
key: zod_1.z
|
|
722
|
-
.string()
|
|
723
|
-
.max(100)
|
|
724
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
725
|
-
type: zod_1.z.enum(['String', 'Boolean', 'Number']),
|
|
726
|
-
propertyKey: zod_1.z.string(),
|
|
727
|
-
});
|
|
728
|
-
const CustomProperty = zod_1.z.object({
|
|
729
|
-
name: zod_1.z.string().max(100),
|
|
730
|
-
key: zod_1.z
|
|
731
|
-
.string()
|
|
732
|
-
.max(100)
|
|
733
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
734
|
-
_id: zod_1.z.string(),
|
|
735
|
-
_project: zod_1.z.string(),
|
|
736
|
-
_createdBy: zod_1.z.string(),
|
|
737
|
-
propertyKey: zod_1.z.string(),
|
|
738
|
-
schema: zod_1.z
|
|
739
|
-
.object({
|
|
740
|
-
schemaType: zod_1.z.enum(['enum']),
|
|
741
|
-
required: zod_1.z.boolean().optional(),
|
|
742
|
-
enumSchema: zod_1.z
|
|
743
|
-
.object({
|
|
744
|
-
allowedValues: zod_1.z.array(zod_1.z.object({
|
|
745
|
-
label: zod_1.z.string(),
|
|
746
|
-
value: zod_1.z.union([zod_1.z.string(), zod_1.z.number()]),
|
|
747
|
-
})),
|
|
748
|
-
allowAdditionalValues: zod_1.z.boolean().optional(),
|
|
749
|
-
})
|
|
750
|
-
.optional(),
|
|
751
|
-
})
|
|
752
|
-
.optional(),
|
|
753
|
-
type: zod_1.z.enum(['String', 'Boolean', 'Number']),
|
|
754
|
-
createdAt: zod_1.z.string().datetime(),
|
|
755
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
756
|
-
});
|
|
757
|
-
const UpdateCustomPropertyDto = zod_1.z
|
|
758
|
-
.object({
|
|
759
|
-
name: zod_1.z.string().max(100),
|
|
760
|
-
key: zod_1.z
|
|
761
|
-
.string()
|
|
762
|
-
.max(100)
|
|
763
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
764
|
-
propertyKey: zod_1.z.string(),
|
|
765
|
-
type: zod_1.z.enum(['String', 'Boolean', 'Number']),
|
|
766
|
-
})
|
|
767
|
-
.partial();
|
|
768
|
-
const CreateMetricDto = zod_1.z.object({
|
|
769
|
-
name: zod_1.z.string().max(100),
|
|
770
|
-
key: zod_1.z
|
|
771
|
-
.string()
|
|
772
|
-
.max(100)
|
|
773
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
774
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
775
|
-
event: zod_1.z.string(),
|
|
776
|
-
dimension: zod_1.z.enum([
|
|
777
|
-
'COUNT_PER_UNIQUE_USER',
|
|
778
|
-
'COUNT_PER_VARIABLE_EVALUATION',
|
|
779
|
-
'SUM_PER_UNIQUE_USER',
|
|
780
|
-
'AVERAGE_PER_UNIQUE_USER',
|
|
781
|
-
'TOTAL_AVERAGE',
|
|
782
|
-
'TOTAL_SUM',
|
|
783
|
-
]),
|
|
784
|
-
optimize: zod_1.z.enum(['increase', 'decrease']),
|
|
785
|
-
});
|
|
786
|
-
const Metric = zod_1.z.object({
|
|
787
|
-
name: zod_1.z.string().max(100),
|
|
788
|
-
key: zod_1.z
|
|
789
|
-
.string()
|
|
790
|
-
.max(100)
|
|
791
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
792
|
-
description: zod_1.z.string().max(1000).optional(),
|
|
793
|
-
_id: zod_1.z.string(),
|
|
794
|
-
_project: zod_1.z.string(),
|
|
795
|
-
source: zod_1.z
|
|
796
|
-
.enum([
|
|
797
|
-
'api',
|
|
798
|
-
'dashboard',
|
|
799
|
-
'importer',
|
|
800
|
-
'github.code_usages',
|
|
801
|
-
'github.pr_insights',
|
|
802
|
-
'bitbucket.code_usages',
|
|
803
|
-
'bitbucket.pr_insights',
|
|
804
|
-
'terraform',
|
|
805
|
-
'cli',
|
|
806
|
-
])
|
|
807
|
-
.optional(),
|
|
808
|
-
event: zod_1.z.string(),
|
|
809
|
-
dimension: zod_1.z.enum([
|
|
810
|
-
'COUNT_PER_UNIQUE_USER',
|
|
811
|
-
'COUNT_PER_VARIABLE_EVALUATION',
|
|
812
|
-
'SUM_PER_UNIQUE_USER',
|
|
813
|
-
'AVERAGE_PER_UNIQUE_USER',
|
|
814
|
-
'TOTAL_AVERAGE',
|
|
815
|
-
'TOTAL_SUM',
|
|
816
|
-
]),
|
|
817
|
-
optimize: zod_1.z.enum(['increase', 'decrease']),
|
|
818
|
-
createdAt: zod_1.z.string().datetime(),
|
|
819
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
820
|
-
});
|
|
821
|
-
const UpdateMetricDto = zod_1.z
|
|
822
|
-
.object({
|
|
823
|
-
name: zod_1.z.string().max(100),
|
|
824
|
-
key: zod_1.z
|
|
825
|
-
.string()
|
|
826
|
-
.max(100)
|
|
827
|
-
.regex(/^[a-z0-9-_.]+$/),
|
|
828
|
-
description: zod_1.z.string().max(1000),
|
|
829
|
-
event: zod_1.z.string(),
|
|
830
|
-
dimension: zod_1.z.enum([
|
|
831
|
-
'COUNT_PER_UNIQUE_USER',
|
|
832
|
-
'COUNT_PER_VARIABLE_EVALUATION',
|
|
833
|
-
'SUM_PER_UNIQUE_USER',
|
|
834
|
-
'AVERAGE_PER_UNIQUE_USER',
|
|
835
|
-
'TOTAL_AVERAGE',
|
|
836
|
-
'TOTAL_SUM',
|
|
837
|
-
]),
|
|
838
|
-
optimize: zod_1.z.enum(['increase', 'decrease']),
|
|
839
|
-
})
|
|
840
|
-
.partial();
|
|
841
|
-
const VariationValues = zod_1.z.object({}).partial();
|
|
842
|
-
const DataPoint = zod_1.z.object({
|
|
843
|
-
date: zod_1.z.string().datetime(),
|
|
844
|
-
values: VariationValues,
|
|
845
|
-
});
|
|
846
|
-
const VariationResult = zod_1.z.object({
|
|
847
|
-
key: zod_1.z.string(),
|
|
848
|
-
name: zod_1.z.string(),
|
|
849
|
-
numerator: zod_1.z.number(),
|
|
850
|
-
denominator: zod_1.z.number(),
|
|
851
|
-
rate: zod_1.z.number(),
|
|
852
|
-
avgValue: zod_1.z.number().optional(),
|
|
853
|
-
totalValue: zod_1.z.number().optional(),
|
|
854
|
-
stdev: zod_1.z.number().optional(),
|
|
855
|
-
percentDifference: zod_1.z.number().nullable(),
|
|
856
|
-
chanceToBeatControl: zod_1.z.number().nullable(),
|
|
857
|
-
});
|
|
858
|
-
const MetricResult = zod_1.z.object({
|
|
859
|
-
result: zod_1.z
|
|
860
|
-
.object({
|
|
861
|
-
dataSeries: zod_1.z.array(DataPoint),
|
|
862
|
-
variations: zod_1.z.array(VariationResult),
|
|
863
|
-
})
|
|
864
|
-
.partial(),
|
|
865
|
-
cached: zod_1.z.boolean(),
|
|
866
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
867
|
-
});
|
|
868
|
-
const MetricAssociation = zod_1.z.object({
|
|
869
|
-
_project: zod_1.z.string(),
|
|
870
|
-
feature: Feature,
|
|
871
|
-
metric: Metric,
|
|
872
|
-
createdAt: zod_1.z.string().datetime(),
|
|
873
|
-
});
|
|
874
|
-
const CreateMetricAssociationDto = zod_1.z.object({
|
|
875
|
-
metric: zod_1.z.string(),
|
|
876
|
-
feature: zod_1.z.string(),
|
|
877
|
-
});
|
|
878
|
-
const DeleteMetricAssociationDto = zod_1.z.object({
|
|
879
|
-
metric: zod_1.z.string(),
|
|
880
|
-
feature: zod_1.z.string(),
|
|
881
|
-
});
|
|
882
|
-
const ProjectUserProfile = zod_1.z.object({
|
|
883
|
-
_id: zod_1.z.string(),
|
|
884
|
-
_project: zod_1.z.string(),
|
|
885
|
-
a0_user: zod_1.z.string(),
|
|
886
|
-
createdAt: zod_1.z.string().datetime(),
|
|
887
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
888
|
-
dvcUserId: zod_1.z.string().optional(),
|
|
889
|
-
});
|
|
890
|
-
const UpdateProjectUserProfileDto = zod_1.z.object({
|
|
891
|
-
dvcUserId: zod_1.z.string().nullable(),
|
|
892
|
-
});
|
|
893
|
-
const Override = zod_1.z.object({
|
|
894
|
-
_project: zod_1.z.string(),
|
|
895
|
-
_environment: zod_1.z.string(),
|
|
896
|
-
_feature: zod_1.z.string(),
|
|
897
|
-
_variation: zod_1.z.string(),
|
|
898
|
-
dvcUserId: zod_1.z.string(),
|
|
899
|
-
createdAt: zod_1.z.string().datetime(),
|
|
900
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
901
|
-
a0_user: zod_1.z.string().optional(),
|
|
902
|
-
});
|
|
903
|
-
const Overrides = zod_1.z.array(Override);
|
|
904
|
-
const UpdateUserOverrideDto = zod_1.z.object({
|
|
905
|
-
environment: zod_1.z.string(),
|
|
906
|
-
variation: zod_1.z.string(),
|
|
907
|
-
});
|
|
908
|
-
const FeatureOverride = zod_1.z.object({
|
|
909
|
-
_environment: zod_1.z.string(),
|
|
910
|
-
_variation: zod_1.z.string(),
|
|
911
|
-
});
|
|
912
|
-
const FeatureOverrideResponse = zod_1.z.object({
|
|
913
|
-
overrides: zod_1.z.array(FeatureOverride),
|
|
914
|
-
});
|
|
915
|
-
const UserOverride = zod_1.z.object({
|
|
916
|
-
_feature: zod_1.z.string(),
|
|
917
|
-
featureName: zod_1.z.string(),
|
|
918
|
-
_environment: zod_1.z.string(),
|
|
919
|
-
environmentName: zod_1.z.string(),
|
|
920
|
-
_variation: zod_1.z.string(),
|
|
921
|
-
variationName: zod_1.z.string(),
|
|
922
|
-
});
|
|
923
|
-
const UserOverrides = zod_1.z.array(UserOverride);
|
|
924
|
-
exports.schemas = {
|
|
925
|
-
EdgeDBSettings,
|
|
926
|
-
ColorSettings,
|
|
927
|
-
OptInSettings,
|
|
928
|
-
SDKTypeVisibilitySettings,
|
|
929
|
-
ProjectSettings,
|
|
930
|
-
GetProjectsParams,
|
|
931
|
-
CreateProjectDto,
|
|
932
|
-
Project,
|
|
933
|
-
BadRequestErrorResponse,
|
|
934
|
-
ConflictErrorResponse,
|
|
935
|
-
NotFoundErrorResponse,
|
|
936
|
-
UpdateProjectDto,
|
|
937
|
-
CannotDeleteLastItemErrorResponse,
|
|
938
|
-
EnvironmentSettings,
|
|
939
|
-
CreateEnvironmentDto,
|
|
940
|
-
APIKey,
|
|
941
|
-
SDKKeys,
|
|
942
|
-
Environment,
|
|
943
|
-
UpdateEnvironmentDto,
|
|
944
|
-
GenerateSdkTokensDto,
|
|
945
|
-
AllFilter,
|
|
946
|
-
OptInFilter,
|
|
947
|
-
UserFilter,
|
|
948
|
-
UserCountryFilter,
|
|
949
|
-
UserAppVersionFilter,
|
|
950
|
-
UserPlatformVersionFilter,
|
|
951
|
-
UserCustomFilter,
|
|
952
|
-
AudienceOperator,
|
|
953
|
-
CreateAudienceDto,
|
|
954
|
-
Audience,
|
|
955
|
-
UpdateAudienceDto,
|
|
956
|
-
VariableValidationEntity,
|
|
957
|
-
CreateVariableDto,
|
|
958
|
-
Variable,
|
|
959
|
-
UpdateVariableDto,
|
|
960
|
-
UpdateVariableStatusDto,
|
|
961
|
-
ReassociateVariableDto,
|
|
962
|
-
FeatureVariationDto,
|
|
963
|
-
FeatureSettingsDto,
|
|
964
|
-
FeatureSDKVisibilityDto,
|
|
965
|
-
CreateFeatureDto,
|
|
966
|
-
Variation,
|
|
967
|
-
CreateVariationDto,
|
|
968
|
-
FeatureSettings,
|
|
969
|
-
FeatureSDKVisibility,
|
|
970
|
-
Feature,
|
|
971
|
-
PreconditionFailedErrorResponse,
|
|
972
|
-
UpdateFeatureDto,
|
|
973
|
-
LinkJiraIssueDto,
|
|
974
|
-
JiraIssueLink,
|
|
975
|
-
UpdateFeatureVariationDto,
|
|
976
|
-
AudienceMatchFilter,
|
|
977
|
-
AudienceOperatorWithAudienceMatchFilter,
|
|
978
|
-
TargetAudience,
|
|
979
|
-
RolloutStage,
|
|
980
|
-
Rollout,
|
|
981
|
-
TargetDistribution,
|
|
982
|
-
Target,
|
|
983
|
-
FeatureConfig,
|
|
984
|
-
UpdateTargetDto,
|
|
985
|
-
UpdateFeatureConfigDto,
|
|
986
|
-
ResultSummaryDto,
|
|
987
|
-
FeatureDataPoint,
|
|
988
|
-
ResultEvaluationsByHourDto,
|
|
989
|
-
ProjectDataPoint,
|
|
990
|
-
ResultProjectEvaluationsByHourDto,
|
|
991
|
-
CreateCustomPropertyDto,
|
|
992
|
-
CustomProperty,
|
|
993
|
-
UpdateCustomPropertyDto,
|
|
994
|
-
CreateMetricDto,
|
|
995
|
-
Metric,
|
|
996
|
-
UpdateMetricDto,
|
|
997
|
-
VariationValues,
|
|
998
|
-
DataPoint,
|
|
999
|
-
VariationResult,
|
|
1000
|
-
MetricResult,
|
|
1001
|
-
MetricAssociation,
|
|
1002
|
-
CreateMetricAssociationDto,
|
|
1003
|
-
DeleteMetricAssociationDto,
|
|
1004
|
-
ProjectUserProfile,
|
|
1005
|
-
UpdateProjectUserProfileDto,
|
|
1006
|
-
UpdateUserOverrideDto,
|
|
1007
|
-
Override,
|
|
1008
|
-
Overrides,
|
|
1009
|
-
FeatureOverrideResponse,
|
|
1010
|
-
UserOverride,
|
|
1011
|
-
UserOverrides,
|
|
1012
|
-
};
|
|
39
|
+
exports.PreconditionFailedErrorResponse = PreconditionFailedErrorResponse;
|
|
1013
40
|
const endpoints = (0, core_1.makeApi)([
|
|
1014
41
|
{
|
|
1015
42
|
method: 'post',
|
|
@@ -1021,10 +48,10 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1021
48
|
{
|
|
1022
49
|
name: 'body',
|
|
1023
50
|
type: 'Body',
|
|
1024
|
-
schema: CreateProjectDto,
|
|
51
|
+
schema: zodSchemas_1.CreateProjectDto,
|
|
1025
52
|
},
|
|
1026
53
|
],
|
|
1027
|
-
response: Project,
|
|
54
|
+
response: zodSchemas_1.Project,
|
|
1028
55
|
errors: [
|
|
1029
56
|
{
|
|
1030
57
|
status: 400,
|
|
@@ -1074,7 +101,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1074
101
|
schema: zod_1.z.string().optional(),
|
|
1075
102
|
},
|
|
1076
103
|
],
|
|
1077
|
-
response: zod_1.z.array(Project),
|
|
104
|
+
response: zod_1.z.array(zodSchemas_1.Project),
|
|
1078
105
|
errors: [
|
|
1079
106
|
{
|
|
1080
107
|
status: 400,
|
|
@@ -1095,7 +122,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1095
122
|
schema: zod_1.z.string(),
|
|
1096
123
|
},
|
|
1097
124
|
],
|
|
1098
|
-
response: Project,
|
|
125
|
+
response: zodSchemas_1.Project,
|
|
1099
126
|
errors: [
|
|
1100
127
|
{
|
|
1101
128
|
status: 404,
|
|
@@ -1113,7 +140,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1113
140
|
{
|
|
1114
141
|
name: 'body',
|
|
1115
142
|
type: 'Body',
|
|
1116
|
-
schema: UpdateProjectDto,
|
|
143
|
+
schema: zodSchemas_1.UpdateProjectDto,
|
|
1117
144
|
},
|
|
1118
145
|
{
|
|
1119
146
|
name: 'key',
|
|
@@ -1121,7 +148,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1121
148
|
schema: zod_1.z.string(),
|
|
1122
149
|
},
|
|
1123
150
|
],
|
|
1124
|
-
response: Project,
|
|
151
|
+
response: zodSchemas_1.Project,
|
|
1125
152
|
errors: [
|
|
1126
153
|
{
|
|
1127
154
|
status: 400,
|
|
@@ -1172,7 +199,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1172
199
|
{
|
|
1173
200
|
name: 'body',
|
|
1174
201
|
type: 'Body',
|
|
1175
|
-
schema: CreateAudienceDto,
|
|
202
|
+
schema: zodSchemas_1.CreateAudienceDto,
|
|
1176
203
|
},
|
|
1177
204
|
{
|
|
1178
205
|
name: 'project',
|
|
@@ -1180,7 +207,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1180
207
|
schema: zod_1.z.string(),
|
|
1181
208
|
},
|
|
1182
209
|
],
|
|
1183
|
-
response: Audience,
|
|
210
|
+
response: zodSchemas_1.Audience,
|
|
1184
211
|
errors: [
|
|
1185
212
|
{
|
|
1186
213
|
status: 400,
|
|
@@ -1238,7 +265,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1238
265
|
schema: zod_1.z.string(),
|
|
1239
266
|
},
|
|
1240
267
|
],
|
|
1241
|
-
response: zod_1.z.array(Audience),
|
|
268
|
+
response: zod_1.z.array(zodSchemas_1.Audience),
|
|
1242
269
|
errors: [
|
|
1243
270
|
{
|
|
1244
271
|
status: 401,
|
|
@@ -1268,7 +295,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1268
295
|
schema: zod_1.z.string(),
|
|
1269
296
|
},
|
|
1270
297
|
],
|
|
1271
|
-
response: Audience,
|
|
298
|
+
response: zodSchemas_1.Audience,
|
|
1272
299
|
errors: [
|
|
1273
300
|
{
|
|
1274
301
|
status: 401,
|
|
@@ -1290,7 +317,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1290
317
|
{
|
|
1291
318
|
name: 'body',
|
|
1292
319
|
type: 'Body',
|
|
1293
|
-
schema: UpdateAudienceDto,
|
|
320
|
+
schema: zodSchemas_1.UpdateAudienceDto,
|
|
1294
321
|
},
|
|
1295
322
|
{
|
|
1296
323
|
name: 'key',
|
|
@@ -1303,7 +330,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1303
330
|
schema: zod_1.z.string(),
|
|
1304
331
|
},
|
|
1305
332
|
],
|
|
1306
|
-
response: Audience,
|
|
333
|
+
response: zodSchemas_1.Audience,
|
|
1307
334
|
errors: [
|
|
1308
335
|
{
|
|
1309
336
|
status: 400,
|
|
@@ -1363,7 +390,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1363
390
|
{
|
|
1364
391
|
name: 'body',
|
|
1365
392
|
type: 'Body',
|
|
1366
|
-
schema: CreateCustomPropertyDto,
|
|
393
|
+
schema: zodSchemas_1.CreateCustomPropertyDto,
|
|
1367
394
|
},
|
|
1368
395
|
{
|
|
1369
396
|
name: 'project',
|
|
@@ -1371,7 +398,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1371
398
|
schema: zod_1.z.string(),
|
|
1372
399
|
},
|
|
1373
400
|
],
|
|
1374
|
-
response: CustomProperty,
|
|
401
|
+
response: zodSchemas_1.CustomProperty,
|
|
1375
402
|
errors: [
|
|
1376
403
|
{
|
|
1377
404
|
status: 400,
|
|
@@ -1434,7 +461,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1434
461
|
schema: zod_1.z.string(),
|
|
1435
462
|
},
|
|
1436
463
|
],
|
|
1437
|
-
response: zod_1.z.array(CustomProperty),
|
|
464
|
+
response: zod_1.z.array(zodSchemas_1.CustomProperty),
|
|
1438
465
|
errors: [
|
|
1439
466
|
{
|
|
1440
467
|
status: 400,
|
|
@@ -1468,7 +495,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1468
495
|
schema: zod_1.z.string(),
|
|
1469
496
|
},
|
|
1470
497
|
],
|
|
1471
|
-
response: CustomProperty,
|
|
498
|
+
response: zodSchemas_1.CustomProperty,
|
|
1472
499
|
errors: [
|
|
1473
500
|
{
|
|
1474
501
|
status: 401,
|
|
@@ -1490,7 +517,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1490
517
|
{
|
|
1491
518
|
name: 'body',
|
|
1492
519
|
type: 'Body',
|
|
1493
|
-
schema: UpdateCustomPropertyDto,
|
|
520
|
+
schema: zodSchemas_1.UpdateCustomPropertyDto,
|
|
1494
521
|
},
|
|
1495
522
|
{
|
|
1496
523
|
name: 'key',
|
|
@@ -1503,7 +530,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1503
530
|
schema: zod_1.z.string(),
|
|
1504
531
|
},
|
|
1505
532
|
],
|
|
1506
|
-
response: CustomProperty,
|
|
533
|
+
response: zodSchemas_1.CustomProperty,
|
|
1507
534
|
errors: [
|
|
1508
535
|
{
|
|
1509
536
|
status: 400,
|
|
@@ -1563,7 +590,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1563
590
|
{
|
|
1564
591
|
name: 'body',
|
|
1565
592
|
type: 'Body',
|
|
1566
|
-
schema: CreateEnvironmentDto,
|
|
593
|
+
schema: zodSchemas_1.CreateEnvironmentDto,
|
|
1567
594
|
},
|
|
1568
595
|
{
|
|
1569
596
|
name: 'project',
|
|
@@ -1571,7 +598,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1571
598
|
schema: zod_1.z.string(),
|
|
1572
599
|
},
|
|
1573
600
|
],
|
|
1574
|
-
response: Environment,
|
|
601
|
+
response: zodSchemas_1.Environment,
|
|
1575
602
|
errors: [
|
|
1576
603
|
{
|
|
1577
604
|
status: 400,
|
|
@@ -1634,7 +661,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1634
661
|
schema: zod_1.z.string(),
|
|
1635
662
|
},
|
|
1636
663
|
],
|
|
1637
|
-
response: zod_1.z.array(Environment),
|
|
664
|
+
response: zod_1.z.array(zodSchemas_1.Environment),
|
|
1638
665
|
errors: [
|
|
1639
666
|
{
|
|
1640
667
|
status: 400,
|
|
@@ -1660,7 +687,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1660
687
|
{
|
|
1661
688
|
name: 'body',
|
|
1662
689
|
type: 'Body',
|
|
1663
|
-
schema: GenerateSdkTokensDto,
|
|
690
|
+
schema: zodSchemas_1.GenerateSdkTokensDto,
|
|
1664
691
|
},
|
|
1665
692
|
{
|
|
1666
693
|
name: 'environment',
|
|
@@ -1673,7 +700,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1673
700
|
schema: zod_1.z.string(),
|
|
1674
701
|
},
|
|
1675
702
|
],
|
|
1676
|
-
response: Environment,
|
|
703
|
+
response: zodSchemas_1.Environment,
|
|
1677
704
|
errors: [
|
|
1678
705
|
{
|
|
1679
706
|
status: 400,
|
|
@@ -1746,7 +773,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1746
773
|
schema: zod_1.z.string(),
|
|
1747
774
|
},
|
|
1748
775
|
],
|
|
1749
|
-
response: Environment,
|
|
776
|
+
response: zodSchemas_1.Environment,
|
|
1750
777
|
errors: [
|
|
1751
778
|
{
|
|
1752
779
|
status: 401,
|
|
@@ -1768,7 +795,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1768
795
|
{
|
|
1769
796
|
name: 'body',
|
|
1770
797
|
type: 'Body',
|
|
1771
|
-
schema: UpdateEnvironmentDto,
|
|
798
|
+
schema: zodSchemas_1.UpdateEnvironmentDto,
|
|
1772
799
|
},
|
|
1773
800
|
{
|
|
1774
801
|
name: 'key',
|
|
@@ -1781,7 +808,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1781
808
|
schema: zod_1.z.string(),
|
|
1782
809
|
},
|
|
1783
810
|
],
|
|
1784
|
-
response: Environment,
|
|
811
|
+
response: zodSchemas_1.Environment,
|
|
1785
812
|
errors: [
|
|
1786
813
|
{
|
|
1787
814
|
status: 400,
|
|
@@ -1845,7 +872,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1845
872
|
{
|
|
1846
873
|
name: 'body',
|
|
1847
874
|
type: 'Body',
|
|
1848
|
-
schema: CreateFeatureDto,
|
|
875
|
+
schema: zodSchemas_1.CreateFeatureDto,
|
|
1849
876
|
},
|
|
1850
877
|
{
|
|
1851
878
|
name: 'project',
|
|
@@ -1853,7 +880,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1853
880
|
schema: zod_1.z.string(),
|
|
1854
881
|
},
|
|
1855
882
|
],
|
|
1856
|
-
response: Feature,
|
|
883
|
+
response: zodSchemas_1.Feature,
|
|
1857
884
|
errors: [
|
|
1858
885
|
{
|
|
1859
886
|
status: 400,
|
|
@@ -1887,17 +914,27 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1887
914
|
{
|
|
1888
915
|
name: 'page',
|
|
1889
916
|
type: 'Query',
|
|
1890
|
-
schema: zod_1.z.number().
|
|
917
|
+
schema: zod_1.z.number().min(1).optional().default(1),
|
|
1891
918
|
},
|
|
1892
919
|
{
|
|
1893
920
|
name: 'perPage',
|
|
1894
921
|
type: 'Query',
|
|
1895
|
-
schema: zod_1.z.number().
|
|
922
|
+
schema: zod_1.z.number().min(1).max(1000).optional().default(100),
|
|
1896
923
|
},
|
|
1897
924
|
{
|
|
1898
925
|
name: 'sortBy',
|
|
1899
926
|
type: 'Query',
|
|
1900
|
-
schema: zod_1.z
|
|
927
|
+
schema: zod_1.z
|
|
928
|
+
.enum([
|
|
929
|
+
'createdAt',
|
|
930
|
+
'updatedAt',
|
|
931
|
+
'name',
|
|
932
|
+
'key',
|
|
933
|
+
'createdBy',
|
|
934
|
+
'propertyKey',
|
|
935
|
+
])
|
|
936
|
+
.optional()
|
|
937
|
+
.default('createdAt'),
|
|
1901
938
|
},
|
|
1902
939
|
{
|
|
1903
940
|
name: 'sortOrder',
|
|
@@ -1907,7 +944,20 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1907
944
|
{
|
|
1908
945
|
name: 'search',
|
|
1909
946
|
type: 'Query',
|
|
1910
|
-
schema: zod_1.z.string().optional(),
|
|
947
|
+
schema: zod_1.z.string().min(3).optional(),
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
name: 'staleness',
|
|
951
|
+
type: 'Query',
|
|
952
|
+
schema: zod_1.z
|
|
953
|
+
.enum([
|
|
954
|
+
'all',
|
|
955
|
+
'unused',
|
|
956
|
+
'released',
|
|
957
|
+
'unmodified',
|
|
958
|
+
'notStale',
|
|
959
|
+
])
|
|
960
|
+
.optional(),
|
|
1911
961
|
},
|
|
1912
962
|
{
|
|
1913
963
|
name: 'createdBy',
|
|
@@ -1921,13 +971,18 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1921
971
|
.enum(['release', 'experiment', 'permission', 'ops'])
|
|
1922
972
|
.optional(),
|
|
1923
973
|
},
|
|
974
|
+
{
|
|
975
|
+
name: 'status',
|
|
976
|
+
type: 'Query',
|
|
977
|
+
schema: zod_1.z.enum(['active', 'complete', 'archived']).optional(),
|
|
978
|
+
},
|
|
1924
979
|
{
|
|
1925
980
|
name: 'project',
|
|
1926
981
|
type: 'Path',
|
|
1927
982
|
schema: zod_1.z.string(),
|
|
1928
983
|
},
|
|
1929
984
|
],
|
|
1930
|
-
response: zod_1.z.array(Feature),
|
|
985
|
+
response: zod_1.z.array(zodSchemas_1.Feature),
|
|
1931
986
|
errors: [
|
|
1932
987
|
{
|
|
1933
988
|
status: 400,
|
|
@@ -1966,7 +1021,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1966
1021
|
schema: zod_1.z.string(),
|
|
1967
1022
|
},
|
|
1968
1023
|
],
|
|
1969
|
-
response: zod_1.z.array(FeatureConfig),
|
|
1024
|
+
response: zod_1.z.array(zodSchemas_1.FeatureConfig),
|
|
1970
1025
|
errors: [
|
|
1971
1026
|
{
|
|
1972
1027
|
status: 401,
|
|
@@ -1988,7 +1043,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
1988
1043
|
{
|
|
1989
1044
|
name: 'body',
|
|
1990
1045
|
type: 'Body',
|
|
1991
|
-
schema: UpdateFeatureConfigDto,
|
|
1046
|
+
schema: zodSchemas_1.UpdateFeatureConfigDto,
|
|
1992
1047
|
},
|
|
1993
1048
|
{
|
|
1994
1049
|
name: 'environment',
|
|
@@ -2006,7 +1061,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2006
1061
|
schema: zod_1.z.string(),
|
|
2007
1062
|
},
|
|
2008
1063
|
],
|
|
2009
|
-
response: FeatureConfig,
|
|
1064
|
+
response: zodSchemas_1.FeatureConfig,
|
|
2010
1065
|
errors: [
|
|
2011
1066
|
{
|
|
2012
1067
|
status: 400,
|
|
@@ -2077,7 +1132,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2077
1132
|
schema: zod_1.z.string(),
|
|
2078
1133
|
},
|
|
2079
1134
|
],
|
|
2080
|
-
response: ResultEvaluationsByHourDto,
|
|
1135
|
+
response: zodSchemas_1.ResultEvaluationsByHourDto,
|
|
2081
1136
|
errors: [
|
|
2082
1137
|
{
|
|
2083
1138
|
status: 400,
|
|
@@ -2147,7 +1202,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2147
1202
|
schema: zod_1.z.string(),
|
|
2148
1203
|
},
|
|
2149
1204
|
],
|
|
2150
|
-
response: ResultSummaryDto,
|
|
1205
|
+
response: zodSchemas_1.ResultSummaryDto,
|
|
2151
1206
|
errors: [
|
|
2152
1207
|
{
|
|
2153
1208
|
status: 400,
|
|
@@ -2218,7 +1273,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2218
1273
|
schema: zod_1.z.string(),
|
|
2219
1274
|
},
|
|
2220
1275
|
],
|
|
2221
|
-
response: ResultEvaluationsByHourDto,
|
|
1276
|
+
response: zodSchemas_1.ResultEvaluationsByHourDto,
|
|
2222
1277
|
errors: [
|
|
2223
1278
|
{
|
|
2224
1279
|
status: 400,
|
|
@@ -2244,7 +1299,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2244
1299
|
{
|
|
2245
1300
|
name: 'body',
|
|
2246
1301
|
type: 'Body',
|
|
2247
|
-
schema: CreateVariationDto,
|
|
1302
|
+
schema: zodSchemas_1.CreateVariationDto,
|
|
2248
1303
|
},
|
|
2249
1304
|
{
|
|
2250
1305
|
name: 'project',
|
|
@@ -2252,7 +1307,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2252
1307
|
schema: zod_1.z.string(),
|
|
2253
1308
|
},
|
|
2254
1309
|
],
|
|
2255
|
-
response: Feature,
|
|
1310
|
+
response: zodSchemas_1.Feature,
|
|
2256
1311
|
errors: [
|
|
2257
1312
|
{
|
|
2258
1313
|
status: 400,
|
|
@@ -2289,7 +1344,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2289
1344
|
schema: zod_1.z.string(),
|
|
2290
1345
|
},
|
|
2291
1346
|
],
|
|
2292
|
-
response: zod_1.z.array(Variation),
|
|
1347
|
+
response: zod_1.z.array(zodSchemas_1.Variation),
|
|
2293
1348
|
errors: [
|
|
2294
1349
|
{
|
|
2295
1350
|
status: 401,
|
|
@@ -2319,7 +1374,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2319
1374
|
schema: zod_1.z.string(),
|
|
2320
1375
|
},
|
|
2321
1376
|
],
|
|
2322
|
-
response: Variation,
|
|
1377
|
+
response: zodSchemas_1.Variation,
|
|
2323
1378
|
errors: [
|
|
2324
1379
|
{
|
|
2325
1380
|
status: 401,
|
|
@@ -2341,7 +1396,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2341
1396
|
{
|
|
2342
1397
|
name: 'body',
|
|
2343
1398
|
type: 'Body',
|
|
2344
|
-
schema: UpdateFeatureVariationDto,
|
|
1399
|
+
schema: zodSchemas_1.UpdateFeatureVariationDto,
|
|
2345
1400
|
},
|
|
2346
1401
|
{
|
|
2347
1402
|
name: 'key',
|
|
@@ -2354,7 +1409,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2354
1409
|
schema: zod_1.z.string(),
|
|
2355
1410
|
},
|
|
2356
1411
|
],
|
|
2357
|
-
response: Feature,
|
|
1412
|
+
response: zodSchemas_1.Feature,
|
|
2358
1413
|
errors: [
|
|
2359
1414
|
{
|
|
2360
1415
|
status: 400,
|
|
@@ -2392,7 +1447,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2392
1447
|
schema: zod_1.z.string(),
|
|
2393
1448
|
},
|
|
2394
1449
|
],
|
|
2395
|
-
response: Feature,
|
|
1450
|
+
response: zodSchemas_1.Feature,
|
|
2396
1451
|
errors: [
|
|
2397
1452
|
{
|
|
2398
1453
|
status: 401,
|
|
@@ -2414,7 +1469,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2414
1469
|
{
|
|
2415
1470
|
name: 'body',
|
|
2416
1471
|
type: 'Body',
|
|
2417
|
-
schema: UpdateFeatureDto,
|
|
1472
|
+
schema: zodSchemas_1.UpdateFeatureDto,
|
|
2418
1473
|
},
|
|
2419
1474
|
{
|
|
2420
1475
|
name: 'key',
|
|
@@ -2427,7 +1482,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2427
1482
|
schema: zod_1.z.string(),
|
|
2428
1483
|
},
|
|
2429
1484
|
],
|
|
2430
|
-
response: Feature,
|
|
1485
|
+
response: zodSchemas_1.Feature,
|
|
2431
1486
|
errors: [
|
|
2432
1487
|
{
|
|
2433
1488
|
status: 400,
|
|
@@ -2549,7 +1604,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2549
1604
|
schema: zod_1.z.string(),
|
|
2550
1605
|
},
|
|
2551
1606
|
],
|
|
2552
|
-
response: zod_1.z.array(JiraIssueLink),
|
|
1607
|
+
response: zod_1.z.array(zodSchemas_1.JiraIssueLink),
|
|
2553
1608
|
errors: [
|
|
2554
1609
|
{
|
|
2555
1610
|
status: 400,
|
|
@@ -2617,7 +1672,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2617
1672
|
schema: zod_1.z.string(),
|
|
2618
1673
|
},
|
|
2619
1674
|
],
|
|
2620
|
-
response: zod_1.z.array(Feature),
|
|
1675
|
+
response: zod_1.z.array(zodSchemas_1.Feature),
|
|
2621
1676
|
errors: [
|
|
2622
1677
|
{
|
|
2623
1678
|
status: 400,
|
|
@@ -2663,7 +1718,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2663
1718
|
schema: zod_1.z.string(),
|
|
2664
1719
|
},
|
|
2665
1720
|
],
|
|
2666
|
-
response: zod_1.z.array(MetricAssociation),
|
|
1721
|
+
response: zod_1.z.array(zodSchemas_1.MetricAssociation),
|
|
2667
1722
|
errors: [
|
|
2668
1723
|
{
|
|
2669
1724
|
status: 400,
|
|
@@ -2688,7 +1743,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2688
1743
|
{
|
|
2689
1744
|
name: 'body',
|
|
2690
1745
|
type: 'Body',
|
|
2691
|
-
schema: CreateMetricAssociationDto,
|
|
1746
|
+
schema: zodSchemas_1.CreateMetricAssociationDto,
|
|
2692
1747
|
},
|
|
2693
1748
|
{
|
|
2694
1749
|
name: 'project',
|
|
@@ -2696,7 +1751,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2696
1751
|
schema: zod_1.z.string(),
|
|
2697
1752
|
},
|
|
2698
1753
|
],
|
|
2699
|
-
response: MetricAssociation,
|
|
1754
|
+
response: zodSchemas_1.MetricAssociation,
|
|
2700
1755
|
errors: [
|
|
2701
1756
|
{
|
|
2702
1757
|
status: 401,
|
|
@@ -2717,7 +1772,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2717
1772
|
{
|
|
2718
1773
|
name: 'body',
|
|
2719
1774
|
type: 'Body',
|
|
2720
|
-
schema: DeleteMetricAssociationDto,
|
|
1775
|
+
schema: zodSchemas_1.DeleteMetricAssociationDto,
|
|
2721
1776
|
},
|
|
2722
1777
|
{
|
|
2723
1778
|
name: 'project',
|
|
@@ -2747,7 +1802,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2747
1802
|
{
|
|
2748
1803
|
name: 'body',
|
|
2749
1804
|
type: 'Body',
|
|
2750
|
-
schema: CreateMetricDto,
|
|
1805
|
+
schema: zodSchemas_1.CreateMetricDto,
|
|
2751
1806
|
},
|
|
2752
1807
|
{
|
|
2753
1808
|
name: 'project',
|
|
@@ -2755,7 +1810,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2755
1810
|
schema: zod_1.z.string(),
|
|
2756
1811
|
},
|
|
2757
1812
|
],
|
|
2758
|
-
response: Metric,
|
|
1813
|
+
response: zodSchemas_1.Metric,
|
|
2759
1814
|
errors: [
|
|
2760
1815
|
{
|
|
2761
1816
|
status: 400,
|
|
@@ -2826,7 +1881,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2826
1881
|
schema: zod_1.z.string(),
|
|
2827
1882
|
},
|
|
2828
1883
|
],
|
|
2829
|
-
response: zod_1.z.array(Metric),
|
|
1884
|
+
response: zod_1.z.array(zodSchemas_1.Metric),
|
|
2830
1885
|
errors: [
|
|
2831
1886
|
{
|
|
2832
1887
|
status: 400,
|
|
@@ -2859,7 +1914,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2859
1914
|
schema: zod_1.z.string(),
|
|
2860
1915
|
},
|
|
2861
1916
|
],
|
|
2862
|
-
response: Metric,
|
|
1917
|
+
response: zodSchemas_1.Metric,
|
|
2863
1918
|
errors: [
|
|
2864
1919
|
{
|
|
2865
1920
|
status: 401,
|
|
@@ -2880,7 +1935,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2880
1935
|
{
|
|
2881
1936
|
name: 'body',
|
|
2882
1937
|
type: 'Body',
|
|
2883
|
-
schema: UpdateMetricDto,
|
|
1938
|
+
schema: zodSchemas_1.UpdateMetricDto,
|
|
2884
1939
|
},
|
|
2885
1940
|
{
|
|
2886
1941
|
name: 'key',
|
|
@@ -2893,7 +1948,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2893
1948
|
schema: zod_1.z.string(),
|
|
2894
1949
|
},
|
|
2895
1950
|
],
|
|
2896
|
-
response: Metric,
|
|
1951
|
+
response: zodSchemas_1.Metric,
|
|
2897
1952
|
errors: [
|
|
2898
1953
|
{
|
|
2899
1954
|
status: 400,
|
|
@@ -2980,7 +2035,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
2980
2035
|
schema: zod_1.z.string(),
|
|
2981
2036
|
},
|
|
2982
2037
|
],
|
|
2983
|
-
response: MetricResult,
|
|
2038
|
+
response: zodSchemas_1.MetricResult,
|
|
2984
2039
|
errors: [
|
|
2985
2040
|
{
|
|
2986
2041
|
status: 400,
|
|
@@ -3036,7 +2091,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3036
2091
|
schema: zod_1.z.string(),
|
|
3037
2092
|
},
|
|
3038
2093
|
],
|
|
3039
|
-
response: ResultProjectEvaluationsByHourDto,
|
|
2094
|
+
response: zodSchemas_1.ResultProjectEvaluationsByHourDto,
|
|
3040
2095
|
errors: [
|
|
3041
2096
|
{
|
|
3042
2097
|
status: 400,
|
|
@@ -3092,7 +2147,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3092
2147
|
schema: zod_1.z.string(),
|
|
3093
2148
|
},
|
|
3094
2149
|
],
|
|
3095
|
-
response: ResultProjectEvaluationsByHourDto,
|
|
2150
|
+
response: zodSchemas_1.ResultProjectEvaluationsByHourDto,
|
|
3096
2151
|
errors: [
|
|
3097
2152
|
{
|
|
3098
2153
|
status: 400,
|
|
@@ -3168,7 +2223,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3168
2223
|
schema: zod_1.z.string(),
|
|
3169
2224
|
},
|
|
3170
2225
|
],
|
|
3171
|
-
response: MetricResult,
|
|
2226
|
+
response: zodSchemas_1.MetricResult,
|
|
3172
2227
|
errors: [
|
|
3173
2228
|
{
|
|
3174
2229
|
status: 400,
|
|
@@ -3193,7 +2248,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3193
2248
|
{
|
|
3194
2249
|
name: 'body',
|
|
3195
2250
|
type: 'Body',
|
|
3196
|
-
schema: CreateVariableDto,
|
|
2251
|
+
schema: zodSchemas_1.CreateVariableDto,
|
|
3197
2252
|
},
|
|
3198
2253
|
{
|
|
3199
2254
|
name: 'project',
|
|
@@ -3201,7 +2256,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3201
2256
|
schema: zod_1.z.string(),
|
|
3202
2257
|
},
|
|
3203
2258
|
],
|
|
3204
|
-
response: Variable,
|
|
2259
|
+
response: zodSchemas_1.Variable,
|
|
3205
2260
|
errors: [
|
|
3206
2261
|
{
|
|
3207
2262
|
status: 400,
|
|
@@ -3275,7 +2330,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3275
2330
|
schema: zod_1.z.string(),
|
|
3276
2331
|
},
|
|
3277
2332
|
],
|
|
3278
|
-
response: zod_1.z.array(Variable),
|
|
2333
|
+
response: zod_1.z.array(zodSchemas_1.Variable),
|
|
3279
2334
|
errors: [
|
|
3280
2335
|
{
|
|
3281
2336
|
status: 400,
|
|
@@ -3308,7 +2363,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3308
2363
|
schema: zod_1.z.string(),
|
|
3309
2364
|
},
|
|
3310
2365
|
],
|
|
3311
|
-
response: Variable,
|
|
2366
|
+
response: zodSchemas_1.Variable,
|
|
3312
2367
|
errors: [
|
|
3313
2368
|
{
|
|
3314
2369
|
status: 401,
|
|
@@ -3329,7 +2384,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3329
2384
|
{
|
|
3330
2385
|
name: 'body',
|
|
3331
2386
|
type: 'Body',
|
|
3332
|
-
schema: UpdateVariableDto,
|
|
2387
|
+
schema: zodSchemas_1.UpdateVariableDto,
|
|
3333
2388
|
},
|
|
3334
2389
|
{
|
|
3335
2390
|
name: 'key',
|
|
@@ -3342,7 +2397,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3342
2397
|
schema: zod_1.z.string(),
|
|
3343
2398
|
},
|
|
3344
2399
|
],
|
|
3345
|
-
response: Variable,
|
|
2400
|
+
response: zodSchemas_1.Variable,
|
|
3346
2401
|
errors: [
|
|
3347
2402
|
{
|
|
3348
2403
|
status: 400,
|
|
@@ -3400,7 +2455,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3400
2455
|
{
|
|
3401
2456
|
name: 'body',
|
|
3402
2457
|
type: 'Body',
|
|
3403
|
-
schema: UpdateVariableStatusDto,
|
|
2458
|
+
schema: zodSchemas_1.UpdateVariableStatusDto,
|
|
3404
2459
|
},
|
|
3405
2460
|
{
|
|
3406
2461
|
name: 'key',
|
|
@@ -3413,7 +2468,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3413
2468
|
schema: zod_1.z.string(),
|
|
3414
2469
|
},
|
|
3415
2470
|
],
|
|
3416
|
-
response: Variable,
|
|
2471
|
+
response: zodSchemas_1.Variable,
|
|
3417
2472
|
errors: [
|
|
3418
2473
|
{
|
|
3419
2474
|
status: 400,
|
|
@@ -3441,7 +2496,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3441
2496
|
schema: zod_1.z.string(),
|
|
3442
2497
|
},
|
|
3443
2498
|
],
|
|
3444
|
-
response: ProjectUserProfile,
|
|
2499
|
+
response: zodSchemas_1.ProjectUserProfile,
|
|
3445
2500
|
errors: [
|
|
3446
2501
|
{
|
|
3447
2502
|
status: 401,
|
|
@@ -3471,10 +2526,10 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3471
2526
|
{
|
|
3472
2527
|
name: 'body',
|
|
3473
2528
|
type: 'Body',
|
|
3474
|
-
schema: UpdateProjectUserProfileDto,
|
|
2529
|
+
schema: zodSchemas_1.UpdateProjectUserProfileDto,
|
|
3475
2530
|
},
|
|
3476
2531
|
],
|
|
3477
|
-
response: ProjectUserProfile,
|
|
2532
|
+
response: zodSchemas_1.ProjectUserProfile,
|
|
3478
2533
|
errors: [
|
|
3479
2534
|
{
|
|
3480
2535
|
status: 401,
|
|
@@ -3513,10 +2568,10 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3513
2568
|
{
|
|
3514
2569
|
name: 'body',
|
|
3515
2570
|
type: 'Body',
|
|
3516
|
-
schema: UpdateUserOverrideDto,
|
|
2571
|
+
schema: zodSchemas_1.UpdateUserOverrideDto,
|
|
3517
2572
|
},
|
|
3518
2573
|
],
|
|
3519
|
-
response: Override,
|
|
2574
|
+
response: zodSchemas_1.Override,
|
|
3520
2575
|
errors: [
|
|
3521
2576
|
{
|
|
3522
2577
|
status: 401,
|
|
@@ -3616,7 +2671,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3616
2671
|
schema: zod_1.z.string().optional(),
|
|
3617
2672
|
},
|
|
3618
2673
|
],
|
|
3619
|
-
response: FeatureOverrideResponse,
|
|
2674
|
+
response: zodSchemas_1.FeatureOverrideResponse,
|
|
3620
2675
|
errors: [
|
|
3621
2676
|
{
|
|
3622
2677
|
status: 401,
|
|
@@ -3644,7 +2699,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
3644
2699
|
schema: zod_1.z.string(),
|
|
3645
2700
|
},
|
|
3646
2701
|
],
|
|
3647
|
-
response:
|
|
2702
|
+
response: zodSchemas_1.UserOverride,
|
|
3648
2703
|
errors: [
|
|
3649
2704
|
{
|
|
3650
2705
|
status: 401,
|
|
@@ -3672,7 +2727,7 @@ const v2Endpoints = (0, core_1.makeApi)([
|
|
|
3672
2727
|
{
|
|
3673
2728
|
name: 'body',
|
|
3674
2729
|
type: 'Body',
|
|
3675
|
-
schema: CreateFeatureDto,
|
|
2730
|
+
schema: zodSchemas_1.CreateFeatureDto,
|
|
3676
2731
|
},
|
|
3677
2732
|
{
|
|
3678
2733
|
name: 'project',
|
|
@@ -3680,7 +2735,7 @@ const v2Endpoints = (0, core_1.makeApi)([
|
|
|
3680
2735
|
schema: zod_1.z.string(),
|
|
3681
2736
|
},
|
|
3682
2737
|
],
|
|
3683
|
-
response: Feature,
|
|
2738
|
+
response: zodSchemas_1.Feature,
|
|
3684
2739
|
errors: [
|
|
3685
2740
|
{
|
|
3686
2741
|
status: 400,
|
|
@@ -3779,7 +2834,7 @@ const v2Endpoints = (0, core_1.makeApi)([
|
|
|
3779
2834
|
schema: zod_1.z.string(),
|
|
3780
2835
|
},
|
|
3781
2836
|
],
|
|
3782
|
-
response: zod_1.z.array(Feature),
|
|
2837
|
+
response: zod_1.z.array(zodSchemas_1.Feature),
|
|
3783
2838
|
errors: [
|
|
3784
2839
|
{
|
|
3785
2840
|
status: 400,
|
|
@@ -3805,7 +2860,7 @@ const v2Endpoints = (0, core_1.makeApi)([
|
|
|
3805
2860
|
{
|
|
3806
2861
|
name: 'body',
|
|
3807
2862
|
type: 'Body',
|
|
3808
|
-
schema: UpdateFeatureDto,
|
|
2863
|
+
schema: zodSchemas_1.UpdateFeatureDto,
|
|
3809
2864
|
},
|
|
3810
2865
|
{
|
|
3811
2866
|
name: 'feature',
|
|
@@ -3818,7 +2873,7 @@ const v2Endpoints = (0, core_1.makeApi)([
|
|
|
3818
2873
|
schema: zod_1.z.string(),
|
|
3819
2874
|
},
|
|
3820
2875
|
],
|
|
3821
|
-
response: Feature,
|
|
2876
|
+
response: zodSchemas_1.Feature,
|
|
3822
2877
|
errors: [
|
|
3823
2878
|
{
|
|
3824
2879
|
status: 400,
|
|
@@ -3864,25 +2919,88 @@ const v2Endpoints = (0, core_1.makeApi)([
|
|
|
3864
2919
|
schema: zod_1.z.string(),
|
|
3865
2920
|
},
|
|
3866
2921
|
],
|
|
3867
|
-
response: Feature,
|
|
2922
|
+
response: zodSchemas_1.Feature,
|
|
2923
|
+
errors: [
|
|
2924
|
+
{
|
|
2925
|
+
status: 401,
|
|
2926
|
+
schema: zod_1.z.void(),
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
status: 404,
|
|
2930
|
+
schema: NotFoundErrorResponse,
|
|
2931
|
+
},
|
|
2932
|
+
],
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
method: 'patch',
|
|
2936
|
+
path: '/v2/projects/:project/features/:feature/status',
|
|
2937
|
+
alias: 'FeaturesController_updateStatus',
|
|
2938
|
+
description: `Update a Feature's status`,
|
|
2939
|
+
requestFormat: 'json',
|
|
2940
|
+
parameters: [
|
|
2941
|
+
{
|
|
2942
|
+
name: 'body',
|
|
2943
|
+
type: 'Body',
|
|
2944
|
+
schema: zodSchemas_1.UpdateFeatureStatusDto,
|
|
2945
|
+
},
|
|
2946
|
+
{
|
|
2947
|
+
name: 'feature',
|
|
2948
|
+
type: 'Path',
|
|
2949
|
+
schema: zod_1.z.string(),
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
name: 'project',
|
|
2953
|
+
type: 'Path',
|
|
2954
|
+
schema: zod_1.z.string(),
|
|
2955
|
+
},
|
|
2956
|
+
],
|
|
2957
|
+
response: zodSchemas_1.Feature,
|
|
3868
2958
|
errors: [
|
|
2959
|
+
{
|
|
2960
|
+
status: 400,
|
|
2961
|
+
schema: BadRequestErrorResponse,
|
|
2962
|
+
},
|
|
3869
2963
|
{
|
|
3870
2964
|
status: 401,
|
|
3871
2965
|
schema: zod_1.z.void(),
|
|
3872
2966
|
},
|
|
2967
|
+
{
|
|
2968
|
+
status: 403,
|
|
2969
|
+
schema: zod_1.z.void(),
|
|
2970
|
+
},
|
|
3873
2971
|
{
|
|
3874
2972
|
status: 404,
|
|
3875
2973
|
schema: NotFoundErrorResponse,
|
|
3876
2974
|
},
|
|
2975
|
+
{
|
|
2976
|
+
status: 409,
|
|
2977
|
+
schema: ConflictErrorResponse,
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
status: 412,
|
|
2981
|
+
schema: PreconditionFailedErrorResponse,
|
|
2982
|
+
},
|
|
3877
2983
|
],
|
|
3878
2984
|
},
|
|
3879
2985
|
]);
|
|
3880
|
-
|
|
3881
|
-
|
|
2986
|
+
/**
|
|
2987
|
+
* TypeScript workaround for large Zodios endpoint definitions.
|
|
2988
|
+
*
|
|
2989
|
+
* Our ~80+ endpoints exceed TypeScript's inference limits, causing "type exceeds
|
|
2990
|
+
* maximum length" errors. This pattern breaks the inference chain while maintaining
|
|
2991
|
+
* full type safety through ReturnType<> extraction.
|
|
2992
|
+
*/
|
|
2993
|
+
const _createApiClient = (baseUrl, options) => (baseUrl ? new core_1.Zodios(baseUrl, endpoints, options) : new core_1.Zodios(endpoints));
|
|
2994
|
+
const _createV2ApiClient = (baseUrl, options) => baseUrl
|
|
2995
|
+
? new core_1.Zodios(baseUrl, v2Endpoints, options)
|
|
2996
|
+
: new core_1.Zodios(v2Endpoints);
|
|
2997
|
+
// Create the actual instances with explicit type annotation
|
|
2998
|
+
exports.api = _createApiClient();
|
|
2999
|
+
exports.v2Api = _createV2ApiClient();
|
|
3882
3000
|
function createApiClient(baseUrl, options) {
|
|
3883
|
-
return
|
|
3001
|
+
return _createApiClient(baseUrl, options);
|
|
3884
3002
|
}
|
|
3885
3003
|
function createV2ApiClient(baseUrl, options) {
|
|
3886
|
-
return
|
|
3004
|
+
return _createV2ApiClient(baseUrl, options);
|
|
3887
3005
|
}
|
|
3888
|
-
//# sourceMappingURL=
|
|
3006
|
+
//# sourceMappingURL=zodClientAPI.js.map
|