Packages

package http

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. http
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package json
  2. package metrics
  3. package util

Type Members

  1. type ActiveContract[+CtTyId, +LfV] = fetchcontracts.ActiveContract[CtTyId, LfV]
  2. final case class AllocatePartyRequest(identifierHint: Option[Party], synchronizerId: Option[String]) extends Product with Serializable
  3. final case class ArchivedContract(contractId: ContractId, templateId: ContractTypeId.RequiredPkgId) extends Product with Serializable
  4. final case class AsyncWarningsWrapper(warnings: ServiceWarning) extends Product with Serializable
  5. type Base16 = @@[ByteString, Base16Tag]
  6. sealed trait Base16Tag extends AnyRef
  7. type Base64 = @@[ByteString, Base64Tag]
  8. sealed trait Base64Tag extends AnyRef
  9. final case class CanActAs(party: Party) extends UserRight with Product with Serializable
  10. final case class CanReadAs(party: Party) extends UserRight with Product with Serializable
  11. type Choice = @@[String, ChoiceTag]
  12. type CommandId = @@[String, ledger.api.refinements.ApiTypes.CommandIdTag]
  13. type CommandIdTag = ledger.api.refinements.ApiTypes.CommandIdTag
  14. 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

  15. type CompletionOffset = @@[String, CompletionOffsetTag]
  16. sealed trait CompletionOffsetTag extends AnyRef
  17. final case class Contract[LfV](value: \/[ArchivedContract, ResolvedCtTyId[LfV]]) extends Product with Serializable
  18. type ContractId = @@[String, ContractIdTag]
  19. final case class ContractKeyStreamRequest[+Cid, +LfV](contractIdAtOffset: Cid, ekey: EnrichedContractKey[LfV]) extends Product with Serializable
  20. sealed abstract class ContractLocator[+LfV] extends Product with Serializable
  21. 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 name, 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
    }
  22. sealed abstract class ContractTypeIdLike[CtId[T] <: ContractTypeId[T]] extends AnyRef

    A contract type ID companion.

  23. sealed abstract class ContractTypeRef[+CtTyId[T] <: ContractTypeId[T]] extends AnyRef
  24. 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
  25. final case class CreateCommand[+LfV, +TmplId](templateId: TmplId, payload: LfV, meta: Option[NoDisclosed]) extends Product with Serializable
  26. 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
  27. final case class CreateUserRequest(userId: String, primaryParty: Option[String], rights: Option[List[UserRight]]) extends Product with Serializable
  28. sealed abstract class DeduplicationPeriod extends Product with Serializable
  29. final case class DeleteUserRequest(userId: String) extends Product with Serializable
  30. final case class DisclosedContract[+TmplId](contractId: ContractId, templateId: TmplId, createdEventBlob: Base64) extends Product with Serializable
  31. class Endpoints extends NamedLogging with NoTracing
  32. final case class EnrichedContractId(templateId: Option[ContractTypeId.RequiredPkg], contractId: ContractId) extends ContractLocator[Nothing] with Product with Serializable
  33. final case class EnrichedContractKey[+LfV](templateId: ContractTypeId.Template.RequiredPkg, key: LfV) extends ContractLocator[LfV] with Product with Serializable
  34. type Error = fetchcontracts.Error
  35. sealed trait ErrorDetail extends Product with Serializable
  36. final case class ErrorInfoDetail(errorCodeId: String, metadata: Map[String, String]) extends ErrorDetail with Product with Serializable
  37. final case class ErrorResponse(errors: List[String], warnings: Option[ServiceWarning], status: StatusCode, ledgerApiError: Option[LedgerApiError] = None) extends SyncResponse[Nothing] with Product with Serializable
  38. 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
  39. final case class ExerciseResponse[LfV](exerciseResult: LfV, events: List[Contract[LfV]], completionOffset: CompletionOffset) extends Product with Serializable
  40. final case class FetchRequest[+LfV](locator: ContractLocator[LfV], readAs: Option[NonEmptyList[Party]]) extends Product with Serializable
  41. final case class GetActiveContractsRequest(templateIds: NonEmpty[Set[ContractTypeId.RequiredPkg]], readAs: Option[NonEmptyList[Party]]) extends Product with Serializable
  42. final case class GetUserRequest(userId: String) extends Product with Serializable
  43. final case class GrantUserRightsRequest(userId: String, rights: List[UserRight]) extends Product with Serializable
  44. trait HasTemplateId[-F[_]] extends AnyRef
  45. final class HealthService extends AnyRef
  46. 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).

  47. class HttpService extends ResourceOwner[ServerBinding] with NamedLogging with NoTracing
  48. type InputContractRef[LfV] = \/[(http.ContractTypeId.Template.RequiredPkg, LfV), (Option[http.ContractTypeId.RequiredPkg], ContractId)]
  49. 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
  50. sealed abstract case class JwtPayload extends JwtPayloadG with Product with Serializable
  51. trait JwtPayloadG extends AnyRef
  52. trait JwtPayloadTag extends AnyRef
  53. final case class JwtWritePayload(userId: UserId, submitter: NonEmptyList[Party], readAs: List[Party]) extends JwtPayloadG with Product with Serializable
  54. final case class LedgerApiError(code: Int, message: String, details: Seq[ErrorDetail]) extends Product with Serializable
  55. type LfType = Type
  56. type LfValue = Value
  57. final case class ListUserRightsRequest(userId: String) extends Product with Serializable
  58. type Offset = @@[String, OffsetTag]
  59. final case class OkResponse[+R](result: R, warnings: Option[ServiceWarning] = None, status: StatusCode = StatusCodes.OK) extends SyncResponse[R] with Product with Serializable
  60. type Party = @@[String, PartyTag]
  61. final case class PartyDetails(identifier: Party, isLocal: Boolean) extends Product with Serializable
  62. type PartySet = NonEmpty[Set[fetchcontracts.Party]]
  63. final case class RequestInfoDetail(correlationId: String) extends ErrorDetail with Product with Serializable
  64. type ResolvedContractRef[LfV] = \/[(http.ContractTypeId.Template.RequiredPkg, LfV), (http.ContractTypeId.RequiredPkg, ContractId)]
  65. sealed abstract class ResolvedQuery extends Product with Serializable
  66. final case class ResourceInfoDetail(name: String, typ: String) extends ErrorDetail with Product with Serializable
  67. final case class RetryInfoDetail(duration: RetryInfoDetailDuration) extends ErrorDetail with Product with Serializable
  68. type RetryInfoDetailDuration = @@[Duration, RetryInfoDetailDurationTag]
  69. sealed trait RetryInfoDetailDurationTag extends AnyRef
  70. final case class RevokeUserRightsRequest(userId: String, rights: List[UserRight]) extends Product with Serializable
  71. final case class SearchForeverQuery(templateIds: NonEmpty[Set[ContractTypeId.RequiredPkg]], offset: Option[Offset]) extends Product with Serializable
  72. final case class SearchForeverRequest(queriesWithPos: NonEmptyList[(SearchForeverQuery, Int)]) extends Product with Serializable
  73. sealed abstract class ServiceWarning extends Serializable with Product
  74. trait StartSettings extends AnyRef
  75. final case class StartingOffset(offset: Offset) extends Product with Serializable
  76. type SubmissionId = @@[String, SubmissionIdTag]
  77. sealed trait SubmissionIdTag extends AnyRef
  78. sealed abstract class SyncResponse[+R] extends Product with Serializable
  79. final case class UnknownParties(unknownParties: List[Party]) extends ServiceWarning with Product with Serializable
  80. final case class UnknownTemplateIds(unknownTemplateIds: List[ContractTypeId.RequiredPkg]) extends ServiceWarning with Product with Serializable
  81. final case class UserDetails(userId: String, primaryParty: Option[String]) extends Product with Serializable
  82. type UserId = @@[String, ledger.api.refinements.ApiTypes.UserIdTag]
  83. type UserIdTag = ledger.api.refinements.ApiTypes.UserIdTag
  84. sealed abstract class UserRight extends Product with Serializable
  85. 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
  86. type WorkflowId = @@[String, WorkflowIdTag]
  87. type WorkflowIdTag = ledger.api.refinements.ApiTypes.WorkflowIdTag

