How to obtain the configuration of the Secret Generator in the default setting
https://$CUSTOM-DOMAIN/admin/v1/secretgenerators/:generatorType
How to call this interface in the zitadel typescript project? I can't find the corresponding interface information
10 Replies
hey @bernard li van you please describe your question a bit more
https://discord.com/channels/927474939156643850/1309166758699208785
thanks
Use-case: Company needs
Environment: Zitadel Cloud
Version: v2
Stack: I need to obtain the relevant configuration of Zitadel's secret generator in the default settings interface,how to obtain this configuration in the zitadel typescript project;
What went wrong: I don't know how to call this interface in the zitadel typescript project;
Attachments:The first image is the configuration information I hope to obtain through the interface,The second picture shows me finding relevant code about SecretGenerator in the zitadel typescript project, but there is no code block for GenService. So, how can I call it。


hey @bernard li thanks , will get bacl to you now, th aks for being super detailed
hey @Rajat any news?
hey @bernard li good morning, I will check with my team and get back to you on this
thanks
hey @bernard li I am no ts guru in any fashion 😄 and seems like my engineers are busy so did some more findings and rthe methods do exist,the reason you didn’t see them before is because your repo alone doesn’t ship the generated proto files anymore. They come from the
@zitadel/proto
npm package once you run pnpm install.
The methods you need are:
ListSecretGenerators
GetSecretGenerator
UpdateSecretGenerator
So in your TS project you just import from @zitadel/proto
and call through AdminService
.
lmk if this is what you were looking for
Thank you very much for your answer. This is exactly what I wanted
hey @bernard li awesome 🙂 pls mark my answer with ✅ and it will auto close this thread, glad it woekd out