@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.
Files changed (421) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/api/apiClient.js +3 -3
  5. package/dist/api/apiClient.js.map +1 -1
  6. package/dist/api/features.js +2 -2
  7. package/dist/api/schemas.js +23 -27
  8. package/dist/api/schemas.js.map +1 -1
  9. package/dist/api/{zodClient.js → zodClientAPI.js} +188 -1070
  10. package/dist/api/zodClientAPI.js.map +1 -0
  11. package/dist/api/zodSchemas.js +1406 -0
  12. package/dist/api/zodSchemas.js.map +1 -0
  13. package/dist/auth/ApiAuth.js +1 -1
  14. package/dist/auth/ApiAuth.js.map +1 -1
  15. package/dist/auth/TokenCache.js +2 -2
  16. package/dist/auth/TokenCache.js.map +1 -1
  17. package/dist/auth/utils/getTokenPayload.js +1 -1
  18. package/dist/auth/utils/getTokenPayload.js.map +1 -1
  19. package/dist/commands/authCommand.js.map +1 -1
  20. package/dist/commands/base.js.map +1 -1
  21. package/dist/commands/cleanup/index.js.map +1 -1
  22. package/dist/commands/environments/list.js.map +1 -1
  23. package/dist/commands/keys/get.js +1 -3
  24. package/dist/commands/keys/get.js.map +1 -1
  25. package/dist/commands/overrides/get.js.map +1 -1
  26. package/dist/commands/projects/get.js +2 -2
  27. package/dist/commands/projects/get.js.map +1 -1
  28. package/dist/commands/projects/list.js.map +1 -1
  29. package/dist/commands/projects/select.js.map +1 -1
  30. package/dist/commands/targeting/update.js +0 -1
  31. package/dist/commands/targeting/update.js.map +1 -1
  32. package/dist/commands/updateCommand.js.map +1 -1
  33. package/dist/commands/variables/create.js +2 -2
  34. package/dist/commands/variables/create.js.map +1 -1
  35. package/dist/commands/variables/list.js.map +1 -1
  36. package/dist/flags/var-alias/index.js +1 -1
  37. package/dist/flags/var-alias/index.js.map +1 -1
  38. package/dist/mcp/server.js +11 -0
  39. package/dist/mcp/server.js.map +1 -1
  40. package/dist/mcp/tools/customPropertiesTools.js +1 -0
  41. package/dist/mcp/tools/customPropertiesTools.js.map +1 -1
  42. package/dist/mcp/tools/environmentTools.js +41 -30
  43. package/dist/mcp/tools/environmentTools.js.map +1 -1
  44. package/dist/mcp/tools/featureTools.js +36 -158
  45. package/dist/mcp/tools/featureTools.js.map +1 -1
  46. package/dist/mcp/tools/index.js +8 -6
  47. package/dist/mcp/tools/index.js.map +1 -1
  48. package/dist/mcp/tools/installGuides.generated.js +36 -0
  49. package/dist/mcp/tools/installGuides.generated.js.map +1 -0
  50. package/dist/mcp/tools/installTools.js +35 -0
  51. package/dist/mcp/tools/installTools.js.map +1 -0
  52. package/dist/mcp/tools/localProjectTools.js +6 -2
  53. package/dist/mcp/tools/localProjectTools.js.map +1 -1
  54. package/dist/mcp/tools/projectTools.js +22 -15
  55. package/dist/mcp/tools/projectTools.js.map +1 -1
  56. package/dist/mcp/tools/resultsTools.js +3 -1
  57. package/dist/mcp/tools/resultsTools.js.map +1 -1
  58. package/dist/mcp/tools/selfTargetingTools.js +8 -3
  59. package/dist/mcp/tools/selfTargetingTools.js.map +1 -1
  60. package/dist/mcp/tools/variableTools.js +3 -2
  61. package/dist/mcp/tools/variableTools.js.map +1 -1
  62. package/dist/mcp/types.js +169 -223
  63. package/dist/mcp/types.js.map +1 -1
  64. package/dist/mcp/utils/github.js +26 -0
  65. package/dist/mcp/utils/github.js.map +1 -0
  66. package/dist/ui/prompts/environmentPrompts.js +0 -1
  67. package/dist/ui/prompts/environmentPrompts.js.map +1 -1
  68. package/dist/ui/prompts/featurePrompts.js +0 -1
  69. package/dist/ui/prompts/featurePrompts.js.map +1 -1
  70. package/dist/ui/prompts/listPrompts/targetingListPrompt.js.map +1 -1
  71. package/dist/ui/prompts/listPrompts/variationsListPrompt.js.map +1 -1
  72. package/dist/ui/prompts/targetingPrompts.js +1 -1
  73. package/dist/ui/prompts/targetingPrompts.js.map +1 -1
  74. package/dist/ui/prompts/variablePrompts.js +1 -2
  75. package/dist/ui/prompts/variablePrompts.js.map +1 -1
  76. package/dist/ui/targetingTree.js +2 -4
  77. package/dist/ui/targetingTree.js.map +1 -1
  78. package/dist/ui/togglebot.js +0 -1
  79. package/dist/ui/togglebot.js.map +1 -1
  80. package/dist/utils/audiences/index.js.map +1 -1
  81. package/oclif.manifest.json +1 -1
  82. package/package.json +18 -6
  83. package/dist/api/apiClient.d.ts +0 -5292
  84. package/dist/api/apiClient.d.ts.map +0 -1
  85. package/dist/api/audiences.d.ts +0 -57
  86. package/dist/api/audiences.d.ts.map +0 -1
  87. package/dist/api/common.d.ts +0 -7
  88. package/dist/api/common.d.ts.map +0 -1
  89. package/dist/api/customProperties.d.ts +0 -78
  90. package/dist/api/customProperties.d.ts.map +0 -1
  91. package/dist/api/environments.d.ts +0 -139
  92. package/dist/api/environments.d.ts.map +0 -1
  93. package/dist/api/features.d.ts +0 -23
  94. package/dist/api/features.d.ts.map +0 -1
  95. package/dist/api/members.d.ts +0 -8
  96. package/dist/api/members.d.ts.map +0 -1
  97. package/dist/api/organizations.d.ts +0 -7
  98. package/dist/api/organizations.d.ts.map +0 -1
  99. package/dist/api/overrides.d.ts +0 -19
  100. package/dist/api/overrides.d.ts.map +0 -1
  101. package/dist/api/projects.d.ts +0 -154
  102. package/dist/api/projects.d.ts.map +0 -1
  103. package/dist/api/results.d.ts +0 -23
  104. package/dist/api/results.d.ts.map +0 -1
  105. package/dist/api/schemas.d.ts +0 -2387
  106. package/dist/api/schemas.d.ts.map +0 -1
  107. package/dist/api/targeting.d.ts +0 -340
  108. package/dist/api/targeting.d.ts.map +0 -1
  109. package/dist/api/userProfile.d.ts +0 -20
  110. package/dist/api/userProfile.d.ts.map +0 -1
  111. package/dist/api/variables.d.ts +0 -132
  112. package/dist/api/variables.d.ts.map +0 -1
  113. package/dist/api/variations.d.ts +0 -158
  114. package/dist/api/variations.d.ts.map +0 -1
  115. package/dist/api/zodClient.d.ts +0 -65412
  116. package/dist/api/zodClient.d.ts.map +0 -1
  117. package/dist/api/zodClient.js.map +0 -1
  118. package/dist/auth/ApiAuth.d.ts +0 -22
  119. package/dist/auth/ApiAuth.d.ts.map +0 -1
  120. package/dist/auth/SSOAuth.d.ts +0 -34
  121. package/dist/auth/SSOAuth.d.ts.map +0 -1
  122. package/dist/auth/TokenCache.d.ts +0 -8
  123. package/dist/auth/TokenCache.d.ts.map +0 -1
  124. package/dist/auth/config.d.ts +0 -16
  125. package/dist/auth/config.d.ts.map +0 -1
  126. package/dist/auth/utils/getOrgIdFromToken.d.ts +0 -2
  127. package/dist/auth/utils/getOrgIdFromToken.d.ts.map +0 -1
  128. package/dist/auth/utils/getTokenExpiry.d.ts +0 -2
  129. package/dist/auth/utils/getTokenExpiry.d.ts.map +0 -1
  130. package/dist/auth/utils/getTokenPayload.d.ts +0 -8
  131. package/dist/auth/utils/getTokenPayload.d.ts.map +0 -1
  132. package/dist/auth/utils/index.d.ts +0 -5
  133. package/dist/auth/utils/index.d.ts.map +0 -1
  134. package/dist/auth/utils/shouldRefreshToken.d.ts +0 -2
  135. package/dist/auth/utils/shouldRefreshToken.d.ts.map +0 -1
  136. package/dist/commands/alias/add.d.ts +0 -22
  137. package/dist/commands/alias/add.d.ts.map +0 -1
  138. package/dist/commands/authCommand.d.ts +0 -30
  139. package/dist/commands/authCommand.d.ts.map +0 -1
  140. package/dist/commands/base.d.ts +0 -59
  141. package/dist/commands/base.d.ts.map +0 -1
  142. package/dist/commands/cleanup/index.d.ts +0 -29
  143. package/dist/commands/cleanup/index.d.ts.map +0 -1
  144. package/dist/commands/createCommand.d.ts +0 -21
  145. package/dist/commands/createCommand.d.ts.map +0 -1
  146. package/dist/commands/diff/index.d.ts +0 -43
  147. package/dist/commands/diff/index.d.ts.map +0 -1
  148. package/dist/commands/environments/create.d.ts +0 -29
  149. package/dist/commands/environments/create.d.ts.map +0 -1
  150. package/dist/commands/environments/get.d.ts +0 -26
  151. package/dist/commands/environments/get.d.ts.map +0 -1
  152. package/dist/commands/environments/list.d.ts +0 -8
  153. package/dist/commands/environments/list.d.ts.map +0 -1
  154. package/dist/commands/environments/update.d.ts +0 -24
  155. package/dist/commands/environments/update.d.ts.map +0 -1
  156. package/dist/commands/features/create.d.ts +0 -28
  157. package/dist/commands/features/create.d.ts.map +0 -1
  158. package/dist/commands/features/delete.d.ts +0 -11
  159. package/dist/commands/features/delete.d.ts.map +0 -1
  160. package/dist/commands/features/get.d.ts +0 -29
  161. package/dist/commands/features/get.d.ts.map +0 -1
  162. package/dist/commands/features/list.d.ts +0 -24
  163. package/dist/commands/features/list.d.ts.map +0 -1
  164. package/dist/commands/features/update.d.ts +0 -27
  165. package/dist/commands/features/update.d.ts.map +0 -1
  166. package/dist/commands/generate/types.d.ts +0 -55
  167. package/dist/commands/generate/types.d.ts.map +0 -1
  168. package/dist/commands/getCommand.d.ts +0 -19
  169. package/dist/commands/getCommand.d.ts.map +0 -1
  170. package/dist/commands/identity/get.d.ts +0 -8
  171. package/dist/commands/identity/get.d.ts.map +0 -1
  172. package/dist/commands/identity/update.d.ts +0 -29
  173. package/dist/commands/identity/update.d.ts.map +0 -1
  174. package/dist/commands/keys/get.d.ts +0 -25
  175. package/dist/commands/keys/get.d.ts.map +0 -1
  176. package/dist/commands/login/again.d.ts +0 -9
  177. package/dist/commands/login/again.d.ts.map +0 -1
  178. package/dist/commands/login/sso.d.ts +0 -9
  179. package/dist/commands/login/sso.d.ts.map +0 -1
  180. package/dist/commands/logout/index.d.ts +0 -8
  181. package/dist/commands/logout/index.d.ts.map +0 -1
  182. package/dist/commands/organizations/get.d.ts +0 -8
  183. package/dist/commands/organizations/get.d.ts.map +0 -1
  184. package/dist/commands/organizations/list.d.ts +0 -9
  185. package/dist/commands/organizations/list.d.ts.map +0 -1
  186. package/dist/commands/organizations/select.d.ts +0 -8
  187. package/dist/commands/organizations/select.d.ts.map +0 -1
  188. package/dist/commands/overrides/clear.d.ts +0 -25
  189. package/dist/commands/overrides/clear.d.ts.map +0 -1
  190. package/dist/commands/overrides/get.d.ts +0 -34
  191. package/dist/commands/overrides/get.d.ts.map +0 -1
  192. package/dist/commands/overrides/list.d.ts +0 -31
  193. package/dist/commands/overrides/list.d.ts.map +0 -1
  194. package/dist/commands/overrides/update.d.ts +0 -25
  195. package/dist/commands/overrides/update.d.ts.map +0 -1
  196. package/dist/commands/projects/create.d.ts +0 -23
  197. package/dist/commands/projects/create.d.ts.map +0 -1
  198. package/dist/commands/projects/current.d.ts +0 -7
  199. package/dist/commands/projects/current.d.ts.map +0 -1
  200. package/dist/commands/projects/get.d.ts +0 -22
  201. package/dist/commands/projects/get.d.ts.map +0 -1
  202. package/dist/commands/projects/list.d.ts +0 -9
  203. package/dist/commands/projects/list.d.ts.map +0 -1
  204. package/dist/commands/projects/select.d.ts +0 -10
  205. package/dist/commands/projects/select.d.ts.map +0 -1
  206. package/dist/commands/repo/init.d.ts +0 -10
  207. package/dist/commands/repo/init.d.ts.map +0 -1
  208. package/dist/commands/status/index.d.ts +0 -8
  209. package/dist/commands/status/index.d.ts.map +0 -1
  210. package/dist/commands/targeting/disable.d.ts +0 -25
  211. package/dist/commands/targeting/disable.d.ts.map +0 -1
  212. package/dist/commands/targeting/enable.d.ts +0 -25
  213. package/dist/commands/targeting/enable.d.ts.map +0 -1
  214. package/dist/commands/targeting/get.d.ts +0 -36
  215. package/dist/commands/targeting/get.d.ts.map +0 -1
  216. package/dist/commands/targeting/update.d.ts +0 -30
  217. package/dist/commands/targeting/update.d.ts.map +0 -1
  218. package/dist/commands/updateCommand.d.ts +0 -7
  219. package/dist/commands/updateCommand.d.ts.map +0 -1
  220. package/dist/commands/updateCommandWithCommonProperties.d.ts +0 -20
  221. package/dist/commands/updateCommandWithCommonProperties.d.ts.map +0 -1
  222. package/dist/commands/usages/index.d.ts +0 -34
  223. package/dist/commands/usages/index.d.ts.map +0 -1
  224. package/dist/commands/variables/create.d.ts +0 -26
  225. package/dist/commands/variables/create.d.ts.map +0 -1
  226. package/dist/commands/variables/get.d.ts +0 -29
  227. package/dist/commands/variables/get.d.ts.map +0 -1
  228. package/dist/commands/variables/list.d.ts +0 -23
  229. package/dist/commands/variables/list.d.ts.map +0 -1
  230. package/dist/commands/variables/update.d.ts +0 -22
  231. package/dist/commands/variables/update.d.ts.map +0 -1
  232. package/dist/commands/variations/create.d.ts +0 -27
  233. package/dist/commands/variations/create.d.ts.map +0 -1
  234. package/dist/commands/variations/get.d.ts +0 -11
  235. package/dist/commands/variations/get.d.ts.map +0 -1
  236. package/dist/commands/variations/list.d.ts +0 -12
  237. package/dist/commands/variations/list.d.ts.map +0 -1
  238. package/dist/commands/variations/update.d.ts +0 -28
  239. package/dist/commands/variations/update.d.ts.map +0 -1
  240. package/dist/commands/wink.d.ts +0 -6
  241. package/dist/commands/wink.d.ts.map +0 -1
  242. package/dist/flags/client-name/index.d.ts +0 -5
  243. package/dist/flags/client-name/index.d.ts.map +0 -1
  244. package/dist/flags/match-pattern/index.d.ts +0 -5
  245. package/dist/flags/match-pattern/index.d.ts.map +0 -1
  246. package/dist/flags/show-regex/index.d.ts +0 -4
  247. package/dist/flags/show-regex/index.d.ts.map +0 -1
  248. package/dist/flags/var-alias/index.d.ts +0 -7
  249. package/dist/flags/var-alias/index.d.ts.map +0 -1
  250. package/dist/help.d.ts +0 -13
  251. package/dist/help.d.ts.map +0 -1
  252. package/dist/index.d.ts +0 -2
  253. package/dist/index.d.ts.map +0 -1
  254. package/dist/mcp/api/interface.d.ts +0 -125
  255. package/dist/mcp/api/interface.d.ts.map +0 -1
  256. package/dist/mcp/index.d.ts +0 -3
  257. package/dist/mcp/index.d.ts.map +0 -1
  258. package/dist/mcp/server.d.ts +0 -29
  259. package/dist/mcp/server.d.ts.map +0 -1
  260. package/dist/mcp/tools/customPropertiesTools.d.ts +0 -90
  261. package/dist/mcp/tools/customPropertiesTools.d.ts.map +0 -1
  262. package/dist/mcp/tools/environmentTools.d.ts +0 -146
  263. package/dist/mcp/tools/environmentTools.d.ts.map +0 -1
  264. package/dist/mcp/tools/featureTools.d.ts +0 -1096
  265. package/dist/mcp/tools/featureTools.d.ts.map +0 -1
  266. package/dist/mcp/tools/index.d.ts +0 -12
  267. package/dist/mcp/tools/index.d.ts.map +0 -1
  268. package/dist/mcp/tools/localProjectTools.d.ts +0 -51
  269. package/dist/mcp/tools/localProjectTools.d.ts.map +0 -1
  270. package/dist/mcp/tools/projectTools.d.ts +0 -156
  271. package/dist/mcp/tools/projectTools.d.ts.map +0 -1
  272. package/dist/mcp/tools/resultsTools.d.ts +0 -35
  273. package/dist/mcp/tools/resultsTools.d.ts.map +0 -1
  274. package/dist/mcp/tools/selfTargetingTools.d.ts +0 -67
  275. package/dist/mcp/tools/selfTargetingTools.d.ts.map +0 -1
  276. package/dist/mcp/tools/variableTools.d.ts +0 -96
  277. package/dist/mcp/tools/variableTools.d.ts.map +0 -1
  278. package/dist/mcp/types.d.ts +0 -2080
  279. package/dist/mcp/types.d.ts.map +0 -1
  280. package/dist/mcp/utils/api.d.ts +0 -26
  281. package/dist/mcp/utils/api.d.ts.map +0 -1
  282. package/dist/mcp/utils/auth.d.ts +0 -26
  283. package/dist/mcp/utils/auth.d.ts.map +0 -1
  284. package/dist/mcp/utils/dashboardLinks.d.ts +0 -29
  285. package/dist/mcp/utils/dashboardLinks.d.ts.map +0 -1
  286. package/dist/mcp/utils/errorHandling.d.ts +0 -9
  287. package/dist/mcp/utils/errorHandling.d.ts.map +0 -1
  288. package/dist/mcp/utils/headers.d.ts +0 -13
  289. package/dist/mcp/utils/headers.d.ts.map +0 -1
  290. package/dist/mcp/utils/projectFormatting.d.ts +0 -29
  291. package/dist/mcp/utils/projectFormatting.d.ts.map +0 -1
  292. package/dist/types/configFile.d.ts +0 -32
  293. package/dist/types/configFile.d.ts.map +0 -1
  294. package/dist/types/index.d.ts +0 -2
  295. package/dist/types/index.d.ts.map +0 -1
  296. package/dist/ui/autocomplete.d.ts +0 -4
  297. package/dist/ui/autocomplete.d.ts.map +0 -1
  298. package/dist/ui/constants/colors.d.ts +0 -7
  299. package/dist/ui/constants/colors.d.ts.map +0 -1
  300. package/dist/ui/promptForOrganization.d.ts +0 -3
  301. package/dist/ui/promptForOrganization.d.ts.map +0 -1
  302. package/dist/ui/promptForProject.d.ts +0 -3
  303. package/dist/ui/promptForProject.d.ts.map +0 -1
  304. package/dist/ui/prompts/commonPrompts.d.ts +0 -16
  305. package/dist/ui/prompts/commonPrompts.d.ts.map +0 -1
  306. package/dist/ui/prompts/environmentPrompts.d.ts +0 -29
  307. package/dist/ui/prompts/environmentPrompts.d.ts.map +0 -1
  308. package/dist/ui/prompts/featurePrompts.d.ts +0 -42
  309. package/dist/ui/prompts/featurePrompts.d.ts.map +0 -1
  310. package/dist/ui/prompts/identityPrompts.d.ts +0 -5
  311. package/dist/ui/prompts/identityPrompts.d.ts.map +0 -1
  312. package/dist/ui/prompts/index.d.ts +0 -7
  313. package/dist/ui/prompts/index.d.ts.map +0 -1
  314. package/dist/ui/prompts/listPrompts/filterListPrompt.d.ts +0 -18
  315. package/dist/ui/prompts/listPrompts/filterListPrompt.d.ts.map +0 -1
  316. package/dist/ui/prompts/listPrompts/listOptionsPrompt.d.ts +0 -70
  317. package/dist/ui/prompts/listPrompts/listOptionsPrompt.d.ts.map +0 -1
  318. package/dist/ui/prompts/listPrompts/promptOptions.d.ts +0 -25
  319. package/dist/ui/prompts/listPrompts/promptOptions.d.ts.map +0 -1
  320. package/dist/ui/prompts/listPrompts/targetingListPrompt.d.ts +0 -97
  321. package/dist/ui/prompts/listPrompts/targetingListPrompt.d.ts.map +0 -1
  322. package/dist/ui/prompts/listPrompts/variablesListPrompt.d.ts +0 -48
  323. package/dist/ui/prompts/listPrompts/variablesListPrompt.d.ts.map +0 -1
  324. package/dist/ui/prompts/listPrompts/variationsListPrompt.d.ts +0 -30
  325. package/dist/ui/prompts/listPrompts/variationsListPrompt.d.ts.map +0 -1
  326. package/dist/ui/prompts/overridePrompts.d.ts +0 -23
  327. package/dist/ui/prompts/overridePrompts.d.ts.map +0 -1
  328. package/dist/ui/prompts/targetingPrompts.d.ts +0 -129
  329. package/dist/ui/prompts/targetingPrompts.d.ts.map +0 -1
  330. package/dist/ui/prompts/types.d.ts +0 -30
  331. package/dist/ui/prompts/types.d.ts.map +0 -1
  332. package/dist/ui/prompts/variablePrompts.d.ts +0 -46
  333. package/dist/ui/prompts/variablePrompts.d.ts.map +0 -1
  334. package/dist/ui/prompts/variationPrompts.d.ts +0 -48
  335. package/dist/ui/prompts/variationPrompts.d.ts.map +0 -1
  336. package/dist/ui/tableOutput.d.ts +0 -8
  337. package/dist/ui/tableOutput.d.ts.map +0 -1
  338. package/dist/ui/targetingTree.d.ts +0 -10
  339. package/dist/ui/targetingTree.d.ts.map +0 -1
  340. package/dist/ui/togglebot.d.ts +0 -6
  341. package/dist/ui/togglebot.d.ts.map +0 -1
  342. package/dist/ui/writer.d.ts +0 -21
  343. package/dist/ui/writer.d.ts.map +0 -1
  344. package/dist/utils/FileFilters.d.ts +0 -14
  345. package/dist/utils/FileFilters.d.ts.map +0 -1
  346. package/dist/utils/audiences/index.d.ts +0 -4
  347. package/dist/utils/audiences/index.d.ts.map +0 -1
  348. package/dist/utils/batchRequests.d.ts +0 -2
  349. package/dist/utils/batchRequests.d.ts.map +0 -1
  350. package/dist/utils/configManager.d.ts +0 -37
  351. package/dist/utils/configManager.d.ts.map +0 -1
  352. package/dist/utils/diff/diff.d.ts +0 -3
  353. package/dist/utils/diff/diff.d.ts.map +0 -1
  354. package/dist/utils/diff/fileDiff.d.ts +0 -3
  355. package/dist/utils/diff/fileDiff.d.ts.map +0 -1
  356. package/dist/utils/diff/parse.d.ts +0 -4
  357. package/dist/utils/diff/parse.d.ts.map +0 -1
  358. package/dist/utils/environments/index.d.ts +0 -3
  359. package/dist/utils/environments/index.d.ts.map +0 -1
  360. package/dist/utils/features/quickCreateFeatureUtils.d.ts +0 -4
  361. package/dist/utils/features/quickCreateFeatureUtils.d.ts.map +0 -1
  362. package/dist/utils/fileSystem.d.ts +0 -7
  363. package/dist/utils/fileSystem.d.ts.map +0 -1
  364. package/dist/utils/git/ls-files.d.ts +0 -2
  365. package/dist/utils/git/ls-files.d.ts.map +0 -1
  366. package/dist/utils/overrides/index.d.ts +0 -10
  367. package/dist/utils/overrides/index.d.ts.map +0 -1
  368. package/dist/utils/parseKeysFromArgs.d.ts +0 -10
  369. package/dist/utils/parseKeysFromArgs.d.ts.map +0 -1
  370. package/dist/utils/parsers/BaseParser.d.ts +0 -49
  371. package/dist/utils/parsers/BaseParser.d.ts.map +0 -1
  372. package/dist/utils/parsers/android/index.d.ts +0 -13
  373. package/dist/utils/parsers/android/index.d.ts.map +0 -1
  374. package/dist/utils/parsers/csharp/index.d.ts +0 -13
  375. package/dist/utils/parsers/csharp/index.d.ts.map +0 -1
  376. package/dist/utils/parsers/custom.d.ts +0 -10
  377. package/dist/utils/parsers/custom.d.ts.map +0 -1
  378. package/dist/utils/parsers/dart/index.d.ts +0 -8
  379. package/dist/utils/parsers/dart/index.d.ts.map +0 -1
  380. package/dist/utils/parsers/golang/index.d.ts +0 -8
  381. package/dist/utils/parsers/golang/index.d.ts.map +0 -1
  382. package/dist/utils/parsers/index.d.ts +0 -16
  383. package/dist/utils/parsers/index.d.ts.map +0 -1
  384. package/dist/utils/parsers/ios/index.d.ts +0 -12
  385. package/dist/utils/parsers/ios/index.d.ts.map +0 -1
  386. package/dist/utils/parsers/java/index.d.ts +0 -8
  387. package/dist/utils/parsers/java/index.d.ts.map +0 -1
  388. package/dist/utils/parsers/javascript/index.d.ts +0 -8
  389. package/dist/utils/parsers/javascript/index.d.ts.map +0 -1
  390. package/dist/utils/parsers/nodejs/index.d.ts +0 -8
  391. package/dist/utils/parsers/nodejs/index.d.ts.map +0 -1
  392. package/dist/utils/parsers/php/index.d.ts +0 -14
  393. package/dist/utils/parsers/php/index.d.ts.map +0 -1
  394. package/dist/utils/parsers/python/index.d.ts +0 -14
  395. package/dist/utils/parsers/python/index.d.ts.map +0 -1
  396. package/dist/utils/parsers/react/index.d.ts +0 -9
  397. package/dist/utils/parsers/react/index.d.ts.map +0 -1
  398. package/dist/utils/parsers/ruby/index.d.ts +0 -8
  399. package/dist/utils/parsers/ruby/index.d.ts.map +0 -1
  400. package/dist/utils/parsers/types.d.ts +0 -29
  401. package/dist/utils/parsers/types.d.ts.map +0 -1
  402. package/dist/utils/prompts.d.ts +0 -7
  403. package/dist/utils/prompts.d.ts.map +0 -1
  404. package/dist/utils/refactor/RefactorEngine.d.ts +0 -65
  405. package/dist/utils/refactor/RefactorEngine.d.ts.map +0 -1
  406. package/dist/utils/refactor/index.d.ts +0 -3
  407. package/dist/utils/refactor/index.d.ts.map +0 -1
  408. package/dist/utils/refactor/javascript/JavascriptEngine.d.ts +0 -6
  409. package/dist/utils/refactor/javascript/JavascriptEngine.d.ts.map +0 -1
  410. package/dist/utils/refactor/javascript/index.d.ts +0 -2
  411. package/dist/utils/refactor/javascript/index.d.ts.map +0 -1
  412. package/dist/utils/refactor/utils.d.ts +0 -4
  413. package/dist/utils/refactor/utils.d.ts.map +0 -1
  414. package/dist/utils/reportValidationErrors.d.ts +0 -8
  415. package/dist/utils/reportValidationErrors.d.ts.map +0 -1
  416. package/dist/utils/targeting/index.d.ts +0 -92
  417. package/dist/utils/targeting/index.d.ts.map +0 -1
  418. package/dist/utils/usages/parse.d.ts +0 -4
  419. package/dist/utils/usages/parse.d.ts.map +0 -1
  420. package/dist/utils/validators.d.ts +0 -4
  421. package/dist/utils/validators.d.ts.map +0 -1
