package http
- Alphabetic
- By Inheritance
- http
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
Type Members
- type ActiveContract[+CtTyId, +LfV] = fetchcontracts.ActiveContract[CtTyId, LfV]
- final case class AllocatePartyRequest(identifierHint: Option[Party]) extends Product with Serializable
- final case class ArchivedContract(contractId: ContractId, templateId: ContractTypeId.RequiredPkgId) extends Product with Serializable
- final case class AsyncWarningsWrapper(warnings: ServiceWarning) extends Product with Serializable
- type Base16 = @@[ByteString, Base16Tag]
- sealed trait Base16Tag extends AnyRef
- type Base64 = @@[ByteString, Base64Tag]
- sealed trait Base64Tag extends AnyRef
- final case class CanActAs(party: Party) extends UserRight with Product with Serializable
- final case class CanReadAs(party: Party) extends UserRight with Product with Serializable
- type Choice = @@[String, ChoiceTag]
- type CommandId = @@[String, ledger.api.refinements.ApiTypes.CommandIdTag]
- type CommandIdTag = ledger.api.refinements.ApiTypes.CommandIdTag
- final case class CommandMeta[+TmplId](commandId: Option[CommandId], actAs: Option[NonEmptyList[Party]], readAs: Option[List[Party]], submissionId: Option[SubmissionId], workflowId: Option[WorkflowId], deduplicationPeriod: Option[DeduplicationPeriod], disclosedContracts: Option[List[DisclosedContract[TmplId]]], synchronizerId: Option[SynchronizerId], packageIdSelectionPreference: Option[List[PackageId]]) extends Product with Serializable
- TmplId
disclosed contracts' template ID
- class CommandService extends NamedLogging with NoTracing
- Annotations
- @nowarn()
- type CompletionOffset = @@[String, CompletionOffsetTag]
- sealed trait CompletionOffsetTag extends AnyRef
- final case class Contract[LfV](value: \/[ArchivedContract, ResolvedCtTyId[LfV]]) extends Product with Serializable
- type ContractId = @@[String, ContractIdTag]
- final case class ContractKeyStreamRequest[+Cid, +LfV](contractIdAtOffset: Cid, ekey: EnrichedContractKey[LfV]) extends Product with Serializable
- sealed abstract class ContractLocator[+LfV] extends Product with Serializable
- sealed abstract class ContractTypeId[+PkgId] extends Product3[PkgId, String, String] with Serializable with Ops[ContractTypeId, PkgId]
A contract type ID that may be either a template or an interface ID.
A contract type ID that may be either a template or an interface ID. A ContractTypeId.ResolvedPkg ID will always be either ContractTypeId.Template or ContractTypeId.Interface; an unresolved ID may be one of those, which indicates an expectation of what the resolved ID will be, or neither, which indicates that resolving what kind of ID this is will be part of the resolution.
Built-in equality is solely determined by the triple of package ID, module name, entity name. This is because there are likely insidious expectations that this be true dating to before contract type IDs were distinguished at all, and we are only interested in distinguishing them statically, which these types do, and by pattern-matching, which does work.
val selector: ContractTypeId[Unit] = Template((), "M", "E") selector match { case ContractTypeId.Unknown(p, m, e) => // this will not match case ContractTypeId.Interface(p, m, e) => // this will not match case ContractTypeId.Template(p, m, e) => // this will match }
- sealed abstract class ContractTypeIdLike[CtId[T] <: ContractTypeId[T]] extends AnyRef
A contract type ID companion.
- sealed abstract class ContractTypeRef[+CtTyId[T] <: ContractTypeId[T]] extends AnyRef
- class ContractsService extends NamedLogging with NoTracing
- final case class CreateAndExerciseCommand[+Payload, +Arg, +TmplId, +IfceId](templateId: TmplId, payload: Payload, choice: Choice, argument: Arg, choiceInterfaceId: Option[IfceId], meta: Option[CommandMeta[TmplId]]) extends Product with Serializable
- final case class CreateCommand[+LfV, +TmplId](templateId: TmplId, payload: LfV, meta: Option[NoDisclosed]) extends Product with Serializable
- final case class CreateCommandResponse[+LfV](contractId: ContractId, templateId: ContractTypeId.Template.RequiredPkgId, key: Option[LfV], payload: LfV, signatories: Seq[Party], observers: Seq[Party], completionOffset: CompletionOffset) extends Product with Serializable
- final case class CreateUserRequest(userId: String, primaryParty: Option[String], rights: Option[List[UserRight]]) extends Product with Serializable
- sealed abstract class DeduplicationPeriod extends Product with Serializable
- final case class DeleteUserRequest(userId: String) extends Product with Serializable
- final case class DisclosedContract[+TmplId](contractId: ContractId, templateId: TmplId, createdEventBlob: Base64) extends Product with Serializable
- class Endpoints extends NamedLogging with NoTracing
- final case class EnrichedContractId(templateId: Option[ContractTypeId.RequiredPkg], contractId: ContractId) extends ContractLocator[Nothing] with Product with Serializable
- final case class EnrichedContractKey[+LfV](templateId: ContractTypeId.Template.RequiredPkg, key: LfV) extends ContractLocator[LfV] with Product with Serializable
- type Error = fetchcontracts.Error
- sealed trait ErrorDetail extends Product with Serializable
- final case class ErrorInfoDetail(errorCodeId: String, metadata: Map[String, String]) extends ErrorDetail with Product with Serializable
- final case class ErrorResponse(errors: List[String], warnings: Option[ServiceWarning], status: StatusCode, ledgerApiError: Option[LedgerApiError] = None) extends SyncResponse[Nothing] with Product with Serializable
- final case class ExerciseCommand[+PkgId, +LfV, +Ref](reference: Ref, choice: Choice, argument: LfV, choiceInterfaceId: Option[ContractTypeId[PkgId]], meta: Option[CommandMeta[Template[PkgId]]]) extends Product with Serializable
- final case class ExerciseResponse[LfV](exerciseResult: LfV, events: List[Contract[LfV]], completionOffset: CompletionOffset) extends Product with Serializable
- final case class FetchRequest[+LfV](locator: ContractLocator[LfV], readAs: Option[NonEmptyList[Party]]) extends Product with Serializable
- final case class GetActiveContractsRequest(templateIds: NonEmpty[Set[ContractTypeId.RequiredPkg]], readAs: Option[NonEmptyList[Party]]) extends Product with Serializable
- final case class GetUserRequest(userId: String) extends Product with Serializable
- final case class GrantUserRightsRequest(userId: String, rights: List[UserRight]) extends Product with Serializable
- trait HasTemplateId[-F[_]] extends AnyRef
- final class HealthService extends AnyRef
- final case class HttpServerConfig(address: String = HttpServerConfig.defaultAddress, port: Option[Int] = None, portFile: Option[Path] = None, pathPrefix: Option[String] = None, requestTimeout: FiniteDuration = HttpServerConfig.defaultRequestTimeout) extends Product with Serializable
JSON API HTTP server configuration.
JSON API HTTP server configuration.
- address
The address to bind the HTTP server to. Defaults to the loopback address.
- port
The port to bind the HTTP server to. If not specified, the port will be dynamically assigned.
- portFile
Optional file to write the port number to after the server starts. This is useful for other processes to discover the port on which the server is running.
- pathPrefix
The path prefix for the HTTP server. If specified, all routes will be prefixed with this path.
- requestTimeout
The timeout for HTTP requests. Defaults to 20 seconds. Increase this value if you expect to handle long-running requests. As the backing server is implemented by Pekko HTTP, this configuration overrides the provided Pekko configuration (pekko.http.server.request-timeout).
- class HttpService extends ResourceOwner[ServerBinding] with NamedLogging with NoTracing
- type InputContractRef[LfV] = \/[(http.ContractTypeId.Template.RequiredPkg, LfV), (Option[http.ContractTypeId.RequiredPkg], ContractId)]
- final case class JsonApiConfig(server: HttpServerConfig, websocketConfig: Option[WebsocketConfig] = None, debugLoggingOfHttpBodies: Boolean = false, damlDefinitionsServiceEnabled: Boolean = false, userManagementWithoutAuthorization: Boolean = false) extends StartSettings with Product with Serializable
- sealed abstract case class JwtPayload extends JwtPayloadG with Product with Serializable
- trait JwtPayloadG extends AnyRef
- trait JwtPayloadTag extends AnyRef
- final case class JwtWritePayload(userId: UserId, submitter: NonEmptyList[Party], readAs: List[Party]) extends JwtPayloadG with Product with Serializable
- final case class LedgerApiError(code: Int, message: String, details: Seq[ErrorDetail]) extends Product with Serializable
- final case class LedgerClientJwt(loggerFactory: NamedLoggerFactory) extends NamedLogging with Product with Serializable
- type LfType = Type
- type LfValue = Value
- final case class ListUserRightsRequest(userId: String) extends Product with Serializable
- type Offset = @@[String, OffsetTag]
- final case class OkResponse[+R](result: R, warnings: Option[ServiceWarning] = None, status: StatusCode = StatusCodes.OK) extends SyncResponse[R] with Product with Serializable
- class PackageManagementService extends AnyRef
- class PackageService extends NamedLogging with NoTracing
- class PartiesService extends AnyRef
- type Party = @@[String, PartyTag]
- final case class PartyDetails(identifier: Party, isLocal: Boolean) extends Product with Serializable
- type PartySet = NonEmpty[Set[fetchcontracts.Party]]
- final case class RequestInfoDetail(correlationId: String) extends ErrorDetail with Product with Serializable
- type ResolvedContractRef[LfV] = \/[(http.ContractTypeId.Template.RequiredPkg, LfV), (http.ContractTypeId.RequiredPkg, ContractId)]
- sealed abstract class ResolvedQuery extends Product with Serializable
- final case class ResourceInfoDetail(name: String, typ: String) extends ErrorDetail with Product with Serializable
- final case class RetryInfoDetail(duration: RetryInfoDetailDuration) extends ErrorDetail with Product with Serializable
- type RetryInfoDetailDuration = @@[Duration, RetryInfoDetailDurationTag]
- sealed trait RetryInfoDetailDurationTag extends AnyRef
- final case class RevokeUserRightsRequest(userId: String, rights: List[UserRight]) extends Product with Serializable
- final case class SearchForeverQuery(templateIds: NonEmpty[Set[ContractTypeId.RequiredPkg]], offset: Option[Offset]) extends Product with Serializable
- final case class SearchForeverRequest(queriesWithPos: NonEmptyList[(SearchForeverQuery, Int)]) extends Product with Serializable
- sealed abstract class ServiceWarning extends Serializable with Product
- trait StartSettings extends AnyRef
- final case class StartingOffset(offset: Offset) extends Product with Serializable
- type SubmissionId = @@[String, SubmissionIdTag]
- sealed trait SubmissionIdTag extends AnyRef
- sealed abstract class SyncResponse[+R] extends Product with Serializable
- final case class UnknownParties(unknownParties: List[Party]) extends ServiceWarning with Product with Serializable
- final case class UnknownTemplateIds(unknownTemplateIds: List[ContractTypeId.RequiredPkg]) extends ServiceWarning with Product with Serializable
- final case class UserDetails(userId: String, primaryParty: Option[String]) extends Product with Serializable
- type UserId = @@[String, ledger.api.refinements.ApiTypes.UserIdTag]
- type UserIdTag = ledger.api.refinements.ApiTypes.UserIdTag
- sealed abstract class UserRight extends Product with Serializable
- class WebSocketService extends NamedLogging with NoTracing
- final case class WebsocketConfig(maxDuration: FiniteDuration = WSC.DefaultMaxDuration, throttleElem: Int = WSC.DefaultThrottleElem, throttlePer: FiniteDuration = WSC.DefaultThrottlePer, maxBurst: Int = WSC.DefaultMaxBurst, mode: ThrottleMode = WSC.DefaultThrottleMode, heartbeatPeriod: FiniteDuration = WSC.DefaultHeartbeatPeriod, httpListMaxElementsLimit: Long = WSC.DefaultHttpListMaxElementsLimit, httpListWaitTime: FiniteDuration = WSC.DefaultHttpListWaitTime) extends Product with Serializable
- class WebsocketEndpoints extends NamedLogging with NoTracing
- type WorkflowId = @@[String, WorkflowIdTag]
- type WorkflowIdTag = ledger.api.refinements.ApiTypes.WorkflowIdTag
Value Members
- final val ActiveContract: fetchcontracts.ActiveContract.type
- val Base16: TagOf[Base16Tag]
- val Base64: TagOf[Base64Tag]
- val Choice: TagOf[ChoiceTag]
- val CommandId: TagOf[ledger.api.refinements.ApiTypes.CommandIdTag]
- val CompletionOffset: TagOf[CompletionOffsetTag]
- final val ContractId: TagOf[ContractIdTag]
- final val Error: fetchcontracts.Error.type
- final val Offset: fetchcontracts.Offset.type
- final val Party: TagOf[PartyTag]
- val RetryInfoDetailDuration: TagOf[RetryInfoDetailDurationTag]
- val SubmissionId: TagOf[SubmissionIdTag]
- val UserId: TagOf[ledger.api.refinements.ApiTypes.UserIdTag]
- val WorkflowId: TagOf[WorkflowIdTag]
- object ActiveContractExtras
- object ArchivedContract extends Serializable
- case object CanReadAsAnyParty extends UserRight with Product with Serializable
- object CommandMeta extends Serializable
- object CommandService
- object Contract extends Serializable
- object ContractKeyStreamRequest extends Serializable
- object ContractLocator extends Serializable
- object ContractTypeId extends ContractTypeIdLike[ContractTypeId] with Serializable
- object ContractTypeRef
- object ContractsService
- object CreateAndExerciseCommand extends Serializable
- object CreateCommand extends Serializable
- object CreateCommandResponse extends Serializable
- object DeduplicationPeriod extends Serializable
- object DisclosedContract extends Serializable
- object Endpoints
- object EndpointsCompanion extends NoTracing
- object EnrichedContractKey extends Serializable
- object ErrorDetail extends Serializable
- object ErrorMessages
- object ExerciseCommand extends Serializable
- object ExerciseResponse extends Serializable
- object HasTemplateId
- object HealthService
- object HttpApiServer extends NoTracing
- object HttpServerConfig extends Serializable
- object HttpService extends NoTracing
- case object IdentityProviderAdmin extends UserRight with Product with Serializable
- object JsonApiConfig extends Serializable
- object JwtPayload extends Serializable
- object LedgerClientJwt extends Serializable
- object OkResponse extends Serializable
- object PackageService
- case object ParticipantAdmin extends UserRight with Product with Serializable
- object PartiesService
- object PartyDetails extends Serializable
- object ResolvedQuery extends Serializable
- object SyncResponse extends Serializable
- object UserDetails extends Serializable
- object UserRights
- object WebSocketService extends NoTracing
- object WebsocketConfig extends Serializable
- object WebsocketEndpoints