@launchdarkly/mcp-server 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +357 -280
- package/bin/mcp-server.js.map +50 -43
- 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/featureflagstatus.d.ts +2 -2
- package/dist/commonjs/models/components/featureflagstatus.d.ts.map +1 -1
- package/dist/commonjs/models/components/featureflagstatus.js +2 -3
- package/dist/commonjs/models/components/featureflagstatus.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/featureflagstatus.d.ts +2 -2
- package/dist/esm/models/components/featureflagstatus.d.ts.map +1 -1
- package/dist/esm/models/components/featureflagstatus.js +2 -3
- package/dist/esm/models/components/featureflagstatus.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 +37552 -18830
- package/schemas/output.json +37862 -19109
- 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/featureflagstatus.ts +5 -6
- 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
|
@@ -3,30 +3,11 @@
|
|
|
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 GetAIConfigsLDAPIVersion = {
|
|
16
|
-
Beta: "beta",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Version of the endpoint.
|
|
20
|
-
*/
|
|
21
|
-
export type GetAIConfigsLDAPIVersion = ClosedEnum<
|
|
22
|
-
typeof GetAIConfigsLDAPIVersion
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
10
|
export type GetAIConfigsRequest = {
|
|
26
|
-
/**
|
|
27
|
-
* Version of the endpoint.
|
|
28
|
-
*/
|
|
29
|
-
ldAPIVersion: GetAIConfigsLDAPIVersion;
|
|
30
11
|
projectKey: string;
|
|
31
12
|
/**
|
|
32
13
|
* A sort to apply to the list of AI Configs.
|
|
@@ -46,48 +27,21 @@ export type GetAIConfigsRequest = {
|
|
|
46
27
|
filter?: string | undefined;
|
|
47
28
|
};
|
|
48
29
|
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const GetAIConfigsLDAPIVersion$inboundSchema: z.ZodNativeEnum<
|
|
51
|
-
typeof GetAIConfigsLDAPIVersion
|
|
52
|
-
> = z.nativeEnum(GetAIConfigsLDAPIVersion);
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const GetAIConfigsLDAPIVersion$outboundSchema: z.ZodNativeEnum<
|
|
56
|
-
typeof GetAIConfigsLDAPIVersion
|
|
57
|
-
> = GetAIConfigsLDAPIVersion$inboundSchema;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
-
*/
|
|
63
|
-
export namespace GetAIConfigsLDAPIVersion$ {
|
|
64
|
-
/** @deprecated use `GetAIConfigsLDAPIVersion$inboundSchema` instead. */
|
|
65
|
-
export const inboundSchema = GetAIConfigsLDAPIVersion$inboundSchema;
|
|
66
|
-
/** @deprecated use `GetAIConfigsLDAPIVersion$outboundSchema` instead. */
|
|
67
|
-
export const outboundSchema = GetAIConfigsLDAPIVersion$outboundSchema;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
30
|
/** @internal */
|
|
71
31
|
export const GetAIConfigsRequest$inboundSchema: z.ZodType<
|
|
72
32
|
GetAIConfigsRequest,
|
|
73
33
|
z.ZodTypeDef,
|
|
74
34
|
unknown
|
|
75
35
|
> = z.object({
|
|
76
|
-
"LD-API-Version": GetAIConfigsLDAPIVersion$inboundSchema,
|
|
77
36
|
projectKey: z.string(),
|
|
78
37
|
sort: z.string().optional(),
|
|
79
38
|
limit: z.number().int().optional(),
|
|
80
39
|
offset: z.number().int().optional(),
|
|
81
40
|
filter: z.string().optional(),
|
|
82
|
-
}).transform((v) => {
|
|
83
|
-
return remap$(v, {
|
|
84
|
-
"LD-API-Version": "ldAPIVersion",
|
|
85
|
-
});
|
|
86
41
|
});
|
|
87
42
|
|
|
88
43
|
/** @internal */
|
|
89
44
|
export type GetAIConfigsRequest$Outbound = {
|
|
90
|
-
"LD-API-Version": string;
|
|
91
45
|
projectKey: string;
|
|
92
46
|
sort?: string | undefined;
|
|
93
47
|
limit?: number | undefined;
|
|
@@ -101,16 +55,11 @@ export const GetAIConfigsRequest$outboundSchema: z.ZodType<
|
|
|
101
55
|
z.ZodTypeDef,
|
|
102
56
|
GetAIConfigsRequest
|
|
103
57
|
> = z.object({
|
|
104
|
-
ldAPIVersion: GetAIConfigsLDAPIVersion$outboundSchema,
|
|
105
58
|
projectKey: z.string(),
|
|
106
59
|
sort: z.string().optional(),
|
|
107
60
|
limit: z.number().int().optional(),
|
|
108
61
|
offset: z.number().int().optional(),
|
|
109
62
|
filter: z.string().optional(),
|
|
110
|
-
}).transform((v) => {
|
|
111
|
-
return remap$(v, {
|
|
112
|
-
ldAPIVersion: "LD-API-Version",
|
|
113
|
-
});
|
|
114
63
|
});
|
|
115
64
|
|
|
116
65
|
/**
|
|
@@ -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 GetAIConfigTargetingLDAPIVersion = {
|
|
16
|
-
Beta: "beta",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Version of the endpoint.
|
|
20
|
-
*/
|
|
21
|
-
export type GetAIConfigTargetingLDAPIVersion = ClosedEnum<
|
|
22
|
-
typeof GetAIConfigTargetingLDAPIVersion
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
10
|
export type GetAIConfigTargetingRequest = {
|
|
26
|
-
/**
|
|
27
|
-
* Version of the endpoint.
|
|
28
|
-
*/
|
|
29
|
-
ldAPIVersion: GetAIConfigTargetingLDAPIVersion;
|
|
30
11
|
projectKey: string;
|
|
31
12
|
configKey: string;
|
|
32
13
|
};
|
|
33
14
|
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const GetAIConfigTargetingLDAPIVersion$inboundSchema: z.ZodNativeEnum<
|
|
36
|
-
typeof GetAIConfigTargetingLDAPIVersion
|
|
37
|
-
> = z.nativeEnum(GetAIConfigTargetingLDAPIVersion);
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const GetAIConfigTargetingLDAPIVersion$outboundSchema: z.ZodNativeEnum<
|
|
41
|
-
typeof GetAIConfigTargetingLDAPIVersion
|
|
42
|
-
> = GetAIConfigTargetingLDAPIVersion$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 GetAIConfigTargetingLDAPIVersion$ {
|
|
49
|
-
/** @deprecated use `GetAIConfigTargetingLDAPIVersion$inboundSchema` instead. */
|
|
50
|
-
export const inboundSchema = GetAIConfigTargetingLDAPIVersion$inboundSchema;
|
|
51
|
-
/** @deprecated use `GetAIConfigTargetingLDAPIVersion$outboundSchema` instead. */
|
|
52
|
-
export const outboundSchema = GetAIConfigTargetingLDAPIVersion$outboundSchema;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
15
|
/** @internal */
|
|
56
16
|
export const GetAIConfigTargetingRequest$inboundSchema: z.ZodType<
|
|
57
17
|
GetAIConfigTargetingRequest,
|
|
58
18
|
z.ZodTypeDef,
|
|
59
19
|
unknown
|
|
60
20
|
> = z.object({
|
|
61
|
-
"LD-API-Version": GetAIConfigTargetingLDAPIVersion$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 GetAIConfigTargetingRequest$Outbound = {
|
|
72
|
-
"LD-API-Version": string;
|
|
73
27
|
projectKey: string;
|
|
74
28
|
configKey: string;
|
|
75
29
|
};
|
|
@@ -80,13 +34,8 @@ export const GetAIConfigTargetingRequest$outboundSchema: z.ZodType<
|
|
|
80
34
|
z.ZodTypeDef,
|
|
81
35
|
GetAIConfigTargetingRequest
|
|
82
36
|
> = z.object({
|
|
83
|
-
ldAPIVersion: GetAIConfigTargetingLDAPIVersion$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,75 +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 GetAIConfigVariationLDAPIVersion = {
|
|
16
|
-
Beta: "beta",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Version of the endpoint.
|
|
20
|
-
*/
|
|
21
|
-
export type GetAIConfigVariationLDAPIVersion = ClosedEnum<
|
|
22
|
-
typeof GetAIConfigVariationLDAPIVersion
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
10
|
export type GetAIConfigVariationRequest = {
|
|
26
|
-
/**
|
|
27
|
-
* Version of the endpoint.
|
|
28
|
-
*/
|
|
29
|
-
ldAPIVersion: GetAIConfigVariationLDAPIVersion;
|
|
30
11
|
projectKey: string;
|
|
31
12
|
configKey: string;
|
|
32
13
|
variationKey: string;
|
|
33
14
|
};
|
|
34
15
|
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const GetAIConfigVariationLDAPIVersion$inboundSchema: z.ZodNativeEnum<
|
|
37
|
-
typeof GetAIConfigVariationLDAPIVersion
|
|
38
|
-
> = z.nativeEnum(GetAIConfigVariationLDAPIVersion);
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const GetAIConfigVariationLDAPIVersion$outboundSchema: z.ZodNativeEnum<
|
|
42
|
-
typeof GetAIConfigVariationLDAPIVersion
|
|
43
|
-
> = GetAIConfigVariationLDAPIVersion$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 GetAIConfigVariationLDAPIVersion$ {
|
|
50
|
-
/** @deprecated use `GetAIConfigVariationLDAPIVersion$inboundSchema` instead. */
|
|
51
|
-
export const inboundSchema = GetAIConfigVariationLDAPIVersion$inboundSchema;
|
|
52
|
-
/** @deprecated use `GetAIConfigVariationLDAPIVersion$outboundSchema` instead. */
|
|
53
|
-
export const outboundSchema = GetAIConfigVariationLDAPIVersion$outboundSchema;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
16
|
/** @internal */
|
|
57
17
|
export const GetAIConfigVariationRequest$inboundSchema: z.ZodType<
|
|
58
18
|
GetAIConfigVariationRequest,
|
|
59
19
|
z.ZodTypeDef,
|
|
60
20
|
unknown
|
|
61
21
|
> = z.object({
|
|
62
|
-
"LD-API-Version": GetAIConfigVariationLDAPIVersion$inboundSchema,
|
|
63
22
|
projectKey: z.string(),
|
|
64
23
|
configKey: z.string(),
|
|
65
24
|
variationKey: z.string(),
|
|
66
|
-
}).transform((v) => {
|
|
67
|
-
return remap$(v, {
|
|
68
|
-
"LD-API-Version": "ldAPIVersion",
|
|
69
|
-
});
|
|
70
25
|
});
|
|
71
26
|
|
|
72
27
|
/** @internal */
|
|
73
28
|
export type GetAIConfigVariationRequest$Outbound = {
|
|
74
|
-
"LD-API-Version": string;
|
|
75
29
|
projectKey: string;
|
|
76
30
|
configKey: string;
|
|
77
31
|
variationKey: string;
|
|
@@ -83,14 +37,9 @@ export const GetAIConfigVariationRequest$outboundSchema: z.ZodType<
|
|
|
83
37
|
z.ZodTypeDef,
|
|
84
38
|
GetAIConfigVariationRequest
|
|
85
39
|
> = z.object({
|
|
86
|
-
ldAPIVersion: GetAIConfigVariationLDAPIVersion$outboundSchema,
|
|
87
40
|
projectKey: z.string(),
|
|
88
41
|
configKey: z.string(),
|
|
89
42
|
variationKey: z.string(),
|
|
90
|
-
}).transform((v) => {
|
|
91
|
-
return remap$(v, {
|
|
92
|
-
ldAPIVersion: "LD-API-Version",
|
|
93
|
-
});
|
|
94
43
|
});
|
|
95
44
|
|
|
96
45
|
/**
|
|
@@ -35,7 +35,7 @@ export type GetFeatureFlagsRequest = {
|
|
|
35
35
|
*/
|
|
36
36
|
archived?: boolean | undefined;
|
|
37
37
|
/**
|
|
38
|
-
* By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` to include these fields for each flag returned.
|
|
38
|
+
* By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` and include the `env` query parameter to include these fields for each flag returned.
|
|
39
39
|
*/
|
|
40
40
|
summary?: boolean | undefined;
|
|
41
41
|
/**
|
|
@@ -5,29 +5,11 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
13
|
-
/**
|
|
14
|
-
* Version of the endpoint.
|
|
15
|
-
*/
|
|
16
|
-
export const PatchAIConfigLDAPIVersion = {
|
|
17
|
-
Beta: "beta",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* Version of the endpoint.
|
|
21
|
-
*/
|
|
22
|
-
export type PatchAIConfigLDAPIVersion = ClosedEnum<
|
|
23
|
-
typeof PatchAIConfigLDAPIVersion
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
12
|
export type PatchAIConfigRequest = {
|
|
27
|
-
/**
|
|
28
|
-
* Version of the endpoint.
|
|
29
|
-
*/
|
|
30
|
-
ldAPIVersion: PatchAIConfigLDAPIVersion;
|
|
31
13
|
projectKey: string;
|
|
32
14
|
configKey: string;
|
|
33
15
|
/**
|
|
@@ -36,47 +18,23 @@ export type PatchAIConfigRequest = {
|
|
|
36
18
|
aiConfigPatch?: components.AIConfigPatch | undefined;
|
|
37
19
|
};
|
|
38
20
|
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const PatchAIConfigLDAPIVersion$inboundSchema: z.ZodNativeEnum<
|
|
41
|
-
typeof PatchAIConfigLDAPIVersion
|
|
42
|
-
> = z.nativeEnum(PatchAIConfigLDAPIVersion);
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const PatchAIConfigLDAPIVersion$outboundSchema: z.ZodNativeEnum<
|
|
46
|
-
typeof PatchAIConfigLDAPIVersion
|
|
47
|
-
> = PatchAIConfigLDAPIVersion$inboundSchema;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export namespace PatchAIConfigLDAPIVersion$ {
|
|
54
|
-
/** @deprecated use `PatchAIConfigLDAPIVersion$inboundSchema` instead. */
|
|
55
|
-
export const inboundSchema = PatchAIConfigLDAPIVersion$inboundSchema;
|
|
56
|
-
/** @deprecated use `PatchAIConfigLDAPIVersion$outboundSchema` instead. */
|
|
57
|
-
export const outboundSchema = PatchAIConfigLDAPIVersion$outboundSchema;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
21
|
/** @internal */
|
|
61
22
|
export const PatchAIConfigRequest$inboundSchema: z.ZodType<
|
|
62
23
|
PatchAIConfigRequest,
|
|
63
24
|
z.ZodTypeDef,
|
|
64
25
|
unknown
|
|
65
26
|
> = z.object({
|
|
66
|
-
"LD-API-Version": PatchAIConfigLDAPIVersion$inboundSchema,
|
|
67
27
|
projectKey: z.string(),
|
|
68
28
|
configKey: z.string(),
|
|
69
29
|
AIConfigPatch: components.AIConfigPatch$inboundSchema.optional(),
|
|
70
30
|
}).transform((v) => {
|
|
71
31
|
return remap$(v, {
|
|
72
|
-
"LD-API-Version": "ldAPIVersion",
|
|
73
32
|
"AIConfigPatch": "aiConfigPatch",
|
|
74
33
|
});
|
|
75
34
|
});
|
|
76
35
|
|
|
77
36
|
/** @internal */
|
|
78
37
|
export type PatchAIConfigRequest$Outbound = {
|
|
79
|
-
"LD-API-Version": string;
|
|
80
38
|
projectKey: string;
|
|
81
39
|
configKey: string;
|
|
82
40
|
AIConfigPatch?: components.AIConfigPatch$Outbound | undefined;
|
|
@@ -88,13 +46,11 @@ export const PatchAIConfigRequest$outboundSchema: z.ZodType<
|
|
|
88
46
|
z.ZodTypeDef,
|
|
89
47
|
PatchAIConfigRequest
|
|
90
48
|
> = z.object({
|
|
91
|
-
ldAPIVersion: PatchAIConfigLDAPIVersion$outboundSchema,
|
|
92
49
|
projectKey: z.string(),
|
|
93
50
|
configKey: z.string(),
|
|
94
51
|
aiConfigPatch: components.AIConfigPatch$outboundSchema.optional(),
|
|
95
52
|
}).transform((v) => {
|
|
96
53
|
return remap$(v, {
|
|
97
|
-
ldAPIVersion: "LD-API-Version",
|
|
98
54
|
aiConfigPatch: "AIConfigPatch",
|
|
99
55
|
});
|
|
100
56
|
});
|
|
@@ -5,29 +5,11 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
13
|
-
/**
|
|
14
|
-
* Version of the endpoint.
|
|
15
|
-
*/
|
|
16
|
-
export const PatchAIConfigTargetingLDAPIVersion = {
|
|
17
|
-
Beta: "beta",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* Version of the endpoint.
|
|
21
|
-
*/
|
|
22
|
-
export type PatchAIConfigTargetingLDAPIVersion = ClosedEnum<
|
|
23
|
-
typeof PatchAIConfigTargetingLDAPIVersion
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
12
|
export type PatchAIConfigTargetingRequest = {
|
|
27
|
-
/**
|
|
28
|
-
* Version of the endpoint.
|
|
29
|
-
*/
|
|
30
|
-
ldAPIVersion: PatchAIConfigTargetingLDAPIVersion;
|
|
31
13
|
projectKey: string;
|
|
32
14
|
configKey: string;
|
|
33
15
|
/**
|
|
@@ -36,49 +18,24 @@ export type PatchAIConfigTargetingRequest = {
|
|
|
36
18
|
aiConfigTargetingPatch?: components.AIConfigTargetingPatch | undefined;
|
|
37
19
|
};
|
|
38
20
|
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const PatchAIConfigTargetingLDAPIVersion$inboundSchema: z.ZodNativeEnum<
|
|
41
|
-
typeof PatchAIConfigTargetingLDAPIVersion
|
|
42
|
-
> = z.nativeEnum(PatchAIConfigTargetingLDAPIVersion);
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const PatchAIConfigTargetingLDAPIVersion$outboundSchema: z.ZodNativeEnum<
|
|
46
|
-
typeof PatchAIConfigTargetingLDAPIVersion
|
|
47
|
-
> = PatchAIConfigTargetingLDAPIVersion$inboundSchema;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export namespace PatchAIConfigTargetingLDAPIVersion$ {
|
|
54
|
-
/** @deprecated use `PatchAIConfigTargetingLDAPIVersion$inboundSchema` instead. */
|
|
55
|
-
export const inboundSchema = PatchAIConfigTargetingLDAPIVersion$inboundSchema;
|
|
56
|
-
/** @deprecated use `PatchAIConfigTargetingLDAPIVersion$outboundSchema` instead. */
|
|
57
|
-
export const outboundSchema =
|
|
58
|
-
PatchAIConfigTargetingLDAPIVersion$outboundSchema;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
21
|
/** @internal */
|
|
62
22
|
export const PatchAIConfigTargetingRequest$inboundSchema: z.ZodType<
|
|
63
23
|
PatchAIConfigTargetingRequest,
|
|
64
24
|
z.ZodTypeDef,
|
|
65
25
|
unknown
|
|
66
26
|
> = z.object({
|
|
67
|
-
"LD-API-Version": PatchAIConfigTargetingLDAPIVersion$inboundSchema,
|
|
68
27
|
projectKey: z.string(),
|
|
69
28
|
configKey: z.string(),
|
|
70
29
|
AIConfigTargetingPatch: components.AIConfigTargetingPatch$inboundSchema
|
|
71
30
|
.optional(),
|
|
72
31
|
}).transform((v) => {
|
|
73
32
|
return remap$(v, {
|
|
74
|
-
"LD-API-Version": "ldAPIVersion",
|
|
75
33
|
"AIConfigTargetingPatch": "aiConfigTargetingPatch",
|
|
76
34
|
});
|
|
77
35
|
});
|
|
78
36
|
|
|
79
37
|
/** @internal */
|
|
80
38
|
export type PatchAIConfigTargetingRequest$Outbound = {
|
|
81
|
-
"LD-API-Version": string;
|
|
82
39
|
projectKey: string;
|
|
83
40
|
configKey: string;
|
|
84
41
|
AIConfigTargetingPatch?:
|
|
@@ -92,14 +49,12 @@ export const PatchAIConfigTargetingRequest$outboundSchema: z.ZodType<
|
|
|
92
49
|
z.ZodTypeDef,
|
|
93
50
|
PatchAIConfigTargetingRequest
|
|
94
51
|
> = z.object({
|
|
95
|
-
ldAPIVersion: PatchAIConfigTargetingLDAPIVersion$outboundSchema,
|
|
96
52
|
projectKey: z.string(),
|
|
97
53
|
configKey: z.string(),
|
|
98
54
|
aiConfigTargetingPatch: components.AIConfigTargetingPatch$outboundSchema
|
|
99
55
|
.optional(),
|
|
100
56
|
}).transform((v) => {
|
|
101
57
|
return remap$(v, {
|
|
102
|
-
ldAPIVersion: "LD-API-Version",
|
|
103
58
|
aiConfigTargetingPatch: "AIConfigTargetingPatch",
|
|
104
59
|
});
|
|
105
60
|
});
|
|
@@ -5,29 +5,11 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
13
|
-
/**
|
|
14
|
-
* Version of the endpoint.
|
|
15
|
-
*/
|
|
16
|
-
export const PatchAIConfigVariationLDAPIVersion = {
|
|
17
|
-
Beta: "beta",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* Version of the endpoint.
|
|
21
|
-
*/
|
|
22
|
-
export type PatchAIConfigVariationLDAPIVersion = ClosedEnum<
|
|
23
|
-
typeof PatchAIConfigVariationLDAPIVersion
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
12
|
export type PatchAIConfigVariationRequest = {
|
|
27
|
-
/**
|
|
28
|
-
* Version of the endpoint.
|
|
29
|
-
*/
|
|
30
|
-
ldAPIVersion: PatchAIConfigVariationLDAPIVersion;
|
|
31
13
|
projectKey: string;
|
|
32
14
|
configKey: string;
|
|
33
15
|
variationKey: string;
|
|
@@ -37,35 +19,12 @@ export type PatchAIConfigVariationRequest = {
|
|
|
37
19
|
aiConfigVariationPatch?: components.AIConfigVariationPatch | undefined;
|
|
38
20
|
};
|
|
39
21
|
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const PatchAIConfigVariationLDAPIVersion$inboundSchema: z.ZodNativeEnum<
|
|
42
|
-
typeof PatchAIConfigVariationLDAPIVersion
|
|
43
|
-
> = z.nativeEnum(PatchAIConfigVariationLDAPIVersion);
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const PatchAIConfigVariationLDAPIVersion$outboundSchema: z.ZodNativeEnum<
|
|
47
|
-
typeof PatchAIConfigVariationLDAPIVersion
|
|
48
|
-
> = PatchAIConfigVariationLDAPIVersion$inboundSchema;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
export namespace PatchAIConfigVariationLDAPIVersion$ {
|
|
55
|
-
/** @deprecated use `PatchAIConfigVariationLDAPIVersion$inboundSchema` instead. */
|
|
56
|
-
export const inboundSchema = PatchAIConfigVariationLDAPIVersion$inboundSchema;
|
|
57
|
-
/** @deprecated use `PatchAIConfigVariationLDAPIVersion$outboundSchema` instead. */
|
|
58
|
-
export const outboundSchema =
|
|
59
|
-
PatchAIConfigVariationLDAPIVersion$outboundSchema;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
22
|
/** @internal */
|
|
63
23
|
export const PatchAIConfigVariationRequest$inboundSchema: z.ZodType<
|
|
64
24
|
PatchAIConfigVariationRequest,
|
|
65
25
|
z.ZodTypeDef,
|
|
66
26
|
unknown
|
|
67
27
|
> = z.object({
|
|
68
|
-
"LD-API-Version": PatchAIConfigVariationLDAPIVersion$inboundSchema,
|
|
69
28
|
projectKey: z.string(),
|
|
70
29
|
configKey: z.string(),
|
|
71
30
|
variationKey: z.string(),
|
|
@@ -73,14 +32,12 @@ export const PatchAIConfigVariationRequest$inboundSchema: z.ZodType<
|
|
|
73
32
|
.optional(),
|
|
74
33
|
}).transform((v) => {
|
|
75
34
|
return remap$(v, {
|
|
76
|
-
"LD-API-Version": "ldAPIVersion",
|
|
77
35
|
"AIConfigVariationPatch": "aiConfigVariationPatch",
|
|
78
36
|
});
|
|
79
37
|
});
|
|
80
38
|
|
|
81
39
|
/** @internal */
|
|
82
40
|
export type PatchAIConfigVariationRequest$Outbound = {
|
|
83
|
-
"LD-API-Version": string;
|
|
84
41
|
projectKey: string;
|
|
85
42
|
configKey: string;
|
|
86
43
|
variationKey: string;
|
|
@@ -95,7 +52,6 @@ export const PatchAIConfigVariationRequest$outboundSchema: z.ZodType<
|
|
|
95
52
|
z.ZodTypeDef,
|
|
96
53
|
PatchAIConfigVariationRequest
|
|
97
54
|
> = z.object({
|
|
98
|
-
ldAPIVersion: PatchAIConfigVariationLDAPIVersion$outboundSchema,
|
|
99
55
|
projectKey: z.string(),
|
|
100
56
|
configKey: z.string(),
|
|
101
57
|
variationKey: z.string(),
|
|
@@ -103,7 +59,6 @@ export const PatchAIConfigVariationRequest$outboundSchema: z.ZodType<
|
|
|
103
59
|
.optional(),
|
|
104
60
|
}).transform((v) => {
|
|
105
61
|
return remap$(v, {
|
|
106
|
-
ldAPIVersion: "LD-API-Version",
|
|
107
62
|
aiConfigVariationPatch: "AIConfigVariationPatch",
|
|
108
63
|
});
|
|
109
64
|
});
|
|
@@ -22,6 +22,10 @@ export type PatchFeatureFlagRequest = {
|
|
|
22
22
|
* If true, the patch will be applied even if it causes a pending scheduled change or approval request to fail.
|
|
23
23
|
*/
|
|
24
24
|
ignoreConflicts?: boolean | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* If true, the patch will be validated but not persisted. Returns a preview of the flag after the patch is applied.
|
|
27
|
+
*/
|
|
28
|
+
dryRun?: boolean | undefined;
|
|
25
29
|
patchWithComment: components.PatchWithComment;
|
|
26
30
|
};
|
|
27
31
|
|
|
@@ -34,6 +38,7 @@ export const PatchFeatureFlagRequest$inboundSchema: z.ZodType<
|
|
|
34
38
|
projectKey: z.string(),
|
|
35
39
|
featureFlagKey: z.string(),
|
|
36
40
|
ignoreConflicts: z.boolean().optional(),
|
|
41
|
+
dryRun: z.boolean().optional(),
|
|
37
42
|
PatchWithComment: components.PatchWithComment$inboundSchema,
|
|
38
43
|
}).transform((v) => {
|
|
39
44
|
return remap$(v, {
|
|
@@ -46,6 +51,7 @@ export type PatchFeatureFlagRequest$Outbound = {
|
|
|
46
51
|
projectKey: string;
|
|
47
52
|
featureFlagKey: string;
|
|
48
53
|
ignoreConflicts?: boolean | undefined;
|
|
54
|
+
dryRun?: boolean | undefined;
|
|
49
55
|
PatchWithComment: components.PatchWithComment$Outbound;
|
|
50
56
|
};
|
|
51
57
|
|
|
@@ -58,6 +64,7 @@ export const PatchFeatureFlagRequest$outboundSchema: z.ZodType<
|
|
|
58
64
|
projectKey: z.string(),
|
|
59
65
|
featureFlagKey: z.string(),
|
|
60
66
|
ignoreConflicts: z.boolean().optional(),
|
|
67
|
+
dryRun: z.boolean().optional(),
|
|
61
68
|
patchWithComment: components.PatchWithComment$outboundSchema,
|
|
62
69
|
}).transform((v) => {
|
|
63
70
|
return remap$(v, {
|
|
@@ -5,29 +5,11 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
13
|
-
/**
|
|
14
|
-
* Version of the endpoint.
|
|
15
|
-
*/
|
|
16
|
-
export const PostAIConfigLDAPIVersion = {
|
|
17
|
-
Beta: "beta",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* Version of the endpoint.
|
|
21
|
-
*/
|
|
22
|
-
export type PostAIConfigLDAPIVersion = ClosedEnum<
|
|
23
|
-
typeof PostAIConfigLDAPIVersion
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
12
|
export type PostAIConfigRequest = {
|
|
27
|
-
/**
|
|
28
|
-
* Version of the endpoint.
|
|
29
|
-
*/
|
|
30
|
-
ldAPIVersion: PostAIConfigLDAPIVersion;
|
|
31
13
|
projectKey: string;
|
|
32
14
|
/**
|
|
33
15
|
* AI Config object to create
|
|
@@ -35,46 +17,22 @@ export type PostAIConfigRequest = {
|
|
|
35
17
|
aiConfigPost: components.AIConfigPost;
|
|
36
18
|
};
|
|
37
19
|
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const PostAIConfigLDAPIVersion$inboundSchema: z.ZodNativeEnum<
|
|
40
|
-
typeof PostAIConfigLDAPIVersion
|
|
41
|
-
> = z.nativeEnum(PostAIConfigLDAPIVersion);
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const PostAIConfigLDAPIVersion$outboundSchema: z.ZodNativeEnum<
|
|
45
|
-
typeof PostAIConfigLDAPIVersion
|
|
46
|
-
> = PostAIConfigLDAPIVersion$inboundSchema;
|
|
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 PostAIConfigLDAPIVersion$ {
|
|
53
|
-
/** @deprecated use `PostAIConfigLDAPIVersion$inboundSchema` instead. */
|
|
54
|
-
export const inboundSchema = PostAIConfigLDAPIVersion$inboundSchema;
|
|
55
|
-
/** @deprecated use `PostAIConfigLDAPIVersion$outboundSchema` instead. */
|
|
56
|
-
export const outboundSchema = PostAIConfigLDAPIVersion$outboundSchema;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
20
|
/** @internal */
|
|
60
21
|
export const PostAIConfigRequest$inboundSchema: z.ZodType<
|
|
61
22
|
PostAIConfigRequest,
|
|
62
23
|
z.ZodTypeDef,
|
|
63
24
|
unknown
|
|
64
25
|
> = z.object({
|
|
65
|
-
"LD-API-Version": PostAIConfigLDAPIVersion$inboundSchema,
|
|
66
26
|
projectKey: z.string(),
|
|
67
27
|
AIConfigPost: components.AIConfigPost$inboundSchema,
|
|
68
28
|
}).transform((v) => {
|
|
69
29
|
return remap$(v, {
|
|
70
|
-
"LD-API-Version": "ldAPIVersion",
|
|
71
30
|
"AIConfigPost": "aiConfigPost",
|
|
72
31
|
});
|
|
73
32
|
});
|
|
74
33
|
|
|
75
34
|
/** @internal */
|
|
76
35
|
export type PostAIConfigRequest$Outbound = {
|
|
77
|
-
"LD-API-Version": string;
|
|
78
36
|
projectKey: string;
|
|
79
37
|
AIConfigPost: components.AIConfigPost$Outbound;
|
|
80
38
|
};
|
|
@@ -85,12 +43,10 @@ export const PostAIConfigRequest$outboundSchema: z.ZodType<
|
|
|
85
43
|
z.ZodTypeDef,
|
|
86
44
|
PostAIConfigRequest
|
|
87
45
|
> = z.object({
|
|
88
|
-
ldAPIVersion: PostAIConfigLDAPIVersion$outboundSchema,
|
|
89
46
|
projectKey: z.string(),
|
|
90
47
|
aiConfigPost: components.AIConfigPost$outboundSchema,
|
|
91
48
|
}).transform((v) => {
|
|
92
49
|
return remap$(v, {
|
|
93
|
-
ldAPIVersion: "LD-API-Version",
|
|
94
50
|
aiConfigPost: "AIConfigPost",
|
|
95
51
|
});
|
|
96
52
|
});
|