@launchdarkly/mcp-server 0.3.1 → 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 (669) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +27 -0
  3. package/bin/mcp-server.js +1540 -320
  4. package/bin/mcp-server.js.map +77 -46
  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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -1
  68. package/dist/commonjs/funcs/featureFlagsPatch.js.map +1 -1
  69. package/dist/commonjs/lib/config.d.ts +3 -3
  70. package/dist/commonjs/lib/config.js +3 -3
  71. package/dist/commonjs/lib/files.d.ts +5 -0
  72. package/dist/commonjs/lib/files.d.ts.map +1 -1
  73. package/dist/commonjs/lib/files.js +41 -0
  74. package/dist/commonjs/lib/files.js.map +1 -1
  75. package/dist/commonjs/lib/matchers.d.ts +3 -10
  76. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  77. package/dist/commonjs/lib/matchers.js +33 -31
  78. package/dist/commonjs/lib/matchers.js.map +1 -1
  79. package/dist/commonjs/lib/security.d.ts +2 -2
  80. package/dist/commonjs/lib/security.d.ts.map +1 -1
  81. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  82. package/dist/commonjs/mcp-server/cli/start/command.js +7 -11
  83. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  84. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  85. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  86. package/dist/commonjs/mcp-server/server.js +5 -1
  87. package/dist/commonjs/mcp-server/server.js.map +1 -1
  88. package/dist/commonjs/mcp-server/tools/aiConfigsGetTargeting.d.ts +8 -0
  89. package/dist/commonjs/mcp-server/tools/aiConfigsGetTargeting.d.ts.map +1 -0
  90. package/dist/commonjs/mcp-server/tools/aiConfigsGetTargeting.js +63 -0
  91. package/dist/commonjs/mcp-server/tools/aiConfigsGetTargeting.js.map +1 -0
  92. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateTargeting.d.ts +8 -0
  93. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateTargeting.d.ts.map +1 -0
  94. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateTargeting.js +63 -0
  95. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateTargeting.js.map +1 -0
  96. package/dist/commonjs/models/components/aiconfig.d.ts +28 -0
  97. package/dist/commonjs/models/components/aiconfig.d.ts.map +1 -1
  98. package/dist/commonjs/models/components/aiconfig.js +22 -1
  99. package/dist/commonjs/models/components/aiconfig.js.map +1 -1
  100. package/dist/commonjs/models/components/aiconfigmaintainer.d.ts +2 -2
  101. package/dist/commonjs/models/components/aiconfigmaintainer.d.ts.map +1 -1
  102. package/dist/commonjs/models/components/aiconfigmaintainer.js +2 -2
  103. package/dist/commonjs/models/components/aiconfigmaintainer.js.map +1 -1
  104. package/dist/commonjs/models/components/aiconfigpost.d.ts +28 -0
  105. package/dist/commonjs/models/components/aiconfigpost.d.ts.map +1 -1
  106. package/dist/commonjs/models/components/aiconfigpost.js +22 -1
  107. package/dist/commonjs/models/components/aiconfigpost.js.map +1 -1
  108. package/dist/commonjs/models/components/aiconfigsexperimentenabledperiodrep.d.ts +31 -0
  109. package/dist/commonjs/models/components/aiconfigsexperimentenabledperiodrep.d.ts.map +1 -0
  110. package/dist/commonjs/models/components/aiconfigsexperimentenabledperiodrep.js +71 -0
  111. package/dist/commonjs/models/components/aiconfigsexperimentenabledperiodrep.js.map +1 -0
  112. package/dist/commonjs/models/components/aiconfigsexperimentenvironmentsettingrep.d.ts +34 -0
  113. package/dist/commonjs/models/components/aiconfigsexperimentenvironmentsettingrep.d.ts.map +1 -0
  114. package/dist/commonjs/models/components/aiconfigsexperimentenvironmentsettingrep.js +76 -0
  115. package/dist/commonjs/models/components/aiconfigsexperimentenvironmentsettingrep.js.map +1 -0
  116. package/dist/commonjs/models/components/aiconfigsexperimentinforep.d.ts +32 -0
  117. package/dist/commonjs/models/components/aiconfigsexperimentinforep.d.ts.map +1 -0
  118. package/dist/commonjs/models/components/aiconfigsexperimentinforep.js +72 -0
  119. package/dist/commonjs/models/components/aiconfigsexperimentinforep.js.map +1 -0
  120. package/dist/commonjs/models/components/aiconfigsfilter.d.ts +89 -0
  121. package/dist/commonjs/models/components/aiconfigsfilter.d.ts.map +1 -0
  122. package/dist/commonjs/models/components/aiconfigsfilter.js +102 -0
  123. package/dist/commonjs/models/components/aiconfigsfilter.js.map +1 -0
  124. package/dist/commonjs/models/components/aiconfigslegacyexperimentrep.d.ts +41 -0
  125. package/dist/commonjs/models/components/aiconfigslegacyexperimentrep.d.ts.map +1 -0
  126. package/dist/commonjs/models/components/aiconfigslegacyexperimentrep.js +88 -0
  127. package/dist/commonjs/models/components/aiconfigslegacyexperimentrep.js.map +1 -0
  128. package/dist/commonjs/models/components/aiconfigsmembersummary.d.ts +62 -0
  129. package/dist/commonjs/models/components/aiconfigsmembersummary.d.ts.map +1 -0
  130. package/dist/commonjs/models/components/aiconfigsmembersummary.js +91 -0
  131. package/dist/commonjs/models/components/aiconfigsmembersummary.js.map +1 -0
  132. package/dist/commonjs/models/components/aiconfigsmetriceventdefaultrep.d.ts +37 -0
  133. package/dist/commonjs/models/components/aiconfigsmetriceventdefaultrep.d.ts.map +1 -0
  134. package/dist/commonjs/models/components/aiconfigsmetriceventdefaultrep.js +71 -0
  135. package/dist/commonjs/models/components/aiconfigsmetriceventdefaultrep.js.map +1 -0
  136. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.d.ts +289 -0
  137. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.d.ts.map +1 -0
  138. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.js +247 -0
  139. package/dist/commonjs/models/components/aiconfigsmetriclistingrep.js.map +1 -0
  140. package/dist/commonjs/models/components/aiconfigsmodification.d.ts +29 -0
  141. package/dist/commonjs/models/components/aiconfigsmodification.d.ts.map +1 -0
  142. package/dist/commonjs/models/components/aiconfigsmodification.js +70 -0
  143. package/dist/commonjs/models/components/aiconfigsmodification.js.map +1 -0
  144. package/dist/commonjs/models/components/aiconfigtargeting.d.ts +56 -0
  145. package/dist/commonjs/models/components/aiconfigtargeting.d.ts.map +1 -0
  146. package/dist/commonjs/models/components/aiconfigtargeting.js +98 -0
  147. package/dist/commonjs/models/components/aiconfigtargeting.js.map +1 -0
  148. package/dist/commonjs/models/components/aiconfigtargetingdefaults.d.ts +31 -0
  149. package/dist/commonjs/models/components/aiconfigtargetingdefaults.d.ts.map +1 -0
  150. package/dist/commonjs/models/components/aiconfigtargetingdefaults.js +71 -0
  151. package/dist/commonjs/models/components/aiconfigtargetingdefaults.js.map +1 -0
  152. package/dist/commonjs/models/components/aiconfigtargetingenvironment.d.ts +52 -0
  153. package/dist/commonjs/models/components/aiconfigtargetingenvironment.d.ts.map +1 -0
  154. package/dist/commonjs/models/components/aiconfigtargetingenvironment.js +103 -0
  155. package/dist/commonjs/models/components/aiconfigtargetingenvironment.js.map +1 -0
  156. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthrough.d.ts +32 -0
  157. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthrough.d.ts.map +1 -0
  158. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthrough.js +74 -0
  159. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthrough.js.map +1 -0
  160. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrollout.d.ts +39 -0
  161. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrollout.d.ts.map +1 -0
  162. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrollout.js +81 -0
  163. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrollout.js.map +1 -0
  164. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.d.ts +33 -0
  165. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.d.ts.map +1 -0
  166. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.js +75 -0
  167. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.js.map +1 -0
  168. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.d.ts +33 -0
  169. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.d.ts.map +1 -0
  170. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.js +84 -0
  171. package/dist/commonjs/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.js.map +1 -0
  172. package/dist/commonjs/models/components/aiconfigtargetingenvironmentrule.d.ts +32 -0
  173. package/dist/commonjs/models/components/aiconfigtargetingenvironmentrule.d.ts.map +1 -0
  174. package/dist/commonjs/models/components/aiconfigtargetingenvironmentrule.js +72 -0
  175. package/dist/commonjs/models/components/aiconfigtargetingenvironmentrule.js.map +1 -0
  176. package/dist/commonjs/models/components/aiconfigtargetingenvironmentruleclause.d.ts +37 -0
  177. package/dist/commonjs/models/components/aiconfigtargetingenvironmentruleclause.d.ts.map +1 -0
  178. package/dist/commonjs/models/components/aiconfigtargetingenvironmentruleclause.js +77 -0
  179. package/dist/commonjs/models/components/aiconfigtargetingenvironmentruleclause.js.map +1 -0
  180. package/dist/commonjs/models/components/aiconfigtargetingenvironmenttarget.d.ts +33 -0
  181. package/dist/commonjs/models/components/aiconfigtargetingenvironmenttarget.d.ts.map +1 -0
  182. package/dist/commonjs/models/components/aiconfigtargetingenvironmenttarget.js +73 -0
  183. package/dist/commonjs/models/components/aiconfigtargetingenvironmenttarget.js.map +1 -0
  184. package/dist/commonjs/models/components/aiconfigtargetingpatch.d.ts +37 -0
  185. package/dist/commonjs/models/components/aiconfigtargetingpatch.d.ts.map +1 -0
  186. package/dist/commonjs/models/components/aiconfigtargetingpatch.js +73 -0
  187. package/dist/commonjs/models/components/aiconfigtargetingpatch.js.map +1 -0
  188. package/dist/commonjs/models/components/aiconfigtargetingvariation.d.ts +36 -0
  189. package/dist/commonjs/models/components/aiconfigtargetingvariation.d.ts.map +1 -0
  190. package/dist/commonjs/models/components/aiconfigtargetingvariation.js +85 -0
  191. package/dist/commonjs/models/components/aiconfigtargetingvariation.js.map +1 -0
  192. package/dist/commonjs/models/components/aiconfigtargetingvariationjson.d.ts +25 -0
  193. package/dist/commonjs/models/components/aiconfigtargetingvariationjson.d.ts.map +1 -0
  194. package/dist/commonjs/models/components/aiconfigtargetingvariationjson.js +65 -0
  195. package/dist/commonjs/models/components/aiconfigtargetingvariationjson.js.map +1 -0
  196. package/dist/commonjs/models/components/aiconfigtargetingvariationvalue.d.ts +26 -0
  197. package/dist/commonjs/models/components/aiconfigtargetingvariationvalue.d.ts.map +1 -0
  198. package/dist/commonjs/models/components/aiconfigtargetingvariationvalue.js +76 -0
  199. package/dist/commonjs/models/components/aiconfigtargetingvariationvalue.js.map +1 -0
  200. package/dist/commonjs/models/components/aiconfigvariation.d.ts +14 -2
  201. package/dist/commonjs/models/components/aiconfigvariation.d.ts.map +1 -1
  202. package/dist/commonjs/models/components/aiconfigvariation.js +10 -2
  203. package/dist/commonjs/models/components/aiconfigvariation.js.map +1 -1
  204. package/dist/commonjs/models/components/aiconfigvariationpatch.d.ts +15 -5
  205. package/dist/commonjs/models/components/aiconfigvariationpatch.d.ts.map +1 -1
  206. package/dist/commonjs/models/components/aiconfigvariationpatch.js +6 -2
  207. package/dist/commonjs/models/components/aiconfigvariationpatch.js.map +1 -1
  208. package/dist/commonjs/models/components/aiconfigvariationpost.d.ts +17 -7
  209. package/dist/commonjs/models/components/aiconfigvariationpost.d.ts.map +1 -1
  210. package/dist/commonjs/models/components/aiconfigvariationpost.js +8 -4
  211. package/dist/commonjs/models/components/aiconfigvariationpost.js.map +1 -1
  212. package/dist/commonjs/models/components/filter.d.ts +8 -8
  213. package/dist/commonjs/models/components/filter.d.ts.map +1 -1
  214. package/dist/commonjs/models/components/filter.js +14 -13
  215. package/dist/commonjs/models/components/filter.js.map +1 -1
  216. package/dist/commonjs/models/components/index.d.ts +23 -0
  217. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  218. package/dist/commonjs/models/components/index.js +23 -0
  219. package/dist/commonjs/models/components/index.js.map +1 -1
  220. package/dist/commonjs/models/components/membersummary.d.ts +1 -1
  221. package/dist/commonjs/models/components/metriclistingrep.d.ts +24 -24
  222. package/dist/commonjs/models/components/metriclistingrep.d.ts.map +1 -1
  223. package/dist/commonjs/models/components/metriclistingrep.js +39 -37
  224. package/dist/commonjs/models/components/metriclistingrep.js.map +1 -1
  225. package/dist/commonjs/models/errors/apierror.d.ts +8 -6
  226. package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
  227. package/dist/commonjs/models/errors/apierror.js +23 -10
  228. package/dist/commonjs/models/errors/apierror.js.map +1 -1
  229. package/dist/commonjs/models/errors/error.d.ts +7 -2
  230. package/dist/commonjs/models/errors/error.d.ts.map +1 -1
  231. package/dist/commonjs/models/errors/error.js +13 -7
  232. package/dist/commonjs/models/errors/error.js.map +1 -1
  233. package/dist/commonjs/models/errors/forbiddenerrorrep.d.ts +7 -2
  234. package/dist/commonjs/models/errors/forbiddenerrorrep.d.ts.map +1 -1
  235. package/dist/commonjs/models/errors/forbiddenerrorrep.js +13 -7
  236. package/dist/commonjs/models/errors/forbiddenerrorrep.js.map +1 -1
  237. package/dist/commonjs/models/errors/index.d.ts +1 -0
  238. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  239. package/dist/commonjs/models/errors/index.js +1 -0
  240. package/dist/commonjs/models/errors/index.js.map +1 -1
  241. package/dist/commonjs/models/errors/invalidrequesterrorrep.d.ts +7 -2
  242. package/dist/commonjs/models/errors/invalidrequesterrorrep.d.ts.map +1 -1
  243. package/dist/commonjs/models/errors/invalidrequesterrorrep.js +13 -7
  244. package/dist/commonjs/models/errors/invalidrequesterrorrep.js.map +1 -1
  245. package/dist/commonjs/models/errors/launchdarklyerror.d.ts +19 -0
  246. package/dist/commonjs/models/errors/launchdarklyerror.d.ts.map +1 -0
  247. package/dist/commonjs/models/errors/launchdarklyerror.js +20 -0
  248. package/dist/commonjs/models/errors/launchdarklyerror.js.map +1 -0
  249. package/dist/commonjs/models/errors/methodnotallowederrorrep.d.ts +7 -2
  250. package/dist/commonjs/models/errors/methodnotallowederrorrep.d.ts.map +1 -1
  251. package/dist/commonjs/models/errors/methodnotallowederrorrep.js +13 -7
  252. package/dist/commonjs/models/errors/methodnotallowederrorrep.js.map +1 -1
  253. package/dist/commonjs/models/errors/notfounderrorrep.d.ts +7 -2
  254. package/dist/commonjs/models/errors/notfounderrorrep.d.ts.map +1 -1
  255. package/dist/commonjs/models/errors/notfounderrorrep.js +13 -7
  256. package/dist/commonjs/models/errors/notfounderrorrep.js.map +1 -1
  257. package/dist/commonjs/models/errors/ratelimitederrorrep.d.ts +7 -2
  258. package/dist/commonjs/models/errors/ratelimitederrorrep.d.ts.map +1 -1
  259. package/dist/commonjs/models/errors/ratelimitederrorrep.js +13 -7
  260. package/dist/commonjs/models/errors/ratelimitederrorrep.js.map +1 -1
  261. package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
  262. package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
  263. package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
  264. package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
  265. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
  266. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
  267. package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
  268. package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
  269. package/dist/commonjs/models/errors/statusconflicterrorrep.d.ts +7 -2
  270. package/dist/commonjs/models/errors/statusconflicterrorrep.d.ts.map +1 -1
  271. package/dist/commonjs/models/errors/statusconflicterrorrep.js +13 -7
  272. package/dist/commonjs/models/errors/statusconflicterrorrep.js.map +1 -1
  273. package/dist/commonjs/models/errors/unauthorizederrorrep.d.ts +7 -2
  274. package/dist/commonjs/models/errors/unauthorizederrorrep.d.ts.map +1 -1
  275. package/dist/commonjs/models/errors/unauthorizederrorrep.js +13 -7
  276. package/dist/commonjs/models/errors/unauthorizederrorrep.js.map +1 -1
  277. package/dist/commonjs/models/operations/getaiconfigtargeting.d.ts +65 -0
  278. package/dist/commonjs/models/operations/getaiconfigtargeting.d.ts.map +1 -0
  279. package/dist/commonjs/models/operations/getaiconfigtargeting.js +103 -0
  280. package/dist/commonjs/models/operations/getaiconfigtargeting.js.map +1 -0
  281. package/dist/commonjs/models/operations/index.d.ts +2 -0
  282. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  283. package/dist/commonjs/models/operations/index.js +2 -0
  284. package/dist/commonjs/models/operations/index.js.map +1 -1
  285. package/dist/commonjs/models/operations/patchaiconfigtargeting.d.ts +71 -0
  286. package/dist/commonjs/models/operations/patchaiconfigtargeting.d.ts.map +1 -0
  287. package/dist/commonjs/models/operations/patchaiconfigtargeting.js +110 -0
  288. package/dist/commonjs/models/operations/patchaiconfigtargeting.js.map +1 -0
  289. package/dist/commonjs/sdk/aiconfigs.d.ts +571 -0
  290. package/dist/commonjs/sdk/aiconfigs.d.ts.map +1 -1
  291. package/dist/commonjs/sdk/aiconfigs.js +577 -0
  292. package/dist/commonjs/sdk/aiconfigs.js.map +1 -1
  293. package/dist/commonjs/types/constdatetime.js +1 -1
  294. package/dist/esm/funcs/aiConfigsCreate.d.ts +3 -2
  295. package/dist/esm/funcs/aiConfigsCreate.d.ts.map +1 -1
  296. package/dist/esm/funcs/aiConfigsCreate.js +1 -1
  297. package/dist/esm/funcs/aiConfigsCreate.js.map +1 -1
  298. package/dist/esm/funcs/aiConfigsCreateVariation.d.ts +3 -2
  299. package/dist/esm/funcs/aiConfigsCreateVariation.d.ts.map +1 -1
  300. package/dist/esm/funcs/aiConfigsCreateVariation.js +1 -1
  301. package/dist/esm/funcs/aiConfigsCreateVariation.js.map +1 -1
  302. package/dist/esm/funcs/aiConfigsDelete.d.ts +3 -2
  303. package/dist/esm/funcs/aiConfigsDelete.d.ts.map +1 -1
  304. package/dist/esm/funcs/aiConfigsDelete.js +1 -1
  305. package/dist/esm/funcs/aiConfigsDelete.js.map +1 -1
  306. package/dist/esm/funcs/aiConfigsDeleteVariation.d.ts +3 -2
  307. package/dist/esm/funcs/aiConfigsDeleteVariation.d.ts.map +1 -1
  308. package/dist/esm/funcs/aiConfigsDeleteVariation.js +1 -1
  309. package/dist/esm/funcs/aiConfigsDeleteVariation.js.map +1 -1
  310. package/dist/esm/funcs/aiConfigsGet.d.ts +3 -2
  311. package/dist/esm/funcs/aiConfigsGet.d.ts.map +1 -1
  312. package/dist/esm/funcs/aiConfigsGet.js +1 -1
  313. package/dist/esm/funcs/aiConfigsGet.js.map +1 -1
  314. package/dist/esm/funcs/aiConfigsGetTargeting.d.ts +19 -0
  315. package/dist/esm/funcs/aiConfigsGetTargeting.d.ts.map +1 -0
  316. package/dist/esm/funcs/aiConfigsGetTargeting.js +93 -0
  317. package/dist/esm/funcs/aiConfigsGetTargeting.js.map +1 -0
  318. package/dist/esm/funcs/aiConfigsGetVariation.d.ts +3 -2
  319. package/dist/esm/funcs/aiConfigsGetVariation.d.ts.map +1 -1
  320. package/dist/esm/funcs/aiConfigsGetVariation.js +1 -1
  321. package/dist/esm/funcs/aiConfigsGetVariation.js.map +1 -1
  322. package/dist/esm/funcs/aiConfigsList.d.ts +3 -2
  323. package/dist/esm/funcs/aiConfigsList.d.ts.map +1 -1
  324. package/dist/esm/funcs/aiConfigsList.js +1 -1
  325. package/dist/esm/funcs/aiConfigsList.js.map +1 -1
  326. package/dist/esm/funcs/aiConfigsUpdate.d.ts +3 -2
  327. package/dist/esm/funcs/aiConfigsUpdate.d.ts.map +1 -1
  328. package/dist/esm/funcs/aiConfigsUpdate.js +1 -1
  329. package/dist/esm/funcs/aiConfigsUpdate.js.map +1 -1
  330. package/dist/esm/funcs/aiConfigsUpdateTargeting.d.ts +576 -0
  331. package/dist/esm/funcs/aiConfigsUpdateTargeting.d.ts.map +1 -0
  332. package/dist/esm/funcs/aiConfigsUpdateTargeting.js +653 -0
  333. package/dist/esm/funcs/aiConfigsUpdateTargeting.js.map +1 -0
  334. package/dist/esm/funcs/aiConfigsUpdateVariation.d.ts +3 -2
  335. package/dist/esm/funcs/aiConfigsUpdateVariation.d.ts.map +1 -1
  336. package/dist/esm/funcs/aiConfigsUpdateVariation.js +1 -1
  337. package/dist/esm/funcs/aiConfigsUpdateVariation.js.map +1 -1
  338. package/dist/esm/funcs/featureFlagsCreate.d.ts +3 -2
  339. package/dist/esm/funcs/featureFlagsCreate.d.ts.map +1 -1
  340. package/dist/esm/funcs/featureFlagsCreate.js +1 -1
  341. package/dist/esm/funcs/featureFlagsCreate.js.map +1 -1
  342. package/dist/esm/funcs/featureFlagsDelete.d.ts +3 -2
  343. package/dist/esm/funcs/featureFlagsDelete.d.ts.map +1 -1
  344. package/dist/esm/funcs/featureFlagsDelete.js +1 -1
  345. package/dist/esm/funcs/featureFlagsDelete.js.map +1 -1
  346. package/dist/esm/funcs/featureFlagsGet.d.ts +3 -2
  347. package/dist/esm/funcs/featureFlagsGet.d.ts.map +1 -1
  348. package/dist/esm/funcs/featureFlagsGet.js +1 -1
  349. package/dist/esm/funcs/featureFlagsGet.js.map +1 -1
  350. package/dist/esm/funcs/featureFlagsList.d.ts +3 -2
  351. package/dist/esm/funcs/featureFlagsList.d.ts.map +1 -1
  352. package/dist/esm/funcs/featureFlagsList.js +1 -1
  353. package/dist/esm/funcs/featureFlagsList.js.map +1 -1
  354. package/dist/esm/funcs/featureFlagsPatch.d.ts +3 -2
  355. package/dist/esm/funcs/featureFlagsPatch.d.ts.map +1 -1
  356. package/dist/esm/funcs/featureFlagsPatch.js +1 -1
  357. package/dist/esm/funcs/featureFlagsPatch.js.map +1 -1
  358. package/dist/esm/lib/config.d.ts +3 -3
  359. package/dist/esm/lib/config.js +3 -3
  360. package/dist/esm/lib/files.d.ts +5 -0
  361. package/dist/esm/lib/files.d.ts.map +1 -1
  362. package/dist/esm/lib/files.js +40 -0
  363. package/dist/esm/lib/files.js.map +1 -1
  364. package/dist/esm/lib/matchers.d.ts +3 -10
  365. package/dist/esm/lib/matchers.d.ts.map +1 -1
  366. package/dist/esm/lib/matchers.js +33 -30
  367. package/dist/esm/lib/matchers.js.map +1 -1
  368. package/dist/esm/lib/security.d.ts +2 -2
  369. package/dist/esm/lib/security.d.ts.map +1 -1
  370. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  371. package/dist/esm/mcp-server/cli/start/command.js +7 -11
  372. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  373. package/dist/esm/mcp-server/mcp-server.js +1 -1
  374. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  375. package/dist/esm/mcp-server/server.js +5 -1
  376. package/dist/esm/mcp-server/server.js.map +1 -1
  377. package/dist/esm/mcp-server/tools/aiConfigsGetTargeting.d.ts +8 -0
  378. package/dist/esm/mcp-server/tools/aiConfigsGetTargeting.d.ts.map +1 -0
  379. package/dist/esm/mcp-server/tools/aiConfigsGetTargeting.js +27 -0
  380. package/dist/esm/mcp-server/tools/aiConfigsGetTargeting.js.map +1 -0
  381. package/dist/esm/mcp-server/tools/aiConfigsUpdateTargeting.d.ts +8 -0
  382. package/dist/esm/mcp-server/tools/aiConfigsUpdateTargeting.d.ts.map +1 -0
  383. package/dist/esm/mcp-server/tools/aiConfigsUpdateTargeting.js +27 -0
  384. package/dist/esm/mcp-server/tools/aiConfigsUpdateTargeting.js.map +1 -0
  385. package/dist/esm/models/components/aiconfig.d.ts +28 -0
  386. package/dist/esm/models/components/aiconfig.d.ts.map +1 -1
  387. package/dist/esm/models/components/aiconfig.js +21 -0
  388. package/dist/esm/models/components/aiconfig.js.map +1 -1
  389. package/dist/esm/models/components/aiconfigmaintainer.d.ts +2 -2
  390. package/dist/esm/models/components/aiconfigmaintainer.d.ts.map +1 -1
  391. package/dist/esm/models/components/aiconfigmaintainer.js +2 -2
  392. package/dist/esm/models/components/aiconfigmaintainer.js.map +1 -1
  393. package/dist/esm/models/components/aiconfigpost.d.ts +28 -0
  394. package/dist/esm/models/components/aiconfigpost.d.ts.map +1 -1
  395. package/dist/esm/models/components/aiconfigpost.js +21 -0
  396. package/dist/esm/models/components/aiconfigpost.js.map +1 -1
  397. package/dist/esm/models/components/aiconfigsexperimentenabledperiodrep.d.ts +31 -0
  398. package/dist/esm/models/components/aiconfigsexperimentenabledperiodrep.d.ts.map +1 -0
  399. package/dist/esm/models/components/aiconfigsexperimentenabledperiodrep.js +33 -0
  400. package/dist/esm/models/components/aiconfigsexperimentenabledperiodrep.js.map +1 -0
  401. package/dist/esm/models/components/aiconfigsexperimentenvironmentsettingrep.d.ts +34 -0
  402. package/dist/esm/models/components/aiconfigsexperimentenvironmentsettingrep.d.ts.map +1 -0
  403. package/dist/esm/models/components/aiconfigsexperimentenvironmentsettingrep.js +38 -0
  404. package/dist/esm/models/components/aiconfigsexperimentenvironmentsettingrep.js.map +1 -0
  405. package/dist/esm/models/components/aiconfigsexperimentinforep.d.ts +32 -0
  406. package/dist/esm/models/components/aiconfigsexperimentinforep.d.ts.map +1 -0
  407. package/dist/esm/models/components/aiconfigsexperimentinforep.js +34 -0
  408. package/dist/esm/models/components/aiconfigsexperimentinforep.js.map +1 -0
  409. package/dist/esm/models/components/aiconfigsfilter.d.ts +89 -0
  410. package/dist/esm/models/components/aiconfigsfilter.d.ts.map +1 -0
  411. package/dist/esm/models/components/aiconfigsfilter.js +64 -0
  412. package/dist/esm/models/components/aiconfigsfilter.js.map +1 -0
  413. package/dist/esm/models/components/aiconfigslegacyexperimentrep.d.ts +41 -0
  414. package/dist/esm/models/components/aiconfigslegacyexperimentrep.d.ts.map +1 -0
  415. package/dist/esm/models/components/aiconfigslegacyexperimentrep.js +50 -0
  416. package/dist/esm/models/components/aiconfigslegacyexperimentrep.js.map +1 -0
  417. package/dist/esm/models/components/aiconfigsmembersummary.d.ts +62 -0
  418. package/dist/esm/models/components/aiconfigsmembersummary.d.ts.map +1 -0
  419. package/dist/esm/models/components/aiconfigsmembersummary.js +53 -0
  420. package/dist/esm/models/components/aiconfigsmembersummary.js.map +1 -0
  421. package/dist/esm/models/components/aiconfigsmetriceventdefaultrep.d.ts +37 -0
  422. package/dist/esm/models/components/aiconfigsmetriceventdefaultrep.d.ts.map +1 -0
  423. package/dist/esm/models/components/aiconfigsmetriceventdefaultrep.js +33 -0
  424. package/dist/esm/models/components/aiconfigsmetriceventdefaultrep.js.map +1 -0
  425. package/dist/esm/models/components/aiconfigsmetriclistingrep.d.ts +289 -0
  426. package/dist/esm/models/components/aiconfigsmetriclistingrep.d.ts.map +1 -0
  427. package/dist/esm/models/components/aiconfigsmetriclistingrep.js +209 -0
  428. package/dist/esm/models/components/aiconfigsmetriclistingrep.js.map +1 -0
  429. package/dist/esm/models/components/aiconfigsmodification.d.ts +29 -0
  430. package/dist/esm/models/components/aiconfigsmodification.d.ts.map +1 -0
  431. package/dist/esm/models/components/aiconfigsmodification.js +32 -0
  432. package/dist/esm/models/components/aiconfigsmodification.js.map +1 -0
  433. package/dist/esm/models/components/aiconfigtargeting.d.ts +56 -0
  434. package/dist/esm/models/components/aiconfigtargeting.d.ts.map +1 -0
  435. package/dist/esm/models/components/aiconfigtargeting.js +60 -0
  436. package/dist/esm/models/components/aiconfigtargeting.js.map +1 -0
  437. package/dist/esm/models/components/aiconfigtargetingdefaults.d.ts +31 -0
  438. package/dist/esm/models/components/aiconfigtargetingdefaults.d.ts.map +1 -0
  439. package/dist/esm/models/components/aiconfigtargetingdefaults.js +33 -0
  440. package/dist/esm/models/components/aiconfigtargetingdefaults.js.map +1 -0
  441. package/dist/esm/models/components/aiconfigtargetingenvironment.d.ts +52 -0
  442. package/dist/esm/models/components/aiconfigtargetingenvironment.d.ts.map +1 -0
  443. package/dist/esm/models/components/aiconfigtargetingenvironment.js +65 -0
  444. package/dist/esm/models/components/aiconfigtargetingenvironment.js.map +1 -0
  445. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthrough.d.ts +32 -0
  446. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthrough.d.ts.map +1 -0
  447. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthrough.js +36 -0
  448. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthrough.js.map +1 -0
  449. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrollout.d.ts +39 -0
  450. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrollout.d.ts.map +1 -0
  451. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrollout.js +43 -0
  452. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrollout.js.map +1 -0
  453. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.d.ts +33 -0
  454. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.d.ts.map +1 -0
  455. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.js +37 -0
  456. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.js.map +1 -0
  457. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.d.ts +33 -0
  458. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.d.ts.map +1 -0
  459. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.js +46 -0
  460. package/dist/esm/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.js.map +1 -0
  461. package/dist/esm/models/components/aiconfigtargetingenvironmentrule.d.ts +32 -0
  462. package/dist/esm/models/components/aiconfigtargetingenvironmentrule.d.ts.map +1 -0
  463. package/dist/esm/models/components/aiconfigtargetingenvironmentrule.js +34 -0
  464. package/dist/esm/models/components/aiconfigtargetingenvironmentrule.js.map +1 -0
  465. package/dist/esm/models/components/aiconfigtargetingenvironmentruleclause.d.ts +37 -0
  466. package/dist/esm/models/components/aiconfigtargetingenvironmentruleclause.d.ts.map +1 -0
  467. package/dist/esm/models/components/aiconfigtargetingenvironmentruleclause.js +39 -0
  468. package/dist/esm/models/components/aiconfigtargetingenvironmentruleclause.js.map +1 -0
  469. package/dist/esm/models/components/aiconfigtargetingenvironmenttarget.d.ts +33 -0
  470. package/dist/esm/models/components/aiconfigtargetingenvironmenttarget.d.ts.map +1 -0
  471. package/dist/esm/models/components/aiconfigtargetingenvironmenttarget.js +35 -0
  472. package/dist/esm/models/components/aiconfigtargetingenvironmenttarget.js.map +1 -0
  473. package/dist/esm/models/components/aiconfigtargetingpatch.d.ts +37 -0
  474. package/dist/esm/models/components/aiconfigtargetingpatch.d.ts.map +1 -0
  475. package/dist/esm/models/components/aiconfigtargetingpatch.js +35 -0
  476. package/dist/esm/models/components/aiconfigtargetingpatch.js.map +1 -0
  477. package/dist/esm/models/components/aiconfigtargetingvariation.d.ts +36 -0
  478. package/dist/esm/models/components/aiconfigtargetingvariation.d.ts.map +1 -0
  479. package/dist/esm/models/components/aiconfigtargetingvariation.js +47 -0
  480. package/dist/esm/models/components/aiconfigtargetingvariation.js.map +1 -0
  481. package/dist/esm/models/components/aiconfigtargetingvariationjson.d.ts +25 -0
  482. package/dist/esm/models/components/aiconfigtargetingvariationjson.d.ts.map +1 -0
  483. package/dist/esm/models/components/aiconfigtargetingvariationjson.js +27 -0
  484. package/dist/esm/models/components/aiconfigtargetingvariationjson.js.map +1 -0
  485. package/dist/esm/models/components/aiconfigtargetingvariationvalue.d.ts +26 -0
  486. package/dist/esm/models/components/aiconfigtargetingvariationvalue.d.ts.map +1 -0
  487. package/dist/esm/models/components/aiconfigtargetingvariationvalue.js +38 -0
  488. package/dist/esm/models/components/aiconfigtargetingvariationvalue.js.map +1 -0
  489. package/dist/esm/models/components/aiconfigvariation.d.ts +14 -2
  490. package/dist/esm/models/components/aiconfigvariation.d.ts.map +1 -1
  491. package/dist/esm/models/components/aiconfigvariation.js +10 -2
  492. package/dist/esm/models/components/aiconfigvariation.js.map +1 -1
  493. package/dist/esm/models/components/aiconfigvariationpatch.d.ts +15 -5
  494. package/dist/esm/models/components/aiconfigvariationpatch.d.ts.map +1 -1
  495. package/dist/esm/models/components/aiconfigvariationpatch.js +6 -2
  496. package/dist/esm/models/components/aiconfigvariationpatch.js.map +1 -1
  497. package/dist/esm/models/components/aiconfigvariationpost.d.ts +17 -7
  498. package/dist/esm/models/components/aiconfigvariationpost.d.ts.map +1 -1
  499. package/dist/esm/models/components/aiconfigvariationpost.js +8 -4
  500. package/dist/esm/models/components/aiconfigvariationpost.js.map +1 -1
  501. package/dist/esm/models/components/filter.d.ts +8 -8
  502. package/dist/esm/models/components/filter.d.ts.map +1 -1
  503. package/dist/esm/models/components/filter.js +13 -12
  504. package/dist/esm/models/components/filter.js.map +1 -1
  505. package/dist/esm/models/components/index.d.ts +23 -0
  506. package/dist/esm/models/components/index.d.ts.map +1 -1
  507. package/dist/esm/models/components/index.js +23 -0
  508. package/dist/esm/models/components/index.js.map +1 -1
  509. package/dist/esm/models/components/membersummary.d.ts +1 -1
  510. package/dist/esm/models/components/metriclistingrep.d.ts +24 -24
  511. package/dist/esm/models/components/metriclistingrep.d.ts.map +1 -1
  512. package/dist/esm/models/components/metriclistingrep.js +38 -36
  513. package/dist/esm/models/components/metriclistingrep.js.map +1 -1
  514. package/dist/esm/models/errors/apierror.d.ts +8 -6
  515. package/dist/esm/models/errors/apierror.d.ts.map +1 -1
  516. package/dist/esm/models/errors/apierror.js +23 -10
  517. package/dist/esm/models/errors/apierror.js.map +1 -1
  518. package/dist/esm/models/errors/error.d.ts +7 -2
  519. package/dist/esm/models/errors/error.d.ts.map +1 -1
  520. package/dist/esm/models/errors/error.js +13 -7
  521. package/dist/esm/models/errors/error.js.map +1 -1
  522. package/dist/esm/models/errors/forbiddenerrorrep.d.ts +7 -2
  523. package/dist/esm/models/errors/forbiddenerrorrep.d.ts.map +1 -1
  524. package/dist/esm/models/errors/forbiddenerrorrep.js +13 -7
  525. package/dist/esm/models/errors/forbiddenerrorrep.js.map +1 -1
  526. package/dist/esm/models/errors/index.d.ts +1 -0
  527. package/dist/esm/models/errors/index.d.ts.map +1 -1
  528. package/dist/esm/models/errors/index.js +1 -0
  529. package/dist/esm/models/errors/index.js.map +1 -1
  530. package/dist/esm/models/errors/invalidrequesterrorrep.d.ts +7 -2
  531. package/dist/esm/models/errors/invalidrequesterrorrep.d.ts.map +1 -1
  532. package/dist/esm/models/errors/invalidrequesterrorrep.js +13 -7
  533. package/dist/esm/models/errors/invalidrequesterrorrep.js.map +1 -1
  534. package/dist/esm/models/errors/launchdarklyerror.d.ts +19 -0
  535. package/dist/esm/models/errors/launchdarklyerror.d.ts.map +1 -0
  536. package/dist/esm/models/errors/launchdarklyerror.js +16 -0
  537. package/dist/esm/models/errors/launchdarklyerror.js.map +1 -0
  538. package/dist/esm/models/errors/methodnotallowederrorrep.d.ts +7 -2
  539. package/dist/esm/models/errors/methodnotallowederrorrep.d.ts.map +1 -1
  540. package/dist/esm/models/errors/methodnotallowederrorrep.js +13 -7
  541. package/dist/esm/models/errors/methodnotallowederrorrep.js.map +1 -1
  542. package/dist/esm/models/errors/notfounderrorrep.d.ts +7 -2
  543. package/dist/esm/models/errors/notfounderrorrep.d.ts.map +1 -1
  544. package/dist/esm/models/errors/notfounderrorrep.js +13 -7
  545. package/dist/esm/models/errors/notfounderrorrep.js.map +1 -1
  546. package/dist/esm/models/errors/ratelimitederrorrep.d.ts +7 -2
  547. package/dist/esm/models/errors/ratelimitederrorrep.d.ts.map +1 -1
  548. package/dist/esm/models/errors/ratelimitederrorrep.js +13 -7
  549. package/dist/esm/models/errors/ratelimitederrorrep.js.map +1 -1
  550. package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
  551. package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
  552. package/dist/esm/models/errors/responsevalidationerror.js +29 -0
  553. package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
  554. package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
  555. package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
  556. package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
  557. package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
  558. package/dist/esm/models/errors/statusconflicterrorrep.d.ts +7 -2
  559. package/dist/esm/models/errors/statusconflicterrorrep.d.ts.map +1 -1
  560. package/dist/esm/models/errors/statusconflicterrorrep.js +13 -7
  561. package/dist/esm/models/errors/statusconflicterrorrep.js.map +1 -1
  562. package/dist/esm/models/errors/unauthorizederrorrep.d.ts +7 -2
  563. package/dist/esm/models/errors/unauthorizederrorrep.d.ts.map +1 -1
  564. package/dist/esm/models/errors/unauthorizederrorrep.js +13 -7
  565. package/dist/esm/models/errors/unauthorizederrorrep.js.map +1 -1
  566. package/dist/esm/models/operations/getaiconfigtargeting.d.ts +65 -0
  567. package/dist/esm/models/operations/getaiconfigtargeting.d.ts.map +1 -0
  568. package/dist/esm/models/operations/getaiconfigtargeting.js +65 -0
  569. package/dist/esm/models/operations/getaiconfigtargeting.js.map +1 -0
  570. package/dist/esm/models/operations/index.d.ts +2 -0
  571. package/dist/esm/models/operations/index.d.ts.map +1 -1
  572. package/dist/esm/models/operations/index.js +2 -0
  573. package/dist/esm/models/operations/index.js.map +1 -1
  574. package/dist/esm/models/operations/patchaiconfigtargeting.d.ts +71 -0
  575. package/dist/esm/models/operations/patchaiconfigtargeting.d.ts.map +1 -0
  576. package/dist/esm/models/operations/patchaiconfigtargeting.js +72 -0
  577. package/dist/esm/models/operations/patchaiconfigtargeting.js.map +1 -0
  578. package/dist/esm/sdk/aiconfigs.d.ts +571 -0
  579. package/dist/esm/sdk/aiconfigs.d.ts.map +1 -1
  580. package/dist/esm/sdk/aiconfigs.js +577 -0
  581. package/dist/esm/sdk/aiconfigs.js.map +1 -1
  582. package/dist/esm/types/constdatetime.js +1 -1
  583. package/docs/sdks/aiconfigs/README.md +797 -81
  584. package/docs/sdks/featureflags/README.md +25 -43
  585. package/docs/sdks/launchdarkly/README.md +1 -1
  586. package/examples/README.md +26 -0
  587. package/examples/featureFlagsList.example.ts +26 -0
  588. package/examples/package-lock.json +628 -0
  589. package/examples/package.json +18 -0
  590. package/jsr.json +1 -1
  591. package/package.json +3 -3
  592. package/schemas/openapi.json +13921 -3802
  593. package/schemas/output.json +54914 -0
  594. package/src/funcs/aiConfigsCreate.ts +21 -20
  595. package/src/funcs/aiConfigsCreateVariation.ts +21 -20
  596. package/src/funcs/aiConfigsDelete.ts +21 -20
  597. package/src/funcs/aiConfigsDeleteVariation.ts +21 -20
  598. package/src/funcs/aiConfigsGet.ts +21 -20
  599. package/src/funcs/aiConfigsGetTargeting.ts +189 -0
  600. package/src/funcs/aiConfigsGetVariation.ts +21 -20
  601. package/src/funcs/aiConfigsList.ts +21 -20
  602. package/src/funcs/aiConfigsUpdate.ts +21 -20
  603. package/src/funcs/aiConfigsUpdateTargeting.ts +749 -0
  604. package/src/funcs/aiConfigsUpdateVariation.ts +21 -20
  605. package/src/funcs/featureFlagsCreate.ts +21 -17
  606. package/src/funcs/featureFlagsDelete.ts +21 -17
  607. package/src/funcs/featureFlagsGet.ts +21 -17
  608. package/src/funcs/featureFlagsList.ts +21 -17
  609. package/src/funcs/featureFlagsPatch.ts +21 -17
  610. package/src/lib/config.ts +3 -3
  611. package/src/lib/files.ts +42 -0
  612. package/src/lib/matchers.ts +44 -41
  613. package/src/lib/security.ts +2 -2
  614. package/src/mcp-server/cli/start/command.ts +7 -12
  615. package/src/mcp-server/mcp-server.ts +1 -1
  616. package/src/mcp-server/server.ts +5 -1
  617. package/src/mcp-server/tools/aiConfigsGetTargeting.ts +37 -0
  618. package/src/mcp-server/tools/aiConfigsUpdateTargeting.ts +36 -0
  619. package/src/models/components/aiconfig.ts +30 -0
  620. package/src/models/components/aiconfigmaintainer.ts +5 -5
  621. package/src/models/components/aiconfigpost.ts +32 -0
  622. package/src/models/components/aiconfigsexperimentenabledperiodrep.ts +75 -0
  623. package/src/models/components/aiconfigsexperimentenvironmentsettingrep.ts +95 -0
  624. package/src/models/components/aiconfigsexperimentinforep.ts +76 -0
  625. package/src/models/components/aiconfigsfilter.ts +134 -0
  626. package/src/models/components/aiconfigslegacyexperimentrep.ts +111 -0
  627. package/src/models/components/aiconfigsmembersummary.ts +121 -0
  628. package/src/models/components/aiconfigsmetriceventdefaultrep.ts +78 -0
  629. package/src/models/components/aiconfigsmetriclistingrep.ts +458 -0
  630. package/src/models/components/aiconfigsmodification.ts +67 -0
  631. package/src/models/components/aiconfigtargeting.ts +134 -0
  632. package/src/models/components/aiconfigtargetingdefaults.ts +70 -0
  633. package/src/models/components/aiconfigtargetingenvironment.ts +137 -0
  634. package/src/models/components/aiconfigtargetingenvironmentfallthrough.ts +89 -0
  635. package/src/models/components/aiconfigtargetingenvironmentfallthroughrollout.ts +122 -0
  636. package/src/models/components/aiconfigtargetingenvironmentfallthroughrolloutexperimentationallocation.ts +90 -0
  637. package/src/models/components/aiconfigtargetingenvironmentfallthroughrolloutvariation.ts +95 -0
  638. package/src/models/components/aiconfigtargetingenvironmentrule.ts +78 -0
  639. package/src/models/components/aiconfigtargetingenvironmentruleclause.ts +88 -0
  640. package/src/models/components/aiconfigtargetingenvironmenttarget.ts +78 -0
  641. package/src/models/components/aiconfigtargetingpatch.ts +74 -0
  642. package/src/models/components/aiconfigtargetingvariation.ts +93 -0
  643. package/src/models/components/aiconfigtargetingvariationjson.ts +60 -0
  644. package/src/models/components/aiconfigtargetingvariationvalue.ts +84 -0
  645. package/src/models/components/aiconfigvariation.ts +24 -4
  646. package/src/models/components/aiconfigvariationpatch.ts +21 -7
  647. package/src/models/components/aiconfigvariationpost.ts +25 -11
  648. package/src/models/components/filter.ts +14 -15
  649. package/src/models/components/index.ts +23 -0
  650. package/src/models/components/membersummary.ts +1 -1
  651. package/src/models/components/metriclistingrep.ts +58 -46
  652. package/src/models/errors/apierror.ts +29 -16
  653. package/src/models/errors/error.ts +16 -8
  654. package/src/models/errors/forbiddenerrorrep.ts +16 -8
  655. package/src/models/errors/index.ts +1 -0
  656. package/src/models/errors/invalidrequesterrorrep.ts +16 -8
  657. package/src/models/errors/launchdarklyerror.ts +35 -0
  658. package/src/models/errors/methodnotallowederrorrep.ts +16 -8
  659. package/src/models/errors/notfounderrorrep.ts +16 -8
  660. package/src/models/errors/ratelimitederrorrep.ts +16 -8
  661. package/src/models/errors/responsevalidationerror.ts +50 -0
  662. package/src/models/errors/sdkvalidationerror.ts +12 -0
  663. package/src/models/errors/statusconflicterrorrep.ts +16 -8
  664. package/src/models/errors/unauthorizederrorrep.ts +16 -8
  665. package/src/models/operations/getaiconfigtargeting.ts +123 -0
  666. package/src/models/operations/index.ts +2 -0
  667. package/src/models/operations/patchaiconfigtargeting.ts +138 -0
  668. package/src/sdk/aiconfigs.ts +593 -0
  669. 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.3.1",
