{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Invites the external user and sets initial roles that can be assumed and for how long","properties":{"path":{"type":"object","properties":{"ref":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","type":"string","examples":["abcdefghijklmnopqrst"],"description":"Project ref"}},"required":["ref"],"additionalProperties":false},"body":{"$ref":"#/definitions/InviteExternalUserJitAccessBody"}},"required":["path","body"],"additionalProperties":false,"definitions":{"InviteExternalUserJitAccessBody":{"type":"object","properties":{"email":{"type":"string","minLength":1,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"roles":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","minLength":1},"expires_at":{"type":"number"},"allowed_networks":{"type":"object","properties":{"allowed_cidrs":{"type":"array","items":{"type":"object","properties":{"cidr":{"type":"string","pattern":"^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$"}},"required":["cidr"]}},"allowed_cidrs_v6":{"type":"array","items":{"type":"object","properties":{"cidr":{"type":"string","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$"}},"required":["cidr"]}}}},"branches_only":{"type":"boolean"}},"required":["role"]}}},"required":["email","roles"],"examples":[{"email":"external-user@somedomain.xyz","roles":[{"role":"postgres","expires_at":1740787200,"allowed_networks":{"allowed_cidrs":[{"cidr":"203.0.113.0/24"}]},"branches_only":false}]}]}}},"name":"Invites an external user to a database for JIT access","id":"supabase.v1-invite-external-jit-access","example":{"path":{"ref":"abcdefghijklmnopqrst"},"body":{"email":"external-user@somedomain.xyz","roles":[{"role":"postgres","expires_at":1740787200,"allowed_networks":{"allowed_cidrs":[{"cidr":"203.0.113.0/24"}]},"branches_only":false}]}},"maxRequests":1,"summary":false}}