@launchdarkly/mcp-server 0.4.2 → 0.5.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 (377) hide show
  1. package/README.md +81 -0
  2. package/_speakeasy/.github/action-inputs-config.json +53 -0
  3. package/_speakeasy/.github/action-security-config.json +88 -0
  4. package/bin/mcp-server.js +357 -280
  5. package/bin/mcp-server.js.map +50 -43
  6. package/dist/commonjs/funcs/aiConfigsCreate.js +0 -1
  7. package/dist/commonjs/funcs/aiConfigsCreate.js.map +1 -1
  8. package/dist/commonjs/funcs/aiConfigsCreateVariation.js +0 -1
  9. package/dist/commonjs/funcs/aiConfigsCreateVariation.js.map +1 -1
  10. package/dist/commonjs/funcs/aiConfigsDelete.js +0 -1
  11. package/dist/commonjs/funcs/aiConfigsDelete.js.map +1 -1
  12. package/dist/commonjs/funcs/aiConfigsDeleteVariation.js +0 -1
  13. package/dist/commonjs/funcs/aiConfigsDeleteVariation.js.map +1 -1
  14. package/dist/commonjs/funcs/aiConfigsGet.js +0 -1
  15. package/dist/commonjs/funcs/aiConfigsGet.js.map +1 -1
  16. package/dist/commonjs/funcs/aiConfigsGetTargeting.js +0 -1
  17. package/dist/commonjs/funcs/aiConfigsGetTargeting.js.map +1 -1
  18. package/dist/commonjs/funcs/aiConfigsGetVariation.js +0 -1
  19. package/dist/commonjs/funcs/aiConfigsGetVariation.js.map +1 -1
  20. package/dist/commonjs/funcs/aiConfigsList.js +0 -1
  21. package/dist/commonjs/funcs/aiConfigsList.js.map +1 -1
  22. package/dist/commonjs/funcs/aiConfigsUpdate.js +0 -1
  23. package/dist/commonjs/funcs/aiConfigsUpdate.js.map +1 -1
  24. package/dist/commonjs/funcs/aiConfigsUpdateTargeting.js +0 -1
  25. package/dist/commonjs/funcs/aiConfigsUpdateTargeting.js.map +1 -1
  26. package/dist/commonjs/funcs/aiConfigsUpdateVariation.js +0 -1
  27. package/dist/commonjs/funcs/aiConfigsUpdateVariation.js.map +1 -1
  28. package/dist/commonjs/funcs/featureFlagsPatch.d.ts +1 -1
  29. package/dist/commonjs/funcs/featureFlagsPatch.js +2 -1
  30. package/dist/commonjs/funcs/featureFlagsPatch.js.map +1 -1
  31. package/dist/commonjs/lib/config.d.ts +2 -2
  32. package/dist/commonjs/lib/config.js +2 -2
  33. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  34. package/dist/commonjs/mcp-server/server.js +1 -1
  35. package/dist/commonjs/models/components/aiconfig.d.ts +26 -0
  36. package/dist/commonjs/models/components/aiconfig.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/aiconfig.js +10 -0
  38. package/dist/commonjs/models/components/aiconfig.js.map +1 -1
  39. package/dist/commonjs/models/components/aiconfigdependency.d.ts +69 -0
  40. package/dist/commonjs/models/components/aiconfigdependency.d.ts.map +1 -0
  41. package/dist/commonjs/models/components/aiconfigdependency.js +92 -0
  42. package/dist/commonjs/models/components/aiconfigdependency.js.map +1 -0
  43. package/dist/commonjs/models/components/aiconfigpatch.d.ts +10 -0
  44. package/dist/commonjs/models/components/aiconfigpatch.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/aiconfigpatch.js +4 -0
  46. package/dist/commonjs/models/components/aiconfigpatch.js.map +1 -1
  47. package/dist/commonjs/models/components/aiconfigpost.d.ts +16 -0
  48. package/dist/commonjs/models/components/aiconfigpost.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/aiconfigpost.js +8 -0
  50. package/dist/commonjs/models/components/aiconfigpost.js.map +1 -1
  51. package/dist/commonjs/models/components/aiconfigsmetricdatasourcerefrep.d.ts +35 -0
  52. package/dist/commonjs/models/components/aiconfigsmetricdatasourcerefrep.d.ts.map +1 -0
  53. package/dist/commonjs/models/components/aiconfigsmetricdatasourcerefrep.js +86 -0
  54. package/dist/commonjs/models/components/aiconfigsmetricdatasourcerefrep.js.map +1 -0
  55. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.d.ts +43 -0
  56. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.js +23 -0
  58. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.js.map +1 -1
  59. package/dist/commonjs/models/components/aiconfigvariation.d.ts +8 -0
  60. package/dist/commonjs/models/components/aiconfigvariation.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/aiconfigvariation.js +8 -0
  62. package/dist/commonjs/models/components/aiconfigvariation.js.map +1 -1
  63. package/dist/commonjs/models/components/aiconfigvariationpatch.d.ts +14 -0
  64. package/dist/commonjs/models/components/aiconfigvariationpatch.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/aiconfigvariationpatch.js +8 -0
  66. package/dist/commonjs/models/components/aiconfigvariationpatch.js.map +1 -1
  67. package/dist/commonjs/models/components/aiconfigvariationpost.d.ts +16 -2
  68. package/dist/commonjs/models/components/aiconfigvariationpost.d.ts.map +1 -1
  69. package/dist/commonjs/models/components/aiconfigvariationpost.js +10 -2
  70. package/dist/commonjs/models/components/aiconfigvariationpost.js.map +1 -1
  71. package/dist/commonjs/models/components/environment.d.ts +3 -0
  72. package/dist/commonjs/models/components/environment.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/environment.js +5 -0
  74. package/dist/commonjs/models/components/environment.js.map +1 -1
  75. package/dist/commonjs/models/components/featureflagstatus.d.ts +2 -2
  76. package/dist/commonjs/models/components/featureflagstatus.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/featureflagstatus.js +2 -3
  78. package/dist/commonjs/models/components/featureflagstatus.js.map +1 -1
  79. package/dist/commonjs/models/components/index.d.ts +7 -0
  80. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/index.js +7 -0
  82. package/dist/commonjs/models/components/index.js.map +1 -1
  83. package/dist/commonjs/models/components/judgeattachment.d.ts +37 -0
  84. package/dist/commonjs/models/components/judgeattachment.d.ts.map +1 -0
  85. package/dist/commonjs/models/components/judgeattachment.js +71 -0
  86. package/dist/commonjs/models/components/judgeattachment.js.map +1 -0
  87. package/dist/commonjs/models/components/judgeconfiguration.d.ts +35 -0
  88. package/dist/commonjs/models/components/judgeconfiguration.d.ts.map +1 -0
  89. package/dist/commonjs/models/components/judgeconfiguration.js +70 -0
  90. package/dist/commonjs/models/components/judgeconfiguration.js.map +1 -0
  91. package/dist/commonjs/models/components/metricdatasourcerefrep.d.ts +35 -0
  92. package/dist/commonjs/models/components/metricdatasourcerefrep.d.ts.map +1 -0
  93. package/dist/commonjs/models/components/metricdatasourcerefrep.js +86 -0
  94. package/dist/commonjs/models/components/metricdatasourcerefrep.js.map +1 -0
  95. package/dist/commonjs/models/components/metriclistingrep.d.ts +38 -0
  96. package/dist/commonjs/models/components/metriclistingrep.d.ts.map +1 -1
  97. package/dist/commonjs/models/components/metriclistingrep.js +21 -0
  98. package/dist/commonjs/models/components/metriclistingrep.js.map +1 -1
  99. package/dist/commonjs/models/components/rule.d.ts +5 -0
  100. package/dist/commonjs/models/components/rule.d.ts.map +1 -1
  101. package/dist/commonjs/models/components/rule.js +2 -0
  102. package/dist/commonjs/models/components/rule.js.map +1 -1
  103. package/dist/commonjs/models/components/variationtool.d.ts +46 -0
  104. package/dist/commonjs/models/components/variationtool.d.ts.map +1 -0
  105. package/dist/commonjs/models/components/variationtool.js +73 -0
  106. package/dist/commonjs/models/components/variationtool.js.map +1 -0
  107. package/dist/commonjs/models/components/variationtoolpost.d.ts +37 -0
  108. package/dist/commonjs/models/components/variationtoolpost.d.ts.map +1 -0
  109. package/dist/commonjs/models/components/variationtoolpost.js +71 -0
  110. package/dist/commonjs/models/components/variationtoolpost.js.map +1 -0
  111. package/dist/commonjs/models/operations/deleteaiconfig.d.ts +0 -34
  112. package/dist/commonjs/models/operations/deleteaiconfig.d.ts.map +1 -1
  113. package/dist/commonjs/models/operations/deleteaiconfig.js +1 -33
  114. package/dist/commonjs/models/operations/deleteaiconfig.js.map +1 -1
  115. package/dist/commonjs/models/operations/deleteaiconfigvariation.d.ts +0 -34
  116. package/dist/commonjs/models/operations/deleteaiconfigvariation.d.ts.map +1 -1
  117. package/dist/commonjs/models/operations/deleteaiconfigvariation.js +1 -33
  118. package/dist/commonjs/models/operations/deleteaiconfigvariation.js.map +1 -1
  119. package/dist/commonjs/models/operations/getaiconfig.d.ts +0 -34
  120. package/dist/commonjs/models/operations/getaiconfig.d.ts.map +1 -1
  121. package/dist/commonjs/models/operations/getaiconfig.js +1 -33
  122. package/dist/commonjs/models/operations/getaiconfig.js.map +1 -1
  123. package/dist/commonjs/models/operations/getaiconfigs.d.ts +0 -34
  124. package/dist/commonjs/models/operations/getaiconfigs.d.ts.map +1 -1
  125. package/dist/commonjs/models/operations/getaiconfigs.js +1 -33
  126. package/dist/commonjs/models/operations/getaiconfigs.js.map +1 -1
  127. package/dist/commonjs/models/operations/getaiconfigtargeting.d.ts +0 -34
  128. package/dist/commonjs/models/operations/getaiconfigtargeting.d.ts.map +1 -1
  129. package/dist/commonjs/models/operations/getaiconfigtargeting.js +1 -33
  130. package/dist/commonjs/models/operations/getaiconfigtargeting.js.map +1 -1
  131. package/dist/commonjs/models/operations/getaiconfigvariation.d.ts +0 -34
  132. package/dist/commonjs/models/operations/getaiconfigvariation.d.ts.map +1 -1
  133. package/dist/commonjs/models/operations/getaiconfigvariation.js +1 -33
  134. package/dist/commonjs/models/operations/getaiconfigvariation.js.map +1 -1
  135. package/dist/commonjs/models/operations/getfeatureflags.d.ts +1 -1
  136. package/dist/commonjs/models/operations/patchaiconfig.d.ts +0 -34
  137. package/dist/commonjs/models/operations/patchaiconfig.d.ts.map +1 -1
  138. package/dist/commonjs/models/operations/patchaiconfig.js +1 -26
  139. package/dist/commonjs/models/operations/patchaiconfig.js.map +1 -1
  140. package/dist/commonjs/models/operations/patchaiconfigtargeting.d.ts +0 -34
  141. package/dist/commonjs/models/operations/patchaiconfigtargeting.d.ts.map +1 -1
  142. package/dist/commonjs/models/operations/patchaiconfigtargeting.js +1 -26
  143. package/dist/commonjs/models/operations/patchaiconfigtargeting.js.map +1 -1
  144. package/dist/commonjs/models/operations/patchaiconfigvariation.d.ts +0 -34
  145. package/dist/commonjs/models/operations/patchaiconfigvariation.d.ts.map +1 -1
  146. package/dist/commonjs/models/operations/patchaiconfigvariation.js +1 -26
  147. package/dist/commonjs/models/operations/patchaiconfigvariation.js.map +1 -1
  148. package/dist/commonjs/models/operations/patchfeatureflag.d.ts +5 -0
  149. package/dist/commonjs/models/operations/patchfeatureflag.d.ts.map +1 -1
  150. package/dist/commonjs/models/operations/patchfeatureflag.js +2 -0
  151. package/dist/commonjs/models/operations/patchfeatureflag.js.map +1 -1
  152. package/dist/commonjs/models/operations/postaiconfig.d.ts +0 -34
  153. package/dist/commonjs/models/operations/postaiconfig.d.ts.map +1 -1
  154. package/dist/commonjs/models/operations/postaiconfig.js +1 -26
  155. package/dist/commonjs/models/operations/postaiconfig.js.map +1 -1
  156. package/dist/commonjs/models/operations/postaiconfigvariation.d.ts +0 -34
  157. package/dist/commonjs/models/operations/postaiconfigvariation.d.ts.map +1 -1
  158. package/dist/commonjs/models/operations/postaiconfigvariation.js +1 -26
  159. package/dist/commonjs/models/operations/postaiconfigvariation.js.map +1 -1
  160. package/dist/commonjs/sdk/featureflags.d.ts +1 -1
  161. package/dist/commonjs/sdk/featureflags.js +1 -1
  162. package/dist/esm/funcs/aiConfigsCreate.js +0 -1
  163. package/dist/esm/funcs/aiConfigsCreate.js.map +1 -1
  164. package/dist/esm/funcs/aiConfigsCreateVariation.js +0 -1
  165. package/dist/esm/funcs/aiConfigsCreateVariation.js.map +1 -1
  166. package/dist/esm/funcs/aiConfigsDelete.js +0 -1
  167. package/dist/esm/funcs/aiConfigsDelete.js.map +1 -1
  168. package/dist/esm/funcs/aiConfigsDeleteVariation.js +0 -1
  169. package/dist/esm/funcs/aiConfigsDeleteVariation.js.map +1 -1
  170. package/dist/esm/funcs/aiConfigsGet.js +0 -1
  171. package/dist/esm/funcs/aiConfigsGet.js.map +1 -1
  172. package/dist/esm/funcs/aiConfigsGetTargeting.js +0 -1
  173. package/dist/esm/funcs/aiConfigsGetTargeting.js.map +1 -1
  174. package/dist/esm/funcs/aiConfigsGetVariation.js +0 -1
  175. package/dist/esm/funcs/aiConfigsGetVariation.js.map +1 -1
  176. package/dist/esm/funcs/aiConfigsList.js +0 -1
  177. package/dist/esm/funcs/aiConfigsList.js.map +1 -1
  178. package/dist/esm/funcs/aiConfigsUpdate.js +0 -1
  179. package/dist/esm/funcs/aiConfigsUpdate.js.map +1 -1
  180. package/dist/esm/funcs/aiConfigsUpdateTargeting.js +0 -1
  181. package/dist/esm/funcs/aiConfigsUpdateTargeting.js.map +1 -1
  182. package/dist/esm/funcs/aiConfigsUpdateVariation.js +0 -1
  183. package/dist/esm/funcs/aiConfigsUpdateVariation.js.map +1 -1
  184. package/dist/esm/funcs/featureFlagsPatch.d.ts +1 -1
  185. package/dist/esm/funcs/featureFlagsPatch.js +2 -1
  186. package/dist/esm/funcs/featureFlagsPatch.js.map +1 -1
  187. package/dist/esm/lib/config.d.ts +2 -2
  188. package/dist/esm/lib/config.js +2 -2
  189. package/dist/esm/mcp-server/mcp-server.js +1 -1
  190. package/dist/esm/mcp-server/server.js +1 -1
  191. package/dist/esm/models/components/aiconfig.d.ts +26 -0
  192. package/dist/esm/models/components/aiconfig.d.ts.map +1 -1
  193. package/dist/esm/models/components/aiconfig.js +10 -0
  194. package/dist/esm/models/components/aiconfig.js.map +1 -1
  195. package/dist/esm/models/components/aiconfigdependency.d.ts +69 -0
  196. package/dist/esm/models/components/aiconfigdependency.d.ts.map +1 -0
  197. package/dist/esm/models/components/aiconfigdependency.js +54 -0
  198. package/dist/esm/models/components/aiconfigdependency.js.map +1 -0
  199. package/dist/esm/models/components/aiconfigpatch.d.ts +10 -0
  200. package/dist/esm/models/components/aiconfigpatch.d.ts.map +1 -1
  201. package/dist/esm/models/components/aiconfigpatch.js +4 -0
  202. package/dist/esm/models/components/aiconfigpatch.js.map +1 -1
  203. package/dist/esm/models/components/aiconfigpost.d.ts +16 -0
  204. package/dist/esm/models/components/aiconfigpost.d.ts.map +1 -1
  205. package/dist/esm/models/components/aiconfigpost.js +8 -0
  206. package/dist/esm/models/components/aiconfigpost.js.map +1 -1
  207. package/dist/esm/models/components/aiconfigsmetricdatasourcerefrep.d.ts +35 -0
  208. package/dist/esm/models/components/aiconfigsmetricdatasourcerefrep.d.ts.map +1 -0
  209. package/dist/esm/models/components/aiconfigsmetricdatasourcerefrep.js +48 -0
  210. package/dist/esm/models/components/aiconfigsmetricdatasourcerefrep.js.map +1 -0
  211. package/dist/esm/models/components/aiconfigsmetriclistingrep.d.ts +43 -0
  212. package/dist/esm/models/components/aiconfigsmetriclistingrep.d.ts.map +1 -1
  213. package/dist/esm/models/components/aiconfigsmetriclistingrep.js +23 -0
  214. package/dist/esm/models/components/aiconfigsmetriclistingrep.js.map +1 -1
  215. package/dist/esm/models/components/aiconfigvariation.d.ts +8 -0
  216. package/dist/esm/models/components/aiconfigvariation.d.ts.map +1 -1
  217. package/dist/esm/models/components/aiconfigvariation.js +8 -0
  218. package/dist/esm/models/components/aiconfigvariation.js.map +1 -1
  219. package/dist/esm/models/components/aiconfigvariationpatch.d.ts +14 -0
  220. package/dist/esm/models/components/aiconfigvariationpatch.d.ts.map +1 -1
  221. package/dist/esm/models/components/aiconfigvariationpatch.js +8 -0
  222. package/dist/esm/models/components/aiconfigvariationpatch.js.map +1 -1
  223. package/dist/esm/models/components/aiconfigvariationpost.d.ts +16 -2
  224. package/dist/esm/models/components/aiconfigvariationpost.d.ts.map +1 -1
  225. package/dist/esm/models/components/aiconfigvariationpost.js +10 -2
  226. package/dist/esm/models/components/aiconfigvariationpost.js.map +1 -1
  227. package/dist/esm/models/components/environment.d.ts +3 -0
  228. package/dist/esm/models/components/environment.d.ts.map +1 -1
  229. package/dist/esm/models/components/environment.js +5 -0
  230. package/dist/esm/models/components/environment.js.map +1 -1
  231. package/dist/esm/models/components/featureflagstatus.d.ts +2 -2
  232. package/dist/esm/models/components/featureflagstatus.d.ts.map +1 -1
  233. package/dist/esm/models/components/featureflagstatus.js +2 -3
  234. package/dist/esm/models/components/featureflagstatus.js.map +1 -1
  235. package/dist/esm/models/components/index.d.ts +7 -0
  236. package/dist/esm/models/components/index.d.ts.map +1 -1
  237. package/dist/esm/models/components/index.js +7 -0
  238. package/dist/esm/models/components/index.js.map +1 -1
  239. package/dist/esm/models/components/judgeattachment.d.ts +37 -0
  240. package/dist/esm/models/components/judgeattachment.d.ts.map +1 -0
  241. package/dist/esm/models/components/judgeattachment.js +33 -0
  242. package/dist/esm/models/components/judgeattachment.js.map +1 -0
  243. package/dist/esm/models/components/judgeconfiguration.d.ts +35 -0
  244. package/dist/esm/models/components/judgeconfiguration.d.ts.map +1 -0
  245. package/dist/esm/models/components/judgeconfiguration.js +32 -0
  246. package/dist/esm/models/components/judgeconfiguration.js.map +1 -0
  247. package/dist/esm/models/components/metricdatasourcerefrep.d.ts +35 -0
  248. package/dist/esm/models/components/metricdatasourcerefrep.d.ts.map +1 -0
  249. package/dist/esm/models/components/metricdatasourcerefrep.js +48 -0
  250. package/dist/esm/models/components/metricdatasourcerefrep.js.map +1 -0
  251. package/dist/esm/models/components/metriclistingrep.d.ts +38 -0
  252. package/dist/esm/models/components/metriclistingrep.d.ts.map +1 -1
  253. package/dist/esm/models/components/metriclistingrep.js +21 -0
  254. package/dist/esm/models/components/metriclistingrep.js.map +1 -1
  255. package/dist/esm/models/components/rule.d.ts +5 -0
  256. package/dist/esm/models/components/rule.d.ts.map +1 -1
  257. package/dist/esm/models/components/rule.js +2 -0
  258. package/dist/esm/models/components/rule.js.map +1 -1
  259. package/dist/esm/models/components/variationtool.d.ts +46 -0
  260. package/dist/esm/models/components/variationtool.d.ts.map +1 -0
  261. package/dist/esm/models/components/variationtool.js +35 -0
  262. package/dist/esm/models/components/variationtool.js.map +1 -0
  263. package/dist/esm/models/components/variationtoolpost.d.ts +37 -0
  264. package/dist/esm/models/components/variationtoolpost.d.ts.map +1 -0
  265. package/dist/esm/models/components/variationtoolpost.js +33 -0
  266. package/dist/esm/models/components/variationtoolpost.js.map +1 -0
  267. package/dist/esm/models/operations/deleteaiconfig.d.ts +0 -34
  268. package/dist/esm/models/operations/deleteaiconfig.d.ts.map +1 -1
  269. package/dist/esm/models/operations/deleteaiconfig.js +0 -32
  270. package/dist/esm/models/operations/deleteaiconfig.js.map +1 -1
  271. package/dist/esm/models/operations/deleteaiconfigvariation.d.ts +0 -34
  272. package/dist/esm/models/operations/deleteaiconfigvariation.d.ts.map +1 -1
  273. package/dist/esm/models/operations/deleteaiconfigvariation.js +0 -32
  274. package/dist/esm/models/operations/deleteaiconfigvariation.js.map +1 -1
  275. package/dist/esm/models/operations/getaiconfig.d.ts +0 -34
  276. package/dist/esm/models/operations/getaiconfig.d.ts.map +1 -1
  277. package/dist/esm/models/operations/getaiconfig.js +0 -32
  278. package/dist/esm/models/operations/getaiconfig.js.map +1 -1
  279. package/dist/esm/models/operations/getaiconfigs.d.ts +0 -34
  280. package/dist/esm/models/operations/getaiconfigs.d.ts.map +1 -1
  281. package/dist/esm/models/operations/getaiconfigs.js +0 -32
  282. package/dist/esm/models/operations/getaiconfigs.js.map +1 -1
  283. package/dist/esm/models/operations/getaiconfigtargeting.d.ts +0 -34
  284. package/dist/esm/models/operations/getaiconfigtargeting.d.ts.map +1 -1
  285. package/dist/esm/models/operations/getaiconfigtargeting.js +0 -32
  286. package/dist/esm/models/operations/getaiconfigtargeting.js.map +1 -1
  287. package/dist/esm/models/operations/getaiconfigvariation.d.ts +0 -34
  288. package/dist/esm/models/operations/getaiconfigvariation.d.ts.map +1 -1
  289. package/dist/esm/models/operations/getaiconfigvariation.js +0 -32
  290. package/dist/esm/models/operations/getaiconfigvariation.js.map +1 -1
  291. package/dist/esm/models/operations/getfeatureflags.d.ts +1 -1
  292. package/dist/esm/models/operations/patchaiconfig.d.ts +0 -34
  293. package/dist/esm/models/operations/patchaiconfig.d.ts.map +1 -1
  294. package/dist/esm/models/operations/patchaiconfig.js +0 -25
  295. package/dist/esm/models/operations/patchaiconfig.js.map +1 -1
  296. package/dist/esm/models/operations/patchaiconfigtargeting.d.ts +0 -34
  297. package/dist/esm/models/operations/patchaiconfigtargeting.d.ts.map +1 -1
  298. package/dist/esm/models/operations/patchaiconfigtargeting.js +0 -25
  299. package/dist/esm/models/operations/patchaiconfigtargeting.js.map +1 -1
  300. package/dist/esm/models/operations/patchaiconfigvariation.d.ts +0 -34
  301. package/dist/esm/models/operations/patchaiconfigvariation.d.ts.map +1 -1
  302. package/dist/esm/models/operations/patchaiconfigvariation.js +0 -25
  303. package/dist/esm/models/operations/patchaiconfigvariation.js.map +1 -1
  304. package/dist/esm/models/operations/patchfeatureflag.d.ts +5 -0
  305. package/dist/esm/models/operations/patchfeatureflag.d.ts.map +1 -1
  306. package/dist/esm/models/operations/patchfeatureflag.js +2 -0
  307. package/dist/esm/models/operations/patchfeatureflag.js.map +1 -1
  308. package/dist/esm/models/operations/postaiconfig.d.ts +0 -34
  309. package/dist/esm/models/operations/postaiconfig.d.ts.map +1 -1
  310. package/dist/esm/models/operations/postaiconfig.js +0 -25
  311. package/dist/esm/models/operations/postaiconfig.js.map +1 -1
  312. package/dist/esm/models/operations/postaiconfigvariation.d.ts +0 -34
  313. package/dist/esm/models/operations/postaiconfigvariation.d.ts.map +1 -1
  314. package/dist/esm/models/operations/postaiconfigvariation.js +0 -25
  315. package/dist/esm/models/operations/postaiconfigvariation.js.map +1 -1
  316. package/dist/esm/sdk/featureflags.d.ts +1 -1
  317. package/dist/esm/sdk/featureflags.js +1 -1
  318. package/examples/package-lock.json +1 -1
  319. package/jsr.json +1 -1
  320. package/package.json +1 -1
  321. package/schemas/openapi.json +37552 -18830
  322. package/schemas/output.json +37862 -19109
  323. package/src/funcs/aiConfigsCreate.ts +0 -5
  324. package/src/funcs/aiConfigsCreateVariation.ts +0 -5
  325. package/src/funcs/aiConfigsDelete.ts +0 -5
  326. package/src/funcs/aiConfigsDeleteVariation.ts +0 -5
  327. package/src/funcs/aiConfigsGet.ts +0 -5
  328. package/src/funcs/aiConfigsGetTargeting.ts +0 -5
  329. package/src/funcs/aiConfigsGetVariation.ts +0 -5
  330. package/src/funcs/aiConfigsList.ts +0 -5
  331. package/src/funcs/aiConfigsUpdate.ts +0 -5
  332. package/src/funcs/aiConfigsUpdateTargeting.ts +0 -5
  333. package/src/funcs/aiConfigsUpdateVariation.ts +0 -5
  334. package/src/funcs/featureFlagsPatch.ts +2 -1
  335. package/src/lib/config.ts +2 -2
  336. package/src/mcp-server/mcp-server.ts +1 -1
  337. package/src/mcp-server/server.ts +1 -1
  338. package/src/models/components/aiconfig.ts +37 -0
  339. package/src/models/components/aiconfigdependency.ts +112 -0
  340. package/src/models/components/aiconfigpatch.ts +14 -0
  341. package/src/models/components/aiconfigpost.ts +25 -0
  342. package/src/models/components/aiconfigsmetricdatasourcerefrep.ts +91 -0
  343. package/src/models/components/aiconfigsmetriclistingrep.ts +66 -0
  344. package/src/models/components/aiconfigvariation.ts +24 -0
  345. package/src/models/components/aiconfigvariationpatch.ts +30 -0
  346. package/src/models/components/aiconfigvariationpost.ts +34 -4
  347. package/src/models/components/environment.ts +12 -0
  348. package/src/models/components/featureflagstatus.ts +5 -6
  349. package/src/models/components/index.ts +7 -0
  350. package/src/models/components/judgeattachment.ts +74 -0
  351. package/src/models/components/judgeconfiguration.ts +77 -0
  352. package/src/models/components/metricdatasourcerefrep.ts +89 -0
  353. package/src/models/components/metriclistingrep.ts +59 -0
  354. package/src/models/components/rule.ts +7 -0
  355. package/src/models/components/variationtool.ts +79 -0
  356. package/src/models/components/variationtoolpost.ts +76 -0
  357. package/src/models/operations/deleteaiconfig.ts +0 -51
  358. package/src/models/operations/deleteaiconfigvariation.ts +0 -53
  359. package/src/models/operations/getaiconfig.ts +0 -51
  360. package/src/models/operations/getaiconfigs.ts +0 -51
  361. package/src/models/operations/getaiconfigtargeting.ts +0 -51
  362. package/src/models/operations/getaiconfigvariation.ts +0 -51
  363. package/src/models/operations/getfeatureflags.ts +1 -1
  364. package/src/models/operations/patchaiconfig.ts +0 -44
  365. package/src/models/operations/patchaiconfigtargeting.ts +0 -45
  366. package/src/models/operations/patchaiconfigvariation.ts +0 -45
  367. package/src/models/operations/patchfeatureflag.ts +7 -0
  368. package/src/models/operations/postaiconfig.ts +0 -44
  369. package/src/models/operations/postaiconfigvariation.ts +0 -45
  370. package/src/sdk/featureflags.ts +1 -1
  371. package/.devcontainer/README.md +0 -35
  372. package/docs/sdks/aiconfigs/README.md +0 -1616
  373. package/docs/sdks/codereferences/README.md +0 -79
  374. package/docs/sdks/environments/README.md +0 -112
  375. package/docs/sdks/featureflags/README.md +0 -1808
  376. package/docs/sdks/launchdarkly/README.md +0 -430
  377. package/examples/README.md +0 -26