34240
- genVersion: "2.618.0",
34241
- userAgent: "speakeasy-sdk/typescript 0.3.1 2.618.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
 
@@ -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();
@@ -38504,7 +39493,7 @@ async function $do(client, request, options) {
38504
39493
  const responseFields = {
38505
39494
  HttpMeta: { Response: response, Request: req }
38506
39495
  };
38507
- 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 });
38508
39497
  if (!result.ok) {
38509
39498
  return [result, { status: "complete", request: req, response }];
38510
39499
  }
@@ -38621,7 +39610,7 @@ async function $do2(client, request, options) {
38621
39610
  const responseFields = {
38622
39611
  HttpMeta: { Response: response, Request: req }
38623
39612
  };
38624
- 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 });
38625
39614
  if (!result.ok) {
38626
39615
  return [result, { status: "complete", request: req, response }];
38627
39616
  }
@@ -38735,7 +39724,7 @@ async function $do3(client, request, options) {
38735
39724
  const responseFields = {
38736
39725
  HttpMeta: { Response: response, Request: req }
38737
39726
  };
38738
- 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 });
38739
39728
  if (!result.ok) {
38740
39729
  return [result, { status: "complete", request: req, response }];
38741
39730
  }
@@ -38786,8 +39775,124 @@ var init_aiConfigsDelete2 = __esm(() => {
38786
39775
  function aiConfigsDeleteVariation(client, request, options) {
38787
39776
  return new APIPromise($do4(client, request, options));
38788
39777
  }
38789
- async function $do4(client, request, options) {
38790
- const parsed = safeParse(request, (value) => DeleteAIConfigVariationRequest$outboundSchema.parse(value), "Input validation failed");
39778
+ async function $do4(client, request, options) {
39779
+ const parsed = safeParse(request, (value) => DeleteAIConfigVariationRequest$outboundSchema.parse(value), "Input validation failed");
39780
+ if (!parsed.ok) {
39781
+ return [parsed, { status: "invalid" }];
39782
+ }
39783
+ const payload = parsed.value;
39784
+ const body = null;
39785
+ const pathParams = {
39786
+ configKey: encodeSimple("configKey", payload.configKey, {
39787
+ explode: false,
39788
+ charEncoding: "percent"
39789
+ }),
39790
+ projectKey: encodeSimple("projectKey", payload.projectKey, {
39791
+ explode: false,
39792
+ charEncoding: "percent"
39793
+ }),
39794
+ variationKey: encodeSimple("variationKey", payload.variationKey, {
39795
+ explode: false,
39796
+ charEncoding: "percent"
39797
+ })
39798
+ };
39799
+ const path = pathToFunc("/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}")(pathParams);
39800
+ const headers = new Headers(compactMap({
39801
+ Accept: "application/json",
39802
+ "LD-API-Version": encodeSimple("LD-API-Version", payload["LD-API-Version"], { explode: false, charEncoding: "none" })
39803
+ }));
39804
+ const secConfig = await extractSecurity(client._options.apiKey);
39805
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39806
+ const requestSecurity = resolveGlobalSecurity(securityInput);
39807
+ const context = {
39808
+ options: client._options,
39809
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
39810
+ operationID: "deleteAIConfigVariation",
39811
+ oAuth2Scopes: [],
39812
+ resolvedSecurity: requestSecurity,
39813
+ securitySource: client._options.apiKey,
39814
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
39815
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
39816
+ };
39817
+ const requestRes = client._createRequest(context, {
39818
+ security: requestSecurity,
39819
+ method: "DELETE",
39820
+ baseURL: options?.serverURL,
39821
+ path,
39822
+ headers,
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");
38791
39896
  if (!parsed.ok) {
38792
39897
  return [parsed, { status: "invalid" }];
38793
39898
  }
@@ -38801,13 +39906,9 @@ async function $do4(client, request, options) {
38801
39906
  projectKey: encodeSimple("projectKey", payload.projectKey, {
38802
39907
  explode: false,
38803
39908
  charEncoding: "percent"
38804
- }),
38805
- variationKey: encodeSimple("variationKey", payload.variationKey, {
38806
- explode: false,
38807
- charEncoding: "percent"
38808
39909
  })
38809
39910
  };
38810
- const path = pathToFunc("/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}")(pathParams);
39911
+ const path = pathToFunc("/api/v2/projects/{projectKey}/ai-configs/{configKey}")(pathParams);
38811
39912
  const headers = new Headers(compactMap({
38812
39913
  Accept: "application/json",
38813
39914
  "LD-API-Version": encodeSimple("LD-API-Version", payload["LD-API-Version"], { explode: false, charEncoding: "none" })
@@ -38818,7 +39919,7 @@ async function $do4(client, request, options) {
38818
39919
  const context = {
38819
39920
  options: client._options,
38820
39921
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38821
- operationID: "deleteAIConfigVariation",
39922
+ operationID: "getAIConfig",
38822
39923
  oAuth2Scopes: [],
38823
39924
  resolvedSecurity: requestSecurity,
38824
39925
  securitySource: client._options.apiKey,
@@ -38827,7 +39928,7 @@ async function $do4(client, request, options) {
38827
39928
  };
38828
39929
  const requestRes = client._createRequest(context, {
38829
39930
  security: requestSecurity,
38830
- method: "DELETE",
39931
+ method: "GET",
38831
39932
  baseURL: options?.serverURL,
38832
39933
  path,
38833
39934
  headers,
@@ -38852,58 +39953,59 @@ async function $do4(client, request, options) {
38852
39953
  const responseFields = {
38853
39954
  HttpMeta: { Response: response, Request: req }
38854
39955
  };
38855
- 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 });
38856
39957
  if (!result.ok) {
38857
39958
  return [result, { status: "complete", request: req, response }];
38858
39959
  }
38859
39960
  return [result, { status: "complete", request: req, response }];
38860
39961
  }
38861
- var init_aiConfigsDeleteVariation = __esm(() => {
38862
- init_esm();
39962
+ var init_aiConfigsGet = __esm(() => {
38863
39963
  init_encodings();
38864
39964
  init_matchers();
38865
39965
  init_primitives();
38866
39966
  init_schemas();
38867
39967
  init_security();
38868
39968
  init_url();
39969
+ init_components();
38869
39970
  init_errors2();
38870
39971
  init_operations();
38871
39972
  init_async();
38872
39973
  });
38873
39974
 
38874
- // src/mcp-server/tools/aiConfigsDeleteVariation.ts
38875
- var args4, tool$aiConfigsDeleteVariation;
38876
- var init_aiConfigsDeleteVariation2 = __esm(() => {
38877
- init_aiConfigsDeleteVariation();
39975
+ // src/mcp-server/tools/aiConfigsGet.ts
39976
+ var args5, tool$aiConfigsGet;
39977
+ var init_aiConfigsGet2 = __esm(() => {
39978
+ init_aiConfigsGet();
38878
39979
  init_operations();
38879
39980
  init_tools();
38880
- args4 = {
38881
- request: DeleteAIConfigVariationRequest$inboundSchema
39981
+ args5 = {
39982
+ request: GetAIConfigRequest$inboundSchema
38882
39983
  };
38883
- tool$aiConfigsDeleteVariation = {
38884
- name: "delete-ai-config-variation",
38885
- description: `Deletes an AI Config variation.`,
38886
- scopes: ["write"],
38887
- args: args4,
38888
- tool: async (client, args5, ctx) => {
38889
- 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();
38890
39991
  if (!result.ok) {
38891
39992
  return {
38892
39993
  content: [{ type: "text", text: result.error.message }],
38893
39994
  isError: true
38894
39995
  };
38895
39996
  }
38896
- return formatResult(undefined, apiCall);
39997
+ const value = result.value;
39998
+ return formatResult(value, apiCall);
38897
39999
  }
38898
40000
  };
38899
40001
  });
38900
40002
 
38901
- // src/funcs/aiConfigsGet.ts
38902
- function aiConfigsGet(client, request, options) {
38903
- 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));
38904
40006
  }
38905
- async function $do5(client, request, options) {
38906
- 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");
38907
40009
  if (!parsed.ok) {
38908
40010
  return [parsed, { status: "invalid" }];
38909
40011
  }
@@ -38919,7 +40021,7 @@ async function $do5(client, request, options) {
38919
40021
  charEncoding: "percent"
38920
40022
  })
38921
40023
  };
38922
- const path = pathToFunc("/api/v2/projects/{projectKey}/ai-configs/{configKey}")(pathParams);
40024
+ const path = pathToFunc("/api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting")(pathParams);
38923
40025
  const headers = new Headers(compactMap({
38924
40026
  Accept: "application/json",
38925
40027
  "LD-API-Version": encodeSimple("LD-API-Version", payload["LD-API-Version"], { explode: false, charEncoding: "none" })
@@ -38930,7 +40032,7 @@ async function $do5(client, request, options) {
38930
40032
  const context = {
38931
40033
  options: client._options,
38932
40034
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38933
- operationID: "getAIConfig",
40035
+ operationID: "getAIConfigTargeting",
38934
40036
  oAuth2Scopes: [],
38935
40037
  resolvedSecurity: requestSecurity,
38936
40038
  securitySource: client._options.apiKey,
@@ -38953,7 +40055,7 @@ async function $do5(client, request, options) {
38953
40055
  const req = requestRes.value;
38954
40056
  const doResult = await client._do(req, {
38955
40057
  context,
38956
- errorCodes: ["400", "403", "404", "4XX", "500", "5XX"],
40058
+ errorCodes: ["403", "404", "4XX", "500", "5XX"],
38957
40059
  retryConfig: context.retryConfig,
38958
40060
  retryCodes: context.retryCodes
38959
40061
  });
@@ -38964,13 +40066,13 @@ async function $do5(client, request, options) {
38964
40066
  const responseFields = {
38965
40067
  HttpMeta: { Response: response, Request: req }
38966
40068
  };
38967
- 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 });
38968
40070
  if (!result.ok) {
38969
40071
  return [result, { status: "complete", request: req, response }];
38970
40072
  }
38971
40073
  return [result, { status: "complete", request: req, response }];
38972
40074
  }
38973
- var init_aiConfigsGet = __esm(() => {
40075
+ var init_aiConfigsGetTargeting = __esm(() => {
38974
40076
  init_encodings();
38975
40077
  init_matchers();
38976
40078
  init_primitives();
@@ -38983,22 +40085,22 @@ var init_aiConfigsGet = __esm(() => {
38983
40085
  init_async();
38984
40086
  });
38985
40087
 
38986
- // src/mcp-server/tools/aiConfigsGet.ts
38987
- var args5, tool$aiConfigsGet;
38988
- var init_aiConfigsGet2 = __esm(() => {
38989
- init_aiConfigsGet();
40088
+ // src/mcp-server/tools/aiConfigsGetTargeting.ts
40089
+ var args6, tool$aiConfigsGetTargeting;
40090
+ var init_aiConfigsGetTargeting2 = __esm(() => {
40091
+ init_aiConfigsGetTargeting();
38990
40092
  init_operations();
38991
40093
  init_tools();
38992
- args5 = {
38993
- request: GetAIConfigRequest$inboundSchema
40094
+ args6 = {
40095
+ request: GetAIConfigTargetingRequest$inboundSchema
38994
40096
  };
38995
- tool$aiConfigsGet = {
38996
- name: "get-ai-config",
38997
- description: `Retrieves details of a specific AI Config, including variations and model settings.`,
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.`,
38998
40100
  scopes: ["read"],
38999
- args: args5,
39000
- tool: async (client, args6, ctx) => {
39001
- const [result, apiCall] = await aiConfigsGet(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40101
+ args: args6,
40102
+ tool: async (client, args7, ctx) => {
40103
+ const [result, apiCall] = await aiConfigsGetTargeting(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39002
40104
  if (!result.ok) {
39003
40105
  return {
39004
40106
  content: [{ type: "text", text: result.error.message }],
@@ -39013,9 +40115,9 @@ var init_aiConfigsGet2 = __esm(() => {
39013
40115
 
39014
40116
  // src/funcs/aiConfigsGetVariation.ts
39015
40117
  function aiConfigsGetVariation(client, request, options) {
39016
- return new APIPromise($do6(client, request, options));
40118
+ return new APIPromise($do7(client, request, options));
39017
40119
  }
39018
- async function $do6(client, request, options) {
40120
+ async function $do7(client, request, options) {
39019
40121
  const parsed = safeParse(request, (value) => GetAIConfigVariationRequest$outboundSchema.parse(value), "Input validation failed");
39020
40122
  if (!parsed.ok) {
39021
40123
  return [parsed, { status: "invalid" }];
@@ -39081,7 +40183,7 @@ async function $do6(client, request, options) {
39081
40183
  const responseFields = {
39082
40184
  HttpMeta: { Response: response, Request: req }
39083
40185
  };
39084
- 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 });
39085
40187
  if (!result.ok) {
39086
40188
  return [result, { status: "complete", request: req, response }];
39087
40189
  }
@@ -39101,21 +40203,21 @@ var init_aiConfigsGetVariation = __esm(() => {
39101
40203
  });
39102
40204
 
39103
40205
  // src/mcp-server/tools/aiConfigsGetVariation.ts
39104
- var args6, tool$aiConfigsGetVariation;
40206
+ var args7, tool$aiConfigsGetVariation;
39105
40207
  var init_aiConfigsGetVariation2 = __esm(() => {
39106
40208
  init_aiConfigsGetVariation();
39107
40209
  init_operations();
39108
40210
  init_tools();
39109
- args6 = {
40211
+ args7 = {
39110
40212
  request: GetAIConfigVariationRequest$inboundSchema
39111
40213
  };
39112
40214
  tool$aiConfigsGetVariation = {
39113
40215
  name: "get-ai-config-variation",
39114
40216
  description: `Retrieves an AI configuration variation.`,
39115
40217
  scopes: ["read"],
39116
- args: args6,
39117
- tool: async (client, args7, ctx) => {
39118
- const [result, apiCall] = await aiConfigsGetVariation(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40218
+ args: args7,
40219
+ tool: async (client, args8, ctx) => {
40220
+ const [result, apiCall] = await aiConfigsGetVariation(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39119
40221
  if (!result.ok) {
39120
40222
  return {
39121
40223
  content: [{ type: "text", text: result.error.message }],
@@ -39130,9 +40232,9 @@ var init_aiConfigsGetVariation2 = __esm(() => {
39130
40232
 
39131
40233
  // src/funcs/aiConfigsList.ts
39132
40234
  function aiConfigsList(client, request, options) {
39133
- return new APIPromise($do7(client, request, options));
40235
+ return new APIPromise($do8(client, request, options));
39134
40236
  }
39135
- async function $do7(client, request, options) {
40237
+ async function $do8(client, request, options) {
39136
40238
  const parsed = safeParse(request, (value) => GetAIConfigsRequest$outboundSchema.parse(value), "Input validation failed");
39137
40239
  if (!parsed.ok) {
39138
40240
  return [parsed, { status: "invalid" }];
@@ -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,12 +40319,12 @@ 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 = {
@@ -39230,9 +40332,9 @@ var init_aiConfigsList2 = __esm(() => {
39230
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.
39231
40333
  `,
39232
40334
  scopes: ["read"],
39233
- args: args7,
39234
- tool: async (client, args8, ctx) => {
39235
- const [result, apiCall] = await aiConfigsList(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40335
+ args: args8,
40336
+ tool: async (client, args9, ctx) => {
40337
+ const [result, apiCall] = await aiConfigsList(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39236
40338
  if (!result.ok) {
39237
40339
  return {
39238
40340
  content: [{ type: "text", text: result.error.message }],
@@ -39247,9 +40349,9 @@ var init_aiConfigsList2 = __esm(() => {
39247
40349
 
39248
40350
  // src/funcs/aiConfigsUpdate.ts
39249
40351
  function aiConfigsUpdate(client, request, options) {
39250
- return new APIPromise($do8(client, request, options));
40352
+ return new APIPromise($do9(client, request, options));
39251
40353
  }
39252
- async function $do8(client, request, options) {
40354
+ async function $do9(client, request, options) {
39253
40355
  const parsed = safeParse(request, (value) => PatchAIConfigRequest$outboundSchema.parse(value), "Input validation failed");
39254
40356
  if (!parsed.ok) {
39255
40357
  return [parsed, { status: "invalid" }];
@@ -39312,7 +40414,7 @@ async function $do8(client, request, options) {
39312
40414
  const responseFields = {
39313
40415
  HttpMeta: { Response: response, Request: req }
39314
40416
  };
39315
- 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 });
39316
40418
  if (!result.ok) {
39317
40419
  return [result, { status: "complete", request: req, response }];
39318
40420
  }
@@ -39332,21 +40434,137 @@ var init_aiConfigsUpdate = __esm(() => {
39332
40434
  });
39333
40435
 
39334
40436
  // src/mcp-server/tools/aiConfigsUpdate.ts
39335
- var args8, tool$aiConfigsUpdate;
40437
+ var args9, tool$aiConfigsUpdate;
39336
40438
  var init_aiConfigsUpdate2 = __esm(() => {
39337
40439
  init_aiConfigsUpdate();
39338
40440
  init_operations();
39339
40441
  init_tools();
39340
- args8 = {
40442
+ args9 = {
39341
40443
  request: PatchAIConfigRequest$inboundSchema
39342
40444
  };
39343
40445
  tool$aiConfigsUpdate = {
39344
40446
  name: "update-ai-config",
39345
40447
  description: `Updates metadata or configuration of an existing AI Config.`,
39346
40448
  scopes: ["write"],
39347
- args: args8,
39348
- tool: async (client, args9, ctx) => {
39349
- const [result, apiCall] = await aiConfigsUpdate(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
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
+ });
40463
+
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
+ });
40551
+
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();
39350
40568
  if (!result.ok) {
39351
40569
  return {
39352
40570
  content: [{ type: "text", text: result.error.message }],
@@ -39361,9 +40579,9 @@ var init_aiConfigsUpdate2 = __esm(() => {
39361
40579
 
39362
40580
  // src/funcs/aiConfigsUpdateVariation.ts
39363
40581
  function aiConfigsUpdateVariation(client, request, options) {
39364
- return new APIPromise($do9(client, request, options));
40582
+ return new APIPromise($do11(client, request, options));
39365
40583
  }
39366
- async function $do9(client, request, options) {
40584
+ async function $do11(client, request, options) {
39367
40585
  const parsed = safeParse(request, (value) => PatchAIConfigVariationRequest$outboundSchema.parse(value), "Input validation failed");
39368
40586
  if (!parsed.ok) {
39369
40587
  return [parsed, { status: "invalid" }];
@@ -39432,7 +40650,7 @@ async function $do9(client, request, options) {
39432
40650
  const responseFields = {
39433
40651
  HttpMeta: { Response: response, Request: req }
39434
40652
  };
39435
- 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 });
39436
40654
  if (!result.ok) {
39437
40655
  return [result, { status: "complete", request: req, response }];
39438
40656
  }
@@ -39452,12 +40670,12 @@ var init_aiConfigsUpdateVariation = __esm(() => {
39452
40670
  });
39453
40671
 
39454
40672
  // src/mcp-server/tools/aiConfigsUpdateVariation.ts
39455
- var args9, tool$aiConfigsUpdateVariation;
40673
+ var args11, tool$aiConfigsUpdateVariation;
39456
40674
  var init_aiConfigsUpdateVariation2 = __esm(() => {
39457
40675
  init_aiConfigsUpdateVariation();
39458
40676
  init_operations();
39459
40677
  init_tools();
39460
- args9 = {
40678
+ args11 = {
39461
40679
  request: PatchAIConfigVariationRequest$inboundSchema
39462
40680
  };
39463
40681
  tool$aiConfigsUpdateVariation = {
@@ -39465,9 +40683,9 @@ var init_aiConfigsUpdateVariation2 = __esm(() => {
39465
40683
  description: `Updates a specific variation within an AI Config. Enables fine-tuned control of model behavior.
39466
40684
  `,
39467
40685
  scopes: ["write"],
39468
- args: args9,
39469
- tool: async (client, args10, ctx) => {
39470
- const [result, apiCall] = await aiConfigsUpdateVariation(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40686
+ args: args11,
40687
+ tool: async (client, args12, ctx) => {
40688
+ const [result, apiCall] = await aiConfigsUpdateVariation(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39471
40689
  if (!result.ok) {
39472
40690
  return {
39473
40691
  content: [{ type: "text", text: result.error.message }],
@@ -39482,9 +40700,9 @@ var init_aiConfigsUpdateVariation2 = __esm(() => {
39482
40700
 
39483
40701
  // src/funcs/featureFlagsCreate.ts
39484
40702
  function featureFlagsCreate(client, request, options) {
39485
- return new APIPromise($do10(client, request, options));
40703
+ return new APIPromise($do12(client, request, options));
39486
40704
  }
39487
- async function $do10(client, request, options) {
40705
+ async function $do12(client, request, options) {
39488
40706
  const parsed = safeParse(request, (value) => PostFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
39489
40707
  if (!parsed.ok) {
39490
40708
  return [parsed, { status: "invalid" }];
@@ -39546,7 +40764,7 @@ async function $do10(client, request, options) {
39546
40764
  const responseFields = {
39547
40765
  HttpMeta: { Response: response, Request: req }
39548
40766
  };
39549
- 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 });
39550
40768
  if (!result.ok) {
39551
40769
  return [result, { status: "complete", request: req, response }];
39552
40770
  }
@@ -39566,12 +40784,12 @@ var init_featureFlagsCreate = __esm(() => {
39566
40784
  });
39567
40785
 
39568
40786
  // src/mcp-server/tools/featureFlagsCreate.ts
39569
- var args10, tool$featureFlagsCreate;
40787
+ var args12, tool$featureFlagsCreate;
39570
40788
  var init_featureFlagsCreate2 = __esm(() => {
39571
40789
  init_featureFlagsCreate();
39572
40790
  init_operations();
39573
40791
  init_tools();
39574
- args10 = {
40792
+ args12 = {
39575
40793
  request: PostFeatureFlagRequest$inboundSchema
39576
40794
  };
39577
40795
  tool$featureFlagsCreate = {
@@ -39579,9 +40797,9 @@ var init_featureFlagsCreate2 = __esm(() => {
39579
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.
39580
40798
  `,
39581
40799
  scopes: ["write"],
39582
- args: args10,
39583
- tool: async (client, args11, ctx) => {
39584
- 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();
39585
40803
  if (!result.ok) {
39586
40804
  return {
39587
40805
  content: [{ type: "text", text: result.error.message }],
@@ -39596,9 +40814,9 @@ var init_featureFlagsCreate2 = __esm(() => {
39596
40814
 
39597
40815
  // src/funcs/featureFlagsDelete.ts
39598
40816
  function featureFlagsDelete(client, request, options) {
39599
- return new APIPromise($do11(client, request, options));
40817
+ return new APIPromise($do13(client, request, options));
39600
40818
  }
39601
- async function $do11(client, request, options) {
40819
+ async function $do13(client, request, options) {
39602
40820
  const parsed = safeParse(request, (value) => DeleteFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
39603
40821
  if (!parsed.ok) {
39604
40822
  return [parsed, { status: "invalid" }];
@@ -39659,7 +40877,7 @@ async function $do11(client, request, options) {
39659
40877
  const responseFields = {
39660
40878
  HttpMeta: { Response: response, Request: req }
39661
40879
  };
39662
- 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 });
39663
40881
  if (!result.ok) {
39664
40882
  return [result, { status: "complete", request: req, response }];
39665
40883
  }
@@ -39679,12 +40897,12 @@ var init_featureFlagsDelete = __esm(() => {
39679
40897
  });
39680
40898
 
39681
40899
  // src/mcp-server/tools/featureFlagsDelete.ts
39682
- var args11, tool$featureFlagsDelete;
40900
+ var args13, tool$featureFlagsDelete;
39683
40901
  var init_featureFlagsDelete2 = __esm(() => {
39684
40902
  init_featureFlagsDelete();
39685
40903
  init_operations();
39686
40904
  init_tools();
39687
- args11 = {
40905
+ args13 = {
39688
40906
  request: DeleteFeatureFlagRequest$inboundSchema
39689
40907
  };
39690
40908
  tool$featureFlagsDelete = {
@@ -39692,9 +40910,9 @@ var init_featureFlagsDelete2 = __esm(() => {
39692
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.
39693
40911
  `,
39694
40912
  scopes: ["write"],
39695
- args: args11,
39696
- tool: async (client, args12, ctx) => {
39697
- 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();
39698
40916
  if (!result.ok) {
39699
40917
  return {
39700
40918
  content: [{ type: "text", text: result.error.message }],
@@ -39708,9 +40926,9 @@ var init_featureFlagsDelete2 = __esm(() => {
39708
40926
 
39709
40927
  // src/funcs/featureFlagsGet.ts
39710
40928
  function featureFlagsGet(client, request, options) {
39711
- return new APIPromise($do12(client, request, options));
40929
+ return new APIPromise($do14(client, request, options));
39712
40930
  }
39713
- async function $do12(client, request, options) {
40931
+ async function $do14(client, request, options) {
39714
40932
  const parsed = safeParse(request, (value) => GetFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
39715
40933
  if (!parsed.ok) {
39716
40934
  return [parsed, { status: "invalid" }];
@@ -39776,7 +40994,7 @@ async function $do12(client, request, options) {
39776
40994
  const responseFields = {
39777
40995
  HttpMeta: { Response: response, Request: req }
39778
40996
  };
39779
- 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 });
39780
40998
  if (!result.ok) {
39781
40999
  return [result, { status: "complete", request: req, response }];
39782
41000
  }
@@ -39796,12 +41014,12 @@ var init_featureFlagsGet = __esm(() => {
39796
41014
  });
39797
41015
 
39798
41016
  // src/mcp-server/tools/featureFlagsGet.ts
39799
- var args12, tool$featureFlagsGet;
41017
+ var args14, tool$featureFlagsGet;
39800
41018
  var init_featureFlagsGet2 = __esm(() => {
39801
41019
  init_featureFlagsGet();
39802
41020
  init_operations();
39803
41021
  init_tools();
39804
- args12 = {
41022
+ args14 = {
39805
41023
  request: GetFeatureFlagRequest$inboundSchema
39806
41024
  };
39807
41025
  tool$featureFlagsGet = {
@@ -39809,9 +41027,9 @@ var init_featureFlagsGet2 = __esm(() => {
39809
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.
39810
41028
  `,
39811
41029
  scopes: ["read"],
39812
- args: args12,
39813
- tool: async (client, args13, ctx) => {
39814
- 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();
39815
41033
  if (!result.ok) {
39816
41034
  return {
39817
41035
  content: [{ type: "text", text: result.error.message }],
@@ -39826,9 +41044,9 @@ var init_featureFlagsGet2 = __esm(() => {
39826
41044
 
39827
41045
  // src/funcs/featureFlagsList.ts
39828
41046
  function featureFlagsList(client, request, options) {
39829
- return new APIPromise($do13(client, request, options));
41047
+ return new APIPromise($do15(client, request, options));
39830
41048
  }
39831
- async function $do13(client, request, options) {
41049
+ async function $do15(client, request, options) {
39832
41050
  const parsed = safeParse(request, (value) => GetFeatureFlagsRequest$outboundSchema.parse(value), "Input validation failed");
39833
41051
  if (!parsed.ok) {
39834
41052
  return [parsed, { status: "invalid" }];
@@ -39898,7 +41116,7 @@ async function $do13(client, request, options) {
39898
41116
  const responseFields = {
39899
41117
  HttpMeta: { Response: response, Request: req }
39900
41118
  };
39901
- 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 });
39902
41120
  if (!result.ok) {
39903
41121
  return [result, { status: "complete", request: req, response }];
39904
41122
  }
@@ -39918,12 +41136,12 @@ var init_featureFlagsList = __esm(() => {
39918
41136
  });
39919
41137
 
39920
41138
  // src/mcp-server/tools/featureFlagsList.ts
39921
- var args13, tool$featureFlagsList;
41139
+ var args15, tool$featureFlagsList;
39922
41140
  var init_featureFlagsList2 = __esm(() => {
39923
41141
  init_featureFlagsList();
39924
41142
  init_operations();
39925
41143
  init_tools();
39926
- args13 = {
41144
+ args15 = {
39927
41145
  request: GetFeatureFlagsRequest$inboundSchema
39928
41146
  };
39929
41147
  tool$featureFlagsList = {
@@ -39931,9 +41149,9 @@ var init_featureFlagsList2 = __esm(() => {
39931
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.
39932
41150
  `,
39933
41151
  scopes: ["read"],
39934
- args: args13,
39935
- tool: async (client, args14, ctx) => {
39936
- 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();
39937
41155
  if (!result.ok) {
39938
41156
  return {
39939
41157
  content: [{ type: "text", text: result.error.message }],
@@ -39948,9 +41166,9 @@ var init_featureFlagsList2 = __esm(() => {
39948
41166
 
39949
41167
  // src/funcs/featureFlagsPatch.ts
39950
41168
  function featureFlagsPatch(client, request, options) {
39951
- return new APIPromise($do14(client, request, options));
41169
+ return new APIPromise($do16(client, request, options));
39952
41170
  }
39953
- async function $do14(client, request, options) {
41171
+ async function $do16(client, request, options) {
39954
41172
  const parsed = safeParse(request, (value) => PatchFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
39955
41173
  if (!parsed.ok) {
39956
41174
  return [parsed, { status: "invalid" }];
@@ -40016,7 +41234,7 @@ async function $do14(client, request, options) {
40016
41234
  const responseFields = {
40017
41235
  HttpMeta: { Response: response, Request: req }
40018
41236
  };
40019
- 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 });
40020
41238
  if (!result.ok) {
40021
41239
  return [result, { status: "complete", request: req, response }];
40022
41240
  }
@@ -40036,12 +41254,12 @@ var init_featureFlagsPatch = __esm(() => {
40036
41254
  });
40037
41255
 
40038
41256
  // src/mcp-server/tools/featureFlagsPatch.ts
40039
- var args14, tool$featureFlagsPatch;
41257
+ var args16, tool$featureFlagsPatch;
40040
41258
  var init_featureFlagsPatch2 = __esm(() => {
40041
41259
  init_featureFlagsPatch();
40042
41260
  init_operations();
40043
41261
  init_tools();
40044
- args14 = {
41262
+ args16 = {
40045
41263
  request: PatchFeatureFlagRequest$inboundSchema
40046
41264
  };
40047
41265
  tool$featureFlagsPatch = {
@@ -40049,9 +41267,9 @@ var init_featureFlagsPatch2 = __esm(() => {
40049
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.
40050
41268
  `,
40051
41269
  scopes: ["write"],
40052
- args: args14,
40053
- tool: async (client, args15, ctx) => {
40054
- 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();
40055
41273
  if (!result.ok) {
40056
41274
  return {
40057
41275
  content: [{ type: "text", text: result.error.message }],
@@ -40068,7 +41286,7 @@ var init_featureFlagsPatch2 = __esm(() => {
40068
41286
  function createMCPServer(deps) {
40069
41287
  const server = new McpServer({
40070
41288
  name: "LaunchDarkly",
40071
- version: "0.3.1"
41289
+ version: "0.4.0"
40072
41290
  });
40073
41291
  const client = new LaunchDarklyCore({
40074
41292
  apiKey: deps.apiKey,
@@ -40087,6 +41305,8 @@ function createMCPServer(deps) {
40087
41305
  tool(tool$featureFlagsGet);
40088
41306
  tool(tool$featureFlagsPatch);
40089
41307
  tool(tool$featureFlagsDelete);
41308
+ tool(tool$aiConfigsGetTargeting);
41309
+ tool(tool$aiConfigsUpdateTargeting);
40090
41310
  tool(tool$aiConfigsList);
40091
41311
  tool(tool$aiConfigsCreate);
40092
41312
  tool(tool$aiConfigsDelete);
@@ -40108,9 +41328,11 @@ var init_server2 = __esm(() => {
40108
41328
  init_aiConfigsDelete2();
40109
41329
  init_aiConfigsDeleteVariation2();
40110
41330
  init_aiConfigsGet2();
41331
+ init_aiConfigsGetTargeting2();
40111
41332
  init_aiConfigsGetVariation2();
40112
41333
  init_aiConfigsList2();
40113
41334
  init_aiConfigsUpdate2();
41335
+ init_aiConfigsUpdateTargeting2();
40114
41336
  init_aiConfigsUpdateVariation2();
40115
41337
  init_featureFlagsCreate2();
40116
41338
  init_featureFlagsDelete2();
@@ -41234,15 +42456,13 @@ var startCommand = on({
41234
42456
  return stringType().parse(value);
41235
42457
  }
41236
42458
  },
41237
- ...mcpScopes.length ? {
41238
- scope: {
41239
- kind: "enum",
41240
- brief: "Mount tools/resources that match given scope (repeatable flag)",
41241
- values: mcpScopes,
41242
- variadic: true,
41243
- optional: true
41244
- }
41245
- } : {},
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
+ },
41246
42466
  "api-key": {
41247
42467
  kind: "parsed",
41248
42468
  brief: "Sets the apiKey auth field for the API",
@@ -41310,7 +42530,7 @@ var routes = an({
41310
42530
  var app = He(routes, {
41311
42531
  name: "mcp",
41312
42532
  versionInfo: {
41313
- currentVersion: "0.3.1"
42533
+ currentVersion: "0.4.0"
41314
42534
  }
41315
42535
  });
41316
42536
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -41318,5 +42538,5 @@ export {
41318
42538
  app
41319
42539
  };
41320
42540
 
41321
- //# debugId=39793AD8090FB23C64756E2164756E21
42541
+ //# debugId=8688EE4AC588B59B64756E2164756E21
41322
42542
  //# sourceMappingURL=mcp-server.js.map