authLoginMethod top-level constant

Request parameters for the auth/login method.

Specifies which authentication method to use.

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<LoginAuthRequest, LoginAuthResponse>
authLoginMethod = AcpMethodDescriptor<LoginAuthRequest, LoginAuthResponse>(
  name: 'auth/login',
  dartName: 'authLogin',
  protocol: AcpProtocolGeneration.v2,
  stability: AcpMethodStability.draft,
  direction: AcpMethodDirection.clientToAgent,
  kind: AcpMethodKind.request,
  paramsDefinition: 'LoginAuthRequest',
  paramsCodec: loginAuthRequestCodec,
  resultCodec: loginAuthResponseCodec,
  resultDefinition: 'LoginAuthResponse',
  capabilityPath: 'authMethods',
  documentation:
      'Request parameters for the `auth/login` method.\n\nSpecifies which authentication method to use.\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.',
);