@@ -1,1096 +0,0 @@
1
- import { z } from 'zod';
2
- import { ListFeaturesArgsSchema, CreateFeatureArgsSchema, UpdateFeatureArgsSchema, UpdateFeatureStatusArgsSchema, DeleteFeatureArgsSchema, SetFeatureTargetingArgsSchema, ListVariationsArgsSchema, CreateVariationArgsSchema, UpdateVariationArgsSchema, ListFeatureTargetingArgsSchema, UpdateFeatureTargetingArgsSchema, GetFeatureAuditLogHistoryArgsSchema } from '../types';
3
- import { IDevCycleApiClient } from '../api/interface';
4
- import { DevCycleMCPServerInstance } from '../server';
5
- export declare function listFeaturesHandler(args: z.infer<typeof ListFeaturesArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
6
- result: {
7
- createdAt: string;
8
- updatedAt: string;
9
- name: string;
10
- key: string;
11
- _id: string;
12
- _project: string;
13
- readonly: boolean;
14
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
15
- variables: {
16
- type: "String" | "Boolean" | "Number" | "JSON";
17
- status: "active" | "archived";
18
- createdAt: string;
19
- updatedAt: string;
20
- key: string;
21
- _id: string;
22
- _project: string;
23
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
24
- description?: string | undefined;
25
- name?: string | undefined;
26
- _createdBy?: string | undefined;
27
- _feature?: string | undefined;
28
- defaultValue?: any;
29
- validationSchema?: {
30
- description: string;
31
- schemaType: string;
32
- enumValues?: string[] | undefined;
33
- regexPattern?: string | undefined;
34
- jsonSchema?: string | undefined;
35
- exampleValue?: any;
36
- } | undefined;
37
- persistent?: boolean | undefined;
38
- }[];
39
- variations: {
40
- name: string;
41
- key: string;
42
- _id: string;
43
- variables?: Record<string, string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">> | undefined;
44
- }[];
45
- controlVariation: string;
46
- type?: "release" | "experiment" | "permission" | "ops" | undefined;
47
- status?: "active" | "archived" | "complete" | undefined;
48
- description?: string | undefined;
49
- staleness?: {
50
- stale: boolean;
51
- updatedAt?: string | undefined;
52
- disabled?: boolean | undefined;
53
- snoozedUntil?: string | undefined;
54
- reason?: string | undefined;
55
- metaData?: Record<string, unknown> | undefined;
56
- } | undefined;
57
- settings?: {
58
- publicName?: string | undefined;
59
- publicDescription?: string | undefined;
60
- optInEnabled?: boolean | undefined;
61
- } | undefined;
62
- _createdBy?: string | undefined;
63
- tags?: string[] | undefined;
64
- configurations?: {
65
- status?: "active" | "archived" | "inactive" | undefined;
66
- updatedAt?: string | undefined;
67
- _createdBy?: string | undefined;
68
- readonly?: boolean | undefined;
69
- _feature?: string | undefined;
70
- targets?: {
71
- _id: string;
72
- audience: {
73
- filters: {
74
- filters: (z.objectOutputType<{
75
- type: z.ZodDefault<z.ZodLiteral<"all">>;
76
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
78
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
79
- type: z.ZodDefault<z.ZodLiteral<"optIn">>;
80
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
82
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
83
- subType: z.ZodEnum<["user_id", "email", "platform", "deviceModel"]>;
84
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
85
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
86
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
- type: z.ZodDefault<z.ZodLiteral<"user">>;
88
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
89
- subType: z.ZodDefault<z.ZodLiteral<"country">>;
90
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
91
- values: z.ZodArray<z.ZodString, "many">;
92
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
93
- type: z.ZodDefault<z.ZodLiteral<"user">>;
94
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
95
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
96
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
97
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
- type: z.ZodDefault<z.ZodLiteral<"user">>;
99
- subType: z.ZodDefault<z.ZodLiteral<"appVersion">>;
100
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
101
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
102
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
103
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
104
- type: z.ZodDefault<z.ZodLiteral<"user">>;
105
- subType: z.ZodDefault<z.ZodLiteral<"platformVersion">>;
106
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
107
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
108
- dataKey: z.ZodString;
109
- dataKeyType: z.ZodEnum<["String", "Boolean", "Number"]>;
110
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">>;
111
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
- type: z.ZodDefault<z.ZodLiteral<"user">>;
113
- subType: z.ZodDefault<z.ZodLiteral<"customData">>;
114
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
115
- type: z.ZodDefault<z.ZodLiteral<"audienceMatch">>;
116
- comparator: z.ZodOptional<z.ZodEnum<["=", "!="]>>;
117
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
118
- }, z.ZodTypeAny, "passthrough">)[];
119
- operator: "and" | "or";
120
- };
121
- name?: string | undefined;
122
- };
123
- distribution: {
124
- percentage: number;
125
- _variation: string;
126
- }[];
127
- name?: string | undefined;
128
- filters?: unknown[] | undefined;
129
- rollout?: {
130
- type: "schedule" | "gradual" | "stepped";
131
- startDate: string;
132
- startPercentage?: number | undefined;
133
- stages?: {
134
- type: "linear" | "discrete";
135
- date: string;
136
- percentage: number;
137
- }[] | undefined;
138
- } | null | undefined;
139
- bucketingKey?: string | undefined;
140
- }[] | undefined;
141
- _environment?: string | undefined;
142
- startedAt?: string | undefined;
143
- hasStaticConfig?: boolean | undefined;
144
- }[] | undefined;
145
- sdkVisibility?: {
146
- mobile: boolean;
147
- client: boolean;
148
- server: boolean;
149
- } | undefined;
150
- ldLink?: string | undefined;
151
- }[];
152
- dashboardLink: string;
153
- }>;
154
- export declare function createFeatureHandler(args: z.infer<typeof CreateFeatureArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
155
- result: {
156
- createdAt: string;
157
- updatedAt: string;
158
- name: string;
159
- key: string;
160
- _id: string;
161
- _project: string;
162
- readonly: boolean;
163
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
164
- variables: {
165
- type: "String" | "Boolean" | "Number" | "JSON";
166
- status: "active" | "archived";
167
- createdAt: string;
168
- updatedAt: string;
169
- key: string;
170
- _id: string;
171
- _project: string;
172
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
173
- description?: string | undefined;
174
- name?: string | undefined;
175
- _createdBy?: string | undefined;
176
- _feature?: string | undefined;
177
- defaultValue?: any;
178
- validationSchema?: {
179
- description: string;
180
- schemaType: string;
181
- enumValues?: string[] | undefined;
182
- regexPattern?: string | undefined;
183
- jsonSchema?: string | undefined;
184
- exampleValue?: any;
185
- } | undefined;
186
- persistent?: boolean | undefined;
187
- }[];
188
- variations: {
189
- name: string;
190
- key: string;
191
- _id: string;
192
- variables?: Record<string, string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">> | undefined;
193
- }[];
194
- controlVariation: string;
195
- type?: "release" | "experiment" | "permission" | "ops" | undefined;
196
- status?: "active" | "archived" | "complete" | undefined;
197
- description?: string | undefined;
198
- staleness?: {
199
- stale: boolean;
200
- updatedAt?: string | undefined;
201
- disabled?: boolean | undefined;
202
- snoozedUntil?: string | undefined;
203
- reason?: string | undefined;
204
- metaData?: Record<string, unknown> | undefined;
205
- } | undefined;
206
- settings?: {
207
- publicName?: string | undefined;
208
- publicDescription?: string | undefined;
209
- optInEnabled?: boolean | undefined;
210
- } | undefined;
211
- _createdBy?: string | undefined;
212
- tags?: string[] | undefined;
213
- configurations?: {
214
- status?: "active" | "archived" | "inactive" | undefined;
215
- updatedAt?: string | undefined;
216
- _createdBy?: string | undefined;
217
- readonly?: boolean | undefined;
218
- _feature?: string | undefined;
219
- targets?: {
220
- _id: string;
221
- audience: {
222
- filters: {
223
- filters: (z.objectOutputType<{
224
- type: z.ZodDefault<z.ZodLiteral<"all">>;
225
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
226
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
227
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
228
- type: z.ZodDefault<z.ZodLiteral<"optIn">>;
229
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
230
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
232
- subType: z.ZodEnum<["user_id", "email", "platform", "deviceModel"]>;
233
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
234
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
235
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
236
- type: z.ZodDefault<z.ZodLiteral<"user">>;
237
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
238
- subType: z.ZodDefault<z.ZodLiteral<"country">>;
239
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
240
- values: z.ZodArray<z.ZodString, "many">;
241
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
242
- type: z.ZodDefault<z.ZodLiteral<"user">>;
243
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
244
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
245
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
246
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
247
- type: z.ZodDefault<z.ZodLiteral<"user">>;
248
- subType: z.ZodDefault<z.ZodLiteral<"appVersion">>;
249
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
250
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
251
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
252
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
253
- type: z.ZodDefault<z.ZodLiteral<"user">>;
254
- subType: z.ZodDefault<z.ZodLiteral<"platformVersion">>;
255
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
256
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
257
- dataKey: z.ZodString;
258
- dataKeyType: z.ZodEnum<["String", "Boolean", "Number"]>;
259
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">>;
260
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
261
- type: z.ZodDefault<z.ZodLiteral<"user">>;
262
- subType: z.ZodDefault<z.ZodLiteral<"customData">>;
263
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
264
- type: z.ZodDefault<z.ZodLiteral<"audienceMatch">>;
265
- comparator: z.ZodOptional<z.ZodEnum<["=", "!="]>>;
266
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
267
- }, z.ZodTypeAny, "passthrough">)[];
268
- operator: "and" | "or";
269
- };
270
- name?: string | undefined;
271
- };
272
- distribution: {
273
- percentage: number;
274
- _variation: string;
275
- }[];
276
- name?: string | undefined;
277
- filters?: unknown[] | undefined;
278
- rollout?: {
279
- type: "schedule" | "gradual" | "stepped";
280
- startDate: string;
281
- startPercentage?: number | undefined;
282
- stages?: {
283
- type: "linear" | "discrete";
284
- date: string;
285
- percentage: number;
286
- }[] | undefined;
287
- } | null | undefined;
288
- bucketingKey?: string | undefined;
289
- }[] | undefined;
290
- _environment?: string | undefined;
291
- startedAt?: string | undefined;
292
- hasStaticConfig?: boolean | undefined;
293
- }[] | undefined;
294
- sdkVisibility?: {
295
- mobile: boolean;
296
- client: boolean;
297
- server: boolean;
298
- } | undefined;
299
- ldLink?: string | undefined;
300
- };
301
- dashboardLink: string;
302
- }>;
303
- export declare function updateFeatureHandler(args: z.infer<typeof UpdateFeatureArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
304
- result: {
305
- createdAt: string;
306
- updatedAt: string;
307
- name: string;
308
- key: string;
309
- _id: string;
310
- _project: string;
311
- readonly: boolean;
312
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
313
- variables: {
314
- type: "String" | "Boolean" | "Number" | "JSON";
315
- status: "active" | "archived";
316
- createdAt: string;
317
- updatedAt: string;
318
- key: string;
319
- _id: string;
320
- _project: string;
321
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
322
- description?: string | undefined;
323
- name?: string | undefined;
324
- _createdBy?: string | undefined;
325
- _feature?: string | undefined;
326
- defaultValue?: any;
327
- validationSchema?: {
328
- description: string;
329
- schemaType: string;
330
- enumValues?: string[] | undefined;
331
- regexPattern?: string | undefined;
332
- jsonSchema?: string | undefined;
333
- exampleValue?: any;
334
- } | undefined;
335
- persistent?: boolean | undefined;
336
- }[];
337
- variations: {
338
- name: string;
339
- key: string;
340
- _id: string;
341
- variables?: Record<string, string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">> | undefined;
342
- }[];
343
- controlVariation: string;
344
- type?: "release" | "experiment" | "permission" | "ops" | undefined;
345
- status?: "active" | "archived" | "complete" | undefined;
346
- description?: string | undefined;
347
- staleness?: {
348
- stale: boolean;
349
- updatedAt?: string | undefined;
350
- disabled?: boolean | undefined;
351
- snoozedUntil?: string | undefined;
352
- reason?: string | undefined;
353
- metaData?: Record<string, unknown> | undefined;
354
- } | undefined;
355
- settings?: {
356
- publicName?: string | undefined;
357
- publicDescription?: string | undefined;
358
- optInEnabled?: boolean | undefined;
359
- } | undefined;
360
- _createdBy?: string | undefined;
361
- tags?: string[] | undefined;
362
- configurations?: {
363
- status?: "active" | "archived" | "inactive" | undefined;
364
- updatedAt?: string | undefined;
365
- _createdBy?: string | undefined;
366
- readonly?: boolean | undefined;
367
- _feature?: string | undefined;
368
- targets?: {
369
- _id: string;
370
- audience: {
371
- filters: {
372
- filters: (z.objectOutputType<{
373
- type: z.ZodDefault<z.ZodLiteral<"all">>;
374
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
375
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
376
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
377
- type: z.ZodDefault<z.ZodLiteral<"optIn">>;
378
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
379
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
380
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
381
- subType: z.ZodEnum<["user_id", "email", "platform", "deviceModel"]>;
382
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
383
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
384
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
385
- type: z.ZodDefault<z.ZodLiteral<"user">>;
386
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
387
- subType: z.ZodDefault<z.ZodLiteral<"country">>;
388
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
389
- values: z.ZodArray<z.ZodString, "many">;
390
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
391
- type: z.ZodDefault<z.ZodLiteral<"user">>;
392
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
393
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
394
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
395
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
396
- type: z.ZodDefault<z.ZodLiteral<"user">>;
397
- subType: z.ZodDefault<z.ZodLiteral<"appVersion">>;
398
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
399
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
400
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
401
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
402
- type: z.ZodDefault<z.ZodLiteral<"user">>;
403
- subType: z.ZodDefault<z.ZodLiteral<"platformVersion">>;
404
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
405
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
406
- dataKey: z.ZodString;
407
- dataKeyType: z.ZodEnum<["String", "Boolean", "Number"]>;
408
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">>;
409
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
410
- type: z.ZodDefault<z.ZodLiteral<"user">>;
411
- subType: z.ZodDefault<z.ZodLiteral<"customData">>;
412
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
413
- type: z.ZodDefault<z.ZodLiteral<"audienceMatch">>;
414
- comparator: z.ZodOptional<z.ZodEnum<["=", "!="]>>;
415
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
416
- }, z.ZodTypeAny, "passthrough">)[];
417
- operator: "and" | "or";
418
- };
419
- name?: string | undefined;
420
- };
421
- distribution: {
422
- percentage: number;
423
- _variation: string;
424
- }[];
425
- name?: string | undefined;
426
- filters?: unknown[] | undefined;
427
- rollout?: {
428
- type: "schedule" | "gradual" | "stepped";
429
- startDate: string;
430
- startPercentage?: number | undefined;
431
- stages?: {
432
- type: "linear" | "discrete";
433
- date: string;
434
- percentage: number;
435
- }[] | undefined;
436
- } | null | undefined;
437
- bucketingKey?: string | undefined;
438
- }[] | undefined;
439
- _environment?: string | undefined;
440
- startedAt?: string | undefined;
441
- hasStaticConfig?: boolean | undefined;
442
- }[] | undefined;
443
- sdkVisibility?: {
444
- mobile: boolean;
445
- client: boolean;
446
- server: boolean;
447
- } | undefined;
448
- ldLink?: string | undefined;
449
- };
450
- dashboardLink: string;
451
- }>;
452
- export declare function updateFeatureStatusHandler(args: z.infer<typeof UpdateFeatureStatusArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
453
- result: {
454
- createdAt: string;
455
- updatedAt: string;
456
- name: string;
457
- key: string;
458
- _id: string;
459
- _project: string;
460
- readonly: boolean;
461
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
462
- variables: {
463
- type: "String" | "Boolean" | "Number" | "JSON";
464
- status: "active" | "archived";
465
- createdAt: string;
466
- updatedAt: string;
467
- key: string;
468
- _id: string;
469
- _project: string;
470
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
471
- description?: string | undefined;
472
- name?: string | undefined;
473
- _createdBy?: string | undefined;
474
- _feature?: string | undefined;
475
- defaultValue?: any;
476
- validationSchema?: {
477
- description: string;
478
- schemaType: string;
479
- enumValues?: string[] | undefined;
480
- regexPattern?: string | undefined;
481
- jsonSchema?: string | undefined;
482
- exampleValue?: any;
483
- } | undefined;
484
- persistent?: boolean | undefined;
485
- }[];
486
- variations: {
487
- name: string;
488
- key: string;
489
- _id: string;
490
- variables?: Record<string, string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">> | undefined;
491
- }[];
492
- controlVariation: string;
493
- type?: "release" | "experiment" | "permission" | "ops" | undefined;
494
- status?: "active" | "archived" | "complete" | undefined;
495
- description?: string | undefined;
496
- staleness?: {
497
- stale: boolean;
498
- updatedAt?: string | undefined;
499
- disabled?: boolean | undefined;
500
- snoozedUntil?: string | undefined;
501
- reason?: string | undefined;
502
- metaData?: Record<string, unknown> | undefined;
503
- } | undefined;
504
- settings?: {
505
- publicName?: string | undefined;
506
- publicDescription?: string | undefined;
507
- optInEnabled?: boolean | undefined;
508
- } | undefined;
509
- _createdBy?: string | undefined;
510
- tags?: string[] | undefined;
511
- configurations?: {
512
- status?: "active" | "archived" | "inactive" | undefined;
513
- updatedAt?: string | undefined;
514
- _createdBy?: string | undefined;
515
- readonly?: boolean | undefined;
516
- _feature?: string | undefined;
517
- targets?: {
518
- _id: string;
519
- audience: {
520
- filters: {
521
- filters: (z.objectOutputType<{
522
- type: z.ZodDefault<z.ZodLiteral<"all">>;
523
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
524
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
525
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
526
- type: z.ZodDefault<z.ZodLiteral<"optIn">>;
527
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
528
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
529
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
530
- subType: z.ZodEnum<["user_id", "email", "platform", "deviceModel"]>;
531
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
532
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
533
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
534
- type: z.ZodDefault<z.ZodLiteral<"user">>;
535
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
536
- subType: z.ZodDefault<z.ZodLiteral<"country">>;
537
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
538
- values: z.ZodArray<z.ZodString, "many">;
539
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
540
- type: z.ZodDefault<z.ZodLiteral<"user">>;
541
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
542
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
543
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
544
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
545
- type: z.ZodDefault<z.ZodLiteral<"user">>;
546
- subType: z.ZodDefault<z.ZodLiteral<"appVersion">>;
547
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
548
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
549
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
550
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
551
- type: z.ZodDefault<z.ZodLiteral<"user">>;
552
- subType: z.ZodDefault<z.ZodLiteral<"platformVersion">>;
553
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
554
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
555
- dataKey: z.ZodString;
556
- dataKeyType: z.ZodEnum<["String", "Boolean", "Number"]>;
557
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">>;
558
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
559
- type: z.ZodDefault<z.ZodLiteral<"user">>;
560
- subType: z.ZodDefault<z.ZodLiteral<"customData">>;
561
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
562
- type: z.ZodDefault<z.ZodLiteral<"audienceMatch">>;
563
- comparator: z.ZodOptional<z.ZodEnum<["=", "!="]>>;
564
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
565
- }, z.ZodTypeAny, "passthrough">)[];
566
- operator: "and" | "or";
567
- };
568
- name?: string | undefined;
569
- };
570
- distribution: {
571
- percentage: number;
572
- _variation: string;
573
- }[];
574
- name?: string | undefined;
575
- filters?: unknown[] | undefined;
576
- rollout?: {
577
- type: "schedule" | "gradual" | "stepped";
578
- startDate: string;
579
- startPercentage?: number | undefined;
580
- stages?: {
581
- type: "linear" | "discrete";
582
- date: string;
583
- percentage: number;
584
- }[] | undefined;
585
- } | null | undefined;
586
- bucketingKey?: string | undefined;
587
- }[] | undefined;
588
- _environment?: string | undefined;
589
- startedAt?: string | undefined;
590
- hasStaticConfig?: boolean | undefined;
591
- }[] | undefined;
592
- sdkVisibility?: {
593
- mobile: boolean;
594
- client: boolean;
595
- server: boolean;
596
- } | undefined;
597
- ldLink?: string | undefined;
598
- };
599
- dashboardLink: string;
600
- }>;
601
- export declare function deleteFeatureHandler(args: z.infer<typeof DeleteFeatureArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
602
- result: {
603
- message: string;
604
- };
605
- dashboardLink: string;
606
- }>;
607
- export declare function fetchFeatureVariationsHandler(args: z.infer<typeof ListVariationsArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
608
- result: {
609
- name: string;
610
- key: string;
611
- _id: string;
612
- variables?: Record<string, string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">> | undefined;
613
- }[];
614
- dashboardLink: string;
615
- }>;
616
- export declare function createFeatureVariationHandler(args: z.infer<typeof CreateVariationArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
617
- result: {
618
- createdAt: string;
619
- updatedAt: string;
620
- name: string;
621
- key: string;
622
- _id: string;
623
- _project: string;
624
- readonly: boolean;
625
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
626
- variables: {
627
- type: "String" | "Boolean" | "Number" | "JSON";
628
- status: "active" | "archived";
629
- createdAt: string;
630
- updatedAt: string;
631
- key: string;
632
- _id: string;
633
- _project: string;
634
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
635
- description?: string | undefined;
636
- name?: string | undefined;
637
- _createdBy?: string | undefined;
638
- _feature?: string | undefined;
639
- defaultValue?: any;
640
- validationSchema?: {
641
- description: string;
642
- schemaType: string;
643
- enumValues?: string[] | undefined;
644
- regexPattern?: string | undefined;
645
- jsonSchema?: string | undefined;
646
- exampleValue?: any;
647
- } | undefined;
648
- persistent?: boolean | undefined;
649
- }[];
650
- variations: {
651
- name: string;
652
- key: string;
653
- _id: string;
654
- variables?: Record<string, string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">> | undefined;
655
- }[];
656
- controlVariation: string;
657
- type?: "release" | "experiment" | "permission" | "ops" | undefined;
658
- status?: "active" | "archived" | "complete" | undefined;
659
- description?: string | undefined;
660
- staleness?: {
661
- stale: boolean;
662
- updatedAt?: string | undefined;
663
- disabled?: boolean | undefined;
664
- snoozedUntil?: string | undefined;
665
- reason?: string | undefined;
666
- metaData?: Record<string, unknown> | undefined;
667
- } | undefined;
668
- settings?: {
669
- publicName?: string | undefined;
670
- publicDescription?: string | undefined;
671
- optInEnabled?: boolean | undefined;
672
- } | undefined;
673
- _createdBy?: string | undefined;
674
- tags?: string[] | undefined;
675
- configurations?: {
676
- status?: "active" | "archived" | "inactive" | undefined;
677
- updatedAt?: string | undefined;
678
- _createdBy?: string | undefined;
679
- readonly?: boolean | undefined;
680
- _feature?: string | undefined;
681
- targets?: {
682
- _id: string;
683
- audience: {
684
- filters: {
685
- filters: (z.objectOutputType<{
686
- type: z.ZodDefault<z.ZodLiteral<"all">>;
687
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
688
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
689
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
690
- type: z.ZodDefault<z.ZodLiteral<"optIn">>;
691
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
692
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
693
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
694
- subType: z.ZodEnum<["user_id", "email", "platform", "deviceModel"]>;
695
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
696
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
697
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
698
- type: z.ZodDefault<z.ZodLiteral<"user">>;
699
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
700
- subType: z.ZodDefault<z.ZodLiteral<"country">>;
701
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
702
- values: z.ZodArray<z.ZodString, "many">;
703
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
704
- type: z.ZodDefault<z.ZodLiteral<"user">>;
705
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
706
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
707
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
708
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
709
- type: z.ZodDefault<z.ZodLiteral<"user">>;
710
- subType: z.ZodDefault<z.ZodLiteral<"appVersion">>;
711
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
712
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
713
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
714
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
715
- type: z.ZodDefault<z.ZodLiteral<"user">>;
716
- subType: z.ZodDefault<z.ZodLiteral<"platformVersion">>;
717
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
718
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
719
- dataKey: z.ZodString;
720
- dataKeyType: z.ZodEnum<["String", "Boolean", "Number"]>;
721
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">>;
722
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
723
- type: z.ZodDefault<z.ZodLiteral<"user">>;
724
- subType: z.ZodDefault<z.ZodLiteral<"customData">>;
725
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
726
- type: z.ZodDefault<z.ZodLiteral<"audienceMatch">>;
727
- comparator: z.ZodOptional<z.ZodEnum<["=", "!="]>>;
728
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
729
- }, z.ZodTypeAny, "passthrough">)[];
730
- operator: "and" | "or";
731
- };
732
- name?: string | undefined;
733
- };
734
- distribution: {
735
- percentage: number;
736
- _variation: string;
737
- }[];
738
- name?: string | undefined;
739
- filters?: unknown[] | undefined;
740
- rollout?: {
741
- type: "schedule" | "gradual" | "stepped";
742
- startDate: string;
743
- startPercentage?: number | undefined;
744
- stages?: {
745
- type: "linear" | "discrete";
746
- date: string;
747
- percentage: number;
748
- }[] | undefined;
749
- } | null | undefined;
750
- bucketingKey?: string | undefined;
751
- }[] | undefined;
752
- _environment?: string | undefined;
753
- startedAt?: string | undefined;
754
- hasStaticConfig?: boolean | undefined;
755
- }[] | undefined;
756
- sdkVisibility?: {
757
- mobile: boolean;
758
- client: boolean;
759
- server: boolean;
760
- } | undefined;
761
- ldLink?: string | undefined;
762
- };
763
- dashboardLink: string;
764
- }>;
765
- export declare function updateFeatureVariationHandler(args: z.infer<typeof UpdateVariationArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
766
- result: {
767
- createdAt: string;
768
- updatedAt: string;
769
- name: string;
770
- key: string;
771
- _id: string;
772
- _project: string;
773
- readonly: boolean;
774
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
775
- variables: {
776
- type: "String" | "Boolean" | "Number" | "JSON";
777
- status: "active" | "archived";
778
- createdAt: string;
779
- updatedAt: string;
780
- key: string;
781
- _id: string;
782
- _project: string;
783
- source: "api" | "dashboard" | "importer" | "github.code_usages" | "github.pr_insights" | "bitbucket.code_usages" | "bitbucket.pr_insights" | "terraform" | "cli";
784
- description?: string | undefined;
785
- name?: string | undefined;
786
- _createdBy?: string | undefined;
787
- _feature?: string | undefined;
788
- defaultValue?: any;
789
- validationSchema?: {
790
- description: string;
791
- schemaType: string;
792
- enumValues?: string[] | undefined;
793
- regexPattern?: string | undefined;
794
- jsonSchema?: string | undefined;
795
- exampleValue?: any;
796
- } | undefined;
797
- persistent?: boolean | undefined;
798
- }[];
799
- variations: {
800
- name: string;
801
- key: string;
802
- _id: string;
803
- variables?: Record<string, string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">> | undefined;
804
- }[];
805
- controlVariation: string;
806
- type?: "release" | "experiment" | "permission" | "ops" | undefined;
807
- status?: "active" | "archived" | "complete" | undefined;
808
- description?: string | undefined;
809
- staleness?: {
810
- stale: boolean;
811
- updatedAt?: string | undefined;
812
- disabled?: boolean | undefined;
813
- snoozedUntil?: string | undefined;
814
- reason?: string | undefined;
815
- metaData?: Record<string, unknown> | undefined;
816
- } | undefined;
817
- settings?: {
818
- publicName?: string | undefined;
819
- publicDescription?: string | undefined;
820
- optInEnabled?: boolean | undefined;
821
- } | undefined;
822
- _createdBy?: string | undefined;
823
- tags?: string[] | undefined;
824
- configurations?: {
825
- status?: "active" | "archived" | "inactive" | undefined;
826
- updatedAt?: string | undefined;
827
- _createdBy?: string | undefined;
828
- readonly?: boolean | undefined;
829
- _feature?: string | undefined;
830
- targets?: {
831
- _id: string;
832
- audience: {
833
- filters: {
834
- filters: (z.objectOutputType<{
835
- type: z.ZodDefault<z.ZodLiteral<"all">>;
836
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
837
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
838
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
839
- type: z.ZodDefault<z.ZodLiteral<"optIn">>;
840
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
841
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
842
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
843
- subType: z.ZodEnum<["user_id", "email", "platform", "deviceModel"]>;
844
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
845
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
846
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
847
- type: z.ZodDefault<z.ZodLiteral<"user">>;
848
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
849
- subType: z.ZodDefault<z.ZodLiteral<"country">>;
850
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
851
- values: z.ZodArray<z.ZodString, "many">;
852
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
853
- type: z.ZodDefault<z.ZodLiteral<"user">>;
854
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
855
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
856
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
857
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
858
- type: z.ZodDefault<z.ZodLiteral<"user">>;
859
- subType: z.ZodDefault<z.ZodLiteral<"appVersion">>;
860
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
861
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
862
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
863
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
864
- type: z.ZodDefault<z.ZodLiteral<"user">>;
865
- subType: z.ZodDefault<z.ZodLiteral<"platformVersion">>;
866
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
867
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
868
- dataKey: z.ZodString;
869
- dataKeyType: z.ZodEnum<["String", "Boolean", "Number"]>;
870
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">>;
871
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
872
- type: z.ZodDefault<z.ZodLiteral<"user">>;
873
- subType: z.ZodDefault<z.ZodLiteral<"customData">>;
874
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
875
- type: z.ZodDefault<z.ZodLiteral<"audienceMatch">>;
876
- comparator: z.ZodOptional<z.ZodEnum<["=", "!="]>>;
877
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
878
- }, z.ZodTypeAny, "passthrough">)[];
879
- operator: "and" | "or";
880
- };
881
- name?: string | undefined;
882
- };
883
- distribution: {
884
- percentage: number;
885
- _variation: string;
886
- }[];
887
- name?: string | undefined;
888
- filters?: unknown[] | undefined;
889
- rollout?: {
890
- type: "schedule" | "gradual" | "stepped";
891
- startDate: string;
892
- startPercentage?: number | undefined;
893
- stages?: {
894
- type: "linear" | "discrete";
895
- date: string;
896
- percentage: number;
897
- }[] | undefined;
898
- } | null | undefined;
899
- bucketingKey?: string | undefined;
900
- }[] | undefined;
901
- _environment?: string | undefined;
902
- startedAt?: string | undefined;
903
- hasStaticConfig?: boolean | undefined;
904
- }[] | undefined;
905
- sdkVisibility?: {
906
- mobile: boolean;
907
- client: boolean;
908
- server: boolean;
909
- } | undefined;
910
- ldLink?: string | undefined;
911
- };
912
- dashboardLink: string;
913
- }>;
914
- export declare function setFeatureTargetingHandler(args: z.infer<typeof SetFeatureTargetingArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
915
- result: {
916
- message: string;
917
- };
918
- dashboardLink: string;
919
- }>;
920
- export declare function listFeatureTargetingHandler(args: z.infer<typeof ListFeatureTargetingArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
921
- result: {
922
- status: "active" | "archived" | "inactive";
923
- updatedAt: string;
924
- _createdBy: string;
925
- readonly: boolean;
926
- _feature: string;
927
- targets: {
928
- _id: string;
929
- audience: {
930
- filters: {
931
- filters: (z.objectOutputType<{
932
- type: z.ZodDefault<z.ZodLiteral<"all">>;
933
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
934
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
935
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
936
- type: z.ZodDefault<z.ZodLiteral<"optIn">>;
937
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
938
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
939
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
940
- subType: z.ZodEnum<["user_id", "email", "platform", "deviceModel"]>;
941
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
942
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
943
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
944
- type: z.ZodDefault<z.ZodLiteral<"user">>;
945
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
946
- subType: z.ZodDefault<z.ZodLiteral<"country">>;
947
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
948
- values: z.ZodArray<z.ZodString, "many">;
949
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
950
- type: z.ZodDefault<z.ZodLiteral<"user">>;
951
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
952
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
953
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
954
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
955
- type: z.ZodDefault<z.ZodLiteral<"user">>;
956
- subType: z.ZodDefault<z.ZodLiteral<"appVersion">>;
957
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
958
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
959
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
960
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
961
- type: z.ZodDefault<z.ZodLiteral<"user">>;
962
- subType: z.ZodDefault<z.ZodLiteral<"platformVersion">>;
963
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
964
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
965
- dataKey: z.ZodString;
966
- dataKeyType: z.ZodEnum<["String", "Boolean", "Number"]>;
967
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">>;
968
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
969
- type: z.ZodDefault<z.ZodLiteral<"user">>;
970
- subType: z.ZodDefault<z.ZodLiteral<"customData">>;
971
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
972
- type: z.ZodDefault<z.ZodLiteral<"audienceMatch">>;
973
- comparator: z.ZodOptional<z.ZodEnum<["=", "!="]>>;
974
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
975
- }, z.ZodTypeAny, "passthrough">)[];
976
- operator: "and" | "or";
977
- };
978
- name?: string | undefined;
979
- };
980
- distribution: {
981
- percentage: number;
982
- _variation: string;
983
- }[];
984
- name?: string | undefined;
985
- filters?: unknown[] | undefined;
986
- rollout?: {
987
- type: "schedule" | "gradual" | "stepped";
988
- startDate: string;
989
- startPercentage?: number | undefined;
990
- stages?: {
991
- type: "linear" | "discrete";
992
- date: string;
993
- percentage: number;
994
- }[] | undefined;
995
- } | null | undefined;
996
- bucketingKey?: string | undefined;
997
- }[];
998
- _environment: string;
999
- startedAt?: string | undefined;
1000
- hasStaticConfig?: boolean | undefined;
1001
- }[];
1002
- dashboardLink: string;
1003
- }>;
1004
- export declare function updateFeatureTargetingHandler(args: z.infer<typeof UpdateFeatureTargetingArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
1005
- result: {
1006
- status: "active" | "archived" | "inactive";
1007
- updatedAt: string;
1008
- _createdBy: string;
1009
- readonly: boolean;
1010
- _feature: string;
1011
- targets: {
1012
- _id: string;
1013
- audience: {
1014
- filters: {
1015
- filters: (z.objectOutputType<{
1016
- type: z.ZodDefault<z.ZodLiteral<"all">>;
1017
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1018
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1019
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1020
- type: z.ZodDefault<z.ZodLiteral<"optIn">>;
1021
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1022
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1023
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1024
- subType: z.ZodEnum<["user_id", "email", "platform", "deviceModel"]>;
1025
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
1026
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1027
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1028
- type: z.ZodDefault<z.ZodLiteral<"user">>;
1029
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1030
- subType: z.ZodDefault<z.ZodLiteral<"country">>;
1031
- comparator: z.ZodEnum<["=", "!=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
1032
- values: z.ZodArray<z.ZodString, "many">;
1033
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1034
- type: z.ZodDefault<z.ZodLiteral<"user">>;
1035
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1036
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
1037
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1038
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1039
- type: z.ZodDefault<z.ZodLiteral<"user">>;
1040
- subType: z.ZodDefault<z.ZodLiteral<"appVersion">>;
1041
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1042
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist"]>;
1043
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1044
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1045
- type: z.ZodDefault<z.ZodLiteral<"user">>;
1046
- subType: z.ZodDefault<z.ZodLiteral<"platformVersion">>;
1047
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1048
- comparator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<=", "exist", "!exist", "contain", "!contain", "startWith", "!startWith", "endWith", "!endWith"]>;
1049
- dataKey: z.ZodString;
1050
- dataKeyType: z.ZodEnum<["String", "Boolean", "Number"]>;
1051
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber]>, "many">>;
1052
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1053
- type: z.ZodDefault<z.ZodLiteral<"user">>;
1054
- subType: z.ZodDefault<z.ZodLiteral<"customData">>;
1055
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1056
- type: z.ZodDefault<z.ZodLiteral<"audienceMatch">>;
1057
- comparator: z.ZodOptional<z.ZodEnum<["=", "!="]>>;
1058
- _audiences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1059
- }, z.ZodTypeAny, "passthrough">)[];
1060
- operator: "and" | "or";
1061
- };
1062
- name?: string | undefined;
1063
- };
1064
- distribution: {
1065
- percentage: number;
1066
- _variation: string;
1067
- }[];
1068
- name?: string | undefined;
1069
- filters?: unknown[] | undefined;
1070
- rollout?: {
1071
- type: "schedule" | "gradual" | "stepped";
1072
- startDate: string;
1073
- startPercentage?: number | undefined;
1074
- stages?: {
1075
- type: "linear" | "discrete";
1076
- date: string;
1077
- percentage: number;
1078
- }[] | undefined;
1079
- } | null | undefined;
1080
- bucketingKey?: string | undefined;
1081
- }[];
1082
- _environment: string;
1083
- startedAt?: string | undefined;
1084
- hasStaticConfig?: boolean | undefined;
1085
- };
1086
- dashboardLink: string;
1087
- }>;
1088
- export declare function getFeatureAuditLogHistoryHandler(args: z.infer<typeof GetFeatureAuditLogHistoryArgsSchema>, apiClient: IDevCycleApiClient): Promise<{
1089
- result: unknown[];
1090
- dashboardLink: string;
1091
- }>;
1092
- /**
1093
- * Register feature tools with the MCP server using the new direct registration pattern
1094
- */
1095
- export declare function registerFeatureTools(serverInstance: DevCycleMCPServerInstance, apiClient: IDevCycleApiClient): void;
1096
- //# sourceMappingURL=featureTools.d.ts.map