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