@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
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type MetricDataSourceRefRep = {
12
+ key: string;
13
+ environmentKey?: string | undefined;
14
+ name?: string | undefined;
15
+ integrationKey?: string | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const MetricDataSourceRefRep$inboundSchema: z.ZodType<
20
+ MetricDataSourceRefRep,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ key: z.string(),
25
+ environmentKey: z.string().optional(),
26
+ _name: z.string().optional(),
27
+ _integrationKey: z.string().optional(),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "_name": "name",
31
+ "_integrationKey": "integrationKey",
32
+ });
33
+ });
34
+
35
+ /** @internal */
36
+ export type MetricDataSourceRefRep$Outbound = {
37
+ key: string;
38
+ environmentKey?: string | undefined;
39
+ _name?: string | undefined;
40
+ _integrationKey?: string | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const MetricDataSourceRefRep$outboundSchema: z.ZodType<
45
+ MetricDataSourceRefRep$Outbound,
46
+ z.ZodTypeDef,
47
+ MetricDataSourceRefRep
48
+ > = z.object({
49
+ key: z.string(),
50
+ environmentKey: z.string().optional(),
51
+ name: z.string().optional(),
52
+ integrationKey: z.string().optional(),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ name: "_name",
56
+ integrationKey: "_integrationKey",
57
+ });
58
+ });
59
+
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export namespace MetricDataSourceRefRep$ {
65
+ /** @deprecated use `MetricDataSourceRefRep$inboundSchema` instead. */
66
+ export const inboundSchema = MetricDataSourceRefRep$inboundSchema;
67
+ /** @deprecated use `MetricDataSourceRefRep$outboundSchema` instead. */
68
+ export const outboundSchema = MetricDataSourceRefRep$outboundSchema;
69
+ /** @deprecated use `MetricDataSourceRefRep$Outbound` instead. */
70
+ export type Outbound = MetricDataSourceRefRep$Outbound;
71
+ }
72
+
73
+ export function metricDataSourceRefRepToJSON(
74
+ metricDataSourceRefRep: MetricDataSourceRefRep,
75
+ ): string {
76
+ return JSON.stringify(
77
+ MetricDataSourceRefRep$outboundSchema.parse(metricDataSourceRefRep),
78
+ );
79
+ }
80
+
81
+ export function metricDataSourceRefRepFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<MetricDataSourceRefRep, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) => MetricDataSourceRefRep$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'MetricDataSourceRefRep' from JSON`,
88
+ );
89
+ }
@@ -32,6 +32,12 @@ import {
32
32
  MemberSummary$Outbound,
33
33
  MemberSummary$outboundSchema,
34
34
  } from "./membersummary.js";
35
+ import {
36
+ MetricDataSourceRefRep,
37
+ MetricDataSourceRefRep$inboundSchema,
38
+ MetricDataSourceRefRep$Outbound,
39
+ MetricDataSourceRefRep$outboundSchema,
40
+ } from "./metricdatasourcerefrep.js";
35
41
  import {
36
42
  MetricEventDefaultRep,
37
43
  MetricEventDefaultRep$inboundSchema,
@@ -109,6 +115,14 @@ export type MetricListingRep = {
109
115
  * The number of metric groups using this metric
110
116
  */
111
117
  metricGroupCount?: number | undefined;
118
+ /**
119
+ * The number of active experiments using this metric
120
+ */
121
+ activeExperimentCount?: number | undefined;
122
+ /**
123
+ * The number of active guarded rollouts using this metric
124
+ */
125
+ activeGuardedRolloutCount?: number | undefined;
112
126
  /**
113
127
  * The ID of this metric
114
128
  */
@@ -117,6 +131,10 @@ export type MetricListingRep = {
117
131
  * The version ID of the metric
118
132
  */
119
133
  versionId: string;
134
+ /**
135
+ * Version of the metric
136
+ */
137
+ version?: number | undefined;
120
138
  /**
121
139
  * A unique key to reference the metric
122
140
  */
@@ -192,6 +210,18 @@ export type MetricListingRep = {
192
210
  */
193
211
  percentileValue?: number | undefined;
194
212
  eventDefault?: MetricEventDefaultRep | undefined;
213
+ dataSource: MetricDataSourceRefRep;
214
+ lastSeen?: number | undefined;
215
+ /**
216
+ * Whether the metric version is archived
217
+ */
218
+ archived?: boolean | undefined;
219
+ archivedAt?: number | undefined;
220
+ /**
221
+ * For click metrics, the CSS selectors
222
+ */
223
+ selector?: string | undefined;
224
+ urls?: Array<{ [k: string]: any }> | undefined;
195
225
  };
196
226
 
197
227
  /** @internal */
@@ -288,8 +318,11 @@ export const MetricListingRep$inboundSchema: z.ZodType<
288
318
  > = z.object({
289
319
  experimentCount: z.number().int().optional(),
290
320
  metricGroupCount: z.number().int().optional(),
321
+ activeExperimentCount: z.number().int().optional(),
322
+ activeGuardedRolloutCount: z.number().int().optional(),
291
323
  _id: z.string(),
292
324
  _versionId: z.string(),
325
+ _version: z.number().int().optional(),
293
326
  key: z.string(),
294
327
  name: z.string(),
295
328
  kind: MetricListingRepKind$inboundSchema,
@@ -315,10 +348,17 @@ export const MetricListingRep$inboundSchema: z.ZodType<
315
348
  analysisType: MetricListingRepAnalysisType$inboundSchema.optional(),
316
349
  percentileValue: z.number().int().optional(),
317
350
  eventDefault: MetricEventDefaultRep$inboundSchema.optional(),
351
+ dataSource: MetricDataSourceRefRep$inboundSchema,
352
+ lastSeen: z.number().int().optional(),
353
+ archived: z.boolean().optional(),
354
+ archivedAt: z.number().int().optional(),
355
+ selector: z.string().optional(),
356
+ urls: z.array(z.record(z.any())).optional(),
318
357
  }).transform((v) => {
319
358
  return remap$(v, {
320
359
  "_id": "id",
321
360
  "_versionId": "versionId",
361
+ "_version": "version",
322
362
  "_attachedFlagCount": "attachedFlagCount",
323
363
  "_links": "links",
324
364
  "_site": "site",
@@ -332,8 +372,11 @@ export const MetricListingRep$inboundSchema: z.ZodType<
332
372
  export type MetricListingRep$Outbound = {
333
373
  experimentCount?: number | undefined;
334
374
  metricGroupCount?: number | undefined;
375
+ activeExperimentCount?: number | undefined;
376
+ activeGuardedRolloutCount?: number | undefined;
335
377
  _id: string;
336
378
  _versionId: string;
379
+ _version?: number | undefined;
337
380
  key: string;
338
381
  name: string;
339
382
  kind: string;
@@ -358,6 +401,12 @@ export type MetricListingRep$Outbound = {
358
401
  analysisType?: string | undefined;
359
402
  percentileValue?: number | undefined;
360
403
  eventDefault?: MetricEventDefaultRep$Outbound | undefined;
404
+ dataSource: MetricDataSourceRefRep$Outbound;
405
+ lastSeen?: number | undefined;
406
+ archived?: boolean | undefined;
407
+ archivedAt?: number | undefined;
408
+ selector?: string | undefined;
409
+ urls?: Array<{ [k: string]: any }> | undefined;
361
410
  };
362
411
 
363
412
  /** @internal */
@@ -368,8 +417,11 @@ export const MetricListingRep$outboundSchema: z.ZodType<
368
417
  > = z.object({
369
418
  experimentCount: z.number().int().optional(),
370
419
  metricGroupCount: z.number().int().optional(),
420
+ activeExperimentCount: z.number().int().optional(),
421
+ activeGuardedRolloutCount: z.number().int().optional(),
371
422
  id: z.string(),
372
423
  versionId: z.string(),
424
+ version: z.number().int().optional(),
373
425
  key: z.string(),
374
426
  name: z.string(),
375
427
  kind: MetricListingRepKind$outboundSchema,
@@ -395,10 +447,17 @@ export const MetricListingRep$outboundSchema: z.ZodType<
395
447
  analysisType: MetricListingRepAnalysisType$outboundSchema.optional(),
396
448
  percentileValue: z.number().int().optional(),
397
449
  eventDefault: MetricEventDefaultRep$outboundSchema.optional(),
450
+ dataSource: MetricDataSourceRefRep$outboundSchema,
451
+ lastSeen: z.number().int().optional(),
452
+ archived: z.boolean().optional(),
453
+ archivedAt: z.number().int().optional(),
454
+ selector: z.string().optional(),
455
+ urls: z.array(z.record(z.any())).optional(),
398
456
  }).transform((v) => {
399
457
  return remap$(v, {
400
458
  id: "_id",
401
459
  versionId: "_versionId",
460
+ version: "_version",
402
461
  attachedFlagCount: "_attachedFlagCount",
403
462
  links: "_links",
404
463
  site: "_site",
@@ -25,6 +25,10 @@ export type Rule = {
25
25
  * The flag rule ID
26
26
  */
27
27
  id?: string | undefined;
28
+ /**
29
+ * Whether the rule is disabled
30
+ */
31
+ disabled?: boolean | undefined;
28
32
  /**
29
33
  * The index of the variation, from the array of variations for this flag
30
34
  */
@@ -49,6 +53,7 @@ export type Rule = {
49
53
  export const Rule$inboundSchema: z.ZodType<Rule, z.ZodTypeDef, unknown> = z
50
54
  .object({
51
55
  _id: z.string().optional(),
56
+ disabled: z.boolean().optional(),
52
57
  variation: z.number().int().optional(),
53
58
  rollout: Rollout$inboundSchema.optional(),
54
59
  clauses: z.array(Clause$inboundSchema),
@@ -64,6 +69,7 @@ export const Rule$inboundSchema: z.ZodType<Rule, z.ZodTypeDef, unknown> = z
64
69
  /** @internal */
65
70
  export type Rule$Outbound = {
66
71
  _id?: string | undefined;
72
+ disabled?: boolean | undefined;
67
73
  variation?: number | undefined;
68
74
  rollout?: Rollout$Outbound | undefined;
69
75
  clauses: Array<Clause$Outbound>;
@@ -76,6 +82,7 @@ export type Rule$Outbound = {
76
82
  export const Rule$outboundSchema: z.ZodType<Rule$Outbound, z.ZodTypeDef, Rule> =
77
83
  z.object({
78
84
  id: z.string().optional(),
85
+ disabled: z.boolean().optional(),
79
86
  variation: z.number().int().optional(),
80
87
  rollout: Rollout$outboundSchema.optional(),
81
88
  clauses: z.array(Clause$outboundSchema),
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type VariationTool = {
11
+ /**
12
+ * The key of the tool to use.
13
+ */
14
+ key: string;
15
+ /**
16
+ * The version of the tool.
17
+ */
18
+ version: number;
19
+ /**
20
+ * Custom metadata and configuration for application-level use
21
+ */
22
+ customParameters?: { [k: string]: any } | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const VariationTool$inboundSchema: z.ZodType<
27
+ VariationTool,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ key: z.string(),
32
+ version: z.number().int(),
33
+ customParameters: z.record(z.any()).optional(),
34
+ });
35
+
36
+ /** @internal */
37
+ export type VariationTool$Outbound = {
38
+ key: string;
39
+ version: number;
40
+ customParameters?: { [k: string]: any } | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const VariationTool$outboundSchema: z.ZodType<
45
+ VariationTool$Outbound,
46
+ z.ZodTypeDef,
47
+ VariationTool
48
+ > = z.object({
49
+ key: z.string(),
50
+ version: z.number().int(),
51
+ customParameters: z.record(z.any()).optional(),
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace VariationTool$ {
59
+ /** @deprecated use `VariationTool$inboundSchema` instead. */
60
+ export const inboundSchema = VariationTool$inboundSchema;
61
+ /** @deprecated use `VariationTool$outboundSchema` instead. */
62
+ export const outboundSchema = VariationTool$outboundSchema;
63
+ /** @deprecated use `VariationTool$Outbound` instead. */
64
+ export type Outbound = VariationTool$Outbound;
65
+ }
66
+
67
+ export function variationToolToJSON(variationTool: VariationTool): string {
68
+ return JSON.stringify(VariationTool$outboundSchema.parse(variationTool));
69
+ }
70
+
71
+ export function variationToolFromJSON(
72
+ jsonString: string,
73
+ ): SafeParseResult<VariationTool, SDKValidationError> {
74
+ return safeParse(
75
+ jsonString,
76
+ (x) => VariationTool$inboundSchema.parse(JSON.parse(x)),
77
+ `Failed to parse 'VariationTool' from JSON`,
78
+ );
79
+ }
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type VariationToolPost = {
11
+ /**
12
+ * The key of the tool to use.
13
+ */
14
+ key: string;
15
+ /**
16
+ * The version of the tool.
17
+ */
18
+ version: number;
19
+ };
20
+
21
+ /** @internal */
22
+ export const VariationToolPost$inboundSchema: z.ZodType<
23
+ VariationToolPost,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ key: z.string(),
28
+ version: z.number().int(),
29
+ });
30
+
31
+ /** @internal */
32
+ export type VariationToolPost$Outbound = {
33
+ key: string;
34
+ version: number;
35
+ };
36
+
37
+ /** @internal */
38
+ export const VariationToolPost$outboundSchema: z.ZodType<
39
+ VariationToolPost$Outbound,
40
+ z.ZodTypeDef,
41
+ VariationToolPost
42
+ > = z.object({
43
+ key: z.string(),
44
+ version: z.number().int(),
45
+ });
46
+
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ export namespace VariationToolPost$ {
52
+ /** @deprecated use `VariationToolPost$inboundSchema` instead. */
53
+ export const inboundSchema = VariationToolPost$inboundSchema;
54
+ /** @deprecated use `VariationToolPost$outboundSchema` instead. */
55
+ export const outboundSchema = VariationToolPost$outboundSchema;
56
+ /** @deprecated use `VariationToolPost$Outbound` instead. */
57
+ export type Outbound = VariationToolPost$Outbound;
58
+ }
59
+
60
+ export function variationToolPostToJSON(
61
+ variationToolPost: VariationToolPost,
62
+ ): string {
63
+ return JSON.stringify(
64
+ VariationToolPost$outboundSchema.parse(variationToolPost),
65
+ );
66
+ }
67
+
68
+ export function variationToolPostFromJSON(
69
+ jsonString: string,
70
+ ): SafeParseResult<VariationToolPost, SDKValidationError> {
71
+ return safeParse(
72
+ jsonString,
73
+ (x) => VariationToolPost$inboundSchema.parse(JSON.parse(x)),
74
+ `Failed to parse 'VariationToolPost' from JSON`,
75
+ );
76
+ }
@@ -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 DeleteAIConfigLDAPIVersion = {
16
- Beta: "beta",
17
- } as const;
18
- /**
19
- * Version of the endpoint.
20
- */
21
- export type DeleteAIConfigLDAPIVersion = ClosedEnum<
22
- typeof DeleteAIConfigLDAPIVersion
23
- >;
24
-
25
10
  export type DeleteAIConfigRequest = {
26
- /**
27
- * Version of the endpoint.
28
- */
29
- ldAPIVersion: DeleteAIConfigLDAPIVersion;
30
11
  projectKey: string;
31
12
  configKey: string;
32
13
  };
33
14
 
34
- /** @internal */
35
- export const DeleteAIConfigLDAPIVersion$inboundSchema: z.ZodNativeEnum<
36
- typeof DeleteAIConfigLDAPIVersion
37
- > = z.nativeEnum(DeleteAIConfigLDAPIVersion);
38
-
39
- /** @internal */
40
- export const DeleteAIConfigLDAPIVersion$outboundSchema: z.ZodNativeEnum<
41
- typeof DeleteAIConfigLDAPIVersion
42
- > = DeleteAIConfigLDAPIVersion$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 DeleteAIConfigLDAPIVersion$ {
49
- /** @deprecated use `DeleteAIConfigLDAPIVersion$inboundSchema` instead. */
50
- export const inboundSchema = DeleteAIConfigLDAPIVersion$inboundSchema;
51
- /** @deprecated use `DeleteAIConfigLDAPIVersion$outboundSchema` instead. */
52
- export const outboundSchema = DeleteAIConfigLDAPIVersion$outboundSchema;
53
- }
54
-
55
15
  /** @internal */
56
16
  export const DeleteAIConfigRequest$inboundSchema: z.ZodType<
57
17
  DeleteAIConfigRequest,
58
18
  z.ZodTypeDef,
59
19
  unknown
60
20
  > = z.object({
61
- "LD-API-Version": DeleteAIConfigLDAPIVersion$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 DeleteAIConfigRequest$Outbound = {
72
- "LD-API-Version": string;
73
27
  projectKey: string;
74
28
  configKey: string;
75
29
  };
@@ -80,13 +34,8 @@ export const DeleteAIConfigRequest$outboundSchema: z.ZodType<
80
34
  z.ZodTypeDef,
81
35
  DeleteAIConfigRequest
82
36
  > = z.object({
83
- ldAPIVersion: DeleteAIConfigLDAPIVersion$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,77 +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 DeleteAIConfigVariationLDAPIVersion = {
16
- Beta: "beta",
17
- } as const;
18
- /**
19
- * Version of the endpoint.
20
- */
21
- export type DeleteAIConfigVariationLDAPIVersion = ClosedEnum<
22
- typeof DeleteAIConfigVariationLDAPIVersion
23
- >;
24
-
25
10
  export type DeleteAIConfigVariationRequest = {
26
- /**
27
- * Version of the endpoint.
28
- */
29
- ldAPIVersion: DeleteAIConfigVariationLDAPIVersion;
30
11
  projectKey: string;
31
12
  configKey: string;
32
13
  variationKey: string;
33
14
  };
34
15
 
35
- /** @internal */
36
- export const DeleteAIConfigVariationLDAPIVersion$inboundSchema: z.ZodNativeEnum<
37
- typeof DeleteAIConfigVariationLDAPIVersion
38
- > = z.nativeEnum(DeleteAIConfigVariationLDAPIVersion);
39
-
40
- /** @internal */
41
- export const DeleteAIConfigVariationLDAPIVersion$outboundSchema:
42
- z.ZodNativeEnum<typeof DeleteAIConfigVariationLDAPIVersion> =
43
- DeleteAIConfigVariationLDAPIVersion$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 DeleteAIConfigVariationLDAPIVersion$ {
50
- /** @deprecated use `DeleteAIConfigVariationLDAPIVersion$inboundSchema` instead. */
51
- export const inboundSchema =
52
- DeleteAIConfigVariationLDAPIVersion$inboundSchema;
53
- /** @deprecated use `DeleteAIConfigVariationLDAPIVersion$outboundSchema` instead. */
54
- export const outboundSchema =
55
- DeleteAIConfigVariationLDAPIVersion$outboundSchema;
56
- }
57
-
58
16
  /** @internal */
59
17
  export const DeleteAIConfigVariationRequest$inboundSchema: z.ZodType<
60
18
  DeleteAIConfigVariationRequest,
61
19
  z.ZodTypeDef,
62
20
  unknown
63
21
  > = z.object({
64
- "LD-API-Version": DeleteAIConfigVariationLDAPIVersion$inboundSchema,
65
22
  projectKey: z.string(),
66
23
  configKey: z.string(),
67
24
  variationKey: z.string(),
68
- }).transform((v) => {
69
- return remap$(v, {
70
- "LD-API-Version": "ldAPIVersion",
71
- });
72
25
  });
73
26
 
74
27
  /** @internal */
75
28
  export type DeleteAIConfigVariationRequest$Outbound = {
76
- "LD-API-Version": string;
77
29
  projectKey: string;
78
30
  configKey: string;
79
31
  variationKey: string;
@@ -85,14 +37,9 @@ export const DeleteAIConfigVariationRequest$outboundSchema: z.ZodType<
85
37
  z.ZodTypeDef,
86
38
  DeleteAIConfigVariationRequest
87
39
  > = z.object({
88
- ldAPIVersion: DeleteAIConfigVariationLDAPIVersion$outboundSchema,
89
40
  projectKey: z.string(),
90
41
  configKey: z.string(),
91
42
  variationKey: z.string(),
92
- }).transform((v) => {
93
- return remap$(v, {
94
- ldAPIVersion: "LD-API-Version",
95
- });
96
43
  });
97
44
 
98
45
  /**
@@ -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 GetAIConfigLDAPIVersion = {
16
- Beta: "beta",
17
- } as const;
18
- /**
19
- * Version of the endpoint.
20
- */
21
- export type GetAIConfigLDAPIVersion = ClosedEnum<
22
- typeof GetAIConfigLDAPIVersion
23
- >;
24
-
25
10
  export type GetAIConfigRequest = {
26
- /**
27
- * Version of the endpoint.
28
- */
29
- ldAPIVersion: GetAIConfigLDAPIVersion;
30
11
  projectKey: string;
31
12
  configKey: string;
32
13
  };
33
14
 
34
- /** @internal */
35
- export const GetAIConfigLDAPIVersion$inboundSchema: z.ZodNativeEnum<
36
- typeof GetAIConfigLDAPIVersion
37
- > = z.nativeEnum(GetAIConfigLDAPIVersion);
38
-
39
- /** @internal */
40
- export const GetAIConfigLDAPIVersion$outboundSchema: z.ZodNativeEnum<
41
- typeof GetAIConfigLDAPIVersion
42
- > = GetAIConfigLDAPIVersion$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 GetAIConfigLDAPIVersion$ {
49
- /** @deprecated use `GetAIConfigLDAPIVersion$inboundSchema` instead. */
50
- export const inboundSchema = GetAIConfigLDAPIVersion$inboundSchema;
51
- /** @deprecated use `GetAIConfigLDAPIVersion$outboundSchema` instead. */
52
- export const outboundSchema = GetAIConfigLDAPIVersion$outboundSchema;
53
- }
54
-
55
15
  /** @internal */
56
16
  export const GetAIConfigRequest$inboundSchema: z.ZodType<
57
17
  GetAIConfigRequest,
58
18
  z.ZodTypeDef,
59
19
  unknown
60
20
  > = z.object({
61
- "LD-API-Version": GetAIConfigLDAPIVersion$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 GetAIConfigRequest$Outbound = {
72
- "LD-API-Version": string;
73
27
  projectKey: string;
74
28
  configKey: string;
75
29
  };
@@ -80,13 +34,8 @@ export const GetAIConfigRequest$outboundSchema: z.ZodType<
80
34
  z.ZodTypeDef,
81
35
  GetAIConfigRequest
82
36
  > = z.object({
83
- ldAPIVersion: GetAIConfigLDAPIVersion$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
  /**