@launchdarkly/mcp-server 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -0
- package/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/bin/mcp-server.js +355 -278
- package/bin/mcp-server.js.map +49 -42
- package/dist/commonjs/funcs/aiConfigsCreate.js +0 -1
- package/dist/commonjs/funcs/aiConfigsCreate.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsCreateVariation.js +0 -1
- package/dist/commonjs/funcs/aiConfigsCreateVariation.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsDelete.js +0 -1
- package/dist/commonjs/funcs/aiConfigsDelete.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsDeleteVariation.js +0 -1
- package/dist/commonjs/funcs/aiConfigsDeleteVariation.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsGet.js +0 -1
- package/dist/commonjs/funcs/aiConfigsGet.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsGetTargeting.js +0 -1
- package/dist/commonjs/funcs/aiConfigsGetTargeting.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsGetVariation.js +0 -1
- package/dist/commonjs/funcs/aiConfigsGetVariation.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsList.js +0 -1
- package/dist/commonjs/funcs/aiConfigsList.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsUpdate.js +0 -1
- package/dist/commonjs/funcs/aiConfigsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsUpdateTargeting.js +0 -1
- package/dist/commonjs/funcs/aiConfigsUpdateTargeting.js.map +1 -1
- package/dist/commonjs/funcs/aiConfigsUpdateVariation.js +0 -1
- package/dist/commonjs/funcs/aiConfigsUpdateVariation.js.map +1 -1
- package/dist/commonjs/funcs/featureFlagsPatch.d.ts +1 -1
- package/dist/commonjs/funcs/featureFlagsPatch.js +2 -1
- package/dist/commonjs/funcs/featureFlagsPatch.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/aiconfig.d.ts +26 -0
- package/dist/commonjs/models/components/aiconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/aiconfig.js +10 -0
- package/dist/commonjs/models/components/aiconfig.js.map +1 -1
- package/dist/commonjs/models/components/aiconfigdependency.d.ts +69 -0
- package/dist/commonjs/models/components/aiconfigdependency.d.ts.map +1 -0
- package/dist/commonjs/models/components/aiconfigdependency.js +92 -0
- package/dist/commonjs/models/components/aiconfigdependency.js.map +1 -0
- package/dist/commonjs/models/components/aiconfigpatch.d.ts +10 -0
- package/dist/commonjs/models/components/aiconfigpatch.d.ts.map +1 -1
- package/dist/commonjs/models/components/aiconfigpatch.js +4 -0
- package/dist/commonjs/models/components/aiconfigpatch.js.map +1 -1
- package/dist/commonjs/models/components/aiconfigpost.d.ts +16 -0
- package/dist/commonjs/models/components/aiconfigpost.d.ts.map +1 -1
- package/dist/commonjs/models/components/aiconfigpost.js +8 -0
- package/dist/commonjs/models/components/aiconfigpost.js.map +1 -1
- package/dist/commonjs/models/components/aiconfigsmetricdatasourcerefrep.d.ts +35 -0
- package/dist/commonjs/models/components/aiconfigsmetricdatasourcerefrep.d.ts.map +1 -0
- package/dist/commonjs/models/components/aiconfigsmetricdatasourcerefrep.js +86 -0
- package/dist/commonjs/models/components/aiconfigsmetricdatasourcerefrep.js.map +1 -0
- package/dist/commonjs/models/components/aiconfigsmetriclistingrep.d.ts +43 -0
- package/dist/commonjs/models/components/aiconfigsmetriclistingrep.d.ts.map +1 -1
- package/dist/commonjs/models/components/aiconfigsmetriclistingrep.js +23 -0
- package/dist/commonjs/models/components/aiconfigsmetriclistingrep.js.map +1 -1
- package/dist/commonjs/models/components/aiconfigvariation.d.ts +8 -0
- package/dist/commonjs/models/components/aiconfigvariation.d.ts.map +1 -1
- package/dist/commonjs/models/components/aiconfigvariation.js +8 -0
- package/dist/commonjs/models/components/aiconfigvariation.js.map +1 -1
- package/dist/commonjs/models/components/aiconfigvariationpatch.d.ts +14 -0
- package/dist/commonjs/models/components/aiconfigvariationpatch.d.ts.map +1 -1
- package/dist/commonjs/models/components/aiconfigvariationpatch.js +8 -0
- package/dist/commonjs/models/components/aiconfigvariationpatch.js.map +1 -1
- package/dist/commonjs/models/components/aiconfigvariationpost.d.ts +16 -2
- package/dist/commonjs/models/components/aiconfigvariationpost.d.ts.map +1 -1
- package/dist/commonjs/models/components/aiconfigvariationpost.js +10 -2
- package/dist/commonjs/models/components/aiconfigvariationpost.js.map +1 -1
- package/dist/commonjs/models/components/environment.d.ts +3 -0
- package/dist/commonjs/models/components/environment.d.ts.map +1 -1
- package/dist/commonjs/models/components/environment.js +5 -0
- package/dist/commonjs/models/components/environment.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +7 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +7 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/judgeattachment.d.ts +37 -0
- package/dist/commonjs/models/components/judgeattachment.d.ts.map +1 -0
- package/dist/commonjs/models/components/judgeattachment.js +71 -0
- package/dist/commonjs/models/components/judgeattachment.js.map +1 -0
- package/dist/commonjs/models/components/judgeconfiguration.d.ts +35 -0
- package/dist/commonjs/models/components/judgeconfiguration.d.ts.map +1 -0
- package/dist/commonjs/models/components/judgeconfiguration.js +70 -0
- package/dist/commonjs/models/components/judgeconfiguration.js.map +1 -0
- package/dist/commonjs/models/components/metricdatasourcerefrep.d.ts +35 -0
- package/dist/commonjs/models/components/metricdatasourcerefrep.d.ts.map +1 -0
- package/dist/commonjs/models/components/metricdatasourcerefrep.js +86 -0
- package/dist/commonjs/models/components/metricdatasourcerefrep.js.map +1 -0
- package/dist/commonjs/models/components/metriclistingrep.d.ts +38 -0
- package/dist/commonjs/models/components/metriclistingrep.d.ts.map +1 -1
- package/dist/commonjs/models/components/metriclistingrep.js +21 -0
- package/dist/commonjs/models/components/metriclistingrep.js.map +1 -1
- package/dist/commonjs/models/components/rule.d.ts +5 -0
- package/dist/commonjs/models/components/rule.d.ts.map +1 -1
- package/dist/commonjs/models/components/rule.js +2 -0
- package/dist/commonjs/models/components/rule.js.map +1 -1
- package/dist/commonjs/models/components/variationtool.d.ts +46 -0
- package/dist/commonjs/models/components/variationtool.d.ts.map +1 -0
- package/dist/commonjs/models/components/variationtool.js +73 -0
- package/dist/commonjs/models/components/variationtool.js.map +1 -0
- package/dist/commonjs/models/components/variationtoolpost.d.ts +37 -0
- package/dist/commonjs/models/components/variationtoolpost.d.ts.map +1 -0
- package/dist/commonjs/models/components/variationtoolpost.js +71 -0
- package/dist/commonjs/models/components/variationtoolpost.js.map +1 -0
- package/dist/commonjs/models/operations/deleteaiconfig.d.ts +0 -34
- package/dist/commonjs/models/operations/deleteaiconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deleteaiconfig.js +1 -33
- package/dist/commonjs/models/operations/deleteaiconfig.js.map +1 -1
- package/dist/commonjs/models/operations/deleteaiconfigvariation.d.ts +0 -34
- package/dist/commonjs/models/operations/deleteaiconfigvariation.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deleteaiconfigvariation.js +1 -33
- package/dist/commonjs/models/operations/deleteaiconfigvariation.js.map +1 -1
- package/dist/commonjs/models/operations/getaiconfig.d.ts +0 -34
- package/dist/commonjs/models/operations/getaiconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getaiconfig.js +1 -33
- package/dist/commonjs/models/operations/getaiconfig.js.map +1 -1
- package/dist/commonjs/models/operations/getaiconfigs.d.ts +0 -34
- package/dist/commonjs/models/operations/getaiconfigs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getaiconfigs.js +1 -33
- package/dist/commonjs/models/operations/getaiconfigs.js.map +1 -1
- package/dist/commonjs/models/operations/getaiconfigtargeting.d.ts +0 -34
- package/dist/commonjs/models/operations/getaiconfigtargeting.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getaiconfigtargeting.js +1 -33
- package/dist/commonjs/models/operations/getaiconfigtargeting.js.map +1 -1
- package/dist/commonjs/models/operations/getaiconfigvariation.d.ts +0 -34
- package/dist/commonjs/models/operations/getaiconfigvariation.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getaiconfigvariation.js +1 -33
- package/dist/commonjs/models/operations/getaiconfigvariation.js.map +1 -1
- package/dist/commonjs/models/operations/getfeatureflags.d.ts +1 -1
- package/dist/commonjs/models/operations/patchaiconfig.d.ts +0 -34
- package/dist/commonjs/models/operations/patchaiconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patchaiconfig.js +1 -26
- package/dist/commonjs/models/operations/patchaiconfig.js.map +1 -1
- package/dist/commonjs/models/operations/patchaiconfigtargeting.d.ts +0 -34
- package/dist/commonjs/models/operations/patchaiconfigtargeting.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patchaiconfigtargeting.js +1 -26
- package/dist/commonjs/models/operations/patchaiconfigtargeting.js.map +1 -1
- package/dist/commonjs/models/operations/patchaiconfigvariation.d.ts +0 -34
- package/dist/commonjs/models/operations/patchaiconfigvariation.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patchaiconfigvariation.js +1 -26
- package/dist/commonjs/models/operations/patchaiconfigvariation.js.map +1 -1
- package/dist/commonjs/models/operations/patchfeatureflag.d.ts +5 -0
- package/dist/commonjs/models/operations/patchfeatureflag.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patchfeatureflag.js +2 -0
- package/dist/commonjs/models/operations/patchfeatureflag.js.map +1 -1
- package/dist/commonjs/models/operations/postaiconfig.d.ts +0 -34
- package/dist/commonjs/models/operations/postaiconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postaiconfig.js +1 -26
- package/dist/commonjs/models/operations/postaiconfig.js.map +1 -1
- package/dist/commonjs/models/operations/postaiconfigvariation.d.ts +0 -34
- package/dist/commonjs/models/operations/postaiconfigvariation.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postaiconfigvariation.js +1 -26
- package/dist/commonjs/models/operations/postaiconfigvariation.js.map +1 -1
- package/dist/commonjs/sdk/featureflags.d.ts +1 -1
- package/dist/commonjs/sdk/featureflags.js +1 -1
- package/dist/esm/funcs/aiConfigsCreate.js +0 -1
- package/dist/esm/funcs/aiConfigsCreate.js.map +1 -1
- package/dist/esm/funcs/aiConfigsCreateVariation.js +0 -1
- package/dist/esm/funcs/aiConfigsCreateVariation.js.map +1 -1
- package/dist/esm/funcs/aiConfigsDelete.js +0 -1
- package/dist/esm/funcs/aiConfigsDelete.js.map +1 -1
- package/dist/esm/funcs/aiConfigsDeleteVariation.js +0 -1
- package/dist/esm/funcs/aiConfigsDeleteVariation.js.map +1 -1
- package/dist/esm/funcs/aiConfigsGet.js +0 -1
- package/dist/esm/funcs/aiConfigsGet.js.map +1 -1
- package/dist/esm/funcs/aiConfigsGetTargeting.js +0 -1
- package/dist/esm/funcs/aiConfigsGetTargeting.js.map +1 -1
- package/dist/esm/funcs/aiConfigsGetVariation.js +0 -1
- package/dist/esm/funcs/aiConfigsGetVariation.js.map +1 -1
- package/dist/esm/funcs/aiConfigsList.js +0 -1
- package/dist/esm/funcs/aiConfigsList.js.map +1 -1
- package/dist/esm/funcs/aiConfigsUpdate.js +0 -1
- package/dist/esm/funcs/aiConfigsUpdate.js.map +1 -1
- package/dist/esm/funcs/aiConfigsUpdateTargeting.js +0 -1
- package/dist/esm/funcs/aiConfigsUpdateTargeting.js.map +1 -1
- package/dist/esm/funcs/aiConfigsUpdateVariation.js +0 -1
- package/dist/esm/funcs/aiConfigsUpdateVariation.js.map +1 -1
- package/dist/esm/funcs/featureFlagsPatch.d.ts +1 -1
- package/dist/esm/funcs/featureFlagsPatch.js +2 -1
- package/dist/esm/funcs/featureFlagsPatch.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/aiconfig.d.ts +26 -0
- package/dist/esm/models/components/aiconfig.d.ts.map +1 -1
- package/dist/esm/models/components/aiconfig.js +10 -0
- package/dist/esm/models/components/aiconfig.js.map +1 -1
- package/dist/esm/models/components/aiconfigdependency.d.ts +69 -0
- package/dist/esm/models/components/aiconfigdependency.d.ts.map +1 -0
- package/dist/esm/models/components/aiconfigdependency.js +54 -0
- package/dist/esm/models/components/aiconfigdependency.js.map +1 -0
- package/dist/esm/models/components/aiconfigpatch.d.ts +10 -0
- package/dist/esm/models/components/aiconfigpatch.d.ts.map +1 -1
- package/dist/esm/models/components/aiconfigpatch.js +4 -0
- package/dist/esm/models/components/aiconfigpatch.js.map +1 -1
- package/dist/esm/models/components/aiconfigpost.d.ts +16 -0
- package/dist/esm/models/components/aiconfigpost.d.ts.map +1 -1
- package/dist/esm/models/components/aiconfigpost.js +8 -0
- package/dist/esm/models/components/aiconfigpost.js.map +1 -1
- package/dist/esm/models/components/aiconfigsmetricdatasourcerefrep.d.ts +35 -0
- package/dist/esm/models/components/aiconfigsmetricdatasourcerefrep.d.ts.map +1 -0
- package/dist/esm/models/components/aiconfigsmetricdatasourcerefrep.js +48 -0
- package/dist/esm/models/components/aiconfigsmetricdatasourcerefrep.js.map +1 -0
- package/dist/esm/models/components/aiconfigsmetriclistingrep.d.ts +43 -0
- package/dist/esm/models/components/aiconfigsmetriclistingrep.d.ts.map +1 -1
- package/dist/esm/models/components/aiconfigsmetriclistingrep.js +23 -0
- package/dist/esm/models/components/aiconfigsmetriclistingrep.js.map +1 -1
- package/dist/esm/models/components/aiconfigvariation.d.ts +8 -0
- package/dist/esm/models/components/aiconfigvariation.d.ts.map +1 -1
- package/dist/esm/models/components/aiconfigvariation.js +8 -0
- package/dist/esm/models/components/aiconfigvariation.js.map +1 -1
- package/dist/esm/models/components/aiconfigvariationpatch.d.ts +14 -0
- package/dist/esm/models/components/aiconfigvariationpatch.d.ts.map +1 -1
- package/dist/esm/models/components/aiconfigvariationpatch.js +8 -0
- package/dist/esm/models/components/aiconfigvariationpatch.js.map +1 -1
- package/dist/esm/models/components/aiconfigvariationpost.d.ts +16 -2
- package/dist/esm/models/components/aiconfigvariationpost.d.ts.map +1 -1
- package/dist/esm/models/components/aiconfigvariationpost.js +10 -2
- package/dist/esm/models/components/aiconfigvariationpost.js.map +1 -1
- package/dist/esm/models/components/environment.d.ts +3 -0
- package/dist/esm/models/components/environment.d.ts.map +1 -1
- package/dist/esm/models/components/environment.js +5 -0
- package/dist/esm/models/components/environment.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +7 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +7 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/judgeattachment.d.ts +37 -0
- package/dist/esm/models/components/judgeattachment.d.ts.map +1 -0
- package/dist/esm/models/components/judgeattachment.js +33 -0
- package/dist/esm/models/components/judgeattachment.js.map +1 -0
- package/dist/esm/models/components/judgeconfiguration.d.ts +35 -0
- package/dist/esm/models/components/judgeconfiguration.d.ts.map +1 -0
- package/dist/esm/models/components/judgeconfiguration.js +32 -0
- package/dist/esm/models/components/judgeconfiguration.js.map +1 -0
- package/dist/esm/models/components/metricdatasourcerefrep.d.ts +35 -0
- package/dist/esm/models/components/metricdatasourcerefrep.d.ts.map +1 -0
- package/dist/esm/models/components/metricdatasourcerefrep.js +48 -0
- package/dist/esm/models/components/metricdatasourcerefrep.js.map +1 -0
- package/dist/esm/models/components/metriclistingrep.d.ts +38 -0
- package/dist/esm/models/components/metriclistingrep.d.ts.map +1 -1
- package/dist/esm/models/components/metriclistingrep.js +21 -0
- package/dist/esm/models/components/metriclistingrep.js.map +1 -1
- package/dist/esm/models/components/rule.d.ts +5 -0
- package/dist/esm/models/components/rule.d.ts.map +1 -1
- package/dist/esm/models/components/rule.js +2 -0
- package/dist/esm/models/components/rule.js.map +1 -1
- package/dist/esm/models/components/variationtool.d.ts +46 -0
- package/dist/esm/models/components/variationtool.d.ts.map +1 -0
- package/dist/esm/models/components/variationtool.js +35 -0
- package/dist/esm/models/components/variationtool.js.map +1 -0
- package/dist/esm/models/components/variationtoolpost.d.ts +37 -0
- package/dist/esm/models/components/variationtoolpost.d.ts.map +1 -0
- package/dist/esm/models/components/variationtoolpost.js +33 -0
- package/dist/esm/models/components/variationtoolpost.js.map +1 -0
- package/dist/esm/models/operations/deleteaiconfig.d.ts +0 -34
- package/dist/esm/models/operations/deleteaiconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/deleteaiconfig.js +0 -32
- package/dist/esm/models/operations/deleteaiconfig.js.map +1 -1
- package/dist/esm/models/operations/deleteaiconfigvariation.d.ts +0 -34
- package/dist/esm/models/operations/deleteaiconfigvariation.d.ts.map +1 -1
- package/dist/esm/models/operations/deleteaiconfigvariation.js +0 -32
- package/dist/esm/models/operations/deleteaiconfigvariation.js.map +1 -1
- package/dist/esm/models/operations/getaiconfig.d.ts +0 -34
- package/dist/esm/models/operations/getaiconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/getaiconfig.js +0 -32
- package/dist/esm/models/operations/getaiconfig.js.map +1 -1
- package/dist/esm/models/operations/getaiconfigs.d.ts +0 -34
- package/dist/esm/models/operations/getaiconfigs.d.ts.map +1 -1
- package/dist/esm/models/operations/getaiconfigs.js +0 -32
- package/dist/esm/models/operations/getaiconfigs.js.map +1 -1
- package/dist/esm/models/operations/getaiconfigtargeting.d.ts +0 -34
- package/dist/esm/models/operations/getaiconfigtargeting.d.ts.map +1 -1
- package/dist/esm/models/operations/getaiconfigtargeting.js +0 -32
- package/dist/esm/models/operations/getaiconfigtargeting.js.map +1 -1
- package/dist/esm/models/operations/getaiconfigvariation.d.ts +0 -34
- package/dist/esm/models/operations/getaiconfigvariation.d.ts.map +1 -1
- package/dist/esm/models/operations/getaiconfigvariation.js +0 -32
- package/dist/esm/models/operations/getaiconfigvariation.js.map +1 -1
- package/dist/esm/models/operations/getfeatureflags.d.ts +1 -1
- package/dist/esm/models/operations/patchaiconfig.d.ts +0 -34
- package/dist/esm/models/operations/patchaiconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/patchaiconfig.js +0 -25
- package/dist/esm/models/operations/patchaiconfig.js.map +1 -1
- package/dist/esm/models/operations/patchaiconfigtargeting.d.ts +0 -34
- package/dist/esm/models/operations/patchaiconfigtargeting.d.ts.map +1 -1
- package/dist/esm/models/operations/patchaiconfigtargeting.js +0 -25
- package/dist/esm/models/operations/patchaiconfigtargeting.js.map +1 -1
- package/dist/esm/models/operations/patchaiconfigvariation.d.ts +0 -34
- package/dist/esm/models/operations/patchaiconfigvariation.d.ts.map +1 -1
- package/dist/esm/models/operations/patchaiconfigvariation.js +0 -25
- package/dist/esm/models/operations/patchaiconfigvariation.js.map +1 -1
- package/dist/esm/models/operations/patchfeatureflag.d.ts +5 -0
- package/dist/esm/models/operations/patchfeatureflag.d.ts.map +1 -1
- package/dist/esm/models/operations/patchfeatureflag.js +2 -0
- package/dist/esm/models/operations/patchfeatureflag.js.map +1 -1
- package/dist/esm/models/operations/postaiconfig.d.ts +0 -34
- package/dist/esm/models/operations/postaiconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/postaiconfig.js +0 -25
- package/dist/esm/models/operations/postaiconfig.js.map +1 -1
- package/dist/esm/models/operations/postaiconfigvariation.d.ts +0 -34
- package/dist/esm/models/operations/postaiconfigvariation.d.ts.map +1 -1
- package/dist/esm/models/operations/postaiconfigvariation.js +0 -25
- package/dist/esm/models/operations/postaiconfigvariation.js.map +1 -1
- package/dist/esm/sdk/featureflags.d.ts +1 -1
- package/dist/esm/sdk/featureflags.js +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/schemas/openapi.json +37610 -18886
- package/schemas/output.json +37861 -19106
- package/src/funcs/aiConfigsCreate.ts +0 -5
- package/src/funcs/aiConfigsCreateVariation.ts +0 -5
- package/src/funcs/aiConfigsDelete.ts +0 -5
- package/src/funcs/aiConfigsDeleteVariation.ts +0 -5
- package/src/funcs/aiConfigsGet.ts +0 -5
- package/src/funcs/aiConfigsGetTargeting.ts +0 -5
- package/src/funcs/aiConfigsGetVariation.ts +0 -5
- package/src/funcs/aiConfigsList.ts +0 -5
- package/src/funcs/aiConfigsUpdate.ts +0 -5
- package/src/funcs/aiConfigsUpdateTargeting.ts +0 -5
- package/src/funcs/aiConfigsUpdateVariation.ts +0 -5
- package/src/funcs/featureFlagsPatch.ts +2 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/aiconfig.ts +37 -0
- package/src/models/components/aiconfigdependency.ts +112 -0
- package/src/models/components/aiconfigpatch.ts +14 -0
- package/src/models/components/aiconfigpost.ts +25 -0
- package/src/models/components/aiconfigsmetricdatasourcerefrep.ts +91 -0
- package/src/models/components/aiconfigsmetriclistingrep.ts +66 -0
- package/src/models/components/aiconfigvariation.ts +24 -0
- package/src/models/components/aiconfigvariationpatch.ts +30 -0
- package/src/models/components/aiconfigvariationpost.ts +34 -4
- package/src/models/components/environment.ts +12 -0
- package/src/models/components/index.ts +7 -0
- package/src/models/components/judgeattachment.ts +74 -0
- package/src/models/components/judgeconfiguration.ts +77 -0
- package/src/models/components/metricdatasourcerefrep.ts +89 -0
- package/src/models/components/metriclistingrep.ts +59 -0
- package/src/models/components/rule.ts +7 -0
- package/src/models/components/variationtool.ts +79 -0
- package/src/models/components/variationtoolpost.ts +76 -0
- package/src/models/operations/deleteaiconfig.ts +0 -51
- package/src/models/operations/deleteaiconfigvariation.ts +0 -53
- package/src/models/operations/getaiconfig.ts +0 -51
- package/src/models/operations/getaiconfigs.ts +0 -51
- package/src/models/operations/getaiconfigtargeting.ts +0 -51
- package/src/models/operations/getaiconfigvariation.ts +0 -51
- package/src/models/operations/getfeatureflags.ts +1 -1
- package/src/models/operations/patchaiconfig.ts +0 -44
- package/src/models/operations/patchaiconfigtargeting.ts +0 -45
- package/src/models/operations/patchaiconfigvariation.ts +0 -45
- package/src/models/operations/patchfeatureflag.ts +7 -0
- package/src/models/operations/postaiconfig.ts +0 -44
- package/src/models/operations/postaiconfigvariation.ts +0 -45
- package/src/sdk/featureflags.ts +1 -1
- package/.devcontainer/README.md +0 -35
- package/docs/sdks/aiconfigs/README.md +0 -1616
- package/docs/sdks/codereferences/README.md +0 -79
- package/docs/sdks/environments/README.md +0 -112
- package/docs/sdks/featureflags/README.md +0 -1808
- package/docs/sdks/launchdarkly/README.md +0 -430
- package/examples/README.md +0 -26
|
@@ -32,6 +32,12 @@ import {
|
|
|
32
32
|
AiConfigsMemberSummary$Outbound,
|
|
33
33
|
AiConfigsMemberSummary$outboundSchema,
|
|
34
34
|
} from "./aiconfigsmembersummary.js";
|
|
35
|
+
import {
|
|
36
|
+
AiConfigsMetricDataSourceRefRep,
|
|
37
|
+
AiConfigsMetricDataSourceRefRep$inboundSchema,
|
|
38
|
+
AiConfigsMetricDataSourceRefRep$Outbound,
|
|
39
|
+
AiConfigsMetricDataSourceRefRep$outboundSchema,
|
|
40
|
+
} from "./aiconfigsmetricdatasourcerefrep.js";
|
|
35
41
|
import {
|
|
36
42
|
AiConfigsMetricEventDefaultRep,
|
|
37
43
|
AiConfigsMetricEventDefaultRep$inboundSchema,
|
|
@@ -115,6 +121,18 @@ export type AiConfigsMetricListingRep = {
|
|
|
115
121
|
* The number of guarded rollouts using this metric
|
|
116
122
|
*/
|
|
117
123
|
guardedRolloutCount?: number | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* The number of release policies using this metric
|
|
126
|
+
*/
|
|
127
|
+
releasePolicyCount?: number | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* The number of active experiments using this metric
|
|
130
|
+
*/
|
|
131
|
+
activeExperimentCount?: number | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* The number of active guarded rollouts using this metric
|
|
134
|
+
*/
|
|
135
|
+
activeGuardedRolloutCount?: number | undefined;
|
|
118
136
|
/**
|
|
119
137
|
* The ID of this metric
|
|
120
138
|
*/
|
|
@@ -123,6 +141,10 @@ export type AiConfigsMetricListingRep = {
|
|
|
123
141
|
* The version ID of the metric
|
|
124
142
|
*/
|
|
125
143
|
versionId: string;
|
|
144
|
+
/**
|
|
145
|
+
* Version of the metric
|
|
146
|
+
*/
|
|
147
|
+
version?: number | undefined;
|
|
126
148
|
/**
|
|
127
149
|
* A unique key to reference the metric
|
|
128
150
|
*/
|
|
@@ -200,6 +222,18 @@ export type AiConfigsMetricListingRep = {
|
|
|
200
222
|
*/
|
|
201
223
|
percentileValue?: number | undefined;
|
|
202
224
|
eventDefault?: AiConfigsMetricEventDefaultRep | undefined;
|
|
225
|
+
dataSource: AiConfigsMetricDataSourceRefRep;
|
|
226
|
+
lastSeen?: number | undefined;
|
|
227
|
+
/**
|
|
228
|
+
* Whether the metric version is archived
|
|
229
|
+
*/
|
|
230
|
+
archived?: boolean | undefined;
|
|
231
|
+
archivedAt?: number | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* For click metrics, the CSS selectors
|
|
234
|
+
*/
|
|
235
|
+
selector?: string | undefined;
|
|
236
|
+
urls?: Array<{ [k: string]: any }> | undefined;
|
|
203
237
|
};
|
|
204
238
|
|
|
205
239
|
/** @internal */
|
|
@@ -302,8 +336,12 @@ export const AiConfigsMetricListingRep$inboundSchema: z.ZodType<
|
|
|
302
336
|
experimentCount: z.number().int().optional(),
|
|
303
337
|
metricGroupCount: z.number().int().optional(),
|
|
304
338
|
guardedRolloutCount: z.number().int().optional(),
|
|
339
|
+
releasePolicyCount: z.number().int().optional(),
|
|
340
|
+
activeExperimentCount: z.number().int().optional(),
|
|
341
|
+
activeGuardedRolloutCount: z.number().int().optional(),
|
|
305
342
|
_id: z.string(),
|
|
306
343
|
_versionId: z.string(),
|
|
344
|
+
_version: z.number().int().optional(),
|
|
307
345
|
key: z.string(),
|
|
308
346
|
name: z.string(),
|
|
309
347
|
kind: AiConfigsMetricListingRepKind$inboundSchema,
|
|
@@ -330,10 +368,17 @@ export const AiConfigsMetricListingRep$inboundSchema: z.ZodType<
|
|
|
330
368
|
analysisType: AiConfigsMetricListingRepAnalysisType$inboundSchema.optional(),
|
|
331
369
|
percentileValue: z.number().int().optional(),
|
|
332
370
|
eventDefault: AiConfigsMetricEventDefaultRep$inboundSchema.optional(),
|
|
371
|
+
dataSource: AiConfigsMetricDataSourceRefRep$inboundSchema,
|
|
372
|
+
lastSeen: z.number().int().optional(),
|
|
373
|
+
archived: z.boolean().optional(),
|
|
374
|
+
archivedAt: z.number().int().optional(),
|
|
375
|
+
selector: z.string().optional(),
|
|
376
|
+
urls: z.array(z.record(z.any())).optional(),
|
|
333
377
|
}).transform((v) => {
|
|
334
378
|
return remap$(v, {
|
|
335
379
|
"_id": "id",
|
|
336
380
|
"_versionId": "versionId",
|
|
381
|
+
"_version": "version",
|
|
337
382
|
"_attachedFlagCount": "attachedFlagCount",
|
|
338
383
|
"_links": "links",
|
|
339
384
|
"_site": "site",
|
|
@@ -348,8 +393,12 @@ export type AiConfigsMetricListingRep$Outbound = {
|
|
|
348
393
|
experimentCount?: number | undefined;
|
|
349
394
|
metricGroupCount?: number | undefined;
|
|
350
395
|
guardedRolloutCount?: number | undefined;
|
|
396
|
+
releasePolicyCount?: number | undefined;
|
|
397
|
+
activeExperimentCount?: number | undefined;
|
|
398
|
+
activeGuardedRolloutCount?: number | undefined;
|
|
351
399
|
_id: string;
|
|
352
400
|
_versionId: string;
|
|
401
|
+
_version?: number | undefined;
|
|
353
402
|
key: string;
|
|
354
403
|
name: string;
|
|
355
404
|
kind: string;
|
|
@@ -374,6 +423,12 @@ export type AiConfigsMetricListingRep$Outbound = {
|
|
|
374
423
|
analysisType?: string | undefined;
|
|
375
424
|
percentileValue?: number | undefined;
|
|
376
425
|
eventDefault?: AiConfigsMetricEventDefaultRep$Outbound | undefined;
|
|
426
|
+
dataSource: AiConfigsMetricDataSourceRefRep$Outbound;
|
|
427
|
+
lastSeen?: number | undefined;
|
|
428
|
+
archived?: boolean | undefined;
|
|
429
|
+
archivedAt?: number | undefined;
|
|
430
|
+
selector?: string | undefined;
|
|
431
|
+
urls?: Array<{ [k: string]: any }> | undefined;
|
|
377
432
|
};
|
|
378
433
|
|
|
379
434
|
/** @internal */
|
|
@@ -385,8 +440,12 @@ export const AiConfigsMetricListingRep$outboundSchema: z.ZodType<
|
|
|
385
440
|
experimentCount: z.number().int().optional(),
|
|
386
441
|
metricGroupCount: z.number().int().optional(),
|
|
387
442
|
guardedRolloutCount: z.number().int().optional(),
|
|
443
|
+
releasePolicyCount: z.number().int().optional(),
|
|
444
|
+
activeExperimentCount: z.number().int().optional(),
|
|
445
|
+
activeGuardedRolloutCount: z.number().int().optional(),
|
|
388
446
|
id: z.string(),
|
|
389
447
|
versionId: z.string(),
|
|
448
|
+
version: z.number().int().optional(),
|
|
390
449
|
key: z.string(),
|
|
391
450
|
name: z.string(),
|
|
392
451
|
kind: AiConfigsMetricListingRepKind$outboundSchema,
|
|
@@ -413,10 +472,17 @@ export const AiConfigsMetricListingRep$outboundSchema: z.ZodType<
|
|
|
413
472
|
analysisType: AiConfigsMetricListingRepAnalysisType$outboundSchema.optional(),
|
|
414
473
|
percentileValue: z.number().int().optional(),
|
|
415
474
|
eventDefault: AiConfigsMetricEventDefaultRep$outboundSchema.optional(),
|
|
475
|
+
dataSource: AiConfigsMetricDataSourceRefRep$outboundSchema,
|
|
476
|
+
lastSeen: z.number().int().optional(),
|
|
477
|
+
archived: z.boolean().optional(),
|
|
478
|
+
archivedAt: z.number().int().optional(),
|
|
479
|
+
selector: z.string().optional(),
|
|
480
|
+
urls: z.array(z.record(z.any())).optional(),
|
|
416
481
|
}).transform((v) => {
|
|
417
482
|
return remap$(v, {
|
|
418
483
|
id: "_id",
|
|
419
484
|
versionId: "_versionId",
|
|
485
|
+
version: "_version",
|
|
420
486
|
attachedFlagCount: "_attachedFlagCount",
|
|
421
487
|
links: "_links",
|
|
422
488
|
site: "_site",
|
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
JudgeConfiguration,
|
|
12
|
+
JudgeConfiguration$inboundSchema,
|
|
13
|
+
JudgeConfiguration$Outbound,
|
|
14
|
+
JudgeConfiguration$outboundSchema,
|
|
15
|
+
} from "./judgeconfiguration.js";
|
|
10
16
|
import {
|
|
11
17
|
Message,
|
|
12
18
|
Message$inboundSchema,
|
|
@@ -19,6 +25,12 @@ import {
|
|
|
19
25
|
ParentLink$Outbound,
|
|
20
26
|
ParentLink$outboundSchema,
|
|
21
27
|
} from "./parentlink.js";
|
|
28
|
+
import {
|
|
29
|
+
VariationTool,
|
|
30
|
+
VariationTool$inboundSchema,
|
|
31
|
+
VariationTool$Outbound,
|
|
32
|
+
VariationTool$outboundSchema,
|
|
33
|
+
} from "./variationtool.js";
|
|
22
34
|
|
|
23
35
|
export type AIConfigVariationModel = {};
|
|
24
36
|
|
|
@@ -45,6 +57,9 @@ export type AIConfigVariation = {
|
|
|
45
57
|
state?: string | undefined;
|
|
46
58
|
archivedAt?: number | undefined;
|
|
47
59
|
publishedAt?: number | undefined;
|
|
60
|
+
tools?: Array<VariationTool> | undefined;
|
|
61
|
+
judgeConfiguration?: JudgeConfiguration | undefined;
|
|
62
|
+
judgingConfigKeys?: Array<string> | undefined;
|
|
48
63
|
};
|
|
49
64
|
|
|
50
65
|
/** @internal */
|
|
@@ -117,6 +132,9 @@ export const AIConfigVariation$inboundSchema: z.ZodType<
|
|
|
117
132
|
state: z.string().optional(),
|
|
118
133
|
_archivedAt: z.number().int().optional(),
|
|
119
134
|
_publishedAt: z.number().int().optional(),
|
|
135
|
+
tools: z.array(VariationTool$inboundSchema).optional(),
|
|
136
|
+
judgeConfiguration: JudgeConfiguration$inboundSchema.optional(),
|
|
137
|
+
judgingConfigKeys: z.array(z.string()).optional(),
|
|
120
138
|
}).transform((v) => {
|
|
121
139
|
return remap$(v, {
|
|
122
140
|
"_links": "links",
|
|
@@ -144,6 +162,9 @@ export type AIConfigVariation$Outbound = {
|
|
|
144
162
|
state?: string | undefined;
|
|
145
163
|
_archivedAt?: number | undefined;
|
|
146
164
|
_publishedAt?: number | undefined;
|
|
165
|
+
tools?: Array<VariationTool$Outbound> | undefined;
|
|
166
|
+
judgeConfiguration?: JudgeConfiguration$Outbound | undefined;
|
|
167
|
+
judgingConfigKeys?: Array<string> | undefined;
|
|
147
168
|
};
|
|
148
169
|
|
|
149
170
|
/** @internal */
|
|
@@ -168,6 +189,9 @@ export const AIConfigVariation$outboundSchema: z.ZodType<
|
|
|
168
189
|
state: z.string().optional(),
|
|
169
190
|
archivedAt: z.number().int().optional(),
|
|
170
191
|
publishedAt: z.number().int().optional(),
|
|
192
|
+
tools: z.array(VariationTool$outboundSchema).optional(),
|
|
193
|
+
judgeConfiguration: JudgeConfiguration$outboundSchema.optional(),
|
|
194
|
+
judgingConfigKeys: z.array(z.string()).optional(),
|
|
171
195
|
}).transform((v) => {
|
|
172
196
|
return remap$(v, {
|
|
173
197
|
links: "_links",
|
|
@@ -6,12 +6,24 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
JudgeConfiguration,
|
|
11
|
+
JudgeConfiguration$inboundSchema,
|
|
12
|
+
JudgeConfiguration$Outbound,
|
|
13
|
+
JudgeConfiguration$outboundSchema,
|
|
14
|
+
} from "./judgeconfiguration.js";
|
|
9
15
|
import {
|
|
10
16
|
Message,
|
|
11
17
|
Message$inboundSchema,
|
|
12
18
|
Message$Outbound,
|
|
13
19
|
Message$outboundSchema,
|
|
14
20
|
} from "./message.js";
|
|
21
|
+
import {
|
|
22
|
+
VariationToolPost,
|
|
23
|
+
VariationToolPost$inboundSchema,
|
|
24
|
+
VariationToolPost$Outbound,
|
|
25
|
+
VariationToolPost$outboundSchema,
|
|
26
|
+
} from "./variationtoolpost.js";
|
|
15
27
|
|
|
16
28
|
export type AIConfigVariationPatchModel = {};
|
|
17
29
|
|
|
@@ -37,6 +49,15 @@ export type AIConfigVariationPatch = {
|
|
|
37
49
|
* One of 'archived', 'published'
|
|
38
50
|
*/
|
|
39
51
|
state?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* List of tools to use for this variation. The latest version of the tool will be used.
|
|
54
|
+
*/
|
|
55
|
+
tools?: Array<VariationToolPost> | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* List of tool keys to use for this variation. The latest version of the tool will be used.
|
|
58
|
+
*/
|
|
59
|
+
toolKeys?: Array<string> | undefined;
|
|
60
|
+
judgeConfiguration?: JudgeConfiguration | undefined;
|
|
40
61
|
};
|
|
41
62
|
|
|
42
63
|
/** @internal */
|
|
@@ -104,6 +125,9 @@ export const AIConfigVariationPatch$inboundSchema: z.ZodType<
|
|
|
104
125
|
name: z.string().optional(),
|
|
105
126
|
published: z.boolean().optional(),
|
|
106
127
|
state: z.string().optional(),
|
|
128
|
+
tools: z.array(VariationToolPost$inboundSchema).optional(),
|
|
129
|
+
toolKeys: z.array(z.string()).optional(),
|
|
130
|
+
judgeConfiguration: JudgeConfiguration$inboundSchema.optional(),
|
|
107
131
|
});
|
|
108
132
|
|
|
109
133
|
/** @internal */
|
|
@@ -117,6 +141,9 @@ export type AIConfigVariationPatch$Outbound = {
|
|
|
117
141
|
name?: string | undefined;
|
|
118
142
|
published?: boolean | undefined;
|
|
119
143
|
state?: string | undefined;
|
|
144
|
+
tools?: Array<VariationToolPost$Outbound> | undefined;
|
|
145
|
+
toolKeys?: Array<string> | undefined;
|
|
146
|
+
judgeConfiguration?: JudgeConfiguration$Outbound | undefined;
|
|
120
147
|
};
|
|
121
148
|
|
|
122
149
|
/** @internal */
|
|
@@ -134,6 +161,9 @@ export const AIConfigVariationPatch$outboundSchema: z.ZodType<
|
|
|
134
161
|
name: z.string().optional(),
|
|
135
162
|
published: z.boolean().optional(),
|
|
136
163
|
state: z.string().optional(),
|
|
164
|
+
tools: z.array(VariationToolPost$outboundSchema).optional(),
|
|
165
|
+
toolKeys: z.array(z.string()).optional(),
|
|
166
|
+
judgeConfiguration: JudgeConfiguration$outboundSchema.optional(),
|
|
137
167
|
});
|
|
138
168
|
|
|
139
169
|
/**
|
|
@@ -6,12 +6,24 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
JudgeConfiguration,
|
|
11
|
+
JudgeConfiguration$inboundSchema,
|
|
12
|
+
JudgeConfiguration$Outbound,
|
|
13
|
+
JudgeConfiguration$outboundSchema,
|
|
14
|
+
} from "./judgeconfiguration.js";
|
|
9
15
|
import {
|
|
10
16
|
Message,
|
|
11
17
|
Message$inboundSchema,
|
|
12
18
|
Message$Outbound,
|
|
13
19
|
Message$outboundSchema,
|
|
14
20
|
} from "./message.js";
|
|
21
|
+
import {
|
|
22
|
+
VariationToolPost,
|
|
23
|
+
VariationToolPost$inboundSchema,
|
|
24
|
+
VariationToolPost$Outbound,
|
|
25
|
+
VariationToolPost$outboundSchema,
|
|
26
|
+
} from "./variationtoolpost.js";
|
|
15
27
|
|
|
16
28
|
export type AIConfigVariationPostModel = {};
|
|
17
29
|
|
|
@@ -29,10 +41,19 @@ export type AIConfigVariationPost = {
|
|
|
29
41
|
*/
|
|
30
42
|
instructions?: string | undefined;
|
|
31
43
|
key: string;
|
|
32
|
-
messages
|
|
44
|
+
messages?: Array<Message> | undefined;
|
|
33
45
|
model?: AIConfigVariationPostModel | undefined;
|
|
34
46
|
name: string;
|
|
35
47
|
modelConfigKey?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* List of tools to use for this variation. The latest version of the tool will be used.
|
|
50
|
+
*/
|
|
51
|
+
tools?: Array<VariationToolPost> | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* List of tool keys to use for this variation. The latest version of the tool will be used.
|
|
54
|
+
*/
|
|
55
|
+
toolKeys?: Array<string> | undefined;
|
|
56
|
+
judgeConfiguration?: JudgeConfiguration | undefined;
|
|
36
57
|
};
|
|
37
58
|
|
|
38
59
|
/** @internal */
|
|
@@ -93,10 +114,13 @@ export const AIConfigVariationPost$inboundSchema: z.ZodType<
|
|
|
93
114
|
description: z.string().optional(),
|
|
94
115
|
instructions: z.string().optional(),
|
|
95
116
|
key: z.string(),
|
|
96
|
-
messages: z.array(Message$inboundSchema),
|
|
117
|
+
messages: z.array(Message$inboundSchema).optional(),
|
|
97
118
|
model: z.lazy(() => AIConfigVariationPostModel$inboundSchema).optional(),
|
|
98
119
|
name: z.string(),
|
|
99
120
|
modelConfigKey: z.string().optional(),
|
|
121
|
+
tools: z.array(VariationToolPost$inboundSchema).optional(),
|
|
122
|
+
toolKeys: z.array(z.string()).optional(),
|
|
123
|
+
judgeConfiguration: JudgeConfiguration$inboundSchema.optional(),
|
|
100
124
|
});
|
|
101
125
|
|
|
102
126
|
/** @internal */
|
|
@@ -105,10 +129,13 @@ export type AIConfigVariationPost$Outbound = {
|
|
|
105
129
|
description?: string | undefined;
|
|
106
130
|
instructions?: string | undefined;
|
|
107
131
|
key: string;
|
|
108
|
-
messages
|
|
132
|
+
messages?: Array<Message$Outbound> | undefined;
|
|
109
133
|
model?: AIConfigVariationPostModel$Outbound | undefined;
|
|
110
134
|
name: string;
|
|
111
135
|
modelConfigKey?: string | undefined;
|
|
136
|
+
tools?: Array<VariationToolPost$Outbound> | undefined;
|
|
137
|
+
toolKeys?: Array<string> | undefined;
|
|
138
|
+
judgeConfiguration?: JudgeConfiguration$Outbound | undefined;
|
|
112
139
|
};
|
|
113
140
|
|
|
114
141
|
/** @internal */
|
|
@@ -121,10 +148,13 @@ export const AIConfigVariationPost$outboundSchema: z.ZodType<
|
|
|
121
148
|
description: z.string().optional(),
|
|
122
149
|
instructions: z.string().optional(),
|
|
123
150
|
key: z.string(),
|
|
124
|
-
messages: z.array(Message$outboundSchema),
|
|
151
|
+
messages: z.array(Message$outboundSchema).optional(),
|
|
125
152
|
model: z.lazy(() => AIConfigVariationPostModel$outboundSchema).optional(),
|
|
126
153
|
name: z.string(),
|
|
127
154
|
modelConfigKey: z.string().optional(),
|
|
155
|
+
tools: z.array(VariationToolPost$outboundSchema).optional(),
|
|
156
|
+
toolKeys: z.array(z.string()).optional(),
|
|
157
|
+
judgeConfiguration: JudgeConfiguration$outboundSchema.optional(),
|
|
128
158
|
});
|
|
129
159
|
|
|
130
160
|
/**
|
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Access,
|
|
12
|
+
Access$inboundSchema,
|
|
13
|
+
Access$Outbound,
|
|
14
|
+
Access$outboundSchema,
|
|
15
|
+
} from "./access.js";
|
|
10
16
|
import {
|
|
11
17
|
ApprovalSettings,
|
|
12
18
|
ApprovalSettings$inboundSchema,
|
|
@@ -57,6 +63,7 @@ export type Environment = {
|
|
|
57
63
|
* Ensures that one end user of the client-side SDK cannot inspect the variations for another end user
|
|
58
64
|
*/
|
|
59
65
|
secureMode: boolean;
|
|
66
|
+
access?: Access | undefined;
|
|
60
67
|
/**
|
|
61
68
|
* Enables tracking detailed information for new flags by default
|
|
62
69
|
*/
|
|
@@ -99,6 +106,7 @@ export const Environment$inboundSchema: z.ZodType<
|
|
|
99
106
|
color: z.string(),
|
|
100
107
|
defaultTtl: z.number().int(),
|
|
101
108
|
secureMode: z.boolean(),
|
|
109
|
+
_access: Access$inboundSchema.optional(),
|
|
102
110
|
defaultTrackEvents: z.boolean(),
|
|
103
111
|
requireComments: z.boolean(),
|
|
104
112
|
confirmChanges: z.boolean(),
|
|
@@ -110,6 +118,7 @@ export const Environment$inboundSchema: z.ZodType<
|
|
|
110
118
|
return remap$(v, {
|
|
111
119
|
"_links": "links",
|
|
112
120
|
"_id": "id",
|
|
121
|
+
"_access": "access",
|
|
113
122
|
});
|
|
114
123
|
});
|
|
115
124
|
|
|
@@ -124,6 +133,7 @@ export type Environment$Outbound = {
|
|
|
124
133
|
color: string;
|
|
125
134
|
defaultTtl: number;
|
|
126
135
|
secureMode: boolean;
|
|
136
|
+
_access?: Access$Outbound | undefined;
|
|
127
137
|
defaultTrackEvents: boolean;
|
|
128
138
|
requireComments: boolean;
|
|
129
139
|
confirmChanges: boolean;
|
|
@@ -150,6 +160,7 @@ export const Environment$outboundSchema: z.ZodType<
|
|
|
150
160
|
color: z.string(),
|
|
151
161
|
defaultTtl: z.number().int(),
|
|
152
162
|
secureMode: z.boolean(),
|
|
163
|
+
access: Access$outboundSchema.optional(),
|
|
153
164
|
defaultTrackEvents: z.boolean(),
|
|
154
165
|
requireComments: z.boolean(),
|
|
155
166
|
confirmChanges: z.boolean(),
|
|
@@ -162,6 +173,7 @@ export const Environment$outboundSchema: z.ZodType<
|
|
|
162
173
|
return remap$(v, {
|
|
163
174
|
links: "_links",
|
|
164
175
|
id: "_id",
|
|
176
|
+
access: "_access",
|
|
165
177
|
});
|
|
166
178
|
});
|
|
167
179
|
|
|
@@ -8,6 +8,7 @@ export * from "./accessallowedrep.js";
|
|
|
8
8
|
export * from "./accessdenied.js";
|
|
9
9
|
export * from "./accessdeniedreason.js";
|
|
10
10
|
export * from "./aiconfig.js";
|
|
11
|
+
export * from "./aiconfigdependency.js";
|
|
11
12
|
export * from "./aiconfigmaintainer.js";
|
|
12
13
|
export * from "./aiconfigpatch.js";
|
|
13
14
|
export * from "./aiconfigpost.js";
|
|
@@ -24,6 +25,7 @@ export * from "./aiconfigsfilter.js";
|
|
|
24
25
|
export * from "./aiconfigslegacyexperimentrep.js";
|
|
25
26
|
export * from "./aiconfigslink.js";
|
|
26
27
|
export * from "./aiconfigsmembersummary.js";
|
|
28
|
+
export * from "./aiconfigsmetricdatasourcerefrep.js";
|
|
27
29
|
export * from "./aiconfigsmetriceventdefaultrep.js";
|
|
28
30
|
export * from "./aiconfigsmetriclistingrep.js";
|
|
29
31
|
export * from "./aiconfigsmodification.js";
|
|
@@ -72,11 +74,14 @@ export * from "./flagmigrationsettingsrep.js";
|
|
|
72
74
|
export * from "./flagprerequisitepost.js";
|
|
73
75
|
export * from "./flagsummary.js";
|
|
74
76
|
export * from "./hunkrep.js";
|
|
77
|
+
export * from "./judgeattachment.js";
|
|
78
|
+
export * from "./judgeconfiguration.js";
|
|
75
79
|
export * from "./legacyexperimentrep.js";
|
|
76
80
|
export * from "./link.js";
|
|
77
81
|
export * from "./maintainerteam.js";
|
|
78
82
|
export * from "./membersummary.js";
|
|
79
83
|
export * from "./message.js";
|
|
84
|
+
export * from "./metricdatasourcerefrep.js";
|
|
80
85
|
export * from "./metriceventdefaultrep.js";
|
|
81
86
|
export * from "./metriclistingrep.js";
|
|
82
87
|
export * from "./migrationsettingspost.js";
|
|
@@ -97,4 +102,6 @@ export * from "./target.js";
|
|
|
97
102
|
export * from "./variation.js";
|
|
98
103
|
export * from "./variationorrolloutrep.js";
|
|
99
104
|
export * from "./variationsummary.js";
|
|
105
|
+
export * from "./variationtool.js";
|
|
106
|
+
export * from "./variationtoolpost.js";
|
|
100
107
|
export * from "./weightedvariation.js";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type JudgeAttachment = {
|
|
11
|
+
/**
|
|
12
|
+
* Key of the judge AI Config
|
|
13
|
+
*/
|
|
14
|
+
judgeConfigKey: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sampling rate for this judge attachment (0.0 to 1.0)
|
|
17
|
+
*/
|
|
18
|
+
samplingRate: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const JudgeAttachment$inboundSchema: z.ZodType<
|
|
23
|
+
JudgeAttachment,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
judgeConfigKey: z.string(),
|
|
28
|
+
samplingRate: z.number(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type JudgeAttachment$Outbound = {
|
|
33
|
+
judgeConfigKey: string;
|
|
34
|
+
samplingRate: number;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const JudgeAttachment$outboundSchema: z.ZodType<
|
|
39
|
+
JudgeAttachment$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
JudgeAttachment
|
|
42
|
+
> = z.object({
|
|
43
|
+
judgeConfigKey: z.string(),
|
|
44
|
+
samplingRate: z.number(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace JudgeAttachment$ {
|
|
52
|
+
/** @deprecated use `JudgeAttachment$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = JudgeAttachment$inboundSchema;
|
|
54
|
+
/** @deprecated use `JudgeAttachment$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = JudgeAttachment$outboundSchema;
|
|
56
|
+
/** @deprecated use `JudgeAttachment$Outbound` instead. */
|
|
57
|
+
export type Outbound = JudgeAttachment$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function judgeAttachmentToJSON(
|
|
61
|
+
judgeAttachment: JudgeAttachment,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(JudgeAttachment$outboundSchema.parse(judgeAttachment));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function judgeAttachmentFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<JudgeAttachment, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => JudgeAttachment$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'JudgeAttachment' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
JudgeAttachment,
|
|
11
|
+
JudgeAttachment$inboundSchema,
|
|
12
|
+
JudgeAttachment$Outbound,
|
|
13
|
+
JudgeAttachment$outboundSchema,
|
|
14
|
+
} from "./judgeattachment.js";
|
|
15
|
+
|
|
16
|
+
export type JudgeConfiguration = {
|
|
17
|
+
/**
|
|
18
|
+
* List of judges for this variation. When updating, this replaces all existing judge attachments, and if empty, removes all judge attachments.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
judges?: Array<JudgeAttachment> | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const JudgeConfiguration$inboundSchema: z.ZodType<
|
|
27
|
+
JudgeConfiguration,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
judges: z.array(JudgeAttachment$inboundSchema).optional(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type JudgeConfiguration$Outbound = {
|
|
36
|
+
judges?: Array<JudgeAttachment$Outbound> | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const JudgeConfiguration$outboundSchema: z.ZodType<
|
|
41
|
+
JudgeConfiguration$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
JudgeConfiguration
|
|
44
|
+
> = z.object({
|
|
45
|
+
judges: z.array(JudgeAttachment$outboundSchema).optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
+
*/
|
|
52
|
+
export namespace JudgeConfiguration$ {
|
|
53
|
+
/** @deprecated use `JudgeConfiguration$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema = JudgeConfiguration$inboundSchema;
|
|
55
|
+
/** @deprecated use `JudgeConfiguration$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema = JudgeConfiguration$outboundSchema;
|
|
57
|
+
/** @deprecated use `JudgeConfiguration$Outbound` instead. */
|
|
58
|
+
export type Outbound = JudgeConfiguration$Outbound;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function judgeConfigurationToJSON(
|
|
62
|
+
judgeConfiguration: JudgeConfiguration,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
JudgeConfiguration$outboundSchema.parse(judgeConfiguration),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function judgeConfigurationFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<JudgeConfiguration, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => JudgeConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'JudgeConfiguration' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|