zitadel-node icon indicating copy to clipboard operation
zitadel-node copied to clipboard

Difficult/impossible to use much/most of the types

Open wlinna opened this issue 1 year ago • 2 comments

I am trying to use addHumanUser by creating a client with createManagementClient. However,

import { createAccessTokenInterceptor, createManagementClient, } from '@zitadel/node/api';

const client = createManagementClient(zitadelUrl, createAccessTokenInterceptor(...));

However, assigning gender seems difficult, because it appears I cannot import Gender etc. I can't import AddHumanUserRequest, so I can't just use AddHumanUserRequest.fromJson and the string values specified in Zitadel documentation either

I noticed an issue that seemed related, but it was marked as solved.

I use version 2.0.8 of zitadel-node with TypeScript

wlinna avatar Apr 26 '24 09:04 wlinna

hey @wlinna I'll have a look at the types again :)

buehler avatar May 07 '24 10:05 buehler

Yeah, I'm having same issue. not possible to use in internal imports

hisabimbola avatar Aug 29 '24 13:08 hisabimbola