Value Members

  1. final val ActiveContract: fetchcontracts.ActiveContract.type
  2. val Base16: TagOf[Base16Tag]
  3. val Base64: TagOf[Base64Tag]
  4. val Choice: TagOf[ChoiceTag]
  5. val CommandId: TagOf[ledger.api.refinements.ApiTypes.CommandIdTag]
  6. val CompletionOffset: TagOf[CompletionOffsetTag]
  7. final val ContractId: TagOf[ContractIdTag]
  8. final val Error: fetchcontracts.Error.type
  9. final val Offset: fetchcontracts.Offset.type
  10. final val Party: TagOf[PartyTag]
  11. val RetryInfoDetailDuration: TagOf[RetryInfoDetailDurationTag]
  12. val SubmissionId: TagOf[SubmissionIdTag]
  13. val UserId: TagOf[ledger.api.refinements.ApiTypes.UserIdTag]
  14. val WorkflowId: TagOf[WorkflowIdTag]
  15. object ActiveContractExtras
  16. object ArchivedContract extends Serializable
  17. case object CanReadAsAnyParty extends UserRight with Product with Serializable
  18. object CommandMeta extends Serializable
  19. object Contract extends Serializable
  20. object ContractKeyStreamRequest extends Serializable
  21. object ContractLocator extends Serializable
  22. object ContractTypeId extends ContractTypeIdLike[ContractTypeId] with Serializable
  23. object ContractTypeRef
  24. object CreateAndExerciseCommand extends Serializable
  25. object CreateCommand extends Serializable
  26. object CreateCommandResponse extends Serializable
  27. object DeduplicationPeriod extends Serializable
  28. object DisclosedContract extends Serializable
  29. object Endpoints
  30. object EndpointsCompanion extends NoTracing
  31. object EnrichedContractKey extends Serializable
  32. object ErrorDetail extends Serializable
  33. object ErrorMessages
  34. object ExerciseCommand extends Serializable
  35. object ExerciseResponse extends Serializable
  36. object HasTemplateId
  37. object HealthService
  38. object HttpApiServer extends NoTracing
  39. object HttpServerConfig extends Serializable
  40. object HttpService extends NoTracing
  41. case object IdentityProviderAdmin extends UserRight with Product with Serializable
  42. object JsonApiConfig extends Serializable
  43. object JwtPayload extends Serializable
  44. object OkResponse extends Serializable
  45. case object ParticipantAdmin extends UserRight with Product with Serializable
  46. object PartyDetails extends Serializable
  47. object ResolvedQuery extends Serializable
  48. object SyncResponse extends Serializable
  49. object UserDetails extends Serializable
  50. object UserRights
  51. object WebsocketConfig extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped