@launchdarkly/mcp-server 0.2.7 → 0.4.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 (792) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +29 -2
  3. package/bin/mcp-server.js +1592 -379
  4. package/bin/mcp-server.js.map +92 -61
  5. package/dist/commonjs/funcs/aiConfigsCreate.d.ts +3 -2
  6. package/dist/commonjs/funcs/aiConfigsCreate.d.ts.map +1 -1
  7. package/dist/commonjs/funcs/aiConfigsCreate.js +3 -1
  8. package/dist/commonjs/funcs/aiConfigsCreate.js.map +1 -1
  9. package/dist/commonjs/funcs/aiConfigsCreateVariation.d.ts +3 -2
  10. package/dist/commonjs/funcs/aiConfigsCreateVariation.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/aiConfigsCreateVariation.js +3 -1
  12. package/dist/commonjs/funcs/aiConfigsCreateVariation.js.map +1 -1
  13. package/dist/commonjs/funcs/aiConfigsDelete.d.ts +3 -2
  14. package/dist/commonjs/funcs/aiConfigsDelete.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/aiConfigsDelete.js +3 -1
  16. package/dist/commonjs/funcs/aiConfigsDelete.js.map +1 -1
  17. package/dist/commonjs/funcs/aiConfigsDeleteVariation.d.ts +3 -2
  18. package/dist/commonjs/funcs/aiConfigsDeleteVariation.d.ts.map +1 -1
  19. package/dist/commonjs/funcs/aiConfigsDeleteVariation.js +3 -1
  20. package/dist/commonjs/funcs/aiConfigsDeleteVariation.js.map +1 -1
  21. package/dist/commonjs/funcs/aiConfigsGet.d.ts +3 -2
  22. package/dist/commonjs/funcs/aiConfigsGet.d.ts.map +1 -1
  23. package/dist/commonjs/funcs/aiConfigsGet.js +3 -1
  24. package/dist/commonjs/funcs/aiConfigsGet.js.map +1 -1
  25. package/dist/commonjs/funcs/aiConfigsGetTargeting.d.ts +19 -0
  26. package/dist/commonjs/funcs/aiConfigsGetTargeting.d.ts.map +1 -0
  27. package/dist/commonjs/funcs/aiConfigsGetTargeting.js +129 -0
  28. package/dist/commonjs/funcs/aiConfigsGetTargeting.js.map +1 -0
  29. package/dist/commonjs/funcs/aiConfigsGetVariation.d.ts +3 -2
  30. package/dist/commonjs/funcs/aiConfigsGetVariation.d.ts.map +1 -1
  31. package/dist/commonjs/funcs/aiConfigsGetVariation.js +3 -1
  32. package/dist/commonjs/funcs/aiConfigsGetVariation.js.map +1 -1
  33. package/dist/commonjs/funcs/aiConfigsList.d.ts +3 -2
  34. package/dist/commonjs/funcs/aiConfigsList.d.ts.map +1 -1
  35. package/dist/commonjs/funcs/aiConfigsList.js +3 -1
  36. package/dist/commonjs/funcs/aiConfigsList.js.map +1 -1
  37. package/dist/commonjs/funcs/aiConfigsUpdate.d.ts +3 -2
  38. package/dist/commonjs/funcs/aiConfigsUpdate.d.ts.map +1 -1
  39. package/dist/commonjs/funcs/aiConfigsUpdate.js +3 -1
  40. package/dist/commonjs/funcs/aiConfigsUpdate.js.map +1 -1
  41. package/dist/commonjs/funcs/aiConfigsUpdateTargeting.d.ts +576 -0
  42. package/dist/commonjs/funcs/aiConfigsUpdateTargeting.d.ts.map +1 -0
  43. package/dist/commonjs/funcs/aiConfigsUpdateTargeting.js +689 -0
  44. package/dist/commonjs/funcs/aiConfigsUpdateTargeting.js.map +1 -0
  45. package/dist/commonjs/funcs/aiConfigsUpdateVariation.d.ts +3 -2
  46. package/dist/commonjs/funcs/aiConfigsUpdateVariation.d.ts.map +1 -1
  47. package/dist/commonjs/funcs/aiConfigsUpdateVariation.js +3 -1
  48. package/dist/commonjs/funcs/aiConfigsUpdateVariation.js.map +1 -1
  49. package/dist/commonjs/funcs/featureFlagsCreate.d.ts +3 -2
  50. package/dist/commonjs/funcs/featureFlagsCreate.d.ts.map +1 -1
  51. package/dist/commonjs/funcs/featureFlagsCreate.js +3 -1
  52. package/dist/commonjs/funcs/featureFlagsCreate.js.map +1 -1
  53. package/dist/commonjs/funcs/featureFlagsDelete.d.ts +3 -2
  54. package/dist/commonjs/funcs/featureFlagsDelete.d.ts.map +1 -1
  55. package/dist/commonjs/funcs/featureFlagsDelete.js +3 -1
  56. package/dist/commonjs/funcs/featureFlagsDelete.js.map +1 -1
  57. package/dist/commonjs/funcs/featureFlagsGet.d.ts +3 -2
  58. package/dist/commonjs/funcs/featureFlagsGet.d.ts.map +1 -1
  59. package/dist/commonjs/funcs/featureFlagsGet.js +3 -1
  60. package/dist/commonjs/funcs/featureFlagsGet.js.map +1 -1
  61. package/dist/commonjs/funcs/featureFlagsList.d.ts +3 -2
  62. package/dist/commonjs/funcs/featureFlagsList.d.ts.map +1 -1
  63. package/dist/commonjs/funcs/featureFlagsList.js +3 -1
  64. package/dist/commonjs/funcs/featureFlagsList.js.map +1 -1
  65. package/dist/commonjs/funcs/featureFlagsPatch.d.ts +3 -2
  66. package/dist/commonjs/funcs/featureFlagsPatch.d.ts.map +1 -1
  67. package/dist/commonjs/funcs/featureFlagsPatch.js +3 -1
  68. package/dist/commonjs/funcs/featureFlagsPatch.js.map +1 -1
  69. package/dist/commonjs/hooks/types.d.ts +2 -0
  70. package/dist/commonjs/hooks/types.d.ts.map +1 -1
  71. package/dist/commonjs/index.d.ts +2 -0
  72. package/dist/commonjs/index.d.ts.map +1 -1
  73. package/dist/commonjs/index.js +3 -1
  74. package/dist/commonjs/index.js.map +1 -1
  75. package/dist/commonjs/lib/config.d.ts +7 -3
  76. package/dist/commonjs/lib/config.d.ts.map +1 -1
  77. package/dist/commonjs/lib/config.js +3 -3
  78. package/dist/commonjs/lib/config.js.map +1 -1
  79. package/dist/commonjs/lib/files.d.ts +5 -0
  80. package/dist/commonjs/lib/files.d.ts.map +1 -1
  81. package/dist/commonjs/lib/files.js +41 -0
  82. package/dist/commonjs/lib/files.js.map +1 -1
  83. package/dist/commonjs/lib/matchers.d.ts +3 -10
  84. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  85. package/dist/commonjs/lib/matchers.js +33 -31
  86. package/dist/commonjs/lib/matchers.js.map +1 -1
  87. package/dist/commonjs/lib/sdks.d.ts +1 -0
  88. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  89. package/dist/commonjs/lib/sdks.js +3 -3
  90. package/dist/commonjs/lib/sdks.js.map +1 -1
  91. package/dist/commonjs/lib/security.d.ts +2 -2
  92. package/dist/commonjs/lib/security.d.ts.map +1 -1
  93. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  94. package/dist/commonjs/mcp-server/cli/start/command.js +7 -11
  95. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  96. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  97. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  98. package/dist/commonjs/mcp-server/server.js +5 -1
  99. package/dist/commonjs/mcp-server/server.js.map +1 -1
  100. package/dist/commonjs/mcp-server/tools/aiConfigsCreate.d.ts.map +1 -1
  101. package/dist/commonjs/mcp-server/tools/aiConfigsCreate.js +2 -1
  102. package/dist/commonjs/mcp-server/tools/aiConfigsCreate.js.map +1 -1
  103. package/dist/commonjs/mcp-server/tools/aiConfigsCreateVariation.d.ts.map +1 -1
  104. package/dist/commonjs/mcp-server/tools/aiConfigsCreateVariation.js +3 -15
  105. package/dist/commonjs/mcp-server/tools/aiConfigsCreateVariation.js.map +1 -1
  106. package/dist/commonjs/mcp-server/tools/aiConfigsDelete.d.ts.map +1 -1
  107. package/dist/commonjs/mcp-server/tools/aiConfigsDelete.js +4 -4
  108. package/dist/commonjs/mcp-server/tools/aiConfigsDelete.js.map +1 -1
  109. package/dist/commonjs/mcp-server/tools/aiConfigsDeleteVariation.d.ts.map +1 -1
  110. package/dist/commonjs/mcp-server/tools/aiConfigsDeleteVariation.js +3 -4
  111. package/dist/commonjs/mcp-server/tools/aiConfigsDeleteVariation.js.map +1 -1
  112. package/dist/commonjs/mcp-server/tools/aiConfigsGet.js +3 -4
  113. package/dist/commonjs/mcp-server/tools/aiConfigsGet.js.map +1 -1
  114. package/dist/commonjs/mcp-server/tools/aiConfigsGetTargeting.d.ts +8 -0
  115. package/dist/commonjs/mcp-server/tools/aiConfigsGetTargeting.d.ts.map +1 -0
  116. package/dist/commonjs/mcp-server/tools/aiConfigsGetTargeting.js +63 -0
  117. package/dist/commonjs/mcp-server/tools/aiConfigsGetTargeting.js.map +1 -0
  118. package/dist/commonjs/mcp-server/tools/aiConfigsGetVariation.d.ts.map +1 -1
  119. package/dist/commonjs/mcp-server/tools/aiConfigsGetVariation.js +3 -4
  120. package/dist/commonjs/mcp-server/tools/aiConfigsGetVariation.js.map +1 -1
  121. package/dist/commonjs/mcp-server/tools/aiConfigsList.d.ts.map +1 -1
  122. package/dist/commonjs/mcp-server/tools/aiConfigsList.js +3 -2
  123. package/dist/commonjs/mcp-server/tools/aiConfigsList.js.map +1 -1
  124. package/dist/commonjs/mcp-server/tools/aiConfigsUpdate.d.ts.map +1 -1
  125. package/dist/commonjs/mcp-server/tools/aiConfigsUpdate.js +3 -15
  126. package/dist/commonjs/mcp-server/tools/aiConfigsUpdate.js.map +1 -1
  127. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateTargeting.d.ts +8 -0
  128. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateTargeting.d.ts.map +1 -0
  129. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateTargeting.js +63 -0
  130. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateTargeting.js.map +1 -0
  131. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateVariation.d.ts.map +1 -1
  132. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateVariation.js +3 -18
  133. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateVariation.js.map +1 -1
  134. package/dist/commonjs/mcp-server/tools/featureFlagsCreate.d.ts.map +1 -1
  135. package/dist/commonjs/mcp-server/tools/featureFlagsCreate.js +2 -1
  136. package/dist/commonjs/mcp-server/tools/featureFlagsCreate.js.map +1 -1
  137. package/dist/commonjs/mcp-server/tools/featureFlagsDelete.d.ts.map +1 -1
  138. package/dist/commonjs/mcp-server/tools/featureFlagsDelete.js +2 -1
  139. package/dist/commonjs/mcp-server/tools/featureFlagsDelete.js.map +1 -1
  140. package/dist/commonjs/mcp-server/tools/featureFlagsGet.d.ts.map +1 -1
  141. package/dist/commonjs/mcp-server/tools/featureFlagsGet.js +2 -1
  142. package/dist/commonjs/mcp-server/tools/featureFlagsGet.js.map +1 -1
  143. package/dist/commonjs/mcp-server/tools/featureFlagsList.d.ts.map +1 -1
  144. package/dist/commonjs/mcp-server/tools/featureFlagsList.js +2 -1
  145. package/dist/commonjs/mcp-server/tools/featureFlagsList.js.map +1 -1
  146. package/dist/commonjs/mcp-server/tools/featureFlagsPatch.d.ts.map +1 -1
  147. package/dist/commonjs/mcp-server/tools/featureFlagsPatch.js +2 -1
  148. package/dist/commonjs/mcp-server/tools/featureFlagsPatch.js.map +1 -1
  149. package/dist/commonjs/models/components/aiconfig.d.ts +28 -0
  150. package/dist/commonjs/models/components/aiconfig.d.ts.map +1 -1
  151. package/dist/commonjs/models/components/aiconfig.js +22 -1
  152. package/dist/commonjs/models/components/aiconfig.js.map +1 -1
  153. package/dist/commonjs/models/components/aiconfigmaintainer.d.ts +2 -2
  154. package/dist/commonjs/models/components/aiconfigmaintainer.d.ts.map +1 -1
  155. package/dist/commonjs/models/components/aiconfigmaintainer.js +2 -2
  156. package/dist/commonjs/models/components/aiconfigmaintainer.js.map +1 -1
  157. package/dist/commonjs/models/components/aiconfigpost.d.ts +28 -0
  158. package/dist/commonjs/models/components/aiconfigpost.d.ts.map +1 -1
  159. package/dist/commonjs/models/components/aiconfigpost.js +22 -1
  160. package/dist/commonjs/models/components/aiconfigpost.js.map +1 -1
  161. package/dist/commonjs/models/components/aiconfigsexperimentenabledperiodrep.d.ts +31 -0
  162. package/dist/commonjs/models/components/aiconfigsexperimentenabledperiodrep.d.ts.map +1 -0
  163. package/dist/commonjs/models/components/aiconfigsexperimentenabledperiodrep.js +71 -0
  164. package/dist/commonjs/models/components/aiconfigsexperimentenabledperiodrep.js.map +1 -0
  165. package/dist/commonjs/models/components/aiconfigsexperimentenvironmentsettingrep.d.ts +34 -0
  166. package/dist/commonjs/models/components/aiconfigsexperimentenvironmentsettingrep.d.ts.map +1 -0
  167. package/dist/commonjs/models/components/aiconfigsexperimentenvironmentsettingrep.js +76 -0
  168. package/dist/commonjs/models/components/aiconfigsexperimentenvironmentsettingrep.js.map +1 -0
  169. package/dist/commonjs/models/components/aiconfigsexperimentinforep.d.ts +32 -0
  170. package/dist/commonjs/models/components/aiconfigsexperimentinforep.d.ts.map +1 -0
  171. package/dist/commonjs/models/components/aiconfigsexperimentinforep.js +72 -0
  172. package/dist/commonjs/models/components/aiconfigsexperimentinforep.js.map +1 -0
  173. package/dist/commonjs/models/components/aiconfigsfilter.d.ts +89 -0
  174. package/dist/commonjs/models/components/aiconfigsfilter.d.ts.map +1 -0
  175. package/dist/commonjs/models/components/aiconfigsfilter.js +102 -0
  176. package/dist/commonjs/models/components/aiconfigsfilter.js.map +1 -0
  177. package/dist/commonjs/models/components/aiconfigslegacyexperimentrep.d.ts +41 -0
  178. package/dist/commonjs/models/components/aiconfigslegacyexperimentrep.d.ts.map +1 -0
  179. package/dist/commonjs/models/components/aiconfigslegacyexperimentrep.js +88 -0
  180. package/dist/commonjs/models/components/aiconfigslegacyexperimentrep.js.map +1 -0
  181. package/dist/commonjs/models/components/aiconfigsmembersummary.d.ts +62 -0
  182. package/dist/commonjs/models/components/aiconfigsmembersummary.d.ts.map +1 -0
  183. package/dist/commonjs/models/components/aiconfigsmembersummary.js +91 -0
  184. package/dist/commonjs/models/components/aiconfigsmembersummary.js.map +1 -0
  185. package/dist/commonjs/models/components/aiconfigsmetriceventdefaultrep.d.ts +37 -0
  186. package/dist/commonjs/models/components/aiconfigsmetriceventdefaultrep.d.ts.map +1 -0
  187. package/dist/commonjs/models/components/aiconfigsmetriceventdefaultrep.js +71 -0
  188. package/dist/commonjs/models/components/aiconfigsmetriceventdefaultrep.js.map +1 -0
  189. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.d.ts +289 -0
  190. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.d.ts.map +1 -0
  191. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.js +247 -0
  192. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.js.map +1 -0
  193. package/dist/commonjs/models/components/aiconfigsmodification.d.ts +29 -0
  194. package/dist/commonjs/models/components/aiconfigsmodification.d.ts.map +1 -0
  195. package/dist/commonjs/models/components/aiconfigsmodification.js +70 -0
  196. package/dist/commonjs/models/components/aiconfigsmodification.js.map +1 -0
  197. package/dist/commonjs/models/components/aiconfigtargeting.d.ts +56 -0
  198. package/dist/commonjs/models/components/aiconfigtargeting.d.ts.map +1 -0
  199. package/dist/commonjs/models/components/aiconfigtargeting.js +98 -0
  200. package/dist/commonjs/models/components/aiconfigtargeting.js.map +1 -0
  201. package/dist/commonjs/models/components/aiconfigtargetingdefaults.d.ts +31 -0
  202. package/dist/commonjs/models/components/aiconfigtargetingdefaults.d.ts.map +1 -0
  203. package/dist/commonjs/models/components/aiconfigtargetingdefaults.js +71 -0
  204. package/dist/commonjs/models/components/aiconfigtargetingdefaults.js.map +1 -0
  205. package/dist/commonjs/models/components/aiconfigtargetingenvironment.d.ts +52 -0
  206. package/dist/commonjs/models/components/aiconfigtargetingenvironment.d.ts.map +1 -0
  207. package/dist/commonjs/models/components/aiconfigtargetingenvironment.js +103 -0
  208. package/dist/commonjs/models/components/aiconfigtargetingenvironment.js.map +1 -0
  209. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthrough.d.ts +32 -0
  210. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthrough.d.ts.map +1 -0
  211. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthrough.js +74 -0
  212. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthrough.js.map +1 -0
  213. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrollout.d.ts +39 -0
  214. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrollout.d.ts.map +1 -0
  215. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrollout.js +81 -0
  216. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrollout.js.map +1 -0
  217. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.d.ts +33 -0
  218. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.d.ts.map +1 -0
  219. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.js +75 -0
  220. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.js.map +1 -0
  221. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.d.ts +33 -0
  222. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.d.ts.map +1 -0
  223. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.js +84 -0
  224. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.js.map +1 -0
  225. package/dist/commonjs/models/components/aiconfigtargetingenvironmentrule.d.ts +32 -0
  226. package/dist/commonjs/models/components/aiconfigtargetingenvironmentrule.d.ts.map +1 -0
  227. package/dist/commonjs/models/components/aiconfigtargetingenvironmentrule.js +72 -0
  228. package/dist/commonjs/models/components/aiconfigtargetingenvironmentrule.js.map +1 -0
  229. package/dist/commonjs/models/components/aiconfigtargetingenvironmentruleclause.d.ts +37 -0
  230. package/dist/commonjs/models/components/aiconfigtargetingenvironmentruleclause.d.ts.map +1 -0
  231. package/dist/commonjs/models/components/aiconfigtargetingenvironmentruleclause.js +77 -0
  232. package/dist/commonjs/models/components/aiconfigtargetingenvironmentruleclause.js.map +1 -0
  233. package/dist/commonjs/models/components/aiconfigtargetingenvironmenttarget.d.ts +33 -0
  234. package/dist/commonjs/models/components/aiconfigtargetingenvironmenttarget.d.ts.map +1 -0
  235. package/dist/commonjs/models/components/aiconfigtargetingenvironmenttarget.js +73 -0
  236. package/dist/commonjs/models/components/aiconfigtargetingenvironmenttarget.js.map +1 -0
  237. package/dist/commonjs/models/components/aiconfigtargetingpatch.d.ts +37 -0
  238. package/dist/commonjs/models/components/aiconfigtargetingpatch.d.ts.map +1 -0
  239. package/dist/commonjs/models/components/aiconfigtargetingpatch.js +73 -0
  240. package/dist/commonjs/models/components/aiconfigtargetingpatch.js.map +1 -0
  241. package/dist/commonjs/models/components/aiconfigtargetingvariation.d.ts +36 -0
  242. package/dist/commonjs/models/components/aiconfigtargetingvariation.d.ts.map +1 -0
  243. package/dist/commonjs/models/components/aiconfigtargetingvariation.js +85 -0
  244. package/dist/commonjs/models/components/aiconfigtargetingvariation.js.map +1 -0
  245. package/dist/commonjs/models/components/aiconfigtargetingvariationjson.d.ts +25 -0
  246. package/dist/commonjs/models/components/aiconfigtargetingvariationjson.d.ts.map +1 -0
  247. package/dist/commonjs/models/components/aiconfigtargetingvariationjson.js +65 -0
  248. package/dist/commonjs/models/components/aiconfigtargetingvariationjson.js.map +1 -0
  249. package/dist/commonjs/models/components/aiconfigtargetingvariationvalue.d.ts +26 -0
  250. package/dist/commonjs/models/components/aiconfigtargetingvariationvalue.d.ts.map +1 -0
  251. package/dist/commonjs/models/components/aiconfigtargetingvariationvalue.js +76 -0
  252. package/dist/commonjs/models/components/aiconfigtargetingvariationvalue.js.map +1 -0
  253. package/dist/commonjs/models/components/aiconfigvariation.d.ts +14 -2
  254. package/dist/commonjs/models/components/aiconfigvariation.d.ts.map +1 -1
  255. package/dist/commonjs/models/components/aiconfigvariation.js +10 -2
  256. package/dist/commonjs/models/components/aiconfigvariation.js.map +1 -1
  257. package/dist/commonjs/models/components/aiconfigvariationpatch.d.ts +15 -5
  258. package/dist/commonjs/models/components/aiconfigvariationpatch.d.ts.map +1 -1
  259. package/dist/commonjs/models/components/aiconfigvariationpatch.js +6 -2
  260. package/dist/commonjs/models/components/aiconfigvariationpatch.js.map +1 -1
  261. package/dist/commonjs/models/components/aiconfigvariationpost.d.ts +17 -7
  262. package/dist/commonjs/models/components/aiconfigvariationpost.d.ts.map +1 -1
  263. package/dist/commonjs/models/components/aiconfigvariationpost.js +8 -4
  264. package/dist/commonjs/models/components/aiconfigvariationpost.js.map +1 -1
  265. package/dist/commonjs/models/components/filter.d.ts +8 -8
  266. package/dist/commonjs/models/components/filter.d.ts.map +1 -1
  267. package/dist/commonjs/models/components/filter.js +14 -13
  268. package/dist/commonjs/models/components/filter.js.map +1 -1
  269. package/dist/commonjs/models/components/index.d.ts +23 -0
  270. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  271. package/dist/commonjs/models/components/index.js +23 -0
  272. package/dist/commonjs/models/components/index.js.map +1 -1
  273. package/dist/commonjs/models/components/membersummary.d.ts +1 -1
  274. package/dist/commonjs/models/components/metriclistingrep.d.ts +24 -24
  275. package/dist/commonjs/models/components/metriclistingrep.d.ts.map +1 -1
  276. package/dist/commonjs/models/components/metriclistingrep.js +39 -37
  277. package/dist/commonjs/models/components/metriclistingrep.js.map +1 -1
  278. package/dist/commonjs/models/errors/apierror.d.ts +8 -6
  279. package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
  280. package/dist/commonjs/models/errors/apierror.js +23 -10
  281. package/dist/commonjs/models/errors/apierror.js.map +1 -1
  282. package/dist/commonjs/models/errors/error.d.ts +7 -2
  283. package/dist/commonjs/models/errors/error.d.ts.map +1 -1
  284. package/dist/commonjs/models/errors/error.js +13 -7
  285. package/dist/commonjs/models/errors/error.js.map +1 -1
  286. package/dist/commonjs/models/errors/forbiddenerrorrep.d.ts +7 -2
  287. package/dist/commonjs/models/errors/forbiddenerrorrep.d.ts.map +1 -1
  288. package/dist/commonjs/models/errors/forbiddenerrorrep.js +13 -7
  289. package/dist/commonjs/models/errors/forbiddenerrorrep.js.map +1 -1
  290. package/dist/commonjs/models/errors/index.d.ts +1 -0
  291. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  292. package/dist/commonjs/models/errors/index.js +1 -0
  293. package/dist/commonjs/models/errors/index.js.map +1 -1
  294. package/dist/commonjs/models/errors/invalidrequesterrorrep.d.ts +7 -2
  295. package/dist/commonjs/models/errors/invalidrequesterrorrep.d.ts.map +1 -1
  296. package/dist/commonjs/models/errors/invalidrequesterrorrep.js +13 -7
  297. package/dist/commonjs/models/errors/invalidrequesterrorrep.js.map +1 -1
  298. package/dist/commonjs/models/errors/launchdarklyerror.d.ts +19 -0
  299. package/dist/commonjs/models/errors/launchdarklyerror.d.ts.map +1 -0
  300. package/dist/commonjs/models/errors/launchdarklyerror.js +20 -0
  301. package/dist/commonjs/models/errors/launchdarklyerror.js.map +1 -0
  302. package/dist/commonjs/models/errors/methodnotallowederrorrep.d.ts +7 -2
  303. package/dist/commonjs/models/errors/methodnotallowederrorrep.d.ts.map +1 -1
  304. package/dist/commonjs/models/errors/methodnotallowederrorrep.js +13 -7
  305. package/dist/commonjs/models/errors/methodnotallowederrorrep.js.map +1 -1
  306. package/dist/commonjs/models/errors/notfounderrorrep.d.ts +7 -2
  307. package/dist/commonjs/models/errors/notfounderrorrep.d.ts.map +1 -1
  308. package/dist/commonjs/models/errors/notfounderrorrep.js +13 -7
  309. package/dist/commonjs/models/errors/notfounderrorrep.js.map +1 -1
  310. package/dist/commonjs/models/errors/ratelimitederrorrep.d.ts +7 -2
  311. package/dist/commonjs/models/errors/ratelimitederrorrep.d.ts.map +1 -1
  312. package/dist/commonjs/models/errors/ratelimitederrorrep.js +13 -7
  313. package/dist/commonjs/models/errors/ratelimitederrorrep.js.map +1 -1
  314. package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
  315. package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
  316. package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
  317. package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
  318. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
  319. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
  320. package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
  321. package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
  322. package/dist/commonjs/models/errors/statusconflicterrorrep.d.ts +7 -2
  323. package/dist/commonjs/models/errors/statusconflicterrorrep.d.ts.map +1 -1
  324. package/dist/commonjs/models/errors/statusconflicterrorrep.js +13 -7
  325. package/dist/commonjs/models/errors/statusconflicterrorrep.js.map +1 -1
  326. package/dist/commonjs/models/errors/unauthorizederrorrep.d.ts +7 -2
  327. package/dist/commonjs/models/errors/unauthorizederrorrep.d.ts.map +1 -1
  328. package/dist/commonjs/models/errors/unauthorizederrorrep.js +13 -7
  329. package/dist/commonjs/models/errors/unauthorizederrorrep.js.map +1 -1
  330. package/dist/commonjs/models/operations/getaiconfigtargeting.d.ts +65 -0
  331. package/dist/commonjs/models/operations/getaiconfigtargeting.d.ts.map +1 -0
  332. package/dist/commonjs/models/operations/getaiconfigtargeting.js +103 -0
  333. package/dist/commonjs/models/operations/getaiconfigtargeting.js.map +1 -0
  334. package/dist/commonjs/models/operations/index.d.ts +2 -0
  335. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  336. package/dist/commonjs/models/operations/index.js +2 -0
  337. package/dist/commonjs/models/operations/index.js.map +1 -1
  338. package/dist/commonjs/models/operations/patchaiconfigtargeting.d.ts +71 -0
  339. package/dist/commonjs/models/operations/patchaiconfigtargeting.d.ts.map +1 -0
  340. package/dist/commonjs/models/operations/patchaiconfigtargeting.js +110 -0
  341. package/dist/commonjs/models/operations/patchaiconfigtargeting.js.map +1 -0
  342. package/dist/commonjs/sdk/aiconfigs.d.ts +571 -0
  343. package/dist/commonjs/sdk/aiconfigs.d.ts.map +1 -1
  344. package/dist/commonjs/sdk/aiconfigs.js +577 -0
  345. package/dist/commonjs/sdk/aiconfigs.js.map +1 -1
  346. package/dist/commonjs/types/constdatetime.js +1 -1
  347. package/dist/esm/funcs/aiConfigsCreate.d.ts +3 -2
  348. package/dist/esm/funcs/aiConfigsCreate.d.ts.map +1 -1
  349. package/dist/esm/funcs/aiConfigsCreate.js +3 -1
  350. package/dist/esm/funcs/aiConfigsCreate.js.map +1 -1
  351. package/dist/esm/funcs/aiConfigsCreateVariation.d.ts +3 -2
  352. package/dist/esm/funcs/aiConfigsCreateVariation.d.ts.map +1 -1
  353. package/dist/esm/funcs/aiConfigsCreateVariation.js +3 -1
  354. package/dist/esm/funcs/aiConfigsCreateVariation.js.map +1 -1
  355. package/dist/esm/funcs/aiConfigsDelete.d.ts +3 -2
  356. package/dist/esm/funcs/aiConfigsDelete.d.ts.map +1 -1
  357. package/dist/esm/funcs/aiConfigsDelete.js +3 -1
  358. package/dist/esm/funcs/aiConfigsDelete.js.map +1 -1
  359. package/dist/esm/funcs/aiConfigsDeleteVariation.d.ts +3 -2
  360. package/dist/esm/funcs/aiConfigsDeleteVariation.d.ts.map +1 -1
  361. package/dist/esm/funcs/aiConfigsDeleteVariation.js +3 -1
  362. package/dist/esm/funcs/aiConfigsDeleteVariation.js.map +1 -1
  363. package/dist/esm/funcs/aiConfigsGet.d.ts +3 -2
  364. package/dist/esm/funcs/aiConfigsGet.d.ts.map +1 -1
  365. package/dist/esm/funcs/aiConfigsGet.js +3 -1
  366. package/dist/esm/funcs/aiConfigsGet.js.map +1 -1
  367. package/dist/esm/funcs/aiConfigsGetTargeting.d.ts +19 -0
  368. package/dist/esm/funcs/aiConfigsGetTargeting.d.ts.map +1 -0
  369. package/dist/esm/funcs/aiConfigsGetTargeting.js +93 -0
  370. package/dist/esm/funcs/aiConfigsGetTargeting.js.map +1 -0
  371. package/dist/esm/funcs/aiConfigsGetVariation.d.ts +3 -2
  372. package/dist/esm/funcs/aiConfigsGetVariation.d.ts.map +1 -1
  373. package/dist/esm/funcs/aiConfigsGetVariation.js +3 -1
  374. package/dist/esm/funcs/aiConfigsGetVariation.js.map +1 -1
  375. package/dist/esm/funcs/aiConfigsList.d.ts +3 -2
  376. package/dist/esm/funcs/aiConfigsList.d.ts.map +1 -1
  377. package/dist/esm/funcs/aiConfigsList.js +3 -1
  378. package/dist/esm/funcs/aiConfigsList.js.map +1 -1
  379. package/dist/esm/funcs/aiConfigsUpdate.d.ts +3 -2
  380. package/dist/esm/funcs/aiConfigsUpdate.d.ts.map +1 -1
  381. package/dist/esm/funcs/aiConfigsUpdate.js +3 -1
  382. package/dist/esm/funcs/aiConfigsUpdate.js.map +1 -1
  383. package/dist/esm/funcs/aiConfigsUpdateTargeting.d.ts +576 -0
  384. package/dist/esm/funcs/aiConfigsUpdateTargeting.d.ts.map +1 -0
  385. package/dist/esm/funcs/aiConfigsUpdateTargeting.js +653 -0
  386. package/dist/esm/funcs/aiConfigsUpdateTargeting.js.map +1 -0
  387. package/dist/esm/funcs/aiConfigsUpdateVariation.d.ts +3 -2
  388. package/dist/esm/funcs/aiConfigsUpdateVariation.d.ts.map +1 -1
  389. package/dist/esm/funcs/aiConfigsUpdateVariation.js +3 -1
  390. package/dist/esm/funcs/aiConfigsUpdateVariation.js.map +1 -1
  391. package/dist/esm/funcs/featureFlagsCreate.d.ts +3 -2
  392. package/dist/esm/funcs/featureFlagsCreate.d.ts.map +1 -1
  393. package/dist/esm/funcs/featureFlagsCreate.js +3 -1
  394. package/dist/esm/funcs/featureFlagsCreate.js.map +1 -1
  395. package/dist/esm/funcs/featureFlagsDelete.d.ts +3 -2
  396. package/dist/esm/funcs/featureFlagsDelete.d.ts.map +1 -1
  397. package/dist/esm/funcs/featureFlagsDelete.js +3 -1
  398. package/dist/esm/funcs/featureFlagsDelete.js.map +1 -1
  399. package/dist/esm/funcs/featureFlagsGet.d.ts +3 -2
  400. package/dist/esm/funcs/featureFlagsGet.d.ts.map +1 -1
  401. package/dist/esm/funcs/featureFlagsGet.js +3 -1
  402. package/dist/esm/funcs/featureFlagsGet.js.map +1 -1
  403. package/dist/esm/funcs/featureFlagsList.d.ts +3 -2
  404. package/dist/esm/funcs/featureFlagsList.d.ts.map +1 -1
  405. package/dist/esm/funcs/featureFlagsList.js +3 -1
  406. package/dist/esm/funcs/featureFlagsList.js.map +1 -1
  407. package/dist/esm/funcs/featureFlagsPatch.d.ts +3 -2
  408. package/dist/esm/funcs/featureFlagsPatch.d.ts.map +1 -1
  409. package/dist/esm/funcs/featureFlagsPatch.js +3 -1
  410. package/dist/esm/funcs/featureFlagsPatch.js.map +1 -1
  411. package/dist/esm/hooks/types.d.ts +2 -0
  412. package/dist/esm/hooks/types.d.ts.map +1 -1
  413. package/dist/esm/index.d.ts +2 -0
  414. package/dist/esm/index.d.ts.map +1 -1
  415. package/dist/esm/index.js +1 -0
  416. package/dist/esm/index.js.map +1 -1
  417. package/dist/esm/lib/config.d.ts +7 -3
  418. package/dist/esm/lib/config.d.ts.map +1 -1
  419. package/dist/esm/lib/config.js +3 -3
  420. package/dist/esm/lib/config.js.map +1 -1
  421. package/dist/esm/lib/files.d.ts +5 -0
  422. package/dist/esm/lib/files.d.ts.map +1 -1
  423. package/dist/esm/lib/files.js +40 -0
  424. package/dist/esm/lib/files.js.map +1 -1
  425. package/dist/esm/lib/matchers.d.ts +3 -10
  426. package/dist/esm/lib/matchers.d.ts.map +1 -1
  427. package/dist/esm/lib/matchers.js +33 -30
  428. package/dist/esm/lib/matchers.js.map +1 -1
  429. package/dist/esm/lib/sdks.d.ts +1 -0
  430. package/dist/esm/lib/sdks.d.ts.map +1 -1
  431. package/dist/esm/lib/sdks.js +3 -3
  432. package/dist/esm/lib/sdks.js.map +1 -1
  433. package/dist/esm/lib/security.d.ts +2 -2
  434. package/dist/esm/lib/security.d.ts.map +1 -1
  435. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  436. package/dist/esm/mcp-server/cli/start/command.js +7 -11
  437. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  438. package/dist/esm/mcp-server/mcp-server.js +1 -1
  439. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  440. package/dist/esm/mcp-server/server.js +5 -1
  441. package/dist/esm/mcp-server/server.js.map +1 -1
  442. package/dist/esm/mcp-server/tools/aiConfigsCreate.d.ts.map +1 -1
  443. package/dist/esm/mcp-server/tools/aiConfigsCreate.js +2 -1
  444. package/dist/esm/mcp-server/tools/aiConfigsCreate.js.map +1 -1
  445. package/dist/esm/mcp-server/tools/aiConfigsCreateVariation.d.ts.map +1 -1
  446. package/dist/esm/mcp-server/tools/aiConfigsCreateVariation.js +3 -15
  447. package/dist/esm/mcp-server/tools/aiConfigsCreateVariation.js.map +1 -1
  448. package/dist/esm/mcp-server/tools/aiConfigsDelete.d.ts.map +1 -1
  449. package/dist/esm/mcp-server/tools/aiConfigsDelete.js +4 -4
  450. package/dist/esm/mcp-server/tools/aiConfigsDelete.js.map +1 -1
  451. package/dist/esm/mcp-server/tools/aiConfigsDeleteVariation.d.ts.map +1 -1
  452. package/dist/esm/mcp-server/tools/aiConfigsDeleteVariation.js +3 -4
  453. package/dist/esm/mcp-server/tools/aiConfigsDeleteVariation.js.map +1 -1
  454. package/dist/esm/mcp-server/tools/aiConfigsGet.js +3 -4
  455. package/dist/esm/mcp-server/tools/aiConfigsGet.js.map +1 -1
  456. package/dist/esm/mcp-server/tools/aiConfigsGetTargeting.d.ts +8 -0
  457. package/dist/esm/mcp-server/tools/aiConfigsGetTargeting.d.ts.map +1 -0
  458. package/dist/esm/mcp-server/tools/aiConfigsGetTargeting.js +27 -0
  459. package/dist/esm/mcp-server/tools/aiConfigsGetTargeting.js.map +1 -0
  460. package/dist/esm/mcp-server/tools/aiConfigsGetVariation.d.ts.map +1 -1
  461. package/dist/esm/mcp-server/tools/aiConfigsGetVariation.js +3 -4
  462. package/dist/esm/mcp-server/tools/aiConfigsGetVariation.js.map +1 -1
  463. package/dist/esm/mcp-server/tools/aiConfigsList.d.ts.map +1 -1
  464. package/dist/esm/mcp-server/tools/aiConfigsList.js +3 -2
  465. package/dist/esm/mcp-server/tools/aiConfigsList.js.map +1 -1
  466. package/dist/esm/mcp-server/tools/aiConfigsUpdate.d.ts.map +1 -1
  467. package/dist/esm/mcp-server/tools/aiConfigsUpdate.js +3 -15
  468. package/dist/esm/mcp-server/tools/aiConfigsUpdate.js.map +1 -1
  469. package/dist/esm/mcp-server/tools/aiConfigsUpdateTargeting.d.ts +8 -0
  470. package/dist/esm/mcp-server/tools/aiConfigsUpdateTargeting.d.ts.map +1 -0
  471. package/dist/esm/mcp-server/tools/aiConfigsUpdateTargeting.js +27 -0
  472. package/dist/esm/mcp-server/tools/aiConfigsUpdateTargeting.js.map +1 -0
  473. package/dist/esm/mcp-server/tools/aiConfigsUpdateVariation.d.ts.map +1 -1
  474. package/dist/esm/mcp-server/tools/aiConfigsUpdateVariation.js +3 -18
  475. package/dist/esm/mcp-server/tools/aiConfigsUpdateVariation.js.map +1 -1
  476. package/dist/esm/mcp-server/tools/featureFlagsCreate.d.ts.map +1 -1
  477. package/dist/esm/mcp-server/tools/featureFlagsCreate.js +2 -1
  478. package/dist/esm/mcp-server/tools/featureFlagsCreate.js.map +1 -1
  479. package/dist/esm/mcp-server/tools/featureFlagsDelete.d.ts.map +1 -1
  480. package/dist/esm/mcp-server/tools/featureFlagsDelete.js +2 -1
  481. package/dist/esm/mcp-server/tools/featureFlagsDelete.js.map +1 -1
  482. package/dist/esm/mcp-server/tools/featureFlagsGet.d.ts.map +1 -1
  483. package/dist/esm/mcp-server/tools/featureFlagsGet.js +2 -1
  484. package/dist/esm/mcp-server/tools/featureFlagsGet.js.map +1 -1
  485. package/dist/esm/mcp-server/tools/featureFlagsList.d.ts.map +1 -1
  486. package/dist/esm/mcp-server/tools/featureFlagsList.js +2 -1
  487. package/dist/esm/mcp-server/tools/featureFlagsList.js.map +1 -1
  488. package/dist/esm/mcp-server/tools/featureFlagsPatch.d.ts.map +1 -1
  489. package/dist/esm/mcp-server/tools/featureFlagsPatch.js +2 -1
  490. package/dist/esm/mcp-server/tools/featureFlagsPatch.js.map +1 -1
  491. package/dist/esm/models/components/aiconfig.d.ts +28 -0
  492. package/dist/esm/models/components/aiconfig.d.ts.map +1 -1
  493. package/dist/esm/models/components/aiconfig.js +21 -0
  494. package/dist/esm/models/components/aiconfig.js.map +1 -1
  495. package/dist/esm/models/components/aiconfigmaintainer.d.ts +2 -2
  496. package/dist/esm/models/components/aiconfigmaintainer.d.ts.map +1 -1
  497. package/dist/esm/models/components/aiconfigmaintainer.js +2 -2
  498. package/dist/esm/models/components/aiconfigmaintainer.js.map +1 -1
  499. package/dist/esm/models/components/aiconfigpost.d.ts +28 -0
  500. package/dist/esm/models/components/aiconfigpost.d.ts.map +1 -1
  501. package/dist/esm/models/components/aiconfigpost.js +21 -0
  502. package/dist/esm/models/components/aiconfigpost.js.map +1 -1
  503. package/dist/esm/models/components/aiconfigsexperimentenabledperiodrep.d.ts +31 -0
  504. package/dist/esm/models/components/aiconfigsexperimentenabledperiodrep.d.ts.map +1 -0
  505. package/dist/esm/models/components/aiconfigsexperimentenabledperiodrep.js +33 -0
  506. package/dist/esm/models/components/aiconfigsexperimentenabledperiodrep.js.map +1 -0
  507. package/dist/esm/models/components/aiconfigsexperimentenvironmentsettingrep.d.ts +34 -0
  508. package/dist/esm/models/components/aiconfigsexperimentenvironmentsettingrep.d.ts.map +1 -0
  509. package/dist/esm/models/components/aiconfigsexperimentenvironmentsettingrep.js +38 -0
  510. package/dist/esm/models/components/aiconfigsexperimentenvironmentsettingrep.js.map +1 -0
  511. package/dist/esm/models/components/aiconfigsexperimentinforep.d.ts +32 -0
  512. package/dist/esm/models/components/aiconfigsexperimentinforep.d.ts.map +1 -0
  513. package/dist/esm/models/components/aiconfigsexperimentinforep.js +34 -0
  514. package/dist/esm/models/components/aiconfigsexperimentinforep.js.map +1 -0
  515. package/dist/esm/models/components/aiconfigsfilter.d.ts +89 -0
  516. package/dist/esm/models/components/aiconfigsfilter.d.ts.map +1 -0
  517. package/dist/esm/models/components/aiconfigsfilter.js +64 -0
  518. package/dist/esm/models/components/aiconfigsfilter.js.map +1 -0
  519. package/dist/esm/models/components/aiconfigslegacyexperimentrep.d.ts +41 -0
  520. package/dist/esm/models/components/aiconfigslegacyexperimentrep.d.ts.map +1 -0
  521. package/dist/esm/models/components/aiconfigslegacyexperimentrep.js +50 -0
  522. package/dist/esm/models/components/aiconfigslegacyexperimentrep.js.map +1 -0
  523. package/dist/esm/models/components/aiconfigsmembersummary.d.ts +62 -0
  524. package/dist/esm/models/components/aiconfigsmembersummary.d.ts.map +1 -0
  525. package/dist/esm/models/components/aiconfigsmembersummary.js +53 -0
  526. package/dist/esm/models/components/aiconfigsmembersummary.js.map +1 -0
  527. package/dist/esm/models/components/aiconfigsmetriceventdefaultrep.d.ts +37 -0
  528. package/dist/esm/models/components/aiconfigsmetriceventdefaultrep.d.ts.map +1 -0
  529. package/dist/esm/models/components/aiconfigsmetriceventdefaultrep.js +33 -0
  530. package/dist/esm/models/components/aiconfigsmetriceventdefaultrep.js.map +1 -0
  531. package/dist/esm/models/components/aiconfigsmetriclistingrep.d.ts +289 -0
  532. package/dist/esm/models/components/aiconfigsmetriclistingrep.d.ts.map +1 -0
  533. package/dist/esm/models/components/aiconfigsmetriclistingrep.js +209 -0
  534. package/dist/esm/models/components/aiconfigsmetriclistingrep.js.map +1 -0
  535. package/dist/esm/models/components/aiconfigsmodification.d.ts +29 -0
  536. package/dist/esm/models/components/aiconfigsmodification.d.ts.map +1 -0
  537. package/dist/esm/models/components/aiconfigsmodification.js +32 -0
  538. package/dist/esm/models/components/aiconfigsmodification.js.map +1 -0
  539. package/dist/esm/models/components/aiconfigtargeting.d.ts +56 -0
  540. package/dist/esm/models/components/aiconfigtargeting.d.ts.map +1 -0
  541. package/dist/esm/models/components/aiconfigtargeting.js +60 -0
  542. package/dist/esm/models/components/aiconfigtargeting.js.map +1 -0
  543. package/dist/esm/models/components/aiconfigtargetingdefaults.d.ts +31 -0
  544. package/dist/esm/models/components/aiconfigtargetingdefaults.d.ts.map +1 -0
  545. package/dist/esm/models/components/aiconfigtargetingdefaults.js +33 -0
  546. package/dist/esm/models/components/aiconfigtargetingdefaults.js.map +1 -0
  547. package/dist/esm/models/components/aiconfigtargetingenvironment.d.ts +52 -0
  548. package/dist/esm/models/components/aiconfigtargetingenvironment.d.ts.map +1 -0
  549. package/dist/esm/models/components/aiconfigtargetingenvironment.js +65 -0
  550. package/dist/esm/models/components/aiconfigtargetingenvironment.js.map +1 -0
  551. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthrough.d.ts +32 -0
  552. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthrough.d.ts.map +1 -0
  553. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthrough.js +36 -0
  554. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthrough.js.map +1 -0
  555. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrollout.d.ts +39 -0
  556. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrollout.d.ts.map +1 -0
  557. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrollout.js +43 -0
  558. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrollout.js.map +1 -0
  559. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.d.ts +33 -0
  560. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.d.ts.map +1 -0
  561. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.js +37 -0
  562. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.js.map +1 -0
  563. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.d.ts +33 -0
  564. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.d.ts.map +1 -0
  565. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.js +46 -0
  566. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.js.map +1 -0
  567. package/dist/esm/models/components/aiconfigtargetingenvironmentrule.d.ts +32 -0
  568. package/dist/esm/models/components/aiconfigtargetingenvironmentrule.d.ts.map +1 -0
  569. package/dist/esm/models/components/aiconfigtargetingenvironmentrule.js +34 -0
  570. package/dist/esm/models/components/aiconfigtargetingenvironmentrule.js.map +1 -0
  571. package/dist/esm/models/components/aiconfigtargetingenvironmentruleclause.d.ts +37 -0
  572. package/dist/esm/models/components/aiconfigtargetingenvironmentruleclause.d.ts.map +1 -0
  573. package/dist/esm/models/components/aiconfigtargetingenvironmentruleclause.js +39 -0
  574. package/dist/esm/models/components/aiconfigtargetingenvironmentruleclause.js.map +1 -0
  575. package/dist/esm/models/components/aiconfigtargetingenvironmenttarget.d.ts +33 -0
  576. package/dist/esm/models/components/aiconfigtargetingenvironmenttarget.d.ts.map +1 -0
  577. package/dist/esm/models/components/aiconfigtargetingenvironmenttarget.js +35 -0
  578. package/dist/esm/models/components/aiconfigtargetingenvironmenttarget.js.map +1 -0
  579. package/dist/esm/models/components/aiconfigtargetingpatch.d.ts +37 -0
  580. package/dist/esm/models/components/aiconfigtargetingpatch.d.ts.map +1 -0
  581. package/dist/esm/models/components/aiconfigtargetingpatch.js +35 -0
  582. package/dist/esm/models/components/aiconfigtargetingpatch.js.map +1 -0
  583. package/dist/esm/models/components/aiconfigtargetingvariation.d.ts +36 -0
  584. package/dist/esm/models/components/aiconfigtargetingvariation.d.ts.map +1 -0
  585. package/dist/esm/models/components/aiconfigtargetingvariation.js +47 -0
  586. package/dist/esm/models/components/aiconfigtargetingvariation.js.map +1 -0
  587. package/dist/esm/models/components/aiconfigtargetingvariationjson.d.ts +25 -0
  588. package/dist/esm/models/components/aiconfigtargetingvariationjson.d.ts.map +1 -0
  589. package/dist/esm/models/components/aiconfigtargetingvariationjson.js +27 -0
  590. package/dist/esm/models/components/aiconfigtargetingvariationjson.js.map +1 -0
  591. package/dist/esm/models/components/aiconfigtargetingvariationvalue.d.ts +26 -0
  592. package/dist/esm/models/components/aiconfigtargetingvariationvalue.d.ts.map +1 -0
  593. package/dist/esm/models/components/aiconfigtargetingvariationvalue.js +38 -0
  594. package/dist/esm/models/components/aiconfigtargetingvariationvalue.js.map +1 -0
  595. package/dist/esm/models/components/aiconfigvariation.d.ts +14 -2
  596. package/dist/esm/models/components/aiconfigvariation.d.ts.map +1 -1
  597. package/dist/esm/models/components/aiconfigvariation.js +10 -2
  598. package/dist/esm/models/components/aiconfigvariation.js.map +1 -1
  599. package/dist/esm/models/components/aiconfigvariationpatch.d.ts +15 -5
  600. package/dist/esm/models/components/aiconfigvariationpatch.d.ts.map +1 -1
  601. package/dist/esm/models/components/aiconfigvariationpatch.js +6 -2
  602. package/dist/esm/models/components/aiconfigvariationpatch.js.map +1 -1
  603. package/dist/esm/models/components/aiconfigvariationpost.d.ts +17 -7
  604. package/dist/esm/models/components/aiconfigvariationpost.d.ts.map +1 -1
  605. package/dist/esm/models/components/aiconfigvariationpost.js +8 -4
  606. package/dist/esm/models/components/aiconfigvariationpost.js.map +1 -1
  607. package/dist/esm/models/components/filter.d.ts +8 -8
  608. package/dist/esm/models/components/filter.d.ts.map +1 -1
  609. package/dist/esm/models/components/filter.js +13 -12
  610. package/dist/esm/models/components/filter.js.map +1 -1
  611. package/dist/esm/models/components/index.d.ts +23 -0
  612. package/dist/esm/models/components/index.d.ts.map +1 -1
  613. package/dist/esm/models/components/index.js +23 -0
  614. package/dist/esm/models/components/index.js.map +1 -1
  615. package/dist/esm/models/components/membersummary.d.ts +1 -1
  616. package/dist/esm/models/components/metriclistingrep.d.ts +24 -24
  617. package/dist/esm/models/components/metriclistingrep.d.ts.map +1 -1
  618. package/dist/esm/models/components/metriclistingrep.js +38 -36
  619. package/dist/esm/models/components/metriclistingrep.js.map +1 -1
  620. package/dist/esm/models/errors/apierror.d.ts +8 -6
  621. package/dist/esm/models/errors/apierror.d.ts.map +1 -1
  622. package/dist/esm/models/errors/apierror.js +23 -10
  623. package/dist/esm/models/errors/apierror.js.map +1 -1
  624. package/dist/esm/models/errors/error.d.ts +7 -2
  625. package/dist/esm/models/errors/error.d.ts.map +1 -1
  626. package/dist/esm/models/errors/error.js +13 -7
  627. package/dist/esm/models/errors/error.js.map +1 -1
  628. package/dist/esm/models/errors/forbiddenerrorrep.d.ts +7 -2
  629. package/dist/esm/models/errors/forbiddenerrorrep.d.ts.map +1 -1
  630. package/dist/esm/models/errors/forbiddenerrorrep.js +13 -7
  631. package/dist/esm/models/errors/forbiddenerrorrep.js.map +1 -1
  632. package/dist/esm/models/errors/index.d.ts +1 -0
  633. package/dist/esm/models/errors/index.d.ts.map +1 -1
  634. package/dist/esm/models/errors/index.js +1 -0
  635. package/dist/esm/models/errors/index.js.map +1 -1
  636. package/dist/esm/models/errors/invalidrequesterrorrep.d.ts +7 -2
  637. package/dist/esm/models/errors/invalidrequesterrorrep.d.ts.map +1 -1
  638. package/dist/esm/models/errors/invalidrequesterrorrep.js +13 -7
  639. package/dist/esm/models/errors/invalidrequesterrorrep.js.map +1 -1
  640. package/dist/esm/models/errors/launchdarklyerror.d.ts +19 -0
  641. package/dist/esm/models/errors/launchdarklyerror.d.ts.map +1 -0
  642. package/dist/esm/models/errors/launchdarklyerror.js +16 -0
  643. package/dist/esm/models/errors/launchdarklyerror.js.map +1 -0
  644. package/dist/esm/models/errors/methodnotallowederrorrep.d.ts +7 -2
  645. package/dist/esm/models/errors/methodnotallowederrorrep.d.ts.map +1 -1
  646. package/dist/esm/models/errors/methodnotallowederrorrep.js +13 -7
  647. package/dist/esm/models/errors/methodnotallowederrorrep.js.map +1 -1
  648. package/dist/esm/models/errors/notfounderrorrep.d.ts +7 -2
  649. package/dist/esm/models/errors/notfounderrorrep.d.ts.map +1 -1
  650. package/dist/esm/models/errors/notfounderrorrep.js +13 -7
  651. package/dist/esm/models/errors/notfounderrorrep.js.map +1 -1
  652. package/dist/esm/models/errors/ratelimitederrorrep.d.ts +7 -2
  653. package/dist/esm/models/errors/ratelimitederrorrep.d.ts.map +1 -1
  654. package/dist/esm/models/errors/ratelimitederrorrep.js +13 -7
  655. package/dist/esm/models/errors/ratelimitederrorrep.js.map +1 -1
  656. package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
  657. package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
  658. package/dist/esm/models/errors/responsevalidationerror.js +29 -0
  659. package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
  660. package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
  661. package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
  662. package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
  663. package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
  664. package/dist/esm/models/errors/statusconflicterrorrep.d.ts +7 -2
  665. package/dist/esm/models/errors/statusconflicterrorrep.d.ts.map +1 -1
  666. package/dist/esm/models/errors/statusconflicterrorrep.js +13 -7
  667. package/dist/esm/models/errors/statusconflicterrorrep.js.map +1 -1
  668. package/dist/esm/models/errors/unauthorizederrorrep.d.ts +7 -2
  669. package/dist/esm/models/errors/unauthorizederrorrep.d.ts.map +1 -1
  670. package/dist/esm/models/errors/unauthorizederrorrep.js +13 -7
  671. package/dist/esm/models/errors/unauthorizederrorrep.js.map +1 -1
  672. package/dist/esm/models/operations/getaiconfigtargeting.d.ts +65 -0
  673. package/dist/esm/models/operations/getaiconfigtargeting.d.ts.map +1 -0
  674. package/dist/esm/models/operations/getaiconfigtargeting.js +65 -0
  675. package/dist/esm/models/operations/getaiconfigtargeting.js.map +1 -0
  676. package/dist/esm/models/operations/index.d.ts +2 -0
  677. package/dist/esm/models/operations/index.d.ts.map +1 -1
  678. package/dist/esm/models/operations/index.js +2 -0
  679. package/dist/esm/models/operations/index.js.map +1 -1
  680. package/dist/esm/models/operations/patchaiconfigtargeting.d.ts +71 -0
  681. package/dist/esm/models/operations/patchaiconfigtargeting.d.ts.map +1 -0
  682. package/dist/esm/models/operations/patchaiconfigtargeting.js +72 -0
  683. package/dist/esm/models/operations/patchaiconfigtargeting.js.map +1 -0
  684. package/dist/esm/sdk/aiconfigs.d.ts +571 -0
  685. package/dist/esm/sdk/aiconfigs.d.ts.map +1 -1
  686. package/dist/esm/sdk/aiconfigs.js +577 -0
  687. package/dist/esm/sdk/aiconfigs.js.map +1 -1
  688. package/dist/esm/types/constdatetime.js +1 -1
  689. package/docs/sdks/aiconfigs/README.md +797 -81
  690. package/docs/sdks/featureflags/README.md +25 -43
  691. package/docs/sdks/launchdarkly/README.md +1 -1
  692. package/examples/README.md +26 -0
  693. package/examples/featureFlagsList.example.ts +26 -0
  694. package/examples/package-lock.json +628 -0
  695. package/examples/package.json +18 -0
  696. package/jsr.json +1 -1
  697. package/package.json +3 -3
  698. package/schemas/openapi.json +54001 -1
  699. package/schemas/output.json +54914 -0
  700. package/src/funcs/aiConfigsCreate.ts +23 -20
  701. package/src/funcs/aiConfigsCreateVariation.ts +23 -20
  702. package/src/funcs/aiConfigsDelete.ts +23 -20
  703. package/src/funcs/aiConfigsDeleteVariation.ts +23 -20
  704. package/src/funcs/aiConfigsGet.ts +23 -20
  705. package/src/funcs/aiConfigsGetTargeting.ts +189 -0
  706. package/src/funcs/aiConfigsGetVariation.ts +23 -20
  707. package/src/funcs/aiConfigsList.ts +23 -20
  708. package/src/funcs/aiConfigsUpdate.ts +23 -20
  709. package/src/funcs/aiConfigsUpdateTargeting.ts +749 -0
  710. package/src/funcs/aiConfigsUpdateVariation.ts +23 -20
  711. package/src/funcs/featureFlagsCreate.ts +23 -17
  712. package/src/funcs/featureFlagsDelete.ts +23 -17
  713. package/src/funcs/featureFlagsGet.ts +23 -17
  714. package/src/funcs/featureFlagsList.ts +23 -17
  715. package/src/funcs/featureFlagsPatch.ts +23 -17
  716. package/src/hooks/types.ts +2 -0
  717. package/src/index.ts +2 -0
  718. package/src/lib/config.ts +7 -3
  719. package/src/lib/files.ts +42 -0
  720. package/src/lib/matchers.ts +44 -41
  721. package/src/lib/sdks.ts +10 -4
  722. package/src/lib/security.ts +2 -2
  723. package/src/mcp-server/cli/start/command.ts +7 -12
  724. package/src/mcp-server/mcp-server.ts +1 -1
  725. package/src/mcp-server/server.ts +5 -1
  726. package/src/mcp-server/tools/aiConfigsCreate.ts +2 -1
  727. package/src/mcp-server/tools/aiConfigsCreateVariation.ts +4 -15
  728. package/src/mcp-server/tools/aiConfigsDelete.ts +5 -4
  729. package/src/mcp-server/tools/aiConfigsDeleteVariation.ts +3 -4
  730. package/src/mcp-server/tools/aiConfigsGet.ts +4 -4
  731. package/src/mcp-server/tools/aiConfigsGetTargeting.ts +37 -0
  732. package/src/mcp-server/tools/aiConfigsGetVariation.ts +3 -4
  733. package/src/mcp-server/tools/aiConfigsList.ts +3 -2
  734. package/src/mcp-server/tools/aiConfigsUpdate.ts +3 -15
  735. package/src/mcp-server/tools/aiConfigsUpdateTargeting.ts +36 -0
  736. package/src/mcp-server/tools/aiConfigsUpdateVariation.ts +4 -18
  737. package/src/mcp-server/tools/featureFlagsCreate.ts +2 -1
  738. package/src/mcp-server/tools/featureFlagsDelete.ts +2 -1
  739. package/src/mcp-server/tools/featureFlagsGet.ts +2 -1
  740. package/src/mcp-server/tools/featureFlagsList.ts +2 -1
  741. package/src/mcp-server/tools/featureFlagsPatch.ts +2 -1
  742. package/src/models/components/aiconfig.ts +30 -0
  743. package/src/models/components/aiconfigmaintainer.ts +5 -5
  744. package/src/models/components/aiconfigpost.ts +32 -0
  745. package/src/models/components/aiconfigsexperimentenabledperiodrep.ts +75 -0
  746. package/src/models/components/aiconfigsexperimentenvironmentsettingrep.ts +95 -0
  747. package/src/models/components/aiconfigsexperimentinforep.ts +76 -0
  748. package/src/models/components/aiconfigsfilter.ts +134 -0
  749. package/src/models/components/aiconfigslegacyexperimentrep.ts +111 -0
  750. package/src/models/components/aiconfigsmembersummary.ts +121 -0
  751. package/src/models/components/aiconfigsmetriceventdefaultrep.ts +78 -0
  752. package/src/models/components/aiconfigsmetriclistingrep.ts +458 -0
  753. package/src/models/components/aiconfigsmodification.ts +67 -0
  754. package/src/models/components/aiconfigtargeting.ts +134 -0
  755. package/src/models/components/aiconfigtargetingdefaults.ts +70 -0
  756. package/src/models/components/aiconfigtargetingenvironment.ts +137 -0
  757. package/src/models/components/aiconfigtargetingenvironmentfallthrough.ts +89 -0
  758. package/src/models/components/aiconfigtargetingenvironmentfallthroughrollout.ts +122 -0
  759. package/src/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.ts +90 -0
  760. package/src/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.ts +95 -0
  761. package/src/models/components/aiconfigtargetingenvironmentrule.ts +78 -0
  762. package/src/models/components/aiconfigtargetingenvironmentruleclause.ts +88 -0
  763. package/src/models/components/aiconfigtargetingenvironmenttarget.ts +78 -0
  764. package/src/models/components/aiconfigtargetingpatch.ts +74 -0
  765. package/src/models/components/aiconfigtargetingvariation.ts +93 -0
  766. package/src/models/components/aiconfigtargetingvariationjson.ts +60 -0
  767. package/src/models/components/aiconfigtargetingvariationvalue.ts +84 -0
  768. package/src/models/components/aiconfigvariation.ts +24 -4
  769. package/src/models/components/aiconfigvariationpatch.ts +21 -7
  770. package/src/models/components/aiconfigvariationpost.ts +25 -11
  771. package/src/models/components/filter.ts +14 -15
  772. package/src/models/components/index.ts +23 -0
  773. package/src/models/components/membersummary.ts +1 -1
  774. package/src/models/components/metriclistingrep.ts +58 -46
  775. package/src/models/errors/apierror.ts +29 -16
  776. package/src/models/errors/error.ts +16 -8
  777. package/src/models/errors/forbiddenerrorrep.ts +16 -8
  778. package/src/models/errors/index.ts +1 -0
  779. package/src/models/errors/invalidrequesterrorrep.ts +16 -8
  780. package/src/models/errors/launchdarklyerror.ts +35 -0
  781. package/src/models/errors/methodnotallowederrorrep.ts +16 -8
  782. package/src/models/errors/notfounderrorrep.ts +16 -8
  783. package/src/models/errors/ratelimitederrorrep.ts +16 -8
  784. package/src/models/errors/responsevalidationerror.ts +50 -0
  785. package/src/models/errors/sdkvalidationerror.ts +12 -0
  786. package/src/models/errors/statusconflicterrorrep.ts +16 -8
  787. package/src/models/errors/unauthorizederrorrep.ts +16 -8
  788. package/src/models/operations/getaiconfigtargeting.ts +123 -0
  789. package/src/models/operations/index.ts +2 -0
  790. package/src/models/operations/patchaiconfigtargeting.ts +138 -0
  791. package/src/sdk/aiconfigs.ts +593 -0
  792. package/src/types/constdatetime.ts +1 -1
