While the Admin SDK resources are all defined, they are marked as optional in the AdminDirectory interface. This decision can be seen in more detail at this link. But why are these clearly defined resources classified as optional?
The reason for this confusion arises when using TypeScript checker and encountering the error message "Object is possibly undefined" when trying to access something like
AdminDirectory.Domains.list("my_customer").domains
.