@@ -3,30 +3,11 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
6
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
7
  import { Result as SafeParseResult } from "../../types/fp.js";
10
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
9
 
12
- /**
13
- * Version of the endpoint.
14
- */
15
- export const GetAIConfigsLDAPIVersion = {
16
- Beta: "beta",
17
- } as const;
18
- /**
19
- * Version of the endpoint.
20
- */
21
- export type GetAIConfigsLDAPIVersion = ClosedEnum<
22
- typeof GetAIConfigsLDAPIVersion
23
- >;
24
-
25
10
  export type GetAIConfigsRequest = {
26
- /**
27
- * Version of the endpoint.
28
- */
29
- ldAPIVersion: GetAIConfigsLDAPIVersion;
30
11
  projectKey: string;
31
12
  /**
32
13
  * A sort to apply to the list of AI Configs.
@@ -46,48 +27,21 @@ export type GetAIConfigsRequest = {
46
27
  filter?: string | undefined;
47
28
  };
48
29
 
49
- /** @internal */
50
- export const GetAIConfigsLDAPIVersion$inboundSchema: z.ZodNativeEnum<
51
- typeof GetAIConfigsLDAPIVersion
52
- > = z.nativeEnum(GetAIConfigsLDAPIVersion);
53
-
54
- /** @internal */
55
- export const GetAIConfigsLDAPIVersion$outboundSchema: z.ZodNativeEnum<
56
- typeof GetAIConfigsLDAPIVersion
57
- > = GetAIConfigsLDAPIVersion$inboundSchema;
58
-
59
- /**
60
- * @internal
61
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
- */
63
- export namespace GetAIConfigsLDAPIVersion$ {
64
- /** @deprecated use `GetAIConfigsLDAPIVersion$inboundSchema` instead. */
65
- export const inboundSchema = GetAIConfigsLDAPIVersion$inboundSchema;
66
- /** @deprecated use `GetAIConfigsLDAPIVersion$outboundSchema` instead. */
67
- export const outboundSchema = GetAIConfigsLDAPIVersion$outboundSchema;
68
- }
69
-
70
30
  /** @internal */
71
31
  export const GetAIConfigsRequest$inboundSchema: z.ZodType<
72
32
  GetAIConfigsRequest,
73
33
  z.ZodTypeDef,
74
34
  unknown
75
35
  > = z.object({
76
- "LD-API-Version": GetAIConfigsLDAPIVersion$inboundSchema,
77
36
  projectKey: z.string(),
78
37
  sort: z.string().optional(),
79
38
  limit: z.number().int().optional(),
80
39
  offset: z.number().int().optional(),
81
40
  filter: z.string().optional(),
82
- }).transform((v) => {
83
- return remap$(v, {
84
- "LD-API-Version": "ldAPIVersion",
85
- });
86
41
  });
87
42
 
88
43
  /** @internal */
89
44
  export type GetAIConfigsRequest$Outbound = {
90
- "LD-API-Version": string;
91
45
  projectKey: string;
92
46
  sort?: string | undefined;
93
47
  limit?: number | undefined;
@@ -101,16 +55,11 @@ export const GetAIConfigsRequest$outboundSchema: z.ZodType<
101
55
  z.ZodTypeDef,
102
56
  GetAIConfigsRequest
103
57
  > = z.object({
104
- ldAPIVersion: GetAIConfigsLDAPIVersion$outboundSchema,
105
58
  projectKey: z.string(),
106
59
  sort: z.string().optional(),
107
60
  limit: z.number().int().optional(),
108
61
  offset: z.number().int().optional(),
109
62
  filter: z.string().optional(),
110
- }).transform((v) => {
111
- return remap$(v, {
112
- ldAPIVersion: "LD-API-Version",
113
- });
114
63
  });
115
64
 
116
65
  /**
@@ -3,73 +3,27 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
6
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
7
  import { Result as SafeParseResult } from "../../types/fp.js";
10
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
9
 
12
- /**
13
- * Version of the endpoint.
14
- */
15
- export const GetAIConfigTargetingLDAPIVersion = {
16
- Beta: "beta",
17
- } as const;
18
- /**
19
- * Version of the endpoint.
20
- */
21
- export type GetAIConfigTargetingLDAPIVersion = ClosedEnum<
22
- typeof GetAIConfigTargetingLDAPIVersion
23
- >;
24
-
25
10
  export type GetAIConfigTargetingRequest = {
26
- /**
27
- * Version of the endpoint.
28
- */
29
- ldAPIVersion: GetAIConfigTargetingLDAPIVersion;
30
11
  projectKey: string;
31
12
  configKey: string;
32
13
  };
33
14
 
34
- /** @internal */
35
- export const GetAIConfigTargetingLDAPIVersion$inboundSchema: z.ZodNativeEnum<
36
- typeof GetAIConfigTargetingLDAPIVersion
37
- > = z.nativeEnum(GetAIConfigTargetingLDAPIVersion);
38
-
39
- /** @internal */
40
- export const GetAIConfigTargetingLDAPIVersion$outboundSchema: z.ZodNativeEnum<
41
- typeof GetAIConfigTargetingLDAPIVersion
42
- > = GetAIConfigTargetingLDAPIVersion$inboundSchema;
43
-
44
- /**
45
- * @internal
46
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
- */
48
- export namespace GetAIConfigTargetingLDAPIVersion$ {
49
- /** @deprecated use `GetAIConfigTargetingLDAPIVersion$inboundSchema` instead. */
50
- export const inboundSchema = GetAIConfigTargetingLDAPIVersion$inboundSchema;
51
- /** @deprecated use `GetAIConfigTargetingLDAPIVersion$outboundSchema` instead. */
52
- export const outboundSchema = GetAIConfigTargetingLDAPIVersion$outboundSchema;
53
- }
54
-
55
15
  /** @internal */
56
16
  export const GetAIConfigTargetingRequest$inboundSchema: z.ZodType<
57
17
  GetAIConfigTargetingRequest,
58
18
  z.ZodTypeDef,
59
19
  unknown
60
20
  > = z.object({
61
- "LD-API-Version": GetAIConfigTargetingLDAPIVersion$inboundSchema,
62
21
  projectKey: z.string(),
63
22
  configKey: z.string(),
64
- }).transform((v) => {
65
- return remap$(v, {
66
- "LD-API-Version": "ldAPIVersion",
67
- });
68
23
  });
69
24
 
70
25
  /** @internal */
71
26
  export type GetAIConfigTargetingRequest$Outbound = {
72
- "LD-API-Version": string;
73
27
  projectKey: string;
74
28
  configKey: string;
75
29
  };
@@ -80,13 +34,8 @@ export const GetAIConfigTargetingRequest$outboundSchema: z.ZodType<
80
34
  z.ZodTypeDef,
81
35
  GetAIConfigTargetingRequest
82
36
  > = z.object({
83
- ldAPIVersion: GetAIConfigTargetingLDAPIVersion$outboundSchema,
84
37
  projectKey: z.string(),
85
38
  configKey: z.string(),
86
- }).transform((v) => {
87
- return remap$(v, {
88
- ldAPIVersion: "LD-API-Version",
89
- });
90
39
  });
91
40
 
92
41
  /**
@@ -3,75 +3,29 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
6
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
7
  import { Result as SafeParseResult } from "../../types/fp.js";
10
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
9
 
12
- /**
13
- * Version of the endpoint.
14
- */
15
- export const GetAIConfigVariationLDAPIVersion = {
16
- Beta: "beta",
17
- } as const;
18
- /**
19
- * Version of the endpoint.
20
- */
21
- export type GetAIConfigVariationLDAPIVersion = ClosedEnum<
22
- typeof GetAIConfigVariationLDAPIVersion
23
- >;
24
-
25
10
  export type GetAIConfigVariationRequest = {
26
- /**
27
- * Version of the endpoint.
28
- */
29
- ldAPIVersion: GetAIConfigVariationLDAPIVersion;
30
11
  projectKey: string;
31
12
  configKey: string;
32
13
  variationKey: string;
33
14
  };
34
15
 
35
- /** @internal */
36
- export const GetAIConfigVariationLDAPIVersion$inboundSchema: z.ZodNativeEnum<
37
- typeof GetAIConfigVariationLDAPIVersion
38
- > = z.nativeEnum(GetAIConfigVariationLDAPIVersion);
39
-
40
- /** @internal */
41
- export const GetAIConfigVariationLDAPIVersion$outboundSchema: z.ZodNativeEnum<
42
- typeof GetAIConfigVariationLDAPIVersion
43
- > = GetAIConfigVariationLDAPIVersion$inboundSchema;
44
-
45
- /**
46
- * @internal
47
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
- */
49
- export namespace GetAIConfigVariationLDAPIVersion$ {
50
- /** @deprecated use `GetAIConfigVariationLDAPIVersion$inboundSchema` instead. */
51
- export const inboundSchema = GetAIConfigVariationLDAPIVersion$inboundSchema;
52
- /** @deprecated use `GetAIConfigVariationLDAPIVersion$outboundSchema` instead. */
53
- export const outboundSchema = GetAIConfigVariationLDAPIVersion$outboundSchema;
54
- }
55
-
56
16
  /** @internal */
57
17
  export const GetAIConfigVariationRequest$inboundSchema: z.ZodType<
58
18
  GetAIConfigVariationRequest,
59
19
  z.ZodTypeDef,
60
20
  unknown
61
21
  > = z.object({
62
- "LD-API-Version": GetAIConfigVariationLDAPIVersion$inboundSchema,
63
22
  projectKey: z.string(),
64
23
  configKey: z.string(),
65
24
  variationKey: z.string(),
66
- }).transform((v) => {
67
- return remap$(v, {
68
- "LD-API-Version": "ldAPIVersion",
69
- });
70
25
  });
71
26
 
72
27
  /** @internal */
73
28
  export type GetAIConfigVariationRequest$Outbound = {
74
- "LD-API-Version": string;
75
29
  projectKey: string;
76
30
  configKey: string;
77
31
  variationKey: string;
@@ -83,14 +37,9 @@ export const GetAIConfigVariationRequest$outboundSchema: z.ZodType<
83
37
  z.ZodTypeDef,
84
38
  GetAIConfigVariationRequest
85
39
  > = z.object({
86
- ldAPIVersion: GetAIConfigVariationLDAPIVersion$outboundSchema,
87
40
  projectKey: z.string(),
88
41
  configKey: z.string(),
89
42
  variationKey: z.string(),
90
- }).transform((v) => {
91
- return remap$(v, {
92
- ldAPIVersion: "LD-API-Version",
93
- });
94
43
  });
95
44
 
96
45
  /**
@@ -35,7 +35,7 @@ export type GetFeatureFlagsRequest = {
35
35
  */
36
36
  archived?: boolean | undefined;
37
37
  /**
38
- * By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` to include these fields for each flag returned.
38
+ * By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` and include the `env` query parameter to include these fields for each flag returned.
39
39
  */
40
40
  summary?: boolean | undefined;
41
41
  /**
@@ -5,29 +5,11 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
- /**
14
- * Version of the endpoint.
15
- */
16
- export const PatchAIConfigLDAPIVersion = {
17
- Beta: "beta",
18
- } as const;
19
- /**
20
- * Version of the endpoint.
21
- */
22
- export type PatchAIConfigLDAPIVersion = ClosedEnum<
23
- typeof PatchAIConfigLDAPIVersion
24
- >;
25
-
26
12
  export type PatchAIConfigRequest = {
27
- /**
28
- * Version of the endpoint.
29
- */
30
- ldAPIVersion: PatchAIConfigLDAPIVersion;
31
13
  projectKey: string;
32
14
  configKey: string;
33
15
  /**
@@ -36,47 +18,23 @@ export type PatchAIConfigRequest = {
36
18
  aiConfigPatch?: components.AIConfigPatch | undefined;
37
19
  };
38
20
 
39
- /** @internal */
40
- export const PatchAIConfigLDAPIVersion$inboundSchema: z.ZodNativeEnum<
41
- typeof PatchAIConfigLDAPIVersion
42
- > = z.nativeEnum(PatchAIConfigLDAPIVersion);
43
-
44
- /** @internal */
45
- export const PatchAIConfigLDAPIVersion$outboundSchema: z.ZodNativeEnum<
46
- typeof PatchAIConfigLDAPIVersion
47
- > = PatchAIConfigLDAPIVersion$inboundSchema;
48
-
49
- /**
50
- * @internal
51
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
- */
53
- export namespace PatchAIConfigLDAPIVersion$ {
54
- /** @deprecated use `PatchAIConfigLDAPIVersion$inboundSchema` instead. */
55
- export const inboundSchema = PatchAIConfigLDAPIVersion$inboundSchema;
56
- /** @deprecated use `PatchAIConfigLDAPIVersion$outboundSchema` instead. */
57
- export const outboundSchema = PatchAIConfigLDAPIVersion$outboundSchema;
58
- }
59
-
60
21
  /** @internal */
61
22
  export const PatchAIConfigRequest$inboundSchema: z.ZodType<
62
23
  PatchAIConfigRequest,
63
24
  z.ZodTypeDef,
64
25
  unknown
65
26
  > = z.object({
66
- "LD-API-Version": PatchAIConfigLDAPIVersion$inboundSchema,
67
27
  projectKey: z.string(),
68
28
  configKey: z.string(),
69
29
  AIConfigPatch: components.AIConfigPatch$inboundSchema.optional(),
70
30
  }).transform((v) => {
71
31
  return remap$(v, {
72
- "LD-API-Version": "ldAPIVersion",
73
32
  "AIConfigPatch": "aiConfigPatch",
74
33
  });
75
34
  });
76
35
 
77
36
  /** @internal */
78
37
  export type PatchAIConfigRequest$Outbound = {
79
- "LD-API-Version": string;
80
38
  projectKey: string;
81
39
  configKey: string;
82
40
  AIConfigPatch?: components.AIConfigPatch$Outbound | undefined;
@@ -88,13 +46,11 @@ export const PatchAIConfigRequest$outboundSchema: z.ZodType<
88
46
  z.ZodTypeDef,
89
47
  PatchAIConfigRequest
90
48
  > = z.object({
91
- ldAPIVersion: PatchAIConfigLDAPIVersion$outboundSchema,
92
49
  projectKey: z.string(),
93
50
  configKey: z.string(),
94
51
  aiConfigPatch: components.AIConfigPatch$outboundSchema.optional(),
95
52
  }).transform((v) => {
96
53
  return remap$(v, {
97
- ldAPIVersion: "LD-API-Version",
98
54
  aiConfigPatch: "AIConfigPatch",
99
55
  });
100
56
  });
@@ -5,29 +5,11 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
- /**
14
- * Version of the endpoint.
15
- */
16
- export const PatchAIConfigTargetingLDAPIVersion = {
17
- Beta: "beta",
18
- } as const;
19
- /**
20
- * Version of the endpoint.
21
- */
22
- export type PatchAIConfigTargetingLDAPIVersion = ClosedEnum<
23
- typeof PatchAIConfigTargetingLDAPIVersion
24
- >;
25
-
26
12
  export type PatchAIConfigTargetingRequest = {
27
- /**
28
- * Version of the endpoint.
29
- */
30
- ldAPIVersion: PatchAIConfigTargetingLDAPIVersion;
31
13
  projectKey: string;
32
14
  configKey: string;
33
15
  /**
@@ -36,49 +18,24 @@ export type PatchAIConfigTargetingRequest = {
36
18
  aiConfigTargetingPatch?: components.AIConfigTargetingPatch | undefined;
37
19
  };
38
20
 
39
- /** @internal */
40
- export const PatchAIConfigTargetingLDAPIVersion$inboundSchema: z.ZodNativeEnum<
41
- typeof PatchAIConfigTargetingLDAPIVersion
42
- > = z.nativeEnum(PatchAIConfigTargetingLDAPIVersion);
43
-
44
- /** @internal */
45
- export const PatchAIConfigTargetingLDAPIVersion$outboundSchema: z.ZodNativeEnum<
46
- typeof PatchAIConfigTargetingLDAPIVersion
47
- > = PatchAIConfigTargetingLDAPIVersion$inboundSchema;
48
-
49
- /**
50
- * @internal
51
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
- */
53
- export namespace PatchAIConfigTargetingLDAPIVersion$ {
54
- /** @deprecated use `PatchAIConfigTargetingLDAPIVersion$inboundSchema` instead. */
55
- export const inboundSchema = PatchAIConfigTargetingLDAPIVersion$inboundSchema;
56
- /** @deprecated use `PatchAIConfigTargetingLDAPIVersion$outboundSchema` instead. */
57
- export const outboundSchema =
58
- PatchAIConfigTargetingLDAPIVersion$outboundSchema;
59
- }
60
-
61
21
  /** @internal */
62
22
  export const PatchAIConfigTargetingRequest$inboundSchema: z.ZodType<
63
23
  PatchAIConfigTargetingRequest,
64
24
  z.ZodTypeDef,
65
25
  unknown
66
26
  > = z.object({
67
- "LD-API-Version": PatchAIConfigTargetingLDAPIVersion$inboundSchema,
68
27
  projectKey: z.string(),
69
28
  configKey: z.string(),
70
29
  AIConfigTargetingPatch: components.AIConfigTargetingPatch$inboundSchema
71
30
  .optional(),
72
31
  }).transform((v) => {
73
32
  return remap$(v, {
74
- "LD-API-Version": "ldAPIVersion",
75
33
  "AIConfigTargetingPatch": "aiConfigTargetingPatch",
76
34
  });
77
35
  });
78
36
 
79
37
  /** @internal */
80
38
  export type PatchAIConfigTargetingRequest$Outbound = {
81
- "LD-API-Version": string;
82
39
  projectKey: string;
83
40
  configKey: string;
84
41
  AIConfigTargetingPatch?:
@@ -92,14 +49,12 @@ export const PatchAIConfigTargetingRequest$outboundSchema: z.ZodType<
92
49
  z.ZodTypeDef,
93
50
  PatchAIConfigTargetingRequest
94
51
  > = z.object({
95
- ldAPIVersion: PatchAIConfigTargetingLDAPIVersion$outboundSchema,
96
52
  projectKey: z.string(),
97
53
  configKey: z.string(),
98
54
  aiConfigTargetingPatch: components.AIConfigTargetingPatch$outboundSchema
99
55
  .optional(),
100
56
  }).transform((v) => {
101
57
  return remap$(v, {
102
- ldAPIVersion: "LD-API-Version",
103
58
  aiConfigTargetingPatch: "AIConfigTargetingPatch",
104
59
  });
105
60
  });
@@ -5,29 +5,11 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
- /**
14
- * Version of the endpoint.
15
- */
16
- export const PatchAIConfigVariationLDAPIVersion = {
17
- Beta: "beta",
18
- } as const;
19
- /**
20
- * Version of the endpoint.
21
- */
22
- export type PatchAIConfigVariationLDAPIVersion = ClosedEnum<
23
- typeof PatchAIConfigVariationLDAPIVersion
24
- >;
25
-
26
12
  export type PatchAIConfigVariationRequest = {
27
- /**
28
- * Version of the endpoint.
29
- */
30
- ldAPIVersion: PatchAIConfigVariationLDAPIVersion;
31
13
  projectKey: string;
32
14
  configKey: string;
33
15
  variationKey: string;
@@ -37,35 +19,12 @@ export type PatchAIConfigVariationRequest = {
37
19
  aiConfigVariationPatch?: components.AIConfigVariationPatch | undefined;
38
20
  };
39
21
 
40
- /** @internal */
41
- export const PatchAIConfigVariationLDAPIVersion$inboundSchema: z.ZodNativeEnum<
42
- typeof PatchAIConfigVariationLDAPIVersion
43
- > = z.nativeEnum(PatchAIConfigVariationLDAPIVersion);
44
-
45
- /** @internal */
46
- export const PatchAIConfigVariationLDAPIVersion$outboundSchema: z.ZodNativeEnum<
47
- typeof PatchAIConfigVariationLDAPIVersion
48
- > = PatchAIConfigVariationLDAPIVersion$inboundSchema;
49
-
50
- /**
51
- * @internal
52
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
- */
54
- export namespace PatchAIConfigVariationLDAPIVersion$ {
55
- /** @deprecated use `PatchAIConfigVariationLDAPIVersion$inboundSchema` instead. */
56
- export const inboundSchema = PatchAIConfigVariationLDAPIVersion$inboundSchema;
57
- /** @deprecated use `PatchAIConfigVariationLDAPIVersion$outboundSchema` instead. */
58
- export const outboundSchema =
59
- PatchAIConfigVariationLDAPIVersion$outboundSchema;
60
- }
61
-
62
22
  /** @internal */
63
23
  export const PatchAIConfigVariationRequest$inboundSchema: z.ZodType<
64
24
  PatchAIConfigVariationRequest,
65
25
  z.ZodTypeDef,
66
26
  unknown
67
27
  > = z.object({
68
- "LD-API-Version": PatchAIConfigVariationLDAPIVersion$inboundSchema,
69
28
  projectKey: z.string(),
70
29
  configKey: z.string(),
71
30
  variationKey: z.string(),
@@ -73,14 +32,12 @@ export const PatchAIConfigVariationRequest$inboundSchema: z.ZodType<
73
32
  .optional(),
74
33
  }).transform((v) => {
75
34
  return remap$(v, {
76
- "LD-API-Version": "ldAPIVersion",
77
35
  "AIConfigVariationPatch": "aiConfigVariationPatch",
78
36
  });
79
37
  });
80
38
 
81
39
  /** @internal */
82
40
  export type PatchAIConfigVariationRequest$Outbound = {
83
- "LD-API-Version": string;
84
41
  projectKey: string;
85
42
  configKey: string;
86
43
  variationKey: string;
@@ -95,7 +52,6 @@ export const PatchAIConfigVariationRequest$outboundSchema: z.ZodType<
95
52
  z.ZodTypeDef,
96
53
  PatchAIConfigVariationRequest
97
54
  > = z.object({
98
- ldAPIVersion: PatchAIConfigVariationLDAPIVersion$outboundSchema,
99
55
  projectKey: z.string(),
100
56
  configKey: z.string(),
101
57
  variationKey: z.string(),
@@ -103,7 +59,6 @@ export const PatchAIConfigVariationRequest$outboundSchema: z.ZodType<
103
59
  .optional(),
104
60
  }).transform((v) => {
105
61
  return remap$(v, {
106
- ldAPIVersion: "LD-API-Version",
107
62
  aiConfigVariationPatch: "AIConfigVariationPatch",
108
63
  });
109
64
  });
@@ -22,6 +22,10 @@ export type PatchFeatureFlagRequest = {
22
22
  * If true, the patch will be applied even if it causes a pending scheduled change or approval request to fail.
23
23
  */
24
24
  ignoreConflicts?: boolean | undefined;
25
+ /**
26
+ * If true, the patch will be validated but not persisted. Returns a preview of the flag after the patch is applied.
27
+ */
28
+ dryRun?: boolean | undefined;
25
29
  patchWithComment: components.PatchWithComment;
26
30
  };
27
31
 
@@ -34,6 +38,7 @@ export const PatchFeatureFlagRequest$inboundSchema: z.ZodType<
34
38
  projectKey: z.string(),
35
39
  featureFlagKey: z.string(),
36
40
  ignoreConflicts: z.boolean().optional(),
41
+ dryRun: z.boolean().optional(),
37
42
  PatchWithComment: components.PatchWithComment$inboundSchema,
38
43
  }).transform((v) => {
39
44
  return remap$(v, {
@@ -46,6 +51,7 @@ export type PatchFeatureFlagRequest$Outbound = {
46
51
  projectKey: string;
47
52
  featureFlagKey: string;
48
53
  ignoreConflicts?: boolean | undefined;
54
+ dryRun?: boolean | undefined;
49
55
  PatchWithComment: components.PatchWithComment$Outbound;
50
56
  };
51
57
 
@@ -58,6 +64,7 @@ export const PatchFeatureFlagRequest$outboundSchema: z.ZodType<
58
64
  projectKey: z.string(),
59
65
  featureFlagKey: z.string(),
60
66
  ignoreConflicts: z.boolean().optional(),
67
+ dryRun: z.boolean().optional(),
61
68
  patchWithComment: components.PatchWithComment$outboundSchema,
62
69
  }).transform((v) => {
63
70
  return remap$(v, {
@@ -5,29 +5,11 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
- /**
14
- * Version of the endpoint.
15
- */
16
- export const PostAIConfigLDAPIVersion = {
17
- Beta: "beta",
18
- } as const;
19
- /**
20
- * Version of the endpoint.
21
- */
22
- export type PostAIConfigLDAPIVersion = ClosedEnum<
23
- typeof PostAIConfigLDAPIVersion
24
- >;
25
-
26
12
  export type PostAIConfigRequest = {
27
- /**
28
- * Version of the endpoint.
29
- */
30
- ldAPIVersion: PostAIConfigLDAPIVersion;
31
13
  projectKey: string;
32
14
  /**
33
15
  * AI Config object to create
@@ -35,46 +17,22 @@ export type PostAIConfigRequest = {
35
17
  aiConfigPost: components.AIConfigPost;
36
18
  };
37
19
 
38
- /** @internal */
39
- export const PostAIConfigLDAPIVersion$inboundSchema: z.ZodNativeEnum<
40
- typeof PostAIConfigLDAPIVersion
41
- > = z.nativeEnum(PostAIConfigLDAPIVersion);
42
-
43
- /** @internal */
44
- export const PostAIConfigLDAPIVersion$outboundSchema: z.ZodNativeEnum<
45
- typeof PostAIConfigLDAPIVersion
46
- > = PostAIConfigLDAPIVersion$inboundSchema;
47
-
48
- /**
49
- * @internal
50
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
- */
52
- export namespace PostAIConfigLDAPIVersion$ {
53
- /** @deprecated use `PostAIConfigLDAPIVersion$inboundSchema` instead. */
54
- export const inboundSchema = PostAIConfigLDAPIVersion$inboundSchema;
55
- /** @deprecated use `PostAIConfigLDAPIVersion$outboundSchema` instead. */
56
- export const outboundSchema = PostAIConfigLDAPIVersion$outboundSchema;
57
- }
58
-
59
20
  /** @internal */
60
21
  export const PostAIConfigRequest$inboundSchema: z.ZodType<
61
22
  PostAIConfigRequest,
62
23
  z.ZodTypeDef,
63
24
  unknown
64
25
  > = z.object({
65
- "LD-API-Version": PostAIConfigLDAPIVersion$inboundSchema,
66
26
  projectKey: z.string(),
67
27
  AIConfigPost: components.AIConfigPost$inboundSchema,
68
28
  }).transform((v) => {
69
29
  return remap$(v, {
70
- "LD-API-Version": "ldAPIVersion",
71
30
  "AIConfigPost": "aiConfigPost",
72
31
  });
73
32
  });
74
33
 
75
34
  /** @internal */
76
35
  export type PostAIConfigRequest$Outbound = {
77
- "LD-API-Version": string;
78
36
  projectKey: string;
79
37
  AIConfigPost: components.AIConfigPost$Outbound;
80
38
  };
@@ -85,12 +43,10 @@ export const PostAIConfigRequest$outboundSchema: z.ZodType<
85
43
  z.ZodTypeDef,
86
44
  PostAIConfigRequest
87
45
  > = z.object({
88
- ldAPIVersion: PostAIConfigLDAPIVersion$outboundSchema,
89
46
  projectKey: z.string(),
90
47
  aiConfigPost: components.AIConfigPost$outboundSchema,
91
48
  }).transform((v) => {
92
49
  return remap$(v, {
93
- ldAPIVersion: "LD-API-Version",
94
50
  aiConfigPost: "AIConfigPost",
95
51
  });
96
52
  });