The resources that exist in the Admin SDK are marked as optional in the AdminDirectory interface (see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/google-apps-script/apis/directory_v1.d.ts#L1037-L1056). Why is this the case if those are all defined resources?
This is coming up because typescript checker is throwing "Object is possibly undefined" when referencing something like AdminDirectory.Domains.list("my_customer").domains.