authLogoutMethod top-level constant
Request parameters for the auth/logout method.
Terminates the current authenticated session.
Agents MUST support this method when their initialize response advertised
at least one valid authentication method. Clients MUST NOT call this method
when authMethods was omitted or empty.
Implementation
const AcpMethodDescriptor<LogoutAuthRequest, LogoutAuthResponse>
authLogoutMethod = AcpMethodDescriptor<LogoutAuthRequest, LogoutAuthResponse>(
name: 'auth/logout',
dartName: 'authLogout',
protocol: AcpProtocolGeneration.v2,
stability: AcpMethodStability.draft,
direction: AcpMethodDirection.clientToAgent,
kind: AcpMethodKind.request,
paramsDefinition: 'LogoutAuthRequest',
paramsCodec: logoutAuthRequestCodec,
resultCodec: logoutAuthResponseCodec,
resultDefinition: 'LogoutAuthResponse',
capabilityPath: 'authMethods',
documentation:
'Request parameters for the `auth/logout` method.\n\nTerminates the current authenticated session.\n\nAgents MUST support this method when their `initialize` response advertised\nat least one valid authentication method. Clients MUST NOT call this method\nwhen `authMethods` was omitted or empty.',
);