package/bin/mcp-server.js CHANGED
@@ -34236,9 +34236,9 @@ var init_config = __esm(() => {
34236
34236
  SDK_METADATA = {
34237
34237
  language: "typescript",
34238
34238
  openapiDocVersion: "2.0",
34239
- sdkVersion: "0.2.7",
34240
- genVersion: "2.610.0",
34241
- userAgent: "speakeasy-sdk/typescript 0.2.7 2.610.0 2.0 @launchdarkly/mcp-server"
34239
+ sdkVersion: "0.4.0",
34240
+ genVersion: "2.654.2",
34241
+ userAgent: "speakeasy-sdk/typescript 0.4.0 2.654.2 2.0 @launchdarkly/mcp-server"
34242
34242
  };
34243
34243
  });
34244
34244
 
@@ -34803,7 +34803,6 @@ class ClientSDK {
34803
34803
  } else {
34804
34804
  this.#hooks = new SDKHooks;
34805
34805
  }
34806
- this._options = { ...options, hooks: this.#hooks };
34807
34806
  const url = serverURLFromOptions(options);
34808
34807
  if (url) {
34809
34808
  url.pathname = url.pathname.replace(/\/+$/, "") + "/";
@@ -34814,7 +34813,8 @@ class ClientSDK {
34814
34813
  });
34815
34814
  this._baseURL = baseURL;
34816
34815
  this.#httpClient = client;
34817
- this.#logger = options.debugLogger;
34816
+ this._options = { ...options, hooks: this.#hooks };
34817
+ this.#logger = this._options.debugLogger;
34818
34818
  if (!this.#logger && env().LAUNCHDARKLY_DEBUG) {
34819
34819
  this.#logger = console;
34820
34820
  }
@@ -34868,7 +34868,7 @@ class ClientSDK {
34868
34868
  headers.set(k2, v2);
34869
34869
  }
34870
34870
  if (!isBrowserLike) {
34871
- headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
34871
+ headers.set(conf.uaHeader ?? "user-agent", conf.userAgent ?? SDK_METADATA.userAgent);
34872
34872
  }
34873
34873
  const fetchOptions = {
34874
34874
  ...options?.fetchOptions,
@@ -35217,24 +35217,53 @@ var init_tools = __esm(() => {
35217
35217
  init_shared();
35218
35218
  });
35219
35219
 
35220
+ // src/models/errors/launchdarklyerror.ts
35221
+ var LaunchDarklyError;
35222
+ var init_launchdarklyerror = __esm(() => {
35223
+ LaunchDarklyError = class LaunchDarklyError extends Error {
35224
+ statusCode;
35225
+ body;
35226
+ headers;
35227
+ contentType;
35228
+ rawResponse;
35229
+ constructor(message, httpMeta) {
35230
+ super(message);
35231
+ this.statusCode = httpMeta.response.status;
35232
+ this.body = httpMeta.body;
35233
+ this.headers = httpMeta.response.headers;
35234
+ this.contentType = httpMeta.response.headers.get("content-type") || "";
35235
+ this.rawResponse = httpMeta.response;
35236
+ this.name = "LaunchDarklyError";
35237
+ }
35238
+ };
35239
+ });
35240
+
35220
35241
  // src/models/errors/apierror.ts
35221
35242
  var APIError;
35222
35243
  var init_apierror = __esm(() => {
35223
- APIError = class APIError extends Error {
35224
- rawResponse;
35225
- body;
35226
- statusCode;
35227
- contentType;
35228
- constructor(message, rawResponse, body = "") {
35229
- const statusCode = rawResponse.status;
35230
- const contentType2 = rawResponse.headers.get("content-type") || "";
35231
- const bodyString = body.length > 0 ? `
35232
- ${body}` : "";
35233
- super(`${message}: Status ${statusCode} Content-Type ${contentType2} Body ${bodyString}`);
35234
- this.rawResponse = rawResponse;
35235
- this.body = body;
35236
- this.statusCode = statusCode;
35237
- this.contentType = contentType2;
35244
+ init_launchdarklyerror();
35245
+ APIError = class APIError extends LaunchDarklyError {
35246
+ constructor(message, httpMeta) {
35247
+ if (message) {
35248
+ message += `: `;
35249
+ }
35250
+ message += `Status ${httpMeta.response.status}`;
35251
+ const contentType2 = httpMeta.response.headers.get("content-type") || `""`;
35252
+ if (contentType2 !== "application/json") {
35253
+ message += ` Content-Type ${contentType2.includes(" ") ? `"${contentType2}"` : contentType2}`;
35254
+ }
35255
+ const body = httpMeta.body || `""`;
35256
+ message += body.length > 100 ? `
35257
+ ` : ". ";
35258
+ let bodyDisplay = body;
35259
+ if (body.length > 1e4) {
35260
+ const truncated = body.substring(0, 1e4);
35261
+ const remaining = body.length - 1e4;
35262
+ bodyDisplay = `${truncated}...and ${remaining} more chars`;
35263
+ }
35264
+ message += `Body: ${bodyDisplay}`;
35265
+ message = message.trim();
35266
+ super(message, httpMeta);
35238
35267
  this.name = "APIError";
35239
35268
  }
35240
35269
  };
@@ -35298,6 +35327,19 @@ var init_sdkvalidationerror = __esm(() => {
35298
35327
  SDKValidationError = class SDKValidationError extends Error {
35299
35328
  rawValue;
35300
35329
  rawMessage;
35330
+ static [Symbol.hasInstance](instance) {
35331
+ if (!(instance instanceof Error))
35332
+ return false;
35333
+ if (!("rawValue" in instance))
35334
+ return false;
35335
+ if (!("rawMessage" in instance))
35336
+ return false;
35337
+ if (!("pretty" in instance))
35338
+ return false;
35339
+ if (typeof instance.pretty !== "function")
35340
+ return false;
35341
+ return true;
35342
+ }
35301
35343
  constructor(message, cause, rawValue) {
35302
35344
  super(`${message}: ${cause}`);
35303
35345
  this.name = "SDKValidationError";
@@ -35316,16 +35358,31 @@ ${formatZodError(this.cause)}`;
35316
35358
  };
35317
35359
  });
35318
35360
 
35319
- // src/lib/schemas.ts
35320
- function safeParse(rawValue, fn, errorMessage) {
35321
- try {
35322
- return OK2(fn(rawValue));
35323
- } catch (err) {
35324
- return ERR(new SDKValidationError(errorMessage, err, rawValue));
35325
- }
35326
- }
35327
- var init_schemas = __esm(() => {
35361
+ // src/models/errors/responsevalidationerror.ts
35362
+ var ResponseValidationError;
35363
+ var init_responsevalidationerror = __esm(() => {
35364
+ init_esm();
35365
+ init_launchdarklyerror();
35328
35366
  init_sdkvalidationerror();
35367
+ ResponseValidationError = class ResponseValidationError extends LaunchDarklyError {
35368
+ rawValue;
35369
+ rawMessage;
35370
+ constructor(message, extra) {
35371
+ super(message, extra);
35372
+ this.name = "ResponseValidationError";
35373
+ this.cause = extra.cause;
35374
+ this.rawValue = extra.rawValue;
35375
+ this.rawMessage = extra.rawMessage;
35376
+ }
35377
+ pretty() {
35378
+ if (this.cause instanceof ZodError) {
35379
+ return `${this.rawMessage}
35380
+ ${formatZodError(this.cause)}`;
35381
+ } else {
35382
+ return this.toString();
35383
+ }
35384
+ }
35385
+ };
35329
35386
  });
35330
35387
 
35331
35388
  // src/lib/matchers.ts
@@ -35342,7 +35399,7 @@ function fail(codes) {
35342
35399
  return { enc: "fail", codes };
35343
35400
  }
35344
35401
  function match(...matchers) {
35345
- return async function matchFunc(response, options) {
35402
+ return async function matchFunc(response, request, options) {
35346
35403
  let raw;
35347
35404
  let matcher;
35348
35405
  for (const match2 of matchers) {
@@ -35357,16 +35414,21 @@ function match(...matchers) {
35357
35414
  }
35358
35415
  }
35359
35416
  if (!matcher) {
35360
- const responseBody = await response.text();
35361
35417
  return [{
35362
35418
  ok: false,
35363
- error: new APIError("Unexpected API response status or content-type", response, responseBody)
35364
- }, responseBody];
35419
+ error: new APIError("Unexpected Status or Content-Type", {
35420
+ response,
35421
+ request,
35422
+ body: await response.text().catch(() => "")
35423
+ })
35424
+ }, raw];
35365
35425
  }
35366
35426
  const encoding = matcher.enc;
35427
+ let body = "";
35367
35428
  switch (encoding) {
35368
35429
  case "json":
35369
- raw = await response.json();
35430
+ body = await response.text();
35431
+ raw = JSON.parse(body);
35370
35432
  break;
35371
35433
  case "jsonl":
35372
35434
  raw = response.body;
@@ -35378,16 +35440,19 @@ function match(...matchers) {
35378
35440
  raw = response.body;
35379
35441
  break;
35380
35442
  case "text":
35381
- raw = await response.text();
35443
+ body = await response.text();
35444
+ raw = body;
35382
35445
  break;
35383
35446
  case "sse":
35384
35447
  raw = response.body;
35385
35448
  break;
35386
35449
  case "nil":
35387
- raw = await discardResponseBody(response);
35450
+ body = await response.text();
35451
+ raw = undefined;
35388
35452
  break;
35389
35453
  case "fail":
35390
- raw = await response.text();
35454
+ body = await response.text();
35455
+ raw = body;
35391
35456
  break;
35392
35457
  default:
35393
35458
  throw new Error(`Unsupported response type: ${encoding}`);
@@ -35395,7 +35460,7 @@ function match(...matchers) {
35395
35460
  if (matcher.enc === "fail") {
35396
35461
  return [{
35397
35462
  ok: false,
35398
- error: new APIError("API error occurred", response, typeof raw === "string" ? raw : "")
35463
+ error: new APIError("API error occurred", { request, response, body })
35399
35464
  }, raw];
35400
35465
  }
35401
35466
  const resultKey = matcher.key || options?.resultKey;
@@ -35404,7 +35469,10 @@ function match(...matchers) {
35404
35469
  data = {
35405
35470
  ...options?.extraFields,
35406
35471
  ...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
35407
- ...isPlainObject(raw) ? raw : null
35472
+ ...isPlainObject(raw) ? raw : null,
35473
+ request$: request,
35474
+ response$: response,
35475
+ body$: body
35408
35476
  };
35409
35477
  } else if (resultKey) {
35410
35478
  data = {
@@ -35422,11 +35490,11 @@ function match(...matchers) {
35422
35490
  data = raw;
35423
35491
  }
35424
35492
  if ("err" in matcher) {
35425
- const result = safeParse(data, (v2) => matcher.schema.parse(v2), "Response validation failed");
35493
+ const result = safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body });
35426
35494
  return [result.ok ? { ok: false, error: result.value } : result, raw];
35427
35495
  } else {
35428
35496
  return [
35429
- safeParse(data, (v2) => matcher.schema.parse(v2), "Response validation failed"),
35497
+ safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body }),
35430
35498
  raw
35431
35499
  ];
35432
35500
  }
@@ -35439,26 +35507,23 @@ function unpackHeaders(headers) {
35439
35507
  }
35440
35508
  return out;
35441
35509
  }
35442
- async function discardResponseBody(res) {
35443
- const reader = res.body?.getReader();
35444
- if (reader == null) {
35445
- return;
35446
- }
35510
+ function safeParseResponse(rawValue, fn, errorMessage, httpMeta) {
35447
35511
  try {
35448
- let done = false;
35449
- while (!done) {
35450
- const res2 = await reader.read();
35451
- done = res2.done;
35452
- }
35453
- } finally {
35454
- reader.releaseLock();
35512
+ return OK2(fn(rawValue));
35513
+ } catch (err) {
35514
+ return ERR(new ResponseValidationError(errorMessage, {
35515
+ cause: err,
35516
+ rawValue,
35517
+ rawMessage: errorMessage,
35518
+ ...httpMeta
35519
+ }));
35455
35520
  }
35456
35521
  }
35457
35522
  var DEFAULT_CONTENT_TYPES, headerValRE;
35458
35523
  var init_matchers = __esm(() => {
35459
35524
  init_apierror();
35525
+ init_responsevalidationerror();
35460
35526
  init_http();
35461
- init_schemas();
35462
35527
  DEFAULT_CONTENT_TYPES = {
35463
35528
  jsonl: "application/jsonl",
35464
35529
  json: "application/json",
@@ -35499,6 +35564,18 @@ function compactMap(values) {
35499
35564
  }
35500
35565
  var init_primitives = () => {};
35501
35566
 
35567
+ // src/lib/schemas.ts
35568
+ function safeParse(rawValue, fn, errorMessage) {
35569
+ try {
35570
+ return OK2(fn(rawValue));
35571
+ } catch (err) {
35572
+ return ERR(new SDKValidationError(errorMessage, err, rawValue));
35573
+ }
35574
+ }
35575
+ var init_schemas = __esm(() => {
35576
+ init_sdkvalidationerror();
35577
+ });
35578
+
35502
35579
  // src/lib/security.ts
35503
35580
  function resolveSecurity(...options) {
35504
35581
  const state = {
@@ -35821,12 +35898,12 @@ var init_aiconfigmaintainer = __esm(() => {
35821
35898
  MaintainerMember$.outboundSchema = MaintainerMember$outboundSchema;
35822
35899
  })(MaintainerMember$ ||= {});
35823
35900
  AIConfigMaintainer$inboundSchema = unionType([
35824
- lazyType(() => AiConfigsMaintainerTeam$inboundSchema),
35825
- lazyType(() => MaintainerMember$inboundSchema)
35901
+ lazyType(() => MaintainerMember$inboundSchema),
35902
+ lazyType(() => AiConfigsMaintainerTeam$inboundSchema)
35826
35903
  ]);
35827
35904
  AIConfigMaintainer$outboundSchema = unionType([
35828
- lazyType(() => AiConfigsMaintainerTeam$outboundSchema),
35829
- lazyType(() => MaintainerMember$outboundSchema)
35905
+ lazyType(() => MaintainerMember$outboundSchema),
35906
+ lazyType(() => AiConfigsMaintainerTeam$outboundSchema)
35830
35907
  ]);
35831
35908
  ((AIConfigMaintainer$) => {
35832
35909
  AIConfigMaintainer$.inboundSchema = AIConfigMaintainer$inboundSchema;
@@ -36052,8 +36129,11 @@ var init_aiconfigvariation = __esm(() => {
36052
36129
  _links: ParentLink$inboundSchema.optional(),
36053
36130
  color: stringType().optional(),
36054
36131
  comment: stringType().optional(),
36132
+ description: stringType().optional(),
36133
+ instructions: stringType().optional(),
36055
36134
  key: stringType(),
36056
- messages: arrayType(Message$inboundSchema),
36135
+ _id: stringType(),
36136
+ messages: arrayType(Message$inboundSchema).optional(),
36057
36137
  model: lazyType(() => AIConfigVariationModel$inboundSchema),
36058
36138
  modelConfigKey: stringType().optional(),
36059
36139
  name: stringType(),
@@ -36065,6 +36145,7 @@ var init_aiconfigvariation = __esm(() => {
36065
36145
  }).transform((v2) => {
36066
36146
  return remap(v2, {
36067
36147
  _links: "links",
36148
+ _id: "id",
36068
36149
  _archivedAt: "archivedAt",
36069
36150
  _publishedAt: "publishedAt"
36070
36151
  });
@@ -36073,8 +36154,11 @@ var init_aiconfigvariation = __esm(() => {
36073
36154
  links: ParentLink$outboundSchema.optional(),
36074
36155
  color: stringType().optional(),
36075
36156
  comment: stringType().optional(),
36157
+ description: stringType().optional(),
36158
+ instructions: stringType().optional(),
36076
36159
  key: stringType(),
36077
- messages: arrayType(Message$outboundSchema),
36160
+ id: stringType(),
36161
+ messages: arrayType(Message$outboundSchema).optional(),
36078
36162
  model: lazyType(() => AIConfigVariationModel$outboundSchema),
36079
36163
  modelConfigKey: stringType().optional(),
36080
36164
  name: stringType(),
@@ -36086,6 +36170,7 @@ var init_aiconfigvariation = __esm(() => {
36086
36170
  }).transform((v2) => {
36087
36171
  return remap(v2, {
36088
36172
  links: "_links",
36173
+ id: "_id",
36089
36174
  archivedAt: "_archivedAt",
36090
36175
  publishedAt: "_publishedAt"
36091
36176
  });
@@ -36116,7 +36201,7 @@ var init_parentandselflinks = __esm(() => {
36116
36201
  });
36117
36202
 
36118
36203
  // src/models/components/aiconfig.ts
36119
- var AIConfig$inboundSchema, AIConfig$outboundSchema, AIConfig$;
36204
+ var AIConfigMode, AIConfigMode$inboundSchema, AIConfigMode$outboundSchema, AIConfigMode$, AIConfig$inboundSchema, AIConfig$outboundSchema, AIConfig$;
36120
36205
  var init_aiconfig = __esm(() => {
36121
36206
  init_esm();
36122
36207
  init_primitives();
@@ -36124,12 +36209,23 @@ var init_aiconfig = __esm(() => {
36124
36209
  init_aiconfigsaccess();
36125
36210
  init_aiconfigvariation();
36126
36211
  init_parentandselflinks();
36212
+ AIConfigMode = {
36213
+ Agent: "agent",
36214
+ Completion: "completion"
36215
+ };
36216
+ AIConfigMode$inboundSchema = nativeEnumType(AIConfigMode);
36217
+ AIConfigMode$outboundSchema = AIConfigMode$inboundSchema;
36218
+ ((AIConfigMode$) => {
36219
+ AIConfigMode$.inboundSchema = AIConfigMode$inboundSchema;
36220
+ AIConfigMode$.outboundSchema = AIConfigMode$outboundSchema;
36221
+ })(AIConfigMode$ ||= {});
36127
36222
  AIConfig$inboundSchema = objectType({
36128
36223
  _access: AiConfigsAccess$inboundSchema.optional(),
36129
36224
  _links: ParentAndSelfLinks$inboundSchema.optional(),
36130
36225
  description: stringType(),
36131
36226
  key: stringType(),
36132
36227
  _maintainer: AIConfigMaintainer$inboundSchema.optional(),
36228
+ mode: AIConfigMode$inboundSchema.default("completion"),
36133
36229
  name: stringType(),
36134
36230
  tags: arrayType(stringType()),
36135
36231
  version: numberType().int(),
@@ -36149,6 +36245,7 @@ var init_aiconfig = __esm(() => {
36149
36245
  description: stringType(),
36150
36246
  key: stringType(),
36151
36247
  maintainer: AIConfigMaintainer$outboundSchema.optional(),
36248
+ mode: AIConfigMode$outboundSchema.default("completion"),
36152
36249
  name: stringType(),
36153
36250
  tags: arrayType(stringType()),
36154
36251
  version: numberType().int(),
@@ -36193,14 +36290,25 @@ var init_aiconfigpatch = __esm(() => {
36193
36290
  });
36194
36291
 
36195
36292
  // src/models/components/aiconfigpost.ts
36196
- var AIConfigPost$inboundSchema, AIConfigPost$outboundSchema, AIConfigPost$;
36293
+ var AIConfigPostMode, AIConfigPostMode$inboundSchema, AIConfigPostMode$outboundSchema, AIConfigPostMode$, AIConfigPost$inboundSchema, AIConfigPost$outboundSchema, AIConfigPost$;
36197
36294
  var init_aiconfigpost = __esm(() => {
36198
36295
  init_esm();
36296
+ AIConfigPostMode = {
36297
+ Agent: "agent",
36298
+ Completion: "completion"
36299
+ };
36300
+ AIConfigPostMode$inboundSchema = nativeEnumType(AIConfigPostMode);
36301
+ AIConfigPostMode$outboundSchema = AIConfigPostMode$inboundSchema;
36302
+ ((AIConfigPostMode$) => {
36303
+ AIConfigPostMode$.inboundSchema = AIConfigPostMode$inboundSchema;
36304
+ AIConfigPostMode$.outboundSchema = AIConfigPostMode$outboundSchema;
36305
+ })(AIConfigPostMode$ ||= {});
36199
36306
  AIConfigPost$inboundSchema = objectType({
36200
36307
  description: stringType().default(""),
36201
36308
  key: stringType(),
36202
36309
  maintainerId: stringType().optional(),
36203
36310
  maintainerTeamKey: stringType().optional(),
36311
+ mode: AIConfigPostMode$inboundSchema.default("completion"),
36204
36312
  name: stringType(),
36205
36313
  tags: arrayType(stringType()).optional()
36206
36314
  });
@@ -36209,6 +36317,7 @@ var init_aiconfigpost = __esm(() => {
36209
36317
  key: stringType(),
36210
36318
  maintainerId: stringType().optional(),
36211
36319
  maintainerTeamKey: stringType().optional(),
36320
+ mode: AIConfigPostMode$outboundSchema.default("completion"),
36212
36321
  name: stringType(),
36213
36322
  tags: arrayType(stringType()).optional()
36214
36323
  });
@@ -36248,48 +36357,749 @@ var init_paginatedlinks = __esm(() => {
36248
36357
  prev: AiConfigsLink$inboundSchema.optional(),
36249
36358
  self: AiConfigsLink$inboundSchema
36250
36359
  });
36251
- PaginatedLinks$outboundSchema = objectType({
36252
- first: AiConfigsLink$outboundSchema.optional(),
36253
- last: AiConfigsLink$outboundSchema.optional(),
36254
- next: AiConfigsLink$outboundSchema.optional(),
36255
- prev: AiConfigsLink$outboundSchema.optional(),
36256
- self: AiConfigsLink$outboundSchema
36360
+ PaginatedLinks$outboundSchema = objectType({
36361
+ first: AiConfigsLink$outboundSchema.optional(),
36362
+ last: AiConfigsLink$outboundSchema.optional(),
36363
+ next: AiConfigsLink$outboundSchema.optional(),
36364
+ prev: AiConfigsLink$outboundSchema.optional(),
36365
+ self: AiConfigsLink$outboundSchema
36366
+ });
36367
+ ((PaginatedLinks$) => {
36368
+ PaginatedLinks$.inboundSchema = PaginatedLinks$inboundSchema;
36369
+ PaginatedLinks$.outboundSchema = PaginatedLinks$outboundSchema;
36370
+ })(PaginatedLinks$ ||= {});
36371
+ });
36372
+
36373
+ // src/models/components/aiconfigs.ts
36374
+ var AIConfigs$inboundSchema, AIConfigs$outboundSchema, AIConfigs$;
36375
+ var init_aiconfigs = __esm(() => {
36376
+ init_esm();
36377
+ init_primitives();
36378
+ init_aiconfig();
36379
+ init_paginatedlinks();
36380
+ AIConfigs$inboundSchema = objectType({
36381
+ _links: PaginatedLinks$inboundSchema.optional(),
36382
+ items: arrayType(AIConfig$inboundSchema),
36383
+ totalCount: numberType().int()
36384
+ }).transform((v2) => {
36385
+ return remap(v2, {
36386
+ _links: "links"
36387
+ });
36388
+ });
36389
+ AIConfigs$outboundSchema = objectType({
36390
+ links: PaginatedLinks$outboundSchema.optional(),
36391
+ items: arrayType(AIConfig$outboundSchema),
36392
+ totalCount: numberType().int()
36393
+ }).transform((v2) => {
36394
+ return remap(v2, {
36395
+ links: "_links"
36396
+ });
36397
+ });
36398
+ ((AIConfigs$) => {
36399
+ AIConfigs$.inboundSchema = AIConfigs$inboundSchema;
36400
+ AIConfigs$.outboundSchema = AIConfigs$outboundSchema;
36401
+ })(AIConfigs$ ||= {});
36402
+ });
36403
+
36404
+ // src/models/components/aiconfigsexperimentenabledperiodrep.ts
36405
+ var AiConfigsExperimentEnabledPeriodRep$inboundSchema, AiConfigsExperimentEnabledPeriodRep$outboundSchema, AiConfigsExperimentEnabledPeriodRep$;
36406
+ var init_aiconfigsexperimentenabledperiodrep = __esm(() => {
36407
+ init_esm();
36408
+ AiConfigsExperimentEnabledPeriodRep$inboundSchema = objectType({
36409
+ startDate: numberType().int().optional(),
36410
+ stopDate: numberType().int().optional()
36411
+ });
36412
+ AiConfigsExperimentEnabledPeriodRep$outboundSchema = objectType({
36413
+ startDate: numberType().int().optional(),
36414
+ stopDate: numberType().int().optional()
36415
+ });
36416
+ ((AiConfigsExperimentEnabledPeriodRep$) => {
36417
+ AiConfigsExperimentEnabledPeriodRep$.inboundSchema = AiConfigsExperimentEnabledPeriodRep$inboundSchema;
36418
+ AiConfigsExperimentEnabledPeriodRep$.outboundSchema = AiConfigsExperimentEnabledPeriodRep$outboundSchema;
36419
+ })(AiConfigsExperimentEnabledPeriodRep$ ||= {});
36420
+ });
36421
+
36422
+ // src/models/components/aiconfigsexperimentenvironmentsettingrep.ts
36423
+ var AiConfigsExperimentEnvironmentSettingRep$inboundSchema, AiConfigsExperimentEnvironmentSettingRep$outboundSchema, AiConfigsExperimentEnvironmentSettingRep$;
36424
+ var init_aiconfigsexperimentenvironmentsettingrep = __esm(() => {
36425
+ init_esm();
36426
+ init_aiconfigsexperimentenabledperiodrep();
36427
+ AiConfigsExperimentEnvironmentSettingRep$inboundSchema = objectType({
36428
+ startDate: numberType().int().optional(),
36429
+ stopDate: numberType().int().optional(),
36430
+ enabledPeriods: arrayType(AiConfigsExperimentEnabledPeriodRep$inboundSchema).optional()
36431
+ });
36432
+ AiConfigsExperimentEnvironmentSettingRep$outboundSchema = objectType({
36433
+ startDate: numberType().int().optional(),
36434
+ stopDate: numberType().int().optional(),
36435
+ enabledPeriods: arrayType(AiConfigsExperimentEnabledPeriodRep$outboundSchema).optional()
36436
+ });
36437
+ ((AiConfigsExperimentEnvironmentSettingRep$) => {
36438
+ AiConfigsExperimentEnvironmentSettingRep$.inboundSchema = AiConfigsExperimentEnvironmentSettingRep$inboundSchema;
36439
+ AiConfigsExperimentEnvironmentSettingRep$.outboundSchema = AiConfigsExperimentEnvironmentSettingRep$outboundSchema;
36440
+ })(AiConfigsExperimentEnvironmentSettingRep$ ||= {});
36441
+ });
36442
+
36443
+ // src/models/components/aiconfigsfilter.ts
36444
+ var AiConfigsFilterType, AiConfigsFilterType$inboundSchema, AiConfigsFilterType$outboundSchema, AiConfigsFilterType$, AiConfigsFilter$inboundSchema, AiConfigsFilter$outboundSchema, AiConfigsFilter$;
36445
+ var init_aiconfigsfilter = __esm(() => {
36446
+ init_esm();
36447
+ AiConfigsFilterType = {
36448
+ Group: "group",
36449
+ ContextAttribute: "contextAttribute",
36450
+ EventProperty: "eventProperty"
36451
+ };
36452
+ AiConfigsFilterType$inboundSchema = nativeEnumType(AiConfigsFilterType);
36453
+ AiConfigsFilterType$outboundSchema = AiConfigsFilterType$inboundSchema;
36454
+ ((AiConfigsFilterType$) => {
36455
+ AiConfigsFilterType$.inboundSchema = AiConfigsFilterType$inboundSchema;
36456
+ AiConfigsFilterType$.outboundSchema = AiConfigsFilterType$outboundSchema;
36457
+ })(AiConfigsFilterType$ ||= {});
36458
+ AiConfigsFilter$inboundSchema = objectType({
36459
+ type: AiConfigsFilterType$inboundSchema,
36460
+ attribute: stringType().optional(),
36461
+ op: stringType(),
36462
+ values: arrayType(anyType()),
36463
+ contextKind: stringType().optional(),
36464
+ negate: booleanType()
36465
+ });
36466
+ AiConfigsFilter$outboundSchema = objectType({
36467
+ type: AiConfigsFilterType$outboundSchema,
36468
+ attribute: stringType().optional(),
36469
+ op: stringType(),
36470
+ values: arrayType(anyType()),
36471
+ contextKind: stringType().optional(),
36472
+ negate: booleanType()
36473
+ });
36474
+ ((AiConfigsFilter$) => {
36475
+ AiConfigsFilter$.inboundSchema = AiConfigsFilter$inboundSchema;
36476
+ AiConfigsFilter$.outboundSchema = AiConfigsFilter$outboundSchema;
36477
+ })(AiConfigsFilter$ ||= {});
36478
+ });
36479
+
36480
+ // src/models/components/aiconfigsmembersummary.ts
36481
+ var AiConfigsMemberSummary$inboundSchema, AiConfigsMemberSummary$outboundSchema, AiConfigsMemberSummary$;
36482
+ var init_aiconfigsmembersummary = __esm(() => {
36483
+ init_esm();
36484
+ init_primitives();
36485
+ init_aiconfigslink();
36486
+ AiConfigsMemberSummary$inboundSchema = objectType({
36487
+ _links: recordType(AiConfigsLink$inboundSchema),
36488
+ _id: stringType(),
36489
+ firstName: stringType().optional(),
36490
+ lastName: stringType().optional(),
36491
+ role: stringType(),
36492
+ email: stringType()
36493
+ }).transform((v2) => {
36494
+ return remap(v2, {
36495
+ _links: "links",
36496
+ _id: "id"
36497
+ });
36498
+ });
36499
+ AiConfigsMemberSummary$outboundSchema = objectType({
36500
+ links: recordType(AiConfigsLink$outboundSchema),
36501
+ id: stringType(),
36502
+ firstName: stringType().optional(),
36503
+ lastName: stringType().optional(),
36504
+ role: stringType(),
36505
+ email: stringType()
36506
+ }).transform((v2) => {
36507
+ return remap(v2, {
36508
+ links: "_links",
36509
+ id: "_id"
36510
+ });
36511
+ });
36512
+ ((AiConfigsMemberSummary$) => {
36513
+ AiConfigsMemberSummary$.inboundSchema = AiConfigsMemberSummary$inboundSchema;
36514
+ AiConfigsMemberSummary$.outboundSchema = AiConfigsMemberSummary$outboundSchema;
36515
+ })(AiConfigsMemberSummary$ ||= {});
36516
+ });
36517
+
36518
+ // src/models/components/aiconfigsmetriceventdefaultrep.ts
36519
+ var AiConfigsMetricEventDefaultRep$inboundSchema, AiConfigsMetricEventDefaultRep$outboundSchema, AiConfigsMetricEventDefaultRep$;
36520
+ var init_aiconfigsmetriceventdefaultrep = __esm(() => {
36521
+ init_esm();
36522
+ AiConfigsMetricEventDefaultRep$inboundSchema = objectType({
36523
+ disabled: booleanType().optional(),
36524
+ value: numberType().optional()
36525
+ });
36526
+ AiConfigsMetricEventDefaultRep$outboundSchema = objectType({
36527
+ disabled: booleanType().optional(),
36528
+ value: numberType().optional()
36529
+ });
36530
+ ((AiConfigsMetricEventDefaultRep$) => {
36531
+ AiConfigsMetricEventDefaultRep$.inboundSchema = AiConfigsMetricEventDefaultRep$inboundSchema;
36532
+ AiConfigsMetricEventDefaultRep$.outboundSchema = AiConfigsMetricEventDefaultRep$outboundSchema;
36533
+ })(AiConfigsMetricEventDefaultRep$ ||= {});
36534
+ });
36535
+
36536
+ // src/models/components/aiconfigsmodification.ts
36537
+ var AiConfigsModification$inboundSchema, AiConfigsModification$outboundSchema, AiConfigsModification$;
36538
+ var init_aiconfigsmodification = __esm(() => {
36539
+ init_esm();
36540
+ AiConfigsModification$inboundSchema = objectType({
36541
+ date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
36542
+ });
36543
+ AiConfigsModification$outboundSchema = objectType({
36544
+ date: dateType().transform((v2) => v2.toISOString()).optional()
36545
+ });
36546
+ ((AiConfigsModification$) => {
36547
+ AiConfigsModification$.inboundSchema = AiConfigsModification$inboundSchema;
36548
+ AiConfigsModification$.outboundSchema = AiConfigsModification$outboundSchema;
36549
+ })(AiConfigsModification$ ||= {});
36550
+ });
36551
+
36552
+ // src/models/components/aiconfigsmetriclistingrep.ts
36553
+ var AiConfigsMetricListingRepKind, AiConfigsMetricListingRepSuccessCriteria, AiConfigsMetricListingRepUnitAggregationType, AiConfigsMetricListingRepAnalysisType, AiConfigsMetricListingRepKind$inboundSchema, AiConfigsMetricListingRepKind$outboundSchema, AiConfigsMetricListingRepKind$, AiConfigsMetricListingRepSuccessCriteria$inboundSchema, AiConfigsMetricListingRepSuccessCriteria$outboundSchema, AiConfigsMetricListingRepSuccessCriteria$, AiConfigsMetricListingRepUnitAggregationType$inboundSchema, AiConfigsMetricListingRepUnitAggregationType$outboundSchema, AiConfigsMetricListingRepUnitAggregationType$, AiConfigsMetricListingRepAnalysisType$inboundSchema, AiConfigsMetricListingRepAnalysisType$outboundSchema, AiConfigsMetricListingRepAnalysisType$, AiConfigsMetricListingRep$inboundSchema, AiConfigsMetricListingRep$outboundSchema, AiConfigsMetricListingRep$;
36554
+ var init_aiconfigsmetriclistingrep = __esm(() => {
36555
+ init_esm();
36556
+ init_primitives();
36557
+ init_aiconfigsaccess();
36558
+ init_aiconfigsfilter();
36559
+ init_aiconfigslink();
36560
+ init_aiconfigsmembersummary();
36561
+ init_aiconfigsmetriceventdefaultrep();
36562
+ init_aiconfigsmodification();
36563
+ AiConfigsMetricListingRepKind = {
36564
+ Pageview: "pageview",
36565
+ Click: "click",
36566
+ Custom: "custom"
36567
+ };
36568
+ AiConfigsMetricListingRepSuccessCriteria = {
36569
+ HigherThanBaseline: "HigherThanBaseline",
36570
+ LowerThanBaseline: "LowerThanBaseline"
36571
+ };
36572
+ AiConfigsMetricListingRepUnitAggregationType = {
36573
+ Average: "average",
36574
+ Sum: "sum"
36575
+ };
36576
+ AiConfigsMetricListingRepAnalysisType = {
36577
+ Mean: "mean",
36578
+ Percentile: "percentile"
36579
+ };
36580
+ AiConfigsMetricListingRepKind$inboundSchema = nativeEnumType(AiConfigsMetricListingRepKind);
36581
+ AiConfigsMetricListingRepKind$outboundSchema = AiConfigsMetricListingRepKind$inboundSchema;
36582
+ ((AiConfigsMetricListingRepKind$) => {
36583
+ AiConfigsMetricListingRepKind$.inboundSchema = AiConfigsMetricListingRepKind$inboundSchema;
36584
+ AiConfigsMetricListingRepKind$.outboundSchema = AiConfigsMetricListingRepKind$outboundSchema;
36585
+ })(AiConfigsMetricListingRepKind$ ||= {});
36586
+ AiConfigsMetricListingRepSuccessCriteria$inboundSchema = nativeEnumType(AiConfigsMetricListingRepSuccessCriteria);
36587
+ AiConfigsMetricListingRepSuccessCriteria$outboundSchema = AiConfigsMetricListingRepSuccessCriteria$inboundSchema;
36588
+ ((AiConfigsMetricListingRepSuccessCriteria$) => {
36589
+ AiConfigsMetricListingRepSuccessCriteria$.inboundSchema = AiConfigsMetricListingRepSuccessCriteria$inboundSchema;
36590
+ AiConfigsMetricListingRepSuccessCriteria$.outboundSchema = AiConfigsMetricListingRepSuccessCriteria$outboundSchema;
36591
+ })(AiConfigsMetricListingRepSuccessCriteria$ ||= {});
36592
+ AiConfigsMetricListingRepUnitAggregationType$inboundSchema = nativeEnumType(AiConfigsMetricListingRepUnitAggregationType);
36593
+ AiConfigsMetricListingRepUnitAggregationType$outboundSchema = AiConfigsMetricListingRepUnitAggregationType$inboundSchema;
36594
+ ((AiConfigsMetricListingRepUnitAggregationType$) => {
36595
+ AiConfigsMetricListingRepUnitAggregationType$.inboundSchema = AiConfigsMetricListingRepUnitAggregationType$inboundSchema;
36596
+ AiConfigsMetricListingRepUnitAggregationType$.outboundSchema = AiConfigsMetricListingRepUnitAggregationType$outboundSchema;
36597
+ })(AiConfigsMetricListingRepUnitAggregationType$ ||= {});
36598
+ AiConfigsMetricListingRepAnalysisType$inboundSchema = nativeEnumType(AiConfigsMetricListingRepAnalysisType);
36599
+ AiConfigsMetricListingRepAnalysisType$outboundSchema = AiConfigsMetricListingRepAnalysisType$inboundSchema;
36600
+ ((AiConfigsMetricListingRepAnalysisType$) => {
36601
+ AiConfigsMetricListingRepAnalysisType$.inboundSchema = AiConfigsMetricListingRepAnalysisType$inboundSchema;
36602
+ AiConfigsMetricListingRepAnalysisType$.outboundSchema = AiConfigsMetricListingRepAnalysisType$outboundSchema;
36603
+ })(AiConfigsMetricListingRepAnalysisType$ ||= {});
36604
+ AiConfigsMetricListingRep$inboundSchema = objectType({
36605
+ experimentCount: numberType().int().optional(),
36606
+ metricGroupCount: numberType().int().optional(),
36607
+ guardedRolloutCount: numberType().int().optional(),
36608
+ _id: stringType(),
36609
+ _versionId: stringType(),
36610
+ key: stringType(),
36611
+ name: stringType(),
36612
+ kind: AiConfigsMetricListingRepKind$inboundSchema,
36613
+ _attachedFlagCount: numberType().int().optional(),
36614
+ _links: recordType(AiConfigsLink$inboundSchema),
36615
+ _site: AiConfigsLink$inboundSchema.optional(),
36616
+ _access: AiConfigsAccess$inboundSchema.optional(),
36617
+ tags: arrayType(stringType()),
36618
+ _creationDate: numberType().int(),
36619
+ lastModified: AiConfigsModification$inboundSchema.optional(),
36620
+ maintainerId: stringType().optional(),
36621
+ _maintainer: AiConfigsMemberSummary$inboundSchema.optional(),
36622
+ description: stringType().optional(),
36623
+ category: stringType().optional(),
36624
+ isNumeric: booleanType().optional(),
36625
+ successCriteria: AiConfigsMetricListingRepSuccessCriteria$inboundSchema.optional(),
36626
+ unit: stringType().optional(),
36627
+ eventKey: stringType().optional(),
36628
+ randomizationUnits: arrayType(stringType()).optional(),
36629
+ filters: AiConfigsFilter$inboundSchema.optional(),
36630
+ unitAggregationType: AiConfigsMetricListingRepUnitAggregationType$inboundSchema.optional(),
36631
+ analysisType: AiConfigsMetricListingRepAnalysisType$inboundSchema.optional(),
36632
+ percentileValue: numberType().int().optional(),
36633
+ eventDefault: AiConfigsMetricEventDefaultRep$inboundSchema.optional()
36634
+ }).transform((v2) => {
36635
+ return remap(v2, {
36636
+ _id: "id",
36637
+ _versionId: "versionId",
36638
+ _attachedFlagCount: "attachedFlagCount",
36639
+ _links: "links",
36640
+ _site: "site",
36641
+ _access: "access",
36642
+ _creationDate: "creationDate",
36643
+ _maintainer: "maintainer"
36644
+ });
36645
+ });
36646
+ AiConfigsMetricListingRep$outboundSchema = objectType({
36647
+ experimentCount: numberType().int().optional(),
36648
+ metricGroupCount: numberType().int().optional(),
36649
+ guardedRolloutCount: numberType().int().optional(),
36650
+ id: stringType(),
36651
+ versionId: stringType(),
36652
+ key: stringType(),
36653
+ name: stringType(),
36654
+ kind: AiConfigsMetricListingRepKind$outboundSchema,
36655
+ attachedFlagCount: numberType().int().optional(),
36656
+ links: recordType(AiConfigsLink$outboundSchema),
36657
+ site: AiConfigsLink$outboundSchema.optional(),
36658
+ access: AiConfigsAccess$outboundSchema.optional(),
36659
+ tags: arrayType(stringType()),
36660
+ creationDate: numberType().int(),
36661
+ lastModified: AiConfigsModification$outboundSchema.optional(),
36662
+ maintainerId: stringType().optional(),
36663
+ maintainer: AiConfigsMemberSummary$outboundSchema.optional(),
36664
+ description: stringType().optional(),
36665
+ category: stringType().optional(),
36666
+ isNumeric: booleanType().optional(),
36667
+ successCriteria: AiConfigsMetricListingRepSuccessCriteria$outboundSchema.optional(),
36668
+ unit: stringType().optional(),
36669
+ eventKey: stringType().optional(),
36670
+ randomizationUnits: arrayType(stringType()).optional(),
36671
+ filters: AiConfigsFilter$outboundSchema.optional(),
36672
+ unitAggregationType: AiConfigsMetricListingRepUnitAggregationType$outboundSchema.optional(),
36673
+ analysisType: AiConfigsMetricListingRepAnalysisType$outboundSchema.optional(),
36674
+ percentileValue: numberType().int().optional(),
36675
+ eventDefault: AiConfigsMetricEventDefaultRep$outboundSchema.optional()
36676
+ }).transform((v2) => {
36677
+ return remap(v2, {
36678
+ id: "_id",
36679
+ versionId: "_versionId",
36680
+ attachedFlagCount: "_attachedFlagCount",
36681
+ links: "_links",
36682
+ site: "_site",
36683
+ access: "_access",
36684
+ creationDate: "_creationDate",
36685
+ maintainer: "_maintainer"
36686
+ });
36687
+ });
36688
+ ((AiConfigsMetricListingRep$) => {
36689
+ AiConfigsMetricListingRep$.inboundSchema = AiConfigsMetricListingRep$inboundSchema;
36690
+ AiConfigsMetricListingRep$.outboundSchema = AiConfigsMetricListingRep$outboundSchema;
36691
+ })(AiConfigsMetricListingRep$ ||= {});
36692
+ });
36693
+
36694
+ // src/models/components/aiconfigslegacyexperimentrep.ts
36695
+ var AiConfigsLegacyExperimentRep$inboundSchema, AiConfigsLegacyExperimentRep$outboundSchema, AiConfigsLegacyExperimentRep$;
36696
+ var init_aiconfigslegacyexperimentrep = __esm(() => {
36697
+ init_esm();
36698
+ init_primitives();
36699
+ init_aiconfigsexperimentenvironmentsettingrep();
36700
+ init_aiconfigsmetriclistingrep();
36701
+ AiConfigsLegacyExperimentRep$inboundSchema = objectType({
36702
+ metricKey: stringType().optional(),
36703
+ _metric: AiConfigsMetricListingRep$inboundSchema.optional(),
36704
+ environments: arrayType(stringType()).optional(),
36705
+ _environmentSettings: recordType(AiConfigsExperimentEnvironmentSettingRep$inboundSchema).optional()
36706
+ }).transform((v2) => {
36707
+ return remap(v2, {
36708
+ _metric: "metric",
36709
+ _environmentSettings: "environmentSettings"
36710
+ });
36711
+ });
36712
+ AiConfigsLegacyExperimentRep$outboundSchema = objectType({
36713
+ metricKey: stringType().optional(),
36714
+ metric: AiConfigsMetricListingRep$outboundSchema.optional(),
36715
+ environments: arrayType(stringType()).optional(),
36716
+ environmentSettings: recordType(AiConfigsExperimentEnvironmentSettingRep$outboundSchema).optional()
36717
+ }).transform((v2) => {
36718
+ return remap(v2, {
36719
+ metric: "_metric",
36720
+ environmentSettings: "_environmentSettings"
36721
+ });
36722
+ });
36723
+ ((AiConfigsLegacyExperimentRep$) => {
36724
+ AiConfigsLegacyExperimentRep$.inboundSchema = AiConfigsLegacyExperimentRep$inboundSchema;
36725
+ AiConfigsLegacyExperimentRep$.outboundSchema = AiConfigsLegacyExperimentRep$outboundSchema;
36726
+ })(AiConfigsLegacyExperimentRep$ ||= {});
36727
+ });
36728
+
36729
+ // src/models/components/aiconfigsexperimentinforep.ts
36730
+ var AiConfigsExperimentInfoRep$inboundSchema, AiConfigsExperimentInfoRep$outboundSchema, AiConfigsExperimentInfoRep$;
36731
+ var init_aiconfigsexperimentinforep = __esm(() => {
36732
+ init_esm();
36733
+ init_aiconfigslegacyexperimentrep();
36734
+ AiConfigsExperimentInfoRep$inboundSchema = objectType({
36735
+ baselineIdx: numberType().int(),
36736
+ items: arrayType(AiConfigsLegacyExperimentRep$inboundSchema)
36737
+ });
36738
+ AiConfigsExperimentInfoRep$outboundSchema = objectType({
36739
+ baselineIdx: numberType().int(),
36740
+ items: arrayType(AiConfigsLegacyExperimentRep$outboundSchema)
36741
+ });
36742
+ ((AiConfigsExperimentInfoRep$) => {
36743
+ AiConfigsExperimentInfoRep$.inboundSchema = AiConfigsExperimentInfoRep$inboundSchema;
36744
+ AiConfigsExperimentInfoRep$.outboundSchema = AiConfigsExperimentInfoRep$outboundSchema;
36745
+ })(AiConfigsExperimentInfoRep$ ||= {});
36746
+ });
36747
+
36748
+ // src/models/components/aiconfigtargetingdefaults.ts
36749
+ var AIConfigTargetingDefaults$inboundSchema, AIConfigTargetingDefaults$outboundSchema, AIConfigTargetingDefaults$;
36750
+ var init_aiconfigtargetingdefaults = __esm(() => {
36751
+ init_esm();
36752
+ AIConfigTargetingDefaults$inboundSchema = objectType({
36753
+ onVariation: numberType().int(),
36754
+ offVariation: numberType().int()
36755
+ });
36756
+ AIConfigTargetingDefaults$outboundSchema = objectType({
36757
+ onVariation: numberType().int(),
36758
+ offVariation: numberType().int()
36759
+ });
36760
+ ((AIConfigTargetingDefaults$) => {
36761
+ AIConfigTargetingDefaults$.inboundSchema = AIConfigTargetingDefaults$inboundSchema;
36762
+ AIConfigTargetingDefaults$.outboundSchema = AIConfigTargetingDefaults$outboundSchema;
36763
+ })(AIConfigTargetingDefaults$ ||= {});
36764
+ });
36765
+
36766
+ // src/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.ts
36767
+ var AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$inboundSchema, AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$outboundSchema, AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$;
36768
+ var init_aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation = __esm(() => {
36769
+ init_esm();
36770
+ AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$inboundSchema = objectType({
36771
+ canReshuffle: booleanType(),
36772
+ defaultVariation: numberType().int(),
36773
+ type: stringType()
36774
+ });
36775
+ AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$outboundSchema = objectType({
36776
+ canReshuffle: booleanType(),
36777
+ defaultVariation: numberType().int(),
36778
+ type: stringType()
36779
+ });
36780
+ ((AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$) => {
36781
+ AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$.inboundSchema = AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$inboundSchema;
36782
+ AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$.outboundSchema = AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$outboundSchema;
36783
+ })(AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$ ||= {});
36784
+ });
36785
+
36786
+ // src/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.ts
36787
+ var AIConfigTargetingEnvironmentFallthroughRolloutVariation$inboundSchema, AIConfigTargetingEnvironmentFallthroughRolloutVariation$outboundSchema, AIConfigTargetingEnvironmentFallthroughRolloutVariation$;
36788
+ var init_aiconfigtargetingenvironmentfallthroughrolloutvariation = __esm(() => {
36789
+ init_esm();
36790
+ init_primitives();
36791
+ AIConfigTargetingEnvironmentFallthroughRolloutVariation$inboundSchema = objectType({
36792
+ _untracked: booleanType().optional(),
36793
+ variation: numberType().int(),
36794
+ weight: numberType().int()
36795
+ }).transform((v2) => {
36796
+ return remap(v2, {
36797
+ _untracked: "untracked"
36798
+ });
36799
+ });
36800
+ AIConfigTargetingEnvironmentFallthroughRolloutVariation$outboundSchema = objectType({
36801
+ untracked: booleanType().optional(),
36802
+ variation: numberType().int(),
36803
+ weight: numberType().int()
36804
+ }).transform((v2) => {
36805
+ return remap(v2, {
36806
+ untracked: "_untracked"
36807
+ });
36808
+ });
36809
+ ((AIConfigTargetingEnvironmentFallthroughRolloutVariation$) => {
36810
+ AIConfigTargetingEnvironmentFallthroughRolloutVariation$.inboundSchema = AIConfigTargetingEnvironmentFallthroughRolloutVariation$inboundSchema;
36811
+ AIConfigTargetingEnvironmentFallthroughRolloutVariation$.outboundSchema = AIConfigTargetingEnvironmentFallthroughRolloutVariation$outboundSchema;
36812
+ })(AIConfigTargetingEnvironmentFallthroughRolloutVariation$ ||= {});
36813
+ });
36814
+
36815
+ // src/models/components/aiconfigtargetingenvironmentfallthroughrollout.ts
36816
+ var AIConfigTargetingEnvironmentFallthroughRollout$inboundSchema, AIConfigTargetingEnvironmentFallthroughRollout$outboundSchema, AIConfigTargetingEnvironmentFallthroughRollout$;
36817
+ var init_aiconfigtargetingenvironmentfallthroughrollout = __esm(() => {
36818
+ init_esm();
36819
+ init_aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation();
36820
+ init_aiconfigtargetingenvironmentfallthroughrolloutvariation();
36821
+ AIConfigTargetingEnvironmentFallthroughRollout$inboundSchema = objectType({
36822
+ bucketBy: stringType().optional(),
36823
+ contextKind: stringType(),
36824
+ experimentAllocation: AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$inboundSchema.optional(),
36825
+ seed: numberType().int().optional(),
36826
+ variations: arrayType(AIConfigTargetingEnvironmentFallthroughRolloutVariation$inboundSchema)
36827
+ });
36828
+ AIConfigTargetingEnvironmentFallthroughRollout$outboundSchema = objectType({
36829
+ bucketBy: stringType().optional(),
36830
+ contextKind: stringType(),
36831
+ experimentAllocation: AIConfigTargetingEnvironmentFallthroughRolloutExperimentationAllocation$outboundSchema.optional(),
36832
+ seed: numberType().int().optional(),
36833
+ variations: arrayType(AIConfigTargetingEnvironmentFallthroughRolloutVariation$outboundSchema)
36834
+ });
36835
+ ((AIConfigTargetingEnvironmentFallthroughRollout$) => {
36836
+ AIConfigTargetingEnvironmentFallthroughRollout$.inboundSchema = AIConfigTargetingEnvironmentFallthroughRollout$inboundSchema;
36837
+ AIConfigTargetingEnvironmentFallthroughRollout$.outboundSchema = AIConfigTargetingEnvironmentFallthroughRollout$outboundSchema;
36838
+ })(AIConfigTargetingEnvironmentFallthroughRollout$ ||= {});
36839
+ });
36840
+
36841
+ // src/models/components/aiconfigtargetingenvironmentfallthrough.ts
36842
+ var AIConfigTargetingEnvironmentFallthrough$inboundSchema, AIConfigTargetingEnvironmentFallthrough$outboundSchema, AIConfigTargetingEnvironmentFallthrough$;
36843
+ var init_aiconfigtargetingenvironmentfallthrough = __esm(() => {
36844
+ init_esm();
36845
+ init_aiconfigtargetingenvironmentfallthroughrollout();
36846
+ AIConfigTargetingEnvironmentFallthrough$inboundSchema = objectType({
36847
+ variation: numberType().int().optional(),
36848
+ rollout: AIConfigTargetingEnvironmentFallthroughRollout$inboundSchema.optional()
36849
+ });
36850
+ AIConfigTargetingEnvironmentFallthrough$outboundSchema = objectType({
36851
+ variation: numberType().int().optional(),
36852
+ rollout: AIConfigTargetingEnvironmentFallthroughRollout$outboundSchema.optional()
36853
+ });
36854
+ ((AIConfigTargetingEnvironmentFallthrough$) => {
36855
+ AIConfigTargetingEnvironmentFallthrough$.inboundSchema = AIConfigTargetingEnvironmentFallthrough$inboundSchema;
36856
+ AIConfigTargetingEnvironmentFallthrough$.outboundSchema = AIConfigTargetingEnvironmentFallthrough$outboundSchema;
36857
+ })(AIConfigTargetingEnvironmentFallthrough$ ||= {});
36858
+ });
36859
+
36860
+ // src/models/components/aiconfigtargetingenvironmentruleclause.ts
36861
+ var AIConfigTargetingEnvironmentRuleClause$inboundSchema, AIConfigTargetingEnvironmentRuleClause$outboundSchema, AIConfigTargetingEnvironmentRuleClause$;
36862
+ var init_aiconfigtargetingenvironmentruleclause = __esm(() => {
36863
+ init_esm();
36864
+ AIConfigTargetingEnvironmentRuleClause$inboundSchema = objectType({
36865
+ attribute: stringType(),
36866
+ id: stringType(),
36867
+ negate: booleanType(),
36868
+ op: stringType(),
36869
+ values: arrayType(anyType())
36870
+ });
36871
+ AIConfigTargetingEnvironmentRuleClause$outboundSchema = objectType({
36872
+ attribute: stringType(),
36873
+ id: stringType(),
36874
+ negate: booleanType(),
36875
+ op: stringType(),
36876
+ values: arrayType(anyType())
36877
+ });
36878
+ ((AIConfigTargetingEnvironmentRuleClause$) => {
36879
+ AIConfigTargetingEnvironmentRuleClause$.inboundSchema = AIConfigTargetingEnvironmentRuleClause$inboundSchema;
36880
+ AIConfigTargetingEnvironmentRuleClause$.outboundSchema = AIConfigTargetingEnvironmentRuleClause$outboundSchema;
36881
+ })(AIConfigTargetingEnvironmentRuleClause$ ||= {});
36882
+ });
36883
+
36884
+ // src/models/components/aiconfigtargetingenvironmentrule.ts
36885
+ var AIConfigTargetingEnvironmentRule$inboundSchema, AIConfigTargetingEnvironmentRule$outboundSchema, AIConfigTargetingEnvironmentRule$;
36886
+ var init_aiconfigtargetingenvironmentrule = __esm(() => {
36887
+ init_esm();
36888
+ init_aiconfigtargetingenvironmentruleclause();
36889
+ AIConfigTargetingEnvironmentRule$inboundSchema = objectType({
36890
+ clauses: arrayType(AIConfigTargetingEnvironmentRuleClause$inboundSchema),
36891
+ trackEvents: booleanType()
36892
+ });
36893
+ AIConfigTargetingEnvironmentRule$outboundSchema = objectType({
36894
+ clauses: arrayType(AIConfigTargetingEnvironmentRuleClause$outboundSchema),
36895
+ trackEvents: booleanType()
36896
+ });
36897
+ ((AIConfigTargetingEnvironmentRule$) => {
36898
+ AIConfigTargetingEnvironmentRule$.inboundSchema = AIConfigTargetingEnvironmentRule$inboundSchema;
36899
+ AIConfigTargetingEnvironmentRule$.outboundSchema = AIConfigTargetingEnvironmentRule$outboundSchema;
36900
+ })(AIConfigTargetingEnvironmentRule$ ||= {});
36901
+ });
36902
+
36903
+ // src/models/components/aiconfigtargetingenvironmenttarget.ts
36904
+ var AIConfigTargetingEnvironmentTarget$inboundSchema, AIConfigTargetingEnvironmentTarget$outboundSchema, AIConfigTargetingEnvironmentTarget$;
36905
+ var init_aiconfigtargetingenvironmenttarget = __esm(() => {
36906
+ init_esm();
36907
+ AIConfigTargetingEnvironmentTarget$inboundSchema = objectType({
36908
+ contextKind: stringType(),
36909
+ values: arrayType(stringType()),
36910
+ variation: numberType().int()
36911
+ });
36912
+ AIConfigTargetingEnvironmentTarget$outboundSchema = objectType({
36913
+ contextKind: stringType(),
36914
+ values: arrayType(stringType()),
36915
+ variation: numberType().int()
36916
+ });
36917
+ ((AIConfigTargetingEnvironmentTarget$) => {
36918
+ AIConfigTargetingEnvironmentTarget$.inboundSchema = AIConfigTargetingEnvironmentTarget$inboundSchema;
36919
+ AIConfigTargetingEnvironmentTarget$.outboundSchema = AIConfigTargetingEnvironmentTarget$outboundSchema;
36920
+ })(AIConfigTargetingEnvironmentTarget$ ||= {});
36921
+ });
36922
+
36923
+ // src/models/components/aiconfigtargetingenvironment.ts
36924
+ var AIConfigTargetingEnvironment$inboundSchema, AIConfigTargetingEnvironment$outboundSchema, AIConfigTargetingEnvironment$;
36925
+ var init_aiconfigtargetingenvironment = __esm(() => {
36926
+ init_esm();
36927
+ init_primitives();
36928
+ init_aiconfigtargetingenvironmentfallthrough();
36929
+ init_aiconfigtargetingenvironmentrule();
36930
+ init_aiconfigtargetingenvironmenttarget();
36931
+ AIConfigTargetingEnvironment$inboundSchema = objectType({
36932
+ contextTargets: arrayType(AIConfigTargetingEnvironmentTarget$inboundSchema),
36933
+ enabled: booleanType(),
36934
+ fallthrough: AIConfigTargetingEnvironmentFallthrough$inboundSchema,
36935
+ lastModified: numberType().int(),
36936
+ offVariation: numberType().int().optional(),
36937
+ rules: arrayType(AIConfigTargetingEnvironmentRule$inboundSchema),
36938
+ targets: arrayType(AIConfigTargetingEnvironmentTarget$inboundSchema),
36939
+ trackEvents: booleanType(),
36940
+ trackEventsFallthrough: booleanType(),
36941
+ _environmentName: stringType(),
36942
+ _version: numberType().int()
36943
+ }).transform((v2) => {
36944
+ return remap(v2, {
36945
+ _environmentName: "environmentName",
36946
+ _version: "version"
36947
+ });
36948
+ });
36949
+ AIConfigTargetingEnvironment$outboundSchema = objectType({
36950
+ contextTargets: arrayType(AIConfigTargetingEnvironmentTarget$outboundSchema),
36951
+ enabled: booleanType(),
36952
+ fallthrough: AIConfigTargetingEnvironmentFallthrough$outboundSchema,
36953
+ lastModified: numberType().int(),
36954
+ offVariation: numberType().int().optional(),
36955
+ rules: arrayType(AIConfigTargetingEnvironmentRule$outboundSchema),
36956
+ targets: arrayType(AIConfigTargetingEnvironmentTarget$outboundSchema),
36957
+ trackEvents: booleanType(),
36958
+ trackEventsFallthrough: booleanType(),
36959
+ environmentName: stringType(),
36960
+ version: numberType().int()
36961
+ }).transform((v2) => {
36962
+ return remap(v2, {
36963
+ environmentName: "_environmentName",
36964
+ version: "_version"
36965
+ });
36966
+ });
36967
+ ((AIConfigTargetingEnvironment$) => {
36968
+ AIConfigTargetingEnvironment$.inboundSchema = AIConfigTargetingEnvironment$inboundSchema;
36969
+ AIConfigTargetingEnvironment$.outboundSchema = AIConfigTargetingEnvironment$outboundSchema;
36970
+ })(AIConfigTargetingEnvironment$ ||= {});
36971
+ });
36972
+
36973
+ // src/models/components/aiconfigtargetingvariationjson.ts
36974
+ var AIConfigTargetingVariationJSON$inboundSchema, AIConfigTargetingVariationJSON$outboundSchema, AIConfigTargetingVariationJSON$;
36975
+ var init_aiconfigtargetingvariationjson = __esm(() => {
36976
+ init_esm();
36977
+ AIConfigTargetingVariationJSON$inboundSchema = objectType({});
36978
+ AIConfigTargetingVariationJSON$outboundSchema = objectType({});
36979
+ ((AIConfigTargetingVariationJSON$) => {
36980
+ AIConfigTargetingVariationJSON$.inboundSchema = AIConfigTargetingVariationJSON$inboundSchema;
36981
+ AIConfigTargetingVariationJSON$.outboundSchema = AIConfigTargetingVariationJSON$outboundSchema;
36982
+ })(AIConfigTargetingVariationJSON$ ||= {});
36983
+ });
36984
+
36985
+ // src/models/components/aiconfigtargetingvariationvalue.ts
36986
+ var AIConfigTargetingVariationValue$inboundSchema, AIConfigTargetingVariationValue$outboundSchema, AIConfigTargetingVariationValue$;
36987
+ var init_aiconfigtargetingvariationvalue = __esm(() => {
36988
+ init_esm();
36989
+ init_aiconfigtargetingvariationjson();
36990
+ AIConfigTargetingVariationValue$inboundSchema = unionType([
36991
+ AIConfigTargetingVariationJSON$inboundSchema,
36992
+ booleanType(),
36993
+ numberType(),
36994
+ stringType()
36995
+ ]);
36996
+ AIConfigTargetingVariationValue$outboundSchema = unionType([
36997
+ AIConfigTargetingVariationJSON$outboundSchema,
36998
+ booleanType(),
36999
+ numberType(),
37000
+ stringType()
37001
+ ]);
37002
+ ((AIConfigTargetingVariationValue$) => {
37003
+ AIConfigTargetingVariationValue$.inboundSchema = AIConfigTargetingVariationValue$inboundSchema;
37004
+ AIConfigTargetingVariationValue$.outboundSchema = AIConfigTargetingVariationValue$outboundSchema;
37005
+ })(AIConfigTargetingVariationValue$ ||= {});
37006
+ });
37007
+
37008
+ // src/models/components/aiconfigtargetingvariation.ts
37009
+ var AIConfigTargetingVariation$inboundSchema, AIConfigTargetingVariation$outboundSchema, AIConfigTargetingVariation$;
37010
+ var init_aiconfigtargetingvariation = __esm(() => {
37011
+ init_esm();
37012
+ init_primitives();
37013
+ init_aiconfigtargetingvariationvalue();
37014
+ AIConfigTargetingVariation$inboundSchema = objectType({
37015
+ _id: stringType(),
37016
+ description: stringType(),
37017
+ name: stringType(),
37018
+ value: AIConfigTargetingVariationValue$inboundSchema
37019
+ }).transform((v2) => {
37020
+ return remap(v2, {
37021
+ _id: "id"
37022
+ });
37023
+ });
37024
+ AIConfigTargetingVariation$outboundSchema = objectType({
37025
+ id: stringType(),
37026
+ description: stringType(),
37027
+ name: stringType(),
37028
+ value: AIConfigTargetingVariationValue$outboundSchema
37029
+ }).transform((v2) => {
37030
+ return remap(v2, {
37031
+ id: "_id"
37032
+ });
36257
37033
  });
36258
- ((PaginatedLinks$) => {
36259
- PaginatedLinks$.inboundSchema = PaginatedLinks$inboundSchema;
36260
- PaginatedLinks$.outboundSchema = PaginatedLinks$outboundSchema;
36261
- })(PaginatedLinks$ ||= {});
37034
+ ((AIConfigTargetingVariation$) => {
37035
+ AIConfigTargetingVariation$.inboundSchema = AIConfigTargetingVariation$inboundSchema;
37036
+ AIConfigTargetingVariation$.outboundSchema = AIConfigTargetingVariation$outboundSchema;
37037
+ })(AIConfigTargetingVariation$ ||= {});
36262
37038
  });
36263
37039
 
36264
- // src/models/components/aiconfigs.ts
36265
- var AIConfigs$inboundSchema, AIConfigs$outboundSchema, AIConfigs$;
36266
- var init_aiconfigs = __esm(() => {
37040
+ // src/models/components/aiconfigtargeting.ts
37041
+ var AIConfigTargeting$inboundSchema, AIConfigTargeting$outboundSchema, AIConfigTargeting$;
37042
+ var init_aiconfigtargeting = __esm(() => {
36267
37043
  init_esm();
36268
37044
  init_primitives();
36269
- init_aiconfig();
36270
- init_paginatedlinks();
36271
- AIConfigs$inboundSchema = objectType({
36272
- _links: PaginatedLinks$inboundSchema.optional(),
36273
- items: arrayType(AIConfig$inboundSchema),
36274
- totalCount: numberType().int()
37045
+ init_aiconfigsexperimentinforep();
37046
+ init_aiconfigtargetingdefaults();
37047
+ init_aiconfigtargetingenvironment();
37048
+ init_aiconfigtargetingvariation();
37049
+ AIConfigTargeting$inboundSchema = objectType({
37050
+ createdAt: numberType().int(),
37051
+ defaults: AIConfigTargetingDefaults$inboundSchema.optional(),
37052
+ environments: recordType(AIConfigTargetingEnvironment$inboundSchema),
37053
+ experiments: AiConfigsExperimentInfoRep$inboundSchema,
37054
+ key: stringType(),
37055
+ name: stringType(),
37056
+ tags: arrayType(stringType()),
37057
+ variations: arrayType(AIConfigTargetingVariation$inboundSchema),
37058
+ _version: numberType().int()
36275
37059
  }).transform((v2) => {
36276
37060
  return remap(v2, {
36277
- _links: "links"
37061
+ _version: "version"
36278
37062
  });
36279
37063
  });
36280
- AIConfigs$outboundSchema = objectType({
36281
- links: PaginatedLinks$outboundSchema.optional(),
36282
- items: arrayType(AIConfig$outboundSchema),
36283
- totalCount: numberType().int()
37064
+ AIConfigTargeting$outboundSchema = objectType({
37065
+ createdAt: numberType().int(),
37066
+ defaults: AIConfigTargetingDefaults$outboundSchema.optional(),
37067
+ environments: recordType(AIConfigTargetingEnvironment$outboundSchema),
37068
+ experiments: AiConfigsExperimentInfoRep$outboundSchema,
37069
+ key: stringType(),
37070
+ name: stringType(),
37071
+ tags: arrayType(stringType()),
37072
+ variations: arrayType(AIConfigTargetingVariation$outboundSchema),
37073
+ version: numberType().int()
36284
37074
  }).transform((v2) => {
36285
37075
  return remap(v2, {
36286
- links: "_links"
37076
+ version: "_version"
36287
37077
  });
36288
37078
  });
36289
- ((AIConfigs$) => {
36290
- AIConfigs$.inboundSchema = AIConfigs$inboundSchema;
36291
- AIConfigs$.outboundSchema = AIConfigs$outboundSchema;
36292
- })(AIConfigs$ ||= {});
37079
+ ((AIConfigTargeting$) => {
37080
+ AIConfigTargeting$.inboundSchema = AIConfigTargeting$inboundSchema;
37081
+ AIConfigTargeting$.outboundSchema = AIConfigTargeting$outboundSchema;
37082
+ })(AIConfigTargeting$ ||= {});
37083
+ });
37084
+
37085
+ // src/models/components/aiconfigtargetingpatch.ts
37086
+ var AIConfigTargetingPatch$inboundSchema, AIConfigTargetingPatch$outboundSchema, AIConfigTargetingPatch$;
37087
+ var init_aiconfigtargetingpatch = __esm(() => {
37088
+ init_esm();
37089
+ AIConfigTargetingPatch$inboundSchema = objectType({
37090
+ comment: stringType().optional(),
37091
+ environmentKey: stringType(),
37092
+ instructions: arrayType(recordType(anyType()))
37093
+ });
37094
+ AIConfigTargetingPatch$outboundSchema = objectType({
37095
+ comment: stringType().optional(),
37096
+ environmentKey: stringType(),
37097
+ instructions: arrayType(recordType(anyType()))
37098
+ });
37099
+ ((AIConfigTargetingPatch$) => {
37100
+ AIConfigTargetingPatch$.inboundSchema = AIConfigTargetingPatch$inboundSchema;
37101
+ AIConfigTargetingPatch$.outboundSchema = AIConfigTargetingPatch$outboundSchema;
37102
+ })(AIConfigTargetingPatch$ ||= {});
36293
37103
  });
36294
37104
 
36295
37105
  // src/models/components/aiconfigvariationpatch.ts
@@ -36304,22 +37114,26 @@ var init_aiconfigvariationpatch = __esm(() => {
36304
37114
  AIConfigVariationPatchModel$.outboundSchema = AIConfigVariationPatchModel$outboundSchema;
36305
37115
  })(AIConfigVariationPatchModel$ ||= {});
36306
37116
  AIConfigVariationPatch$inboundSchema = objectType({
37117
+ comment: stringType().optional(),
37118
+ description: stringType().optional(),
37119
+ instructions: stringType().optional(),
36307
37120
  messages: arrayType(Message$inboundSchema).optional(),
36308
37121
  model: lazyType(() => AIConfigVariationPatchModel$inboundSchema).optional(),
36309
37122
  modelConfigKey: stringType().optional(),
36310
37123
  name: stringType().optional(),
36311
37124
  published: booleanType().optional(),
36312
- state: stringType().optional(),
36313
- comment: stringType().optional()
37125
+ state: stringType().optional()
36314
37126
  });
36315
37127
  AIConfigVariationPatch$outboundSchema = objectType({
37128
+ comment: stringType().optional(),
37129
+ description: stringType().optional(),
37130
+ instructions: stringType().optional(),
36316
37131
  messages: arrayType(Message$outboundSchema).optional(),
36317
37132
  model: lazyType(() => AIConfigVariationPatchModel$outboundSchema).optional(),
36318
37133
  modelConfigKey: stringType().optional(),
36319
37134
  name: stringType().optional(),
36320
37135
  published: booleanType().optional(),
36321
- state: stringType().optional(),
36322
- comment: stringType().optional()
37136
+ state: stringType().optional()
36323
37137
  });
36324
37138
  ((AIConfigVariationPatch$) => {
36325
37139
  AIConfigVariationPatch$.inboundSchema = AIConfigVariationPatch$inboundSchema;
@@ -36339,20 +37153,24 @@ var init_aiconfigvariationpost = __esm(() => {
36339
37153
  AIConfigVariationPostModel$.outboundSchema = AIConfigVariationPostModel$outboundSchema;
36340
37154
  })(AIConfigVariationPostModel$ ||= {});
36341
37155
  AIConfigVariationPost$inboundSchema = objectType({
37156
+ comment: stringType().optional(),
37157
+ description: stringType().optional(),
37158
+ instructions: stringType().optional(),
36342
37159
  key: stringType(),
36343
37160
  messages: arrayType(Message$inboundSchema),
36344
- model: lazyType(() => AIConfigVariationPostModel$inboundSchema),
37161
+ model: lazyType(() => AIConfigVariationPostModel$inboundSchema).optional(),
36345
37162
  name: stringType(),
36346
- modelConfigKey: stringType().optional(),
36347
- comment: stringType().optional()
37163
+ modelConfigKey: stringType().optional()
36348
37164
  });
36349
37165
  AIConfigVariationPost$outboundSchema = objectType({
37166
+ comment: stringType().optional(),
37167
+ description: stringType().optional(),
37168
+ instructions: stringType().optional(),
36350
37169
  key: stringType(),
36351
37170
  messages: arrayType(Message$outboundSchema),
36352
- model: lazyType(() => AIConfigVariationPostModel$outboundSchema),
37171
+ model: lazyType(() => AIConfigVariationPostModel$outboundSchema).optional(),
36353
37172
  name: stringType(),
36354
- modelConfigKey: stringType().optional(),
36355
- comment: stringType().optional()
37173
+ modelConfigKey: stringType().optional()
36356
37174
  });
36357
37175
  ((AIConfigVariationPost$) => {
36358
37176
  AIConfigVariationPost$.inboundSchema = AIConfigVariationPost$inboundSchema;
@@ -36544,22 +37362,22 @@ var init_experimentenvironmentsettingrep = __esm(() => {
36544
37362
  });
36545
37363
 
36546
37364
  // src/models/components/filter.ts
36547
- var Type, Type$inboundSchema, Type$outboundSchema, Type$, Filter$inboundSchema, Filter$outboundSchema, Filter$;
37365
+ var FilterType, FilterType$inboundSchema, FilterType$outboundSchema, FilterType$, Filter$inboundSchema, Filter$outboundSchema, Filter$;
36548
37366
  var init_filter = __esm(() => {
36549
37367
  init_esm();
36550
- Type = {
37368
+ FilterType = {
36551
37369
  Group: "group",
36552
37370
  ContextAttribute: "contextAttribute",
36553
37371
  EventProperty: "eventProperty"
36554
37372
  };
36555
- Type$inboundSchema = nativeEnumType(Type);
36556
- Type$outboundSchema = Type$inboundSchema;
36557
- ((Type$) => {
36558
- Type$.inboundSchema = Type$inboundSchema;
36559
- Type$.outboundSchema = Type$outboundSchema;
36560
- })(Type$ ||= {});
37373
+ FilterType$inboundSchema = nativeEnumType(FilterType);
37374
+ FilterType$outboundSchema = FilterType$inboundSchema;
37375
+ ((FilterType$) => {
37376
+ FilterType$.inboundSchema = FilterType$inboundSchema;
37377
+ FilterType$.outboundSchema = FilterType$outboundSchema;
37378
+ })(FilterType$ ||= {});
36561
37379
  Filter$inboundSchema = objectType({
36562
- type: Type$inboundSchema,
37380
+ type: FilterType$inboundSchema,
36563
37381
  attribute: stringType().optional(),
36564
37382
  op: stringType(),
36565
37383
  values: arrayType(anyType()),
@@ -36567,7 +37385,7 @@ var init_filter = __esm(() => {
36567
37385
  negate: booleanType()
36568
37386
  });
36569
37387
  Filter$outboundSchema = objectType({
36570
- type: Type$outboundSchema,
37388
+ type: FilterType$outboundSchema,
36571
37389
  attribute: stringType().optional(),
36572
37390
  op: stringType(),
36573
37391
  values: arrayType(anyType()),
@@ -36671,7 +37489,7 @@ var init_modification = __esm(() => {
36671
37489
  });
36672
37490
 
36673
37491
  // src/models/components/metriclistingrep.ts
36674
- var MetricListingRepKind, SuccessCriteria, UnitAggregationType, AnalysisType, MetricListingRepKind$inboundSchema, MetricListingRepKind$outboundSchema, MetricListingRepKind$, SuccessCriteria$inboundSchema, SuccessCriteria$outboundSchema, SuccessCriteria$, UnitAggregationType$inboundSchema, UnitAggregationType$outboundSchema, UnitAggregationType$, AnalysisType$inboundSchema, AnalysisType$outboundSchema, AnalysisType$, MetricListingRep$inboundSchema, MetricListingRep$outboundSchema, MetricListingRep$;
37492
+ var MetricListingRepKind, MetricListingRepSuccessCriteria, MetricListingRepUnitAggregationType, MetricListingRepAnalysisType, MetricListingRepKind$inboundSchema, MetricListingRepKind$outboundSchema, MetricListingRepKind$, MetricListingRepSuccessCriteria$inboundSchema, MetricListingRepSuccessCriteria$outboundSchema, MetricListingRepSuccessCriteria$, MetricListingRepUnitAggregationType$inboundSchema, MetricListingRepUnitAggregationType$outboundSchema, MetricListingRepUnitAggregationType$, MetricListingRepAnalysisType$inboundSchema, MetricListingRepAnalysisType$outboundSchema, MetricListingRepAnalysisType$, MetricListingRep$inboundSchema, MetricListingRep$outboundSchema, MetricListingRep$;
36675
37493
  var init_metriclistingrep = __esm(() => {
36676
37494
  init_esm();
36677
37495
  init_primitives();
@@ -36686,15 +37504,15 @@ var init_metriclistingrep = __esm(() => {
36686
37504
  Click: "click",
36687
37505
  Custom: "custom"
36688
37506
  };
36689
- SuccessCriteria = {
37507
+ MetricListingRepSuccessCriteria = {
36690
37508
  HigherThanBaseline: "HigherThanBaseline",
36691
37509
  LowerThanBaseline: "LowerThanBaseline"
36692
37510
  };
36693
- UnitAggregationType = {
37511
+ MetricListingRepUnitAggregationType = {
36694
37512
  Average: "average",
36695
37513
  Sum: "sum"
36696
37514
  };
36697
- AnalysisType = {
37515
+ MetricListingRepAnalysisType = {
36698
37516
  Mean: "mean",
36699
37517
  Percentile: "percentile"
36700
37518
  };
@@ -36704,24 +37522,24 @@ var init_metriclistingrep = __esm(() => {
36704
37522
  MetricListingRepKind$.inboundSchema = MetricListingRepKind$inboundSchema;
36705
37523
  MetricListingRepKind$.outboundSchema = MetricListingRepKind$outboundSchema;
36706
37524
  })(MetricListingRepKind$ ||= {});
36707
- SuccessCriteria$inboundSchema = nativeEnumType(SuccessCriteria);
36708
- SuccessCriteria$outboundSchema = SuccessCriteria$inboundSchema;
36709
- ((SuccessCriteria$) => {
36710
- SuccessCriteria$.inboundSchema = SuccessCriteria$inboundSchema;
36711
- SuccessCriteria$.outboundSchema = SuccessCriteria$outboundSchema;
36712
- })(SuccessCriteria$ ||= {});
36713
- UnitAggregationType$inboundSchema = nativeEnumType(UnitAggregationType);
36714
- UnitAggregationType$outboundSchema = UnitAggregationType$inboundSchema;
36715
- ((UnitAggregationType$) => {
36716
- UnitAggregationType$.inboundSchema = UnitAggregationType$inboundSchema;
36717
- UnitAggregationType$.outboundSchema = UnitAggregationType$outboundSchema;
36718
- })(UnitAggregationType$ ||= {});
36719
- AnalysisType$inboundSchema = nativeEnumType(AnalysisType);
36720
- AnalysisType$outboundSchema = AnalysisType$inboundSchema;
36721
- ((AnalysisType$) => {
36722
- AnalysisType$.inboundSchema = AnalysisType$inboundSchema;
36723
- AnalysisType$.outboundSchema = AnalysisType$outboundSchema;
36724
- })(AnalysisType$ ||= {});
37525
+ MetricListingRepSuccessCriteria$inboundSchema = nativeEnumType(MetricListingRepSuccessCriteria);
37526
+ MetricListingRepSuccessCriteria$outboundSchema = MetricListingRepSuccessCriteria$inboundSchema;
37527
+ ((MetricListingRepSuccessCriteria$) => {
37528
+ MetricListingRepSuccessCriteria$.inboundSchema = MetricListingRepSuccessCriteria$inboundSchema;
37529
+ MetricListingRepSuccessCriteria$.outboundSchema = MetricListingRepSuccessCriteria$outboundSchema;
37530
+ })(MetricListingRepSuccessCriteria$ ||= {});
37531
+ MetricListingRepUnitAggregationType$inboundSchema = nativeEnumType(MetricListingRepUnitAggregationType);
37532
+ MetricListingRepUnitAggregationType$outboundSchema = MetricListingRepUnitAggregationType$inboundSchema;
37533
+ ((MetricListingRepUnitAggregationType$) => {
37534
+ MetricListingRepUnitAggregationType$.inboundSchema = MetricListingRepUnitAggregationType$inboundSchema;
37535
+ MetricListingRepUnitAggregationType$.outboundSchema = MetricListingRepUnitAggregationType$outboundSchema;
37536
+ })(MetricListingRepUnitAggregationType$ ||= {});
37537
+ MetricListingRepAnalysisType$inboundSchema = nativeEnumType(MetricListingRepAnalysisType);
37538
+ MetricListingRepAnalysisType$outboundSchema = MetricListingRepAnalysisType$inboundSchema;
37539
+ ((MetricListingRepAnalysisType$) => {
37540
+ MetricListingRepAnalysisType$.inboundSchema = MetricListingRepAnalysisType$inboundSchema;
37541
+ MetricListingRepAnalysisType$.outboundSchema = MetricListingRepAnalysisType$outboundSchema;
37542
+ })(MetricListingRepAnalysisType$ ||= {});
36725
37543
  MetricListingRep$inboundSchema = objectType({
36726
37544
  experimentCount: numberType().int().optional(),
36727
37545
  metricGroupCount: numberType().int().optional(),
@@ -36742,13 +37560,13 @@ var init_metriclistingrep = __esm(() => {
36742
37560
  description: stringType().optional(),
36743
37561
  category: stringType().optional(),
36744
37562
  isNumeric: booleanType().optional(),
36745
- successCriteria: SuccessCriteria$inboundSchema.optional(),
37563
+ successCriteria: MetricListingRepSuccessCriteria$inboundSchema.optional(),
36746
37564
  unit: stringType().optional(),
36747
37565
  eventKey: stringType().optional(),
36748
37566
  randomizationUnits: arrayType(stringType()).optional(),
36749
37567
  filters: Filter$inboundSchema.optional(),
36750
- unitAggregationType: UnitAggregationType$inboundSchema.optional(),
36751
- analysisType: AnalysisType$inboundSchema.optional(),
37568
+ unitAggregationType: MetricListingRepUnitAggregationType$inboundSchema.optional(),
37569
+ analysisType: MetricListingRepAnalysisType$inboundSchema.optional(),
36752
37570
  percentileValue: numberType().int().optional(),
36753
37571
  eventDefault: MetricEventDefaultRep$inboundSchema.optional()
36754
37572
  }).transform((v2) => {
@@ -36783,13 +37601,13 @@ var init_metriclistingrep = __esm(() => {
36783
37601
  description: stringType().optional(),
36784
37602
  category: stringType().optional(),
36785
37603
  isNumeric: booleanType().optional(),
36786
- successCriteria: SuccessCriteria$outboundSchema.optional(),
37604
+ successCriteria: MetricListingRepSuccessCriteria$outboundSchema.optional(),
36787
37605
  unit: stringType().optional(),
36788
37606
  eventKey: stringType().optional(),
36789
37607
  randomizationUnits: arrayType(stringType()).optional(),
36790
37608
  filters: Filter$outboundSchema.optional(),
36791
- unitAggregationType: UnitAggregationType$outboundSchema.optional(),
36792
- analysisType: AnalysisType$outboundSchema.optional(),
37609
+ unitAggregationType: MetricListingRepUnitAggregationType$outboundSchema.optional(),
37610
+ analysisType: MetricListingRepAnalysisType$outboundSchema.optional(),
36793
37611
  percentileValue: numberType().int().optional(),
36794
37612
  eventDefault: MetricEventDefaultRep$outboundSchema.optional()
36795
37613
  }).transform((v2) => {
@@ -37574,7 +38392,30 @@ var init_components = __esm(() => {
37574
38392
  init_aiconfigsaccessallowedrep();
37575
38393
  init_aiconfigsaccessdenied();
37576
38394
  init_aiconfigsaccessdeniedreason();
38395
+ init_aiconfigsexperimentenabledperiodrep();
38396
+ init_aiconfigsexperimentenvironmentsettingrep();
38397
+ init_aiconfigsexperimentinforep();
38398
+ init_aiconfigsfilter();
38399
+ init_aiconfigslegacyexperimentrep();
37577
38400
  init_aiconfigslink();
38401
+ init_aiconfigsmembersummary();
38402
+ init_aiconfigsmetriceventdefaultrep();
38403
+ init_aiconfigsmetriclistingrep();
38404
+ init_aiconfigsmodification();
38405
+ init_aiconfigtargeting();
38406
+ init_aiconfigtargetingdefaults();
38407
+ init_aiconfigtargetingenvironment();
38408
+ init_aiconfigtargetingenvironmentfallthrough();
38409
+ init_aiconfigtargetingenvironmentfallthroughrollout();
38410
+ init_aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation();
38411
+ init_aiconfigtargetingenvironmentfallthroughrolloutvariation();
38412
+ init_aiconfigtargetingenvironmentrule();
38413
+ init_aiconfigtargetingenvironmentruleclause();
38414
+ init_aiconfigtargetingenvironmenttarget();
38415
+ init_aiconfigtargetingpatch();
38416
+ init_aiconfigtargetingvariation();
38417
+ init_aiconfigtargetingvariationjson();
38418
+ init_aiconfigtargetingvariationvalue();
37578
38419
  init_aiconfigvariation();
37579
38420
  init_aiconfigvariationpatch();
37580
38421
  init_aiconfigvariationpost();
@@ -37628,12 +38469,13 @@ var init_components = __esm(() => {
37628
38469
  var ErrorT, ErrorT$inboundSchema, ErrorT$outboundSchema, ErrorT$;
37629
38470
  var init_error = __esm(() => {
37630
38471
  init_esm();
37631
- ErrorT = class ErrorT extends Error {
38472
+ init_launchdarklyerror();
38473
+ ErrorT = class ErrorT extends LaunchDarklyError {
37632
38474
  code;
37633
38475
  data$;
37634
- constructor(err) {
37635
- const message2 = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37636
- super(message2);
38476
+ constructor(err, httpMeta) {
38477
+ const message2 = err.message || `API error occurred: ${JSON.stringify(err)}`;
38478
+ super(message2, httpMeta);
37637
38479
  this.data$ = err;
37638
38480
  this.code = err.code;
37639
38481
  this.name = "ErrorT";
@@ -37641,9 +38483,16 @@ var init_error = __esm(() => {
37641
38483
  };
37642
38484
  ErrorT$inboundSchema = objectType({
37643
38485
  message: stringType(),
37644
- code: stringType()
38486
+ code: stringType(),
38487
+ request$: instanceOfType(Request),
38488
+ response$: instanceOfType(Response),
38489
+ body$: stringType()
37645
38490
  }).transform((v2) => {
37646
- return new ErrorT(v2);
38491
+ return new ErrorT(v2, {
38492
+ request: v2.request$,
38493
+ response: v2.response$,
38494
+ body: v2.body$
38495
+ });
37647
38496
  });
37648
38497
  ErrorT$outboundSchema = instanceOfType(ErrorT).transform((v2) => v2.data$).pipe(objectType({
37649
38498
  message: stringType(),
@@ -37659,12 +38508,13 @@ var init_error = __esm(() => {
37659
38508
  var ForbiddenErrorRep, ForbiddenErrorRep$inboundSchema, ForbiddenErrorRep$outboundSchema, ForbiddenErrorRep$;
37660
38509
  var init_forbiddenerrorrep = __esm(() => {
37661
38510
  init_esm();
37662
- ForbiddenErrorRep = class ForbiddenErrorRep extends Error {
38511
+ init_launchdarklyerror();
38512
+ ForbiddenErrorRep = class ForbiddenErrorRep extends LaunchDarklyError {
37663
38513
  code;
37664
38514
  data$;
37665
- constructor(err) {
37666
- const message2 = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37667
- super(message2);
38515
+ constructor(err, httpMeta) {
38516
+ const message2 = err.message || `API error occurred: ${JSON.stringify(err)}`;
38517
+ super(message2, httpMeta);
37668
38518
  this.data$ = err;
37669
38519
  this.code = err.code;
37670
38520
  this.name = "ForbiddenErrorRep";
@@ -37672,9 +38522,16 @@ var init_forbiddenerrorrep = __esm(() => {
37672
38522
  };
37673
38523
  ForbiddenErrorRep$inboundSchema = objectType({
37674
38524
  code: stringType(),
37675
- message: stringType()
38525
+ message: stringType(),
38526
+ request$: instanceOfType(Request),
38527
+ response$: instanceOfType(Response),
38528
+ body$: stringType()
37676
38529
  }).transform((v2) => {
37677
- return new ForbiddenErrorRep(v2);
38530
+ return new ForbiddenErrorRep(v2, {
38531
+ request: v2.request$,
38532
+ response: v2.response$,
38533
+ body: v2.body$
38534
+ });
37678
38535
  });
37679
38536
  ForbiddenErrorRep$outboundSchema = instanceOfType(ForbiddenErrorRep).transform((v2) => v2.data$).pipe(objectType({
37680
38537
  code: stringType(),
@@ -37690,12 +38547,13 @@ var init_forbiddenerrorrep = __esm(() => {
37690
38547
  var InvalidRequestErrorRep, InvalidRequestErrorRep$inboundSchema, InvalidRequestErrorRep$outboundSchema, InvalidRequestErrorRep$;
37691
38548
  var init_invalidrequesterrorrep = __esm(() => {
37692
38549
  init_esm();
37693
- InvalidRequestErrorRep = class InvalidRequestErrorRep extends Error {
38550
+ init_launchdarklyerror();
38551
+ InvalidRequestErrorRep = class InvalidRequestErrorRep extends LaunchDarklyError {
37694
38552
  code;
37695
38553
  data$;
37696
- constructor(err) {
37697
- const message2 = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37698
- super(message2);
38554
+ constructor(err, httpMeta) {
38555
+ const message2 = err.message || `API error occurred: ${JSON.stringify(err)}`;
38556
+ super(message2, httpMeta);
37699
38557
  this.data$ = err;
37700
38558
  this.code = err.code;
37701
38559
  this.name = "InvalidRequestErrorRep";
@@ -37703,9 +38561,16 @@ var init_invalidrequesterrorrep = __esm(() => {
37703
38561
  };
37704
38562
  InvalidRequestErrorRep$inboundSchema = objectType({
37705
38563
  code: stringType(),
37706
- message: stringType()
38564
+ message: stringType(),
38565
+ request$: instanceOfType(Request),
38566
+ response$: instanceOfType(Response),
38567
+ body$: stringType()
37707
38568
  }).transform((v2) => {
37708
- return new InvalidRequestErrorRep(v2);
38569
+ return new InvalidRequestErrorRep(v2, {
38570
+ request: v2.request$,
38571
+ response: v2.response$,
38572
+ body: v2.body$
38573
+ });
37709
38574
  });
37710
38575
  InvalidRequestErrorRep$outboundSchema = instanceOfType(InvalidRequestErrorRep).transform((v2) => v2.data$).pipe(objectType({
37711
38576
  code: stringType(),
@@ -37721,12 +38586,13 @@ var init_invalidrequesterrorrep = __esm(() => {
37721
38586
  var MethodNotAllowedErrorRep, MethodNotAllowedErrorRep$inboundSchema, MethodNotAllowedErrorRep$outboundSchema, MethodNotAllowedErrorRep$;
37722
38587
  var init_methodnotallowederrorrep = __esm(() => {
37723
38588
  init_esm();
37724
- MethodNotAllowedErrorRep = class MethodNotAllowedErrorRep extends Error {
38589
+ init_launchdarklyerror();
38590
+ MethodNotAllowedErrorRep = class MethodNotAllowedErrorRep extends LaunchDarklyError {
37725
38591
  code;
37726
38592
  data$;
37727
- constructor(err) {
37728
- const message2 = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37729
- super(message2);
38593
+ constructor(err, httpMeta) {
38594
+ const message2 = err.message || `API error occurred: ${JSON.stringify(err)}`;
38595
+ super(message2, httpMeta);
37730
38596
  this.data$ = err;
37731
38597
  this.code = err.code;
37732
38598
  this.name = "MethodNotAllowedErrorRep";
@@ -37734,9 +38600,16 @@ var init_methodnotallowederrorrep = __esm(() => {
37734
38600
  };
37735
38601
  MethodNotAllowedErrorRep$inboundSchema = objectType({
37736
38602
  code: stringType(),
37737
- message: stringType()
38603
+ message: stringType(),
38604
+ request$: instanceOfType(Request),
38605
+ response$: instanceOfType(Response),
38606
+ body$: stringType()
37738
38607
  }).transform((v2) => {
37739
- return new MethodNotAllowedErrorRep(v2);
38608
+ return new MethodNotAllowedErrorRep(v2, {
38609
+ request: v2.request$,
38610
+ response: v2.response$,
38611
+ body: v2.body$
38612
+ });
37740
38613
  });
37741
38614
  MethodNotAllowedErrorRep$outboundSchema = instanceOfType(MethodNotAllowedErrorRep).transform((v2) => v2.data$).pipe(objectType({
37742
38615
  code: stringType(),
@@ -37752,12 +38625,13 @@ var init_methodnotallowederrorrep = __esm(() => {
37752
38625
  var NotFoundErrorRep, NotFoundErrorRep$inboundSchema, NotFoundErrorRep$outboundSchema, NotFoundErrorRep$;
37753
38626
  var init_notfounderrorrep = __esm(() => {
37754
38627
  init_esm();
37755
- NotFoundErrorRep = class NotFoundErrorRep extends Error {
38628
+ init_launchdarklyerror();
38629
+ NotFoundErrorRep = class NotFoundErrorRep extends LaunchDarklyError {
37756
38630
  code;
37757
38631
  data$;
37758
- constructor(err) {
37759
- const message2 = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37760
- super(message2);
38632
+ constructor(err, httpMeta) {
38633
+ const message2 = err.message || `API error occurred: ${JSON.stringify(err)}`;
38634
+ super(message2, httpMeta);
37761
38635
  this.data$ = err;
37762
38636
  this.code = err.code;
37763
38637
  this.name = "NotFoundErrorRep";
@@ -37765,9 +38639,16 @@ var init_notfounderrorrep = __esm(() => {
37765
38639
  };
37766
38640
  NotFoundErrorRep$inboundSchema = objectType({
37767
38641
  code: stringType(),
37768
- message: stringType()
38642
+ message: stringType(),
38643
+ request$: instanceOfType(Request),
38644
+ response$: instanceOfType(Response),
38645
+ body$: stringType()
37769
38646
  }).transform((v2) => {
37770
- return new NotFoundErrorRep(v2);
38647
+ return new NotFoundErrorRep(v2, {
38648
+ request: v2.request$,
38649
+ response: v2.response$,
38650
+ body: v2.body$
38651
+ });
37771
38652
  });
37772
38653
  NotFoundErrorRep$outboundSchema = instanceOfType(NotFoundErrorRep).transform((v2) => v2.data$).pipe(objectType({
37773
38654
  code: stringType(),
@@ -37783,12 +38664,13 @@ var init_notfounderrorrep = __esm(() => {
37783
38664
  var RateLimitedErrorRep, RateLimitedErrorRep$inboundSchema, RateLimitedErrorRep$outboundSchema, RateLimitedErrorRep$;
37784
38665
  var init_ratelimitederrorrep = __esm(() => {
37785
38666
  init_esm();
37786
- RateLimitedErrorRep = class RateLimitedErrorRep extends Error {
38667
+ init_launchdarklyerror();
38668
+ RateLimitedErrorRep = class RateLimitedErrorRep extends LaunchDarklyError {
37787
38669
  code;
37788
38670
  data$;
37789
- constructor(err) {
37790
- const message2 = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37791
- super(message2);
38671
+ constructor(err, httpMeta) {
38672
+ const message2 = err.message || `API error occurred: ${JSON.stringify(err)}`;
38673
+ super(message2, httpMeta);
37792
38674
  this.data$ = err;
37793
38675
  this.code = err.code;
37794
38676
  this.name = "RateLimitedErrorRep";
@@ -37796,9 +38678,16 @@ var init_ratelimitederrorrep = __esm(() => {
37796
38678
  };
37797
38679
  RateLimitedErrorRep$inboundSchema = objectType({
37798
38680
  code: stringType(),
37799
- message: stringType()
38681
+ message: stringType(),
38682
+ request$: instanceOfType(Request),
38683
+ response$: instanceOfType(Response),
38684
+ body$: stringType()
37800
38685
  }).transform((v2) => {
37801
- return new RateLimitedErrorRep(v2);
38686
+ return new RateLimitedErrorRep(v2, {
38687
+ request: v2.request$,
38688
+ response: v2.response$,
38689
+ body: v2.body$
38690
+ });
37802
38691
  });
37803
38692
  RateLimitedErrorRep$outboundSchema = instanceOfType(RateLimitedErrorRep).transform((v2) => v2.data$).pipe(objectType({
37804
38693
  code: stringType(),
@@ -37814,12 +38703,13 @@ var init_ratelimitederrorrep = __esm(() => {
37814
38703
  var StatusConflictErrorRep, StatusConflictErrorRep$inboundSchema, StatusConflictErrorRep$outboundSchema, StatusConflictErrorRep$;
37815
38704
  var init_statusconflicterrorrep = __esm(() => {
37816
38705
  init_esm();
37817
- StatusConflictErrorRep = class StatusConflictErrorRep extends Error {
38706
+ init_launchdarklyerror();
38707
+ StatusConflictErrorRep = class StatusConflictErrorRep extends LaunchDarklyError {
37818
38708
  code;
37819
38709
  data$;
37820
- constructor(err) {
37821
- const message2 = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37822
- super(message2);
38710
+ constructor(err, httpMeta) {
38711
+ const message2 = err.message || `API error occurred: ${JSON.stringify(err)}`;
38712
+ super(message2, httpMeta);
37823
38713
  this.data$ = err;
37824
38714
  this.code = err.code;
37825
38715
  this.name = "StatusConflictErrorRep";
@@ -37827,9 +38717,16 @@ var init_statusconflicterrorrep = __esm(() => {
37827
38717
  };
37828
38718
  StatusConflictErrorRep$inboundSchema = objectType({
37829
38719
  code: stringType(),
37830
- message: stringType()
38720
+ message: stringType(),
38721
+ request$: instanceOfType(Request),
38722
+ response$: instanceOfType(Response),
38723
+ body$: stringType()
37831
38724
  }).transform((v2) => {
37832
- return new StatusConflictErrorRep(v2);
38725
+ return new StatusConflictErrorRep(v2, {
38726
+ request: v2.request$,
38727
+ response: v2.response$,
38728
+ body: v2.body$
38729
+ });
37833
38730
  });
37834
38731
  StatusConflictErrorRep$outboundSchema = instanceOfType(StatusConflictErrorRep).transform((v2) => v2.data$).pipe(objectType({
37835
38732
  code: stringType(),
@@ -37845,12 +38742,13 @@ var init_statusconflicterrorrep = __esm(() => {
37845
38742
  var UnauthorizedErrorRep, UnauthorizedErrorRep$inboundSchema, UnauthorizedErrorRep$outboundSchema, UnauthorizedErrorRep$;
37846
38743
  var init_unauthorizederrorrep = __esm(() => {
37847
38744
  init_esm();
37848
- UnauthorizedErrorRep = class UnauthorizedErrorRep extends Error {
38745
+ init_launchdarklyerror();
38746
+ UnauthorizedErrorRep = class UnauthorizedErrorRep extends LaunchDarklyError {
37849
38747
  code;
37850
38748
  data$;
37851
- constructor(err) {
37852
- const message2 = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37853
- super(message2);
38749
+ constructor(err, httpMeta) {
38750
+ const message2 = err.message || `API error occurred: ${JSON.stringify(err)}`;
38751
+ super(message2, httpMeta);
37854
38752
  this.data$ = err;
37855
38753
  this.code = err.code;
37856
38754
  this.name = "UnauthorizedErrorRep";
@@ -37858,9 +38756,16 @@ var init_unauthorizederrorrep = __esm(() => {
37858
38756
  };
37859
38757
  UnauthorizedErrorRep$inboundSchema = objectType({
37860
38758
  code: stringType(),
37861
- message: stringType()
38759
+ message: stringType(),
38760
+ request$: instanceOfType(Request),
38761
+ response$: instanceOfType(Response),
38762
+ body$: stringType()
37862
38763
  }).transform((v2) => {
37863
- return new UnauthorizedErrorRep(v2);
38764
+ return new UnauthorizedErrorRep(v2, {
38765
+ request: v2.request$,
38766
+ response: v2.response$,
38767
+ body: v2.body$
38768
+ });
37864
38769
  });
37865
38770
  UnauthorizedErrorRep$outboundSchema = instanceOfType(UnauthorizedErrorRep).transform((v2) => v2.data$).pipe(objectType({
37866
38771
  code: stringType(),
@@ -37882,6 +38787,7 @@ var init_errors2 = __esm(() => {
37882
38787
  init_methodnotallowederrorrep();
37883
38788
  init_notfounderrorrep();
37884
38789
  init_ratelimitederrorrep();
38790
+ init_responsevalidationerror();
37885
38791
  init_sdkvalidationerror();
37886
38792
  init_statusconflicterrorrep();
37887
38793
  init_unauthorizederrorrep();
@@ -38065,6 +38971,44 @@ var init_getaiconfigs = __esm(() => {
38065
38971
  })(GetAIConfigsRequest$ ||= {});
38066
38972
  });
38067
38973
 
38974
+ // src/models/operations/getaiconfigtargeting.ts
38975
+ var GetAIConfigTargetingLDAPIVersion, GetAIConfigTargetingLDAPIVersion$inboundSchema, GetAIConfigTargetingLDAPIVersion$outboundSchema, GetAIConfigTargetingLDAPIVersion$, GetAIConfigTargetingRequest$inboundSchema, GetAIConfigTargetingRequest$outboundSchema, GetAIConfigTargetingRequest$;
38976
+ var init_getaiconfigtargeting = __esm(() => {
38977
+ init_esm();
38978
+ init_primitives();
38979
+ GetAIConfigTargetingLDAPIVersion = {
38980
+ Beta: "beta"
38981
+ };
38982
+ GetAIConfigTargetingLDAPIVersion$inboundSchema = nativeEnumType(GetAIConfigTargetingLDAPIVersion);
38983
+ GetAIConfigTargetingLDAPIVersion$outboundSchema = GetAIConfigTargetingLDAPIVersion$inboundSchema;
38984
+ ((GetAIConfigTargetingLDAPIVersion$) => {
38985
+ GetAIConfigTargetingLDAPIVersion$.inboundSchema = GetAIConfigTargetingLDAPIVersion$inboundSchema;
38986
+ GetAIConfigTargetingLDAPIVersion$.outboundSchema = GetAIConfigTargetingLDAPIVersion$outboundSchema;
38987
+ })(GetAIConfigTargetingLDAPIVersion$ ||= {});
38988
+ GetAIConfigTargetingRequest$inboundSchema = objectType({
38989
+ "LD-API-Version": GetAIConfigTargetingLDAPIVersion$inboundSchema,
38990
+ projectKey: stringType(),
38991
+ configKey: stringType()
38992
+ }).transform((v2) => {
38993
+ return remap(v2, {
38994
+ "LD-API-Version": "ldAPIVersion"
38995
+ });
38996
+ });
38997
+ GetAIConfigTargetingRequest$outboundSchema = objectType({
38998
+ ldAPIVersion: GetAIConfigTargetingLDAPIVersion$outboundSchema,
38999
+ projectKey: stringType(),
39000
+ configKey: stringType()
39001
+ }).transform((v2) => {
39002
+ return remap(v2, {
39003
+ ldAPIVersion: "LD-API-Version"
39004
+ });
39005
+ });
39006
+ ((GetAIConfigTargetingRequest$) => {
39007
+ GetAIConfigTargetingRequest$.inboundSchema = GetAIConfigTargetingRequest$inboundSchema;
39008
+ GetAIConfigTargetingRequest$.outboundSchema = GetAIConfigTargetingRequest$outboundSchema;
39009
+ })(GetAIConfigTargetingRequest$ ||= {});
39010
+ });
39011
+
38068
39012
  // src/models/operations/getaiconfigvariation.ts
38069
39013
  var GetAIConfigVariationLDAPIVersion, GetAIConfigVariationLDAPIVersion$inboundSchema, GetAIConfigVariationLDAPIVersion$outboundSchema, GetAIConfigVariationLDAPIVersion$, GetAIConfigVariationRequest$inboundSchema, GetAIConfigVariationRequest$outboundSchema, GetAIConfigVariationRequest$;
38070
39014
  var init_getaiconfigvariation = __esm(() => {
@@ -38206,6 +39150,49 @@ var init_patchaiconfig = __esm(() => {
38206
39150
  })(PatchAIConfigRequest$ ||= {});
38207
39151
  });
38208
39152
 
39153
+ // src/models/operations/patchaiconfigtargeting.ts
39154
+ var PatchAIConfigTargetingLDAPIVersion, PatchAIConfigTargetingLDAPIVersion$inboundSchema, PatchAIConfigTargetingLDAPIVersion$outboundSchema, PatchAIConfigTargetingLDAPIVersion$, PatchAIConfigTargetingRequest$inboundSchema, PatchAIConfigTargetingRequest$outboundSchema, PatchAIConfigTargetingRequest$;
39155
+ var init_patchaiconfigtargeting = __esm(() => {
39156
+ init_esm();
39157
+ init_primitives();
39158
+ init_components();
39159
+ PatchAIConfigTargetingLDAPIVersion = {
39160
+ Beta: "beta"
39161
+ };
39162
+ PatchAIConfigTargetingLDAPIVersion$inboundSchema = nativeEnumType(PatchAIConfigTargetingLDAPIVersion);
39163
+ PatchAIConfigTargetingLDAPIVersion$outboundSchema = PatchAIConfigTargetingLDAPIVersion$inboundSchema;
39164
+ ((PatchAIConfigTargetingLDAPIVersion$) => {
39165
+ PatchAIConfigTargetingLDAPIVersion$.inboundSchema = PatchAIConfigTargetingLDAPIVersion$inboundSchema;
39166
+ PatchAIConfigTargetingLDAPIVersion$.outboundSchema = PatchAIConfigTargetingLDAPIVersion$outboundSchema;
39167
+ })(PatchAIConfigTargetingLDAPIVersion$ ||= {});
39168
+ PatchAIConfigTargetingRequest$inboundSchema = objectType({
39169
+ "LD-API-Version": PatchAIConfigTargetingLDAPIVersion$inboundSchema,
39170
+ projectKey: stringType(),
39171
+ configKey: stringType(),
39172
+ AIConfigTargetingPatch: AIConfigTargetingPatch$inboundSchema.optional()
39173
+ }).transform((v2) => {
39174
+ return remap(v2, {
39175
+ "LD-API-Version": "ldAPIVersion",
39176
+ AIConfigTargetingPatch: "aiConfigTargetingPatch"
39177
+ });
39178
+ });
39179
+ PatchAIConfigTargetingRequest$outboundSchema = objectType({
39180
+ ldAPIVersion: PatchAIConfigTargetingLDAPIVersion$outboundSchema,
39181
+ projectKey: stringType(),
39182
+ configKey: stringType(),
39183
+ aiConfigTargetingPatch: AIConfigTargetingPatch$outboundSchema.optional()
39184
+ }).transform((v2) => {
39185
+ return remap(v2, {
39186
+ ldAPIVersion: "LD-API-Version",
39187
+ aiConfigTargetingPatch: "AIConfigTargetingPatch"
39188
+ });
39189
+ });
39190
+ ((PatchAIConfigTargetingRequest$) => {
39191
+ PatchAIConfigTargetingRequest$.inboundSchema = PatchAIConfigTargetingRequest$inboundSchema;
39192
+ PatchAIConfigTargetingRequest$.outboundSchema = PatchAIConfigTargetingRequest$outboundSchema;
39193
+ })(PatchAIConfigTargetingRequest$ ||= {});
39194
+ });
39195
+
38209
39196
  // src/models/operations/patchaiconfigvariation.ts
38210
39197
  var PatchAIConfigVariationLDAPIVersion, PatchAIConfigVariationLDAPIVersion$inboundSchema, PatchAIConfigVariationLDAPIVersion$outboundSchema, PatchAIConfigVariationLDAPIVersion$, PatchAIConfigVariationRequest$inboundSchema, PatchAIConfigVariationRequest$outboundSchema, PatchAIConfigVariationRequest$;
38211
39198
  var init_patchaiconfigvariation = __esm(() => {
@@ -38404,10 +39391,12 @@ var init_operations = __esm(() => {
38404
39391
  init_deletefeatureflag();
38405
39392
  init_getaiconfig();
38406
39393
  init_getaiconfigs();
39394
+ init_getaiconfigtargeting();
38407
39395
  init_getaiconfigvariation();
38408
39396
  init_getfeatureflag();
38409
39397
  init_getfeatureflags();
38410
39398
  init_patchaiconfig();
39399
+ init_patchaiconfigtargeting();
38411
39400
  init_patchaiconfigvariation();
38412
39401
  init_patchfeatureflag();
38413
39402
  init_postaiconfig();
@@ -38468,6 +39457,7 @@ async function $do(client, request, options) {
38468
39457
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38469
39458
  const requestSecurity = resolveGlobalSecurity(securityInput);
38470
39459
  const context = {
39460
+ options: client._options,
38471
39461
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38472
39462
  operationID: "postAIConfig",
38473
39463
  oAuth2Scopes: [],
@@ -38483,6 +39473,7 @@ async function $do(client, request, options) {
38483
39473
  path,
38484
39474
  headers,
38485
39475
  body,
39476
+ userAgent: client._options.userAgent,
38486
39477
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38487
39478
  }, options);
38488
39479
  if (!requestRes.ok) {
@@ -38502,7 +39493,7 @@ async function $do(client, request, options) {
38502
39493
  const responseFields = {
38503
39494
  HttpMeta: { Response: response, Request: req }
38504
39495
  };
38505
- const [result] = await match(json(201, AIConfig$inboundSchema), jsonErr([400, 403], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
39496
+ const [result] = await match(json(201, AIConfig$inboundSchema), jsonErr([400, 403], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
38506
39497
  if (!result.ok) {
38507
39498
  return [result, { status: "complete", request: req, response }];
38508
39499
  }
@@ -38532,7 +39523,8 @@ var init_aiConfigsCreate2 = __esm(() => {
38532
39523
  };
38533
39524
  tool$aiConfigsCreate = {
38534
39525
  name: "create-ai-config",
38535
- description: `Creates a new AI Config within a project. Useful for setting up LLM configurations programmatically.`,
39526
+ description: `Creates a new AI Config within a project. Useful for setting up LLM configurations programmatically.
39527
+ `,
38536
39528
  scopes: ["write"],
38537
39529
  args,
38538
39530
  tool: async (client, args2, ctx) => {
@@ -38582,6 +39574,7 @@ async function $do2(client, request, options) {
38582
39574
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38583
39575
  const requestSecurity = resolveGlobalSecurity(securityInput);
38584
39576
  const context = {
39577
+ options: client._options,
38585
39578
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38586
39579
  operationID: "postAIConfigVariation",
38587
39580
  oAuth2Scopes: [],
@@ -38597,6 +39590,7 @@ async function $do2(client, request, options) {
38597
39590
  path,
38598
39591
  headers,
38599
39592
  body,
39593
+ userAgent: client._options.userAgent,
38600
39594
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38601
39595
  }, options);
38602
39596
  if (!requestRes.ok) {
@@ -38616,7 +39610,7 @@ async function $do2(client, request, options) {
38616
39610
  const responseFields = {
38617
39611
  HttpMeta: { Response: response, Request: req }
38618
39612
  };
38619
- const [result] = await match(json(201, AIConfigVariation$inboundSchema), jsonErr([400, 403], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
39613
+ const [result] = await match(json(201, AIConfigVariation$inboundSchema), jsonErr([400, 403], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
38620
39614
  if (!result.ok) {
38621
39615
  return [result, { status: "complete", request: req, response }];
38622
39616
  }
@@ -38645,22 +39639,10 @@ var init_aiConfigsCreateVariation2 = __esm(() => {
38645
39639
  request: PostAIConfigVariationRequest$inboundSchema
38646
39640
  };
38647
39641
  tool$aiConfigsCreateVariation = {
38648
- name: "ai-configs-create-variation",
38649
- description: `Create AI Config variation
38650
-
38651
- Create a new variation for a given AI Config.
38652
-
38653
- The <code>model</code> in the request body requires a <code>modelName</code> and <code>parameters</code>, for example:
38654
-
38655
- \`\`\`
38656
- "model": {
38657
- "modelName": "claude-3-opus-20240229",
38658
- "parameters": {
38659
- "max_tokens": 1024
38660
- }
38661
- }
38662
- \`\`\`
39642
+ name: "create-ai-config-variation",
39643
+ description: `Adds a new variation to an AI Config, supporting experimentation or multi-model strategies.
38663
39644
  `,
39645
+ scopes: ["write"],
38664
39646
  args: args2,
38665
39647
  tool: async (client, args3, ctx) => {
38666
39648
  const [result, apiCall] = await aiConfigsCreateVariation(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -38706,6 +39688,7 @@ async function $do3(client, request, options) {
38706
39688
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38707
39689
  const requestSecurity = resolveGlobalSecurity(securityInput);
38708
39690
  const context = {
39691
+ options: client._options,
38709
39692
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38710
39693
  operationID: "deleteAIConfig",
38711
39694
  oAuth2Scopes: [],
@@ -38721,6 +39704,7 @@ async function $do3(client, request, options) {
38721
39704
  path,
38722
39705
  headers,
38723
39706
  body,
39707
+ userAgent: client._options.userAgent,
38724
39708
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38725
39709
  }, options);
38726
39710
  if (!requestRes.ok) {
@@ -38740,7 +39724,7 @@ async function $do3(client, request, options) {
38740
39724
  const responseFields = {
38741
39725
  HttpMeta: { Response: response, Request: req }
38742
39726
  };
38743
- const [result] = await match(nil(204, voidType()), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
39727
+ const [result] = await match(nil(204, voidType()), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
38744
39728
  if (!result.ok) {
38745
39729
  return [result, { status: "complete", request: req, response }];
38746
39730
  }
@@ -38769,10 +39753,10 @@ var init_aiConfigsDelete2 = __esm(() => {
38769
39753
  request: DeleteAIConfigRequest$inboundSchema
38770
39754
  };
38771
39755
  tool$aiConfigsDelete = {
38772
- name: "ai-configs-delete",
38773
- description: `Delete AI Config
38774
-
38775
- Delete an existing AI Config.`,
39756
+ name: "delete-ai-config",
39757
+ description: `Deletes an AI Config and its associated variations. Intended for cleanup or deprecation workflows.
39758
+ `,
39759
+ scopes: ["write"],
38776
39760
  args: args3,
38777
39761
  tool: async (client, args4, ctx) => {
38778
39762
  const [result, apiCall] = await aiConfigsDelete(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -38821,6 +39805,7 @@ async function $do4(client, request, options) {
38821
39805
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38822
39806
  const requestSecurity = resolveGlobalSecurity(securityInput);
38823
39807
  const context = {
39808
+ options: client._options,
38824
39809
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38825
39810
  operationID: "deleteAIConfigVariation",
38826
39811
  oAuth2Scopes: [],
@@ -38836,6 +39821,119 @@ async function $do4(client, request, options) {
38836
39821
  path,
38837
39822
  headers,
38838
39823
  body,
39824
+ userAgent: client._options.userAgent,
39825
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39826
+ }, options);
39827
+ if (!requestRes.ok) {
39828
+ return [requestRes, { status: "invalid" }];
39829
+ }
39830
+ const req = requestRes.value;
39831
+ const doResult = await client._do(req, {
39832
+ context,
39833
+ errorCodes: ["400", "403", "404", "4XX", "500", "5XX"],
39834
+ retryConfig: context.retryConfig,
39835
+ retryCodes: context.retryCodes
39836
+ });
39837
+ if (!doResult.ok) {
39838
+ return [doResult, { status: "request-error", request: req }];
39839
+ }
39840
+ const response = doResult.value;
39841
+ const responseFields = {
39842
+ HttpMeta: { Response: response, Request: req }
39843
+ };
39844
+ const [result] = await match(nil(204, voidType()), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
39845
+ if (!result.ok) {
39846
+ return [result, { status: "complete", request: req, response }];
39847
+ }
39848
+ return [result, { status: "complete", request: req, response }];
39849
+ }
39850
+ var init_aiConfigsDeleteVariation = __esm(() => {
39851
+ init_esm();
39852
+ init_encodings();
39853
+ init_matchers();
39854
+ init_primitives();
39855
+ init_schemas();
39856
+ init_security();
39857
+ init_url();
39858
+ init_errors2();
39859
+ init_operations();
39860
+ init_async();
39861
+ });
39862
+
39863
+ // src/mcp-server/tools/aiConfigsDeleteVariation.ts
39864
+ var args4, tool$aiConfigsDeleteVariation;
39865
+ var init_aiConfigsDeleteVariation2 = __esm(() => {
39866
+ init_aiConfigsDeleteVariation();
39867
+ init_operations();
39868
+ init_tools();
39869
+ args4 = {
39870
+ request: DeleteAIConfigVariationRequest$inboundSchema
39871
+ };
39872
+ tool$aiConfigsDeleteVariation = {
39873
+ name: "delete-ai-config-variation",
39874
+ description: `Deletes an AI Config variation.`,
39875
+ scopes: ["write"],
39876
+ args: args4,
39877
+ tool: async (client, args5, ctx) => {
39878
+ const [result, apiCall] = await aiConfigsDeleteVariation(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39879
+ if (!result.ok) {
39880
+ return {
39881
+ content: [{ type: "text", text: result.error.message }],
39882
+ isError: true
39883
+ };
39884
+ }
39885
+ return formatResult(undefined, apiCall);
39886
+ }
39887
+ };
39888
+ });
39889
+
39890
+ // src/funcs/aiConfigsGet.ts
39891
+ function aiConfigsGet(client, request, options) {
39892
+ return new APIPromise($do5(client, request, options));
39893
+ }
39894
+ async function $do5(client, request, options) {
39895
+ const parsed = safeParse(request, (value) => GetAIConfigRequest$outboundSchema.parse(value), "Input validation failed");
39896
+ if (!parsed.ok) {
39897
+ return [parsed, { status: "invalid" }];
39898
+ }
39899
+ const payload = parsed.value;
39900
+ const body = null;
39901
+ const pathParams = {
39902
+ configKey: encodeSimple("configKey", payload.configKey, {
39903
+ explode: false,
39904
+ charEncoding: "percent"
39905
+ }),
39906
+ projectKey: encodeSimple("projectKey", payload.projectKey, {
39907
+ explode: false,
39908
+ charEncoding: "percent"
39909
+ })
39910
+ };
39911
+ const path = pathToFunc("/api/v2/projects/{projectKey}/ai-configs/{configKey}")(pathParams);
39912
+ const headers = new Headers(compactMap({
39913
+ Accept: "application/json",
39914
+ "LD-API-Version": encodeSimple("LD-API-Version", payload["LD-API-Version"], { explode: false, charEncoding: "none" })
39915
+ }));
39916
+ const secConfig = await extractSecurity(client._options.apiKey);
39917
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39918
+ const requestSecurity = resolveGlobalSecurity(securityInput);
39919
+ const context = {
39920
+ options: client._options,
39921
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
39922
+ operationID: "getAIConfig",
39923
+ oAuth2Scopes: [],
39924
+ resolvedSecurity: requestSecurity,
39925
+ securitySource: client._options.apiKey,
39926
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
39927
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
39928
+ };
39929
+ const requestRes = client._createRequest(context, {
39930
+ security: requestSecurity,
39931
+ method: "GET",
39932
+ baseURL: options?.serverURL,
39933
+ path,
39934
+ headers,
39935
+ body,
39936
+ userAgent: client._options.userAgent,
38839
39937
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38840
39938
  }, options);
38841
39939
  if (!requestRes.ok) {
@@ -38855,59 +39953,59 @@ async function $do4(client, request, options) {
38855
39953
  const responseFields = {
38856
39954
  HttpMeta: { Response: response, Request: req }
38857
39955
  };
38858
- const [result] = await match(nil(204, voidType()), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
39956
+ const [result] = await match(json(200, AIConfig$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
38859
39957
  if (!result.ok) {
38860
39958
  return [result, { status: "complete", request: req, response }];
38861
39959
  }
38862
39960
  return [result, { status: "complete", request: req, response }];
38863
39961
  }
38864
- var init_aiConfigsDeleteVariation = __esm(() => {
38865
- init_esm();
39962
+ var init_aiConfigsGet = __esm(() => {
38866
39963
  init_encodings();
38867
39964
  init_matchers();
38868
39965
  init_primitives();
38869
39966
  init_schemas();
38870
39967
  init_security();
38871
39968
  init_url();
39969
+ init_components();
38872
39970
  init_errors2();
38873
39971
  init_operations();
38874
39972
  init_async();
38875
39973
  });
38876
39974
 
38877
- // src/mcp-server/tools/aiConfigsDeleteVariation.ts
38878
- var args4, tool$aiConfigsDeleteVariation;
38879
- var init_aiConfigsDeleteVariation2 = __esm(() => {
38880
- init_aiConfigsDeleteVariation();
39975
+ // src/mcp-server/tools/aiConfigsGet.ts
39976
+ var args5, tool$aiConfigsGet;
39977
+ var init_aiConfigsGet2 = __esm(() => {
39978
+ init_aiConfigsGet();
38881
39979
  init_operations();
38882
39980
  init_tools();
38883
- args4 = {
38884
- request: DeleteAIConfigVariationRequest$inboundSchema
39981
+ args5 = {
39982
+ request: GetAIConfigRequest$inboundSchema
38885
39983
  };
38886
- tool$aiConfigsDeleteVariation = {
38887
- name: "ai-configs-delete-variation",
38888
- description: `Delete AI Config variation
38889
-
38890
- Delete a specific variation of an AI Config by config key and variation key.`,
38891
- args: args4,
38892
- tool: async (client, args5, ctx) => {
38893
- const [result, apiCall] = await aiConfigsDeleteVariation(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39984
+ tool$aiConfigsGet = {
39985
+ name: "get-ai-config",
39986
+ description: `Retrieves details of a specific AI Config, including variations and model settings.`,
39987
+ scopes: ["read"],
39988
+ args: args5,
39989
+ tool: async (client, args6, ctx) => {
39990
+ const [result, apiCall] = await aiConfigsGet(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
38894
39991
  if (!result.ok) {
38895
39992
  return {
38896
39993
  content: [{ type: "text", text: result.error.message }],
38897
39994
  isError: true
38898
39995
  };
38899
39996
  }
38900
- return formatResult(undefined, apiCall);
39997
+ const value = result.value;
39998
+ return formatResult(value, apiCall);
38901
39999
  }
38902
40000
  };
38903
40001
  });
38904
40002
 
38905
- // src/funcs/aiConfigsGet.ts
38906
- function aiConfigsGet(client, request, options) {
38907
- return new APIPromise($do5(client, request, options));
40003
+ // src/funcs/aiConfigsGetTargeting.ts
40004
+ function aiConfigsGetTargeting(client, request, options) {
40005
+ return new APIPromise($do6(client, request, options));
38908
40006
  }
38909
- async function $do5(client, request, options) {
38910
- const parsed = safeParse(request, (value) => GetAIConfigRequest$outboundSchema.parse(value), "Input validation failed");
40007
+ async function $do6(client, request, options) {
40008
+ const parsed = safeParse(request, (value) => GetAIConfigTargetingRequest$outboundSchema.parse(value), "Input validation failed");
38911
40009
  if (!parsed.ok) {
38912
40010
  return [parsed, { status: "invalid" }];
38913
40011
  }
@@ -38923,7 +40021,7 @@ async function $do5(client, request, options) {
38923
40021
  charEncoding: "percent"
38924
40022
  })
38925
40023
  };
38926
- const path = pathToFunc("/api/v2/projects/{projectKey}/ai-configs/{configKey}")(pathParams);
40024
+ const path = pathToFunc("/api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting")(pathParams);
38927
40025
  const headers = new Headers(compactMap({
38928
40026
  Accept: "application/json",
38929
40027
  "LD-API-Version": encodeSimple("LD-API-Version", payload["LD-API-Version"], { explode: false, charEncoding: "none" })
@@ -38932,8 +40030,9 @@ async function $do5(client, request, options) {
38932
40030
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38933
40031
  const requestSecurity = resolveGlobalSecurity(securityInput);
38934
40032
  const context = {
40033
+ options: client._options,
38935
40034
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38936
- operationID: "getAIConfig",
40035
+ operationID: "getAIConfigTargeting",
38937
40036
  oAuth2Scopes: [],
38938
40037
  resolvedSecurity: requestSecurity,
38939
40038
  securitySource: client._options.apiKey,
@@ -38947,6 +40046,7 @@ async function $do5(client, request, options) {
38947
40046
  path,
38948
40047
  headers,
38949
40048
  body,
40049
+ userAgent: client._options.userAgent,
38950
40050
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38951
40051
  }, options);
38952
40052
  if (!requestRes.ok) {
@@ -38955,7 +40055,7 @@ async function $do5(client, request, options) {
38955
40055
  const req = requestRes.value;
38956
40056
  const doResult = await client._do(req, {
38957
40057
  context,
38958
- errorCodes: ["400", "403", "404", "4XX", "500", "5XX"],
40058
+ errorCodes: ["403", "404", "4XX", "500", "5XX"],
38959
40059
  retryConfig: context.retryConfig,
38960
40060
  retryCodes: context.retryCodes
38961
40061
  });
@@ -38966,13 +40066,13 @@ async function $do5(client, request, options) {
38966
40066
  const responseFields = {
38967
40067
  HttpMeta: { Response: response, Request: req }
38968
40068
  };
38969
- const [result] = await match(json(200, AIConfig$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40069
+ const [result] = await match(json(200, AIConfigTargeting$inboundSchema), jsonErr([403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
38970
40070
  if (!result.ok) {
38971
40071
  return [result, { status: "complete", request: req, response }];
38972
40072
  }
38973
40073
  return [result, { status: "complete", request: req, response }];
38974
40074
  }
38975
- var init_aiConfigsGet = __esm(() => {
40075
+ var init_aiConfigsGetTargeting = __esm(() => {
38976
40076
  init_encodings();
38977
40077
  init_matchers();
38978
40078
  init_primitives();
@@ -38985,23 +40085,22 @@ var init_aiConfigsGet = __esm(() => {
38985
40085
  init_async();
38986
40086
  });
38987
40087
 
38988
- // src/mcp-server/tools/aiConfigsGet.ts
38989
- var args5, tool$aiConfigsGet;
38990
- var init_aiConfigsGet2 = __esm(() => {
38991
- init_aiConfigsGet();
40088
+ // src/mcp-server/tools/aiConfigsGetTargeting.ts
40089
+ var args6, tool$aiConfigsGetTargeting;
40090
+ var init_aiConfigsGetTargeting2 = __esm(() => {
40091
+ init_aiConfigsGetTargeting();
38992
40092
  init_operations();
38993
40093
  init_tools();
38994
- args5 = {
38995
- request: GetAIConfigRequest$inboundSchema
40094
+ args6 = {
40095
+ request: GetAIConfigTargetingRequest$inboundSchema
38996
40096
  };
38997
- tool$aiConfigsGet = {
38998
- name: "ai-configs-get",
38999
- description: `Get AI Config
39000
-
39001
- Retrieve a specific AI Config by its key.`,
39002
- args: args5,
39003
- tool: async (client, args6, ctx) => {
39004
- const [result, apiCall] = await aiConfigsGet(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40097
+ tool$aiConfigsGetTargeting = {
40098
+ name: "get-ai-config-targeting",
40099
+ description: `Retrieves the targeting details of a specific AI Config, including individual targets, rules, and rollouts.`,
40100
+ scopes: ["read"],
40101
+ args: args6,
40102
+ tool: async (client, args7, ctx) => {
40103
+ const [result, apiCall] = await aiConfigsGetTargeting(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39005
40104
  if (!result.ok) {
39006
40105
  return {
39007
40106
  content: [{ type: "text", text: result.error.message }],
@@ -39016,9 +40115,9 @@ Retrieve a specific AI Config by its key.`,
39016
40115
 
39017
40116
  // src/funcs/aiConfigsGetVariation.ts
39018
40117
  function aiConfigsGetVariation(client, request, options) {
39019
- return new APIPromise($do6(client, request, options));
40118
+ return new APIPromise($do7(client, request, options));
39020
40119
  }
39021
- async function $do6(client, request, options) {
40120
+ async function $do7(client, request, options) {
39022
40121
  const parsed = safeParse(request, (value) => GetAIConfigVariationRequest$outboundSchema.parse(value), "Input validation failed");
39023
40122
  if (!parsed.ok) {
39024
40123
  return [parsed, { status: "invalid" }];
@@ -39048,6 +40147,7 @@ async function $do6(client, request, options) {
39048
40147
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39049
40148
  const requestSecurity = resolveGlobalSecurity(securityInput);
39050
40149
  const context = {
40150
+ options: client._options,
39051
40151
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39052
40152
  operationID: "getAIConfigVariation",
39053
40153
  oAuth2Scopes: [],
@@ -39063,6 +40163,7 @@ async function $do6(client, request, options) {
39063
40163
  path,
39064
40164
  headers,
39065
40165
  body,
40166
+ userAgent: client._options.userAgent,
39066
40167
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39067
40168
  }, options);
39068
40169
  if (!requestRes.ok) {
@@ -39082,7 +40183,7 @@ async function $do6(client, request, options) {
39082
40183
  const responseFields = {
39083
40184
  HttpMeta: { Response: response, Request: req }
39084
40185
  };
39085
- const [result] = await match(json(200, AIConfigVariationsResponse$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40186
+ const [result] = await match(json(200, AIConfigVariationsResponse$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
39086
40187
  if (!result.ok) {
39087
40188
  return [result, { status: "complete", request: req, response }];
39088
40189
  }
@@ -39102,22 +40203,21 @@ var init_aiConfigsGetVariation = __esm(() => {
39102
40203
  });
39103
40204
 
39104
40205
  // src/mcp-server/tools/aiConfigsGetVariation.ts
39105
- var args6, tool$aiConfigsGetVariation;
40206
+ var args7, tool$aiConfigsGetVariation;
39106
40207
  var init_aiConfigsGetVariation2 = __esm(() => {
39107
40208
  init_aiConfigsGetVariation();
39108
40209
  init_operations();
39109
40210
  init_tools();
39110
- args6 = {
40211
+ args7 = {
39111
40212
  request: GetAIConfigVariationRequest$inboundSchema
39112
40213
  };
39113
40214
  tool$aiConfigsGetVariation = {
39114
- name: "ai-configs-get-variation",
39115
- description: `Get AI Config variation
39116
-
39117
- Get an AI Config variation by key. The response includes all variation versions for the given variation key.`,
39118
- args: args6,
39119
- tool: async (client, args7, ctx) => {
39120
- const [result, apiCall] = await aiConfigsGetVariation(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40215
+ name: "get-ai-config-variation",
40216
+ description: `Retrieves an AI configuration variation.`,
40217
+ scopes: ["read"],
40218
+ args: args7,
40219
+ tool: async (client, args8, ctx) => {
40220
+ const [result, apiCall] = await aiConfigsGetVariation(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39121
40221
  if (!result.ok) {
39122
40222
  return {
39123
40223
  content: [{ type: "text", text: result.error.message }],
@@ -39132,9 +40232,9 @@ Get an AI Config variation by key. The response includes all variation versions
39132
40232
 
39133
40233
  // src/funcs/aiConfigsList.ts
39134
40234
  function aiConfigsList(client, request, options) {
39135
- return new APIPromise($do7(client, request, options));
40235
+ return new APIPromise($do8(client, request, options));
39136
40236
  }
39137
- async function $do7(client, request, options) {
40237
+ async function $do8(client, request, options) {
39138
40238
  const parsed = safeParse(request, (value) => GetAIConfigsRequest$outboundSchema.parse(value), "Input validation failed");
39139
40239
  if (!parsed.ok) {
39140
40240
  return [parsed, { status: "invalid" }];
@@ -39162,6 +40262,7 @@ async function $do7(client, request, options) {
39162
40262
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39163
40263
  const requestSecurity = resolveGlobalSecurity(securityInput);
39164
40264
  const context = {
40265
+ options: client._options,
39165
40266
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39166
40267
  operationID: "getAIConfigs",
39167
40268
  oAuth2Scopes: [],
@@ -39178,6 +40279,7 @@ async function $do7(client, request, options) {
39178
40279
  headers,
39179
40280
  query,
39180
40281
  body,
40282
+ userAgent: client._options.userAgent,
39181
40283
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39182
40284
  }, options);
39183
40285
  if (!requestRes.ok) {
@@ -39197,7 +40299,7 @@ async function $do7(client, request, options) {
39197
40299
  const responseFields = {
39198
40300
  HttpMeta: { Response: response, Request: req }
39199
40301
  };
39200
- const [result] = await match(json(200, AIConfigs$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40302
+ const [result] = await match(json(200, AIConfigs$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
39201
40303
  if (!result.ok) {
39202
40304
  return [result, { status: "complete", request: req, response }];
39203
40305
  }
@@ -39217,21 +40319,22 @@ var init_aiConfigsList = __esm(() => {
39217
40319
  });
39218
40320
 
39219
40321
  // src/mcp-server/tools/aiConfigsList.ts
39220
- var args7, tool$aiConfigsList;
40322
+ var args8, tool$aiConfigsList;
39221
40323
  var init_aiConfigsList2 = __esm(() => {
39222
40324
  init_aiConfigsList();
39223
40325
  init_operations();
39224
40326
  init_tools();
39225
- args7 = {
40327
+ args8 = {
39226
40328
  request: GetAIConfigsRequest$inboundSchema
39227
40329
  };
39228
40330
  tool$aiConfigsList = {
39229
40331
  name: "list-ai-configs",
39230
- description: `Lists all AI Configs in a project, allowing agents to enumerate available configurations for analysis or testing.`,
39231
- scopes: ["read", "read"],
39232
- args: args7,
39233
- tool: async (client, args8, ctx) => {
39234
- const [result, apiCall] = await aiConfigsList(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40332
+ description: `Retrieves AI configuration settings for a specific project. This endpoint allows agents to access and modify AI-related configurations, ensuring that the AI's behavior aligns with project requirements and user expectations.
40333
+ `,
40334
+ scopes: ["read"],
40335
+ args: args8,
40336
+ tool: async (client, args9, ctx) => {
40337
+ const [result, apiCall] = await aiConfigsList(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39235
40338
  if (!result.ok) {
39236
40339
  return {
39237
40340
  content: [{ type: "text", text: result.error.message }],
@@ -39246,9 +40349,9 @@ var init_aiConfigsList2 = __esm(() => {
39246
40349
 
39247
40350
  // src/funcs/aiConfigsUpdate.ts
39248
40351
  function aiConfigsUpdate(client, request, options) {
39249
- return new APIPromise($do8(client, request, options));
40352
+ return new APIPromise($do9(client, request, options));
39250
40353
  }
39251
- async function $do8(client, request, options) {
40354
+ async function $do9(client, request, options) {
39252
40355
  const parsed = safeParse(request, (value) => PatchAIConfigRequest$outboundSchema.parse(value), "Input validation failed");
39253
40356
  if (!parsed.ok) {
39254
40357
  return [parsed, { status: "invalid" }];
@@ -39275,6 +40378,7 @@ async function $do8(client, request, options) {
39275
40378
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39276
40379
  const requestSecurity = resolveGlobalSecurity(securityInput);
39277
40380
  const context = {
40381
+ options: client._options,
39278
40382
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39279
40383
  operationID: "patchAIConfig",
39280
40384
  oAuth2Scopes: [],
@@ -39290,6 +40394,7 @@ async function $do8(client, request, options) {
39290
40394
  path,
39291
40395
  headers,
39292
40396
  body,
40397
+ userAgent: client._options.userAgent,
39293
40398
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39294
40399
  }, options);
39295
40400
  if (!requestRes.ok) {
@@ -39309,7 +40414,7 @@ async function $do8(client, request, options) {
39309
40414
  const responseFields = {
39310
40415
  HttpMeta: { Response: response, Request: req }
39311
40416
  };
39312
- const [result] = await match(json(200, AIConfig$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40417
+ const [result] = await match(json(200, AIConfig$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
39313
40418
  if (!result.ok) {
39314
40419
  return [result, { status: "complete", request: req, response }];
39315
40420
  }
@@ -39329,33 +40434,137 @@ var init_aiConfigsUpdate = __esm(() => {
39329
40434
  });
39330
40435
 
39331
40436
  // src/mcp-server/tools/aiConfigsUpdate.ts
39332
- var args8, tool$aiConfigsUpdate;
40437
+ var args9, tool$aiConfigsUpdate;
39333
40438
  var init_aiConfigsUpdate2 = __esm(() => {
39334
40439
  init_aiConfigsUpdate();
39335
40440
  init_operations();
39336
40441
  init_tools();
39337
- args8 = {
40442
+ args9 = {
39338
40443
  request: PatchAIConfigRequest$inboundSchema
39339
40444
  };
39340
40445
  tool$aiConfigsUpdate = {
39341
- name: "ai-configs-update",
39342
- description: `Update AI Config
39343
-
39344
- Edit an existing AI Config.
40446
+ name: "update-ai-config",
40447
+ description: `Updates metadata or configuration of an existing AI Config.`,
40448
+ scopes: ["write"],
40449
+ args: args9,
40450
+ tool: async (client, args10, ctx) => {
40451
+ const [result, apiCall] = await aiConfigsUpdate(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40452
+ if (!result.ok) {
40453
+ return {
40454
+ content: [{ type: "text", text: result.error.message }],
40455
+ isError: true
40456
+ };
40457
+ }
40458
+ const value = result.value;
40459
+ return formatResult(value, apiCall);
40460
+ }
40461
+ };
40462
+ });
39345
40463
 
39346
- The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields.
40464
+ // src/funcs/aiConfigsUpdateTargeting.ts
40465
+ function aiConfigsUpdateTargeting(client, request, options) {
40466
+ return new APIPromise($do10(client, request, options));
40467
+ }
40468
+ async function $do10(client, request, options) {
40469
+ const parsed = safeParse(request, (value) => PatchAIConfigTargetingRequest$outboundSchema.parse(value), "Input validation failed");
40470
+ if (!parsed.ok) {
40471
+ return [parsed, { status: "invalid" }];
40472
+ }
40473
+ const payload = parsed.value;
40474
+ const body = encodeJSON("body", payload.AIConfigTargetingPatch, {
40475
+ explode: true
40476
+ });
40477
+ const pathParams = {
40478
+ configKey: encodeSimple("configKey", payload.configKey, {
40479
+ explode: false,
40480
+ charEncoding: "percent"
40481
+ }),
40482
+ projectKey: encodeSimple("projectKey", payload.projectKey, {
40483
+ explode: false,
40484
+ charEncoding: "percent"
40485
+ })
40486
+ };
40487
+ const path = pathToFunc("/api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting")(pathParams);
40488
+ const headers = new Headers(compactMap({
40489
+ "Content-Type": "application/json",
40490
+ Accept: "application/json",
40491
+ "LD-API-Version": encodeSimple("LD-API-Version", payload["LD-API-Version"], { explode: false, charEncoding: "none" })
40492
+ }));
40493
+ const secConfig = await extractSecurity(client._options.apiKey);
40494
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
40495
+ const requestSecurity = resolveGlobalSecurity(securityInput);
40496
+ const context = {
40497
+ options: client._options,
40498
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
40499
+ operationID: "patchAIConfigTargeting",
40500
+ oAuth2Scopes: [],
40501
+ resolvedSecurity: requestSecurity,
40502
+ securitySource: client._options.apiKey,
40503
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
40504
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
40505
+ };
40506
+ const requestRes = client._createRequest(context, {
40507
+ security: requestSecurity,
40508
+ method: "PATCH",
40509
+ baseURL: options?.serverURL,
40510
+ path,
40511
+ headers,
40512
+ body,
40513
+ userAgent: client._options.userAgent,
40514
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40515
+ }, options);
40516
+ if (!requestRes.ok) {
40517
+ return [requestRes, { status: "invalid" }];
40518
+ }
40519
+ const req = requestRes.value;
40520
+ const doResult = await client._do(req, {
40521
+ context,
40522
+ errorCodes: ["400", "403", "404", "4XX", "500", "5XX"],
40523
+ retryConfig: context.retryConfig,
40524
+ retryCodes: context.retryCodes
40525
+ });
40526
+ if (!doResult.ok) {
40527
+ return [doResult, { status: "request-error", request: req }];
40528
+ }
40529
+ const response = doResult.value;
40530
+ const responseFields = {
40531
+ HttpMeta: { Response: response, Request: req }
40532
+ };
40533
+ const [result] = await match(json(200, AIConfigTargeting$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
40534
+ if (!result.ok) {
40535
+ return [result, { status: "complete", request: req, response }];
40536
+ }
40537
+ return [result, { status: "complete", request: req, response }];
40538
+ }
40539
+ var init_aiConfigsUpdateTargeting = __esm(() => {
40540
+ init_encodings();
40541
+ init_matchers();
40542
+ init_primitives();
40543
+ init_schemas();
40544
+ init_security();
40545
+ init_url();
40546
+ init_components();
40547
+ init_errors2();
40548
+ init_operations();
40549
+ init_async();
40550
+ });
39347
40551
 
39348
- Here's an example:
39349
- \`\`\`
39350
- {
39351
- "description": "Example updated description",
39352
- "tags": ["new-tag"]
39353
- }
39354
- \`\`\`
39355
- `,
39356
- args: args8,
39357
- tool: async (client, args9, ctx) => {
39358
- const [result, apiCall] = await aiConfigsUpdate(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40552
+ // src/mcp-server/tools/aiConfigsUpdateTargeting.ts
40553
+ var args10, tool$aiConfigsUpdateTargeting;
40554
+ var init_aiConfigsUpdateTargeting2 = __esm(() => {
40555
+ init_aiConfigsUpdateTargeting();
40556
+ init_operations();
40557
+ init_tools();
40558
+ args10 = {
40559
+ request: PatchAIConfigTargetingRequest$inboundSchema
40560
+ };
40561
+ tool$aiConfigsUpdateTargeting = {
40562
+ name: "update-ai-config-targeting",
40563
+ description: `Updates the targeting of an existing AI Config.`,
40564
+ scopes: ["write"],
40565
+ args: args10,
40566
+ tool: async (client, args11, ctx) => {
40567
+ const [result, apiCall] = await aiConfigsUpdateTargeting(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39359
40568
  if (!result.ok) {
39360
40569
  return {
39361
40570
  content: [{ type: "text", text: result.error.message }],
@@ -39370,9 +40579,9 @@ Here's an example:
39370
40579
 
39371
40580
  // src/funcs/aiConfigsUpdateVariation.ts
39372
40581
  function aiConfigsUpdateVariation(client, request, options) {
39373
- return new APIPromise($do9(client, request, options));
40582
+ return new APIPromise($do11(client, request, options));
39374
40583
  }
39375
- async function $do9(client, request, options) {
40584
+ async function $do11(client, request, options) {
39376
40585
  const parsed = safeParse(request, (value) => PatchAIConfigVariationRequest$outboundSchema.parse(value), "Input validation failed");
39377
40586
  if (!parsed.ok) {
39378
40587
  return [parsed, { status: "invalid" }];
@@ -39405,6 +40614,7 @@ async function $do9(client, request, options) {
39405
40614
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39406
40615
  const requestSecurity = resolveGlobalSecurity(securityInput);
39407
40616
  const context = {
40617
+ options: client._options,
39408
40618
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39409
40619
  operationID: "patchAIConfigVariation",
39410
40620
  oAuth2Scopes: [],
@@ -39420,6 +40630,7 @@ async function $do9(client, request, options) {
39420
40630
  path,
39421
40631
  headers,
39422
40632
  body,
40633
+ userAgent: client._options.userAgent,
39423
40634
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39424
40635
  }, options);
39425
40636
  if (!requestRes.ok) {
@@ -39439,7 +40650,7 @@ async function $do9(client, request, options) {
39439
40650
  const responseFields = {
39440
40651
  HttpMeta: { Response: response, Request: req }
39441
40652
  };
39442
- const [result] = await match(json(200, AIConfigVariation$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40653
+ const [result] = await match(json(200, AIConfigVariation$inboundSchema), jsonErr([400, 403, 404], ErrorT$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
39443
40654
  if (!result.ok) {
39444
40655
  return [result, { status: "complete", request: req, response }];
39445
40656
  }
@@ -39459,37 +40670,22 @@ var init_aiConfigsUpdateVariation = __esm(() => {
39459
40670
  });
39460
40671
 
39461
40672
  // src/mcp-server/tools/aiConfigsUpdateVariation.ts
39462
- var args9, tool$aiConfigsUpdateVariation;
40673
+ var args11, tool$aiConfigsUpdateVariation;
39463
40674
  var init_aiConfigsUpdateVariation2 = __esm(() => {
39464
40675
  init_aiConfigsUpdateVariation();
39465
40676
  init_operations();
39466
40677
  init_tools();
39467
- args9 = {
40678
+ args11 = {
39468
40679
  request: PatchAIConfigVariationRequest$inboundSchema
39469
40680
  };
39470
40681
  tool$aiConfigsUpdateVariation = {
39471
- name: "ai-configs-update-variation",
39472
- description: `Update AI Config variation
39473
-
39474
- Edit an existing variation of an AI Config. This creates a new version of the variation.
39475
-
39476
- The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields.
39477
-
39478
- Here's an example:
39479
- \`\`\`
39480
- {
39481
- "messages": [
39482
- {
39483
- "role": "system",
39484
- "content": "The new message"
39485
- }
39486
- ]
39487
- }
39488
- \`\`\`
40682
+ name: "update-ai-config-variation",
40683
+ description: `Updates a specific variation within an AI Config. Enables fine-tuned control of model behavior.
39489
40684
  `,
39490
- args: args9,
39491
- tool: async (client, args10, ctx) => {
39492
- const [result, apiCall] = await aiConfigsUpdateVariation(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40685
+ scopes: ["write"],
40686
+ args: args11,
40687
+ tool: async (client, args12, ctx) => {
40688
+ const [result, apiCall] = await aiConfigsUpdateVariation(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39493
40689
  if (!result.ok) {
39494
40690
  return {
39495
40691
  content: [{ type: "text", text: result.error.message }],
@@ -39504,9 +40700,9 @@ Here's an example:
39504
40700
 
39505
40701
  // src/funcs/featureFlagsCreate.ts
39506
40702
  function featureFlagsCreate(client, request, options) {
39507
- return new APIPromise($do10(client, request, options));
40703
+ return new APIPromise($do12(client, request, options));
39508
40704
  }
39509
- async function $do10(client, request, options) {
40705
+ async function $do12(client, request, options) {
39510
40706
  const parsed = safeParse(request, (value) => PostFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
39511
40707
  if (!parsed.ok) {
39512
40708
  return [parsed, { status: "invalid" }];
@@ -39531,6 +40727,7 @@ async function $do10(client, request, options) {
39531
40727
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39532
40728
  const requestSecurity = resolveGlobalSecurity(securityInput);
39533
40729
  const context = {
40730
+ options: client._options,
39534
40731
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39535
40732
  operationID: "postFeatureFlag",
39536
40733
  oAuth2Scopes: [],
@@ -39547,6 +40744,7 @@ async function $do10(client, request, options) {
39547
40744
  headers,
39548
40745
  query,
39549
40746
  body,
40747
+ userAgent: client._options.userAgent,
39550
40748
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39551
40749
  }, options);
39552
40750
  if (!requestRes.ok) {
@@ -39566,7 +40764,7 @@ async function $do10(client, request, options) {
39566
40764
  const responseFields = {
39567
40765
  HttpMeta: { Response: response, Request: req }
39568
40766
  };
39569
- const [result] = await match(json(201, FeatureFlag$inboundSchema), jsonErr(400, InvalidRequestErrorRep$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(409, StatusConflictErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40767
+ const [result] = await match(json(201, FeatureFlag$inboundSchema), jsonErr(400, InvalidRequestErrorRep$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(409, StatusConflictErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
39570
40768
  if (!result.ok) {
39571
40769
  return [result, { status: "complete", request: req, response }];
39572
40770
  }
@@ -39586,21 +40784,22 @@ var init_featureFlagsCreate = __esm(() => {
39586
40784
  });
39587
40785
 
39588
40786
  // src/mcp-server/tools/featureFlagsCreate.ts
39589
- var args10, tool$featureFlagsCreate;
40787
+ var args12, tool$featureFlagsCreate;
39590
40788
  var init_featureFlagsCreate2 = __esm(() => {
39591
40789
  init_featureFlagsCreate();
39592
40790
  init_operations();
39593
40791
  init_tools();
39594
- args10 = {
40792
+ args12 = {
39595
40793
  request: PostFeatureFlagRequest$inboundSchema
39596
40794
  };
39597
40795
  tool$featureFlagsCreate = {
39598
40796
  name: "create-feature-flag",
39599
- description: `Creates a new feature flag within a project. AI agents can use this operation to define feature toggles for controlled rollouts, experimentation, or gated features, automating the flag setup process.`,
40797
+ description: `Creates a new feature flag within a project. AI agents can use this operation to define feature toggles for controlled rollouts, experimentation, or gated features, automating the flag setup process.
40798
+ `,
39600
40799
  scopes: ["write"],
39601
- args: args10,
39602
- tool: async (client, args11, ctx) => {
39603
- const [result, apiCall] = await featureFlagsCreate(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40800
+ args: args12,
40801
+ tool: async (client, args13, ctx) => {
40802
+ const [result, apiCall] = await featureFlagsCreate(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39604
40803
  if (!result.ok) {
39605
40804
  return {
39606
40805
  content: [{ type: "text", text: result.error.message }],
@@ -39615,9 +40814,9 @@ var init_featureFlagsCreate2 = __esm(() => {
39615
40814
 
39616
40815
  // src/funcs/featureFlagsDelete.ts
39617
40816
  function featureFlagsDelete(client, request, options) {
39618
- return new APIPromise($do11(client, request, options));
40817
+ return new APIPromise($do13(client, request, options));
39619
40818
  }
39620
- async function $do11(client, request, options) {
40819
+ async function $do13(client, request, options) {
39621
40820
  const parsed = safeParse(request, (value) => DeleteFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
39622
40821
  if (!parsed.ok) {
39623
40822
  return [parsed, { status: "invalid" }];
@@ -39642,6 +40841,7 @@ async function $do11(client, request, options) {
39642
40841
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39643
40842
  const requestSecurity = resolveGlobalSecurity(securityInput);
39644
40843
  const context = {
40844
+ options: client._options,
39645
40845
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39646
40846
  operationID: "deleteFeatureFlag",
39647
40847
  oAuth2Scopes: [],
@@ -39657,6 +40857,7 @@ async function $do11(client, request, options) {
39657
40857
  path,
39658
40858
  headers,
39659
40859
  body,
40860
+ userAgent: client._options.userAgent,
39660
40861
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39661
40862
  }, options);
39662
40863
  if (!requestRes.ok) {
@@ -39676,7 +40877,7 @@ async function $do11(client, request, options) {
39676
40877
  const responseFields = {
39677
40878
  HttpMeta: { Response: response, Request: req }
39678
40879
  };
39679
- const [result] = await match(nil(204, voidType()), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(409, StatusConflictErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40880
+ const [result] = await match(nil(204, voidType()), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(409, StatusConflictErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
39680
40881
  if (!result.ok) {
39681
40882
  return [result, { status: "complete", request: req, response }];
39682
40883
  }
@@ -39696,21 +40897,22 @@ var init_featureFlagsDelete = __esm(() => {
39696
40897
  });
39697
40898
 
39698
40899
  // src/mcp-server/tools/featureFlagsDelete.ts
39699
- var args11, tool$featureFlagsDelete;
40900
+ var args13, tool$featureFlagsDelete;
39700
40901
  var init_featureFlagsDelete2 = __esm(() => {
39701
40902
  init_featureFlagsDelete();
39702
40903
  init_operations();
39703
40904
  init_tools();
39704
- args11 = {
40905
+ args13 = {
39705
40906
  request: DeleteFeatureFlagRequest$inboundSchema
39706
40907
  };
39707
40908
  tool$featureFlagsDelete = {
39708
40909
  name: "delete-feature-flag",
39709
- description: `Removes a feature flag from the project. Used by AI agents to clean up deprecated toggles that are no longer in use, improving system hygiene and maintainability.`,
40910
+ description: `Removes a feature flag from the project. Used by AI agents to clean up deprecated toggles that are no longer in use, improving system hygiene and maintainability.
40911
+ `,
39710
40912
  scopes: ["write"],
39711
- args: args11,
39712
- tool: async (client, args12, ctx) => {
39713
- const [result, apiCall] = await featureFlagsDelete(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40913
+ args: args13,
40914
+ tool: async (client, args14, ctx) => {
40915
+ const [result, apiCall] = await featureFlagsDelete(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39714
40916
  if (!result.ok) {
39715
40917
  return {
39716
40918
  content: [{ type: "text", text: result.error.message }],
@@ -39724,9 +40926,9 @@ var init_featureFlagsDelete2 = __esm(() => {
39724
40926
 
39725
40927
  // src/funcs/featureFlagsGet.ts
39726
40928
  function featureFlagsGet(client, request, options) {
39727
- return new APIPromise($do12(client, request, options));
40929
+ return new APIPromise($do14(client, request, options));
39728
40930
  }
39729
- async function $do12(client, request, options) {
40931
+ async function $do14(client, request, options) {
39730
40932
  const parsed = safeParse(request, (value) => GetFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
39731
40933
  if (!parsed.ok) {
39732
40934
  return [parsed, { status: "invalid" }];
@@ -39755,6 +40957,7 @@ async function $do12(client, request, options) {
39755
40957
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39756
40958
  const requestSecurity = resolveGlobalSecurity(securityInput);
39757
40959
  const context = {
40960
+ options: client._options,
39758
40961
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39759
40962
  operationID: "getFeatureFlag",
39760
40963
  oAuth2Scopes: [],
@@ -39771,6 +40974,7 @@ async function $do12(client, request, options) {
39771
40974
  headers,
39772
40975
  query,
39773
40976
  body,
40977
+ userAgent: client._options.userAgent,
39774
40978
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39775
40979
  }, options);
39776
40980
  if (!requestRes.ok) {
@@ -39790,7 +40994,7 @@ async function $do12(client, request, options) {
39790
40994
  const responseFields = {
39791
40995
  HttpMeta: { Response: response, Request: req }
39792
40996
  };
39793
- const [result] = await match(json(200, FeatureFlag$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(403, ForbiddenErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40997
+ const [result] = await match(json(200, FeatureFlag$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(403, ForbiddenErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
39794
40998
  if (!result.ok) {
39795
40999
  return [result, { status: "complete", request: req, response }];
39796
41000
  }
@@ -39810,21 +41014,22 @@ var init_featureFlagsGet = __esm(() => {
39810
41014
  });
39811
41015
 
39812
41016
  // src/mcp-server/tools/featureFlagsGet.ts
39813
- var args12, tool$featureFlagsGet;
41017
+ var args14, tool$featureFlagsGet;
39814
41018
  var init_featureFlagsGet2 = __esm(() => {
39815
41019
  init_featureFlagsGet();
39816
41020
  init_operations();
39817
41021
  init_tools();
39818
- args12 = {
41022
+ args14 = {
39819
41023
  request: GetFeatureFlagRequest$inboundSchema
39820
41024
  };
39821
41025
  tool$featureFlagsGet = {
39822
41026
  name: "get-feature-flag",
39823
- description: `Fetches the full configuration for a specific feature flag, including environments, variations, and targeting rules. Useful for agents auditing or managing specific feature toggles in a detailed, contextual manner.`,
41027
+ description: `Fetches the full configuration for a specific feature flag, including environments, variations, and targeting rules. Useful for agents auditing or managing specific feature toggles in a detailed, contextual manner.
41028
+ `,
39824
41029
  scopes: ["read"],
39825
- args: args12,
39826
- tool: async (client, args13, ctx) => {
39827
- const [result, apiCall] = await featureFlagsGet(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41030
+ args: args14,
41031
+ tool: async (client, args15, ctx) => {
41032
+ const [result, apiCall] = await featureFlagsGet(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39828
41033
  if (!result.ok) {
39829
41034
  return {
39830
41035
  content: [{ type: "text", text: result.error.message }],
@@ -39839,9 +41044,9 @@ var init_featureFlagsGet2 = __esm(() => {
39839
41044
 
39840
41045
  // src/funcs/featureFlagsList.ts
39841
41046
  function featureFlagsList(client, request, options) {
39842
- return new APIPromise($do13(client, request, options));
41047
+ return new APIPromise($do15(client, request, options));
39843
41048
  }
39844
- async function $do13(client, request, options) {
41049
+ async function $do15(client, request, options) {
39845
41050
  const parsed = safeParse(request, (value) => GetFeatureFlagsRequest$outboundSchema.parse(value), "Input validation failed");
39846
41051
  if (!parsed.ok) {
39847
41052
  return [parsed, { status: "invalid" }];
@@ -39874,6 +41079,7 @@ async function $do13(client, request, options) {
39874
41079
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39875
41080
  const requestSecurity = resolveGlobalSecurity(securityInput);
39876
41081
  const context = {
41082
+ options: client._options,
39877
41083
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39878
41084
  operationID: "getFeatureFlags",
39879
41085
  oAuth2Scopes: [],
@@ -39890,6 +41096,7 @@ async function $do13(client, request, options) {
39890
41096
  headers,
39891
41097
  query,
39892
41098
  body,
41099
+ userAgent: client._options.userAgent,
39893
41100
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39894
41101
  }, options);
39895
41102
  if (!requestRes.ok) {
@@ -39909,7 +41116,7 @@ async function $do13(client, request, options) {
39909
41116
  const responseFields = {
39910
41117
  HttpMeta: { Response: response, Request: req }
39911
41118
  };
39912
- const [result] = await match(json(200, FeatureFlags$inboundSchema), jsonErr(400, InvalidRequestErrorRep$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(403, ForbiddenErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41119
+ const [result] = await match(json(200, FeatureFlags$inboundSchema), jsonErr(400, InvalidRequestErrorRep$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(403, ForbiddenErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
39913
41120
  if (!result.ok) {
39914
41121
  return [result, { status: "complete", request: req, response }];
39915
41122
  }
@@ -39929,21 +41136,22 @@ var init_featureFlagsList = __esm(() => {
39929
41136
  });
39930
41137
 
39931
41138
  // src/mcp-server/tools/featureFlagsList.ts
39932
- var args13, tool$featureFlagsList;
41139
+ var args15, tool$featureFlagsList;
39933
41140
  var init_featureFlagsList2 = __esm(() => {
39934
41141
  init_featureFlagsList();
39935
41142
  init_operations();
39936
41143
  init_tools();
39937
- args13 = {
41144
+ args15 = {
39938
41145
  request: GetFeatureFlagsRequest$inboundSchema
39939
41146
  };
39940
41147
  tool$featureFlagsList = {
39941
41148
  name: "list-feature-flags",
39942
- description: `Retrieves all feature flags within a project, including metadata and targeting rules. Enables AI agents to enumerate existing flags for inspection, configuration analysis, or generating flag usage reports across environments.`,
41149
+ description: `Retrieves all feature flags within a project, including metadata and targeting rules. Enables AI agents to enumerate existing flags for inspection, configuration analysis, or generating flag usage reports across environments.
41150
+ `,
39943
41151
  scopes: ["read"],
39944
- args: args13,
39945
- tool: async (client, args14, ctx) => {
39946
- const [result, apiCall] = await featureFlagsList(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41152
+ args: args15,
41153
+ tool: async (client, args16, ctx) => {
41154
+ const [result, apiCall] = await featureFlagsList(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39947
41155
  if (!result.ok) {
39948
41156
  return {
39949
41157
  content: [{ type: "text", text: result.error.message }],
@@ -39958,9 +41166,9 @@ var init_featureFlagsList2 = __esm(() => {
39958
41166
 
39959
41167
  // src/funcs/featureFlagsPatch.ts
39960
41168
  function featureFlagsPatch(client, request, options) {
39961
- return new APIPromise($do14(client, request, options));
41169
+ return new APIPromise($do16(client, request, options));
39962
41170
  }
39963
- async function $do14(client, request, options) {
41171
+ async function $do16(client, request, options) {
39964
41172
  const parsed = safeParse(request, (value) => PatchFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
39965
41173
  if (!parsed.ok) {
39966
41174
  return [parsed, { status: "invalid" }];
@@ -39989,6 +41197,7 @@ async function $do14(client, request, options) {
39989
41197
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39990
41198
  const requestSecurity = resolveGlobalSecurity(securityInput);
39991
41199
  const context = {
41200
+ options: client._options,
39992
41201
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39993
41202
  operationID: "patchFeatureFlag",
39994
41203
  oAuth2Scopes: [],
@@ -40005,6 +41214,7 @@ async function $do14(client, request, options) {
40005
41214
  headers,
40006
41215
  query,
40007
41216
  body,
41217
+ userAgent: client._options.userAgent,
40008
41218
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40009
41219
  }, options);
40010
41220
  if (!requestRes.ok) {
@@ -40024,7 +41234,7 @@ async function $do14(client, request, options) {
40024
41234
  const responseFields = {
40025
41235
  HttpMeta: { Response: response, Request: req }
40026
41236
  };
40027
- const [result] = await match(json(200, FeatureFlag$inboundSchema), jsonErr(400, InvalidRequestErrorRep$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(405, MethodNotAllowedErrorRep$inboundSchema), jsonErr(409, StatusConflictErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41237
+ const [result] = await match(json(200, FeatureFlag$inboundSchema), jsonErr(400, InvalidRequestErrorRep$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(405, MethodNotAllowedErrorRep$inboundSchema), jsonErr(409, StatusConflictErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
40028
41238
  if (!result.ok) {
40029
41239
  return [result, { status: "complete", request: req, response }];
40030
41240
  }
@@ -40044,21 +41254,22 @@ var init_featureFlagsPatch = __esm(() => {
40044
41254
  });
40045
41255
 
40046
41256
  // src/mcp-server/tools/featureFlagsPatch.ts
40047
- var args14, tool$featureFlagsPatch;
41257
+ var args16, tool$featureFlagsPatch;
40048
41258
  var init_featureFlagsPatch2 = __esm(() => {
40049
41259
  init_featureFlagsPatch();
40050
41260
  init_operations();
40051
41261
  init_tools();
40052
- args14 = {
41262
+ args16 = {
40053
41263
  request: PatchFeatureFlagRequest$inboundSchema
40054
41264
  };
40055
41265
  tool$featureFlagsPatch = {
40056
41266
  name: "update-feature-flag",
40057
- description: `Updates the configuration of an existing feature flag. Enables agents to change targeting rules, modify variations, or adapt rollout strategies dynamically in response to user behavior or experiment results.`,
41267
+ description: `Updates the configuration of an existing feature flag. Enables agents to change targeting rules, modify variations, or adapt rollout strategies dynamically in response to user behavior or experiment results.
41268
+ `,
40058
41269
  scopes: ["write"],
40059
- args: args14,
40060
- tool: async (client, args15, ctx) => {
40061
- const [result, apiCall] = await featureFlagsPatch(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41270
+ args: args16,
41271
+ tool: async (client, args17, ctx) => {
41272
+ const [result, apiCall] = await featureFlagsPatch(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40062
41273
  if (!result.ok) {
40063
41274
  return {
40064
41275
  content: [{ type: "text", text: result.error.message }],
@@ -40075,7 +41286,7 @@ var init_featureFlagsPatch2 = __esm(() => {
40075
41286
  function createMCPServer(deps) {
40076
41287
  const server = new McpServer({
40077
41288
  name: "LaunchDarkly",
40078
- version: "0.2.7"
41289
+ version: "0.4.0"
40079
41290
  });
40080
41291
  const client = new LaunchDarklyCore({
40081
41292
  apiKey: deps.apiKey,
@@ -40094,6 +41305,8 @@ function createMCPServer(deps) {
40094
41305
  tool(tool$featureFlagsGet);
40095
41306
  tool(tool$featureFlagsPatch);
40096
41307
  tool(tool$featureFlagsDelete);
41308
+ tool(tool$aiConfigsGetTargeting);
41309
+ tool(tool$aiConfigsUpdateTargeting);
40097
41310
  tool(tool$aiConfigsList);
40098
41311
  tool(tool$aiConfigsCreate);
40099
41312
  tool(tool$aiConfigsDelete);
@@ -40115,9 +41328,11 @@ var init_server2 = __esm(() => {
40115
41328
  init_aiConfigsDelete2();
40116
41329
  init_aiConfigsDeleteVariation2();
40117
41330
  init_aiConfigsGet2();
41331
+ init_aiConfigsGetTargeting2();
40118
41332
  init_aiConfigsGetVariation2();
40119
41333
  init_aiConfigsList2();
40120
41334
  init_aiConfigsUpdate2();
41335
+ init_aiConfigsUpdateTargeting2();
40121
41336
  init_aiConfigsUpdateVariation2();
40122
41337
  init_featureFlagsCreate2();
40123
41338
  init_featureFlagsDelete2();
@@ -41241,15 +42456,13 @@ var startCommand = on({
41241
42456
  return stringType().parse(value);
41242
42457
  }
41243
42458
  },
41244
- ...mcpScopes.length ? {
41245
- scope: {
41246
- kind: "enum",
41247
- brief: "Mount tools/resources that match given scope (repeatable flag)",
41248
- values: mcpScopes,
41249
- variadic: true,
41250
- optional: true
41251
- }
41252
- } : {},
42459
+ scope: {
42460
+ kind: "enum",
42461
+ brief: "Mount tools/resources that match given scope (repeatable flag)",
42462
+ values: mcpScopes,
42463
+ variadic: true,
42464
+ optional: true
42465
+ },
41253
42466
  "api-key": {
41254
42467
  kind: "parsed",
41255
42468
  brief: "Sets the apiKey auth field for the API",
@@ -41317,7 +42530,7 @@ var routes = an({
41317
42530
  var app = He(routes, {
41318
42531
  name: "mcp",
41319
42532
  versionInfo: {
41320
- currentVersion: "0.2.7"
42533
+ currentVersion: "0.4.0"
41321
42534
  }
41322
42535
  });
41323
42536
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -41325,5 +42538,5 @@ export {
41325
42538
  app
41326
42539
  };
41327
42540
 
41328
- //# debugId=74ABC09135B2920A64756E2164756E21
42541
+ //# debugId=8688EE4AC588B59B64756E2164756E21
41329
42542
  //# sourceMappingURL=mcp-server.js.map