Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 168
configured_endpoints: 169
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.courier.services.blocking.BrandService
import com.courier.services.blocking.BroadcastService
import com.courier.services.blocking.BulkService
import com.courier.services.blocking.DigestService
import com.courier.services.blocking.FeedbackService
import com.courier.services.blocking.InboundService
import com.courier.services.blocking.JourneyService
import com.courier.services.blocking.ListService
Expand Down Expand Up @@ -117,6 +118,12 @@ interface CourierClient {

fun digests(): DigestService

/**
* Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent,
* a developer tool or by hand.
*/
fun feedback(): FeedbackService

/** Record an inbound event that triggers the journeys and automations mapped to it. */
fun inbound(): InboundService

Expand Down Expand Up @@ -251,6 +258,12 @@ interface CourierClient {

fun digests(): DigestService.WithRawResponse

/**
* Report suspected bugs, confusing behavior and missing features in Courier, from an AI
* agent, a developer tool or by hand.
*/
fun feedback(): FeedbackService.WithRawResponse

/** Record an inbound event that triggers the journeys and automations mapped to it. */
fun inbound(): InboundService.WithRawResponse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.courier.services.async.BrandServiceAsync
import com.courier.services.async.BroadcastServiceAsync
import com.courier.services.async.BulkServiceAsync
import com.courier.services.async.DigestServiceAsync
import com.courier.services.async.FeedbackServiceAsync
import com.courier.services.async.InboundServiceAsync
import com.courier.services.async.JourneyServiceAsync
import com.courier.services.async.ListServiceAsync
Expand Down Expand Up @@ -117,6 +118,12 @@ interface CourierClientAsync {

fun digests(): DigestServiceAsync

/**
* Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent,
* a developer tool or by hand.
*/
fun feedback(): FeedbackServiceAsync

/** Record an inbound event that triggers the journeys and automations mapped to it. */
fun inbound(): InboundServiceAsync

Expand Down Expand Up @@ -255,6 +262,12 @@ interface CourierClientAsync {

fun digests(): DigestServiceAsync.WithRawResponse

/**
* Report suspected bugs, confusing behavior and missing features in Courier, from an AI
* agent, a developer tool or by hand.
*/
fun feedback(): FeedbackServiceAsync.WithRawResponse

/** Record an inbound event that triggers the journeys and automations mapped to it. */
fun inbound(): InboundServiceAsync.WithRawResponse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import com.courier.services.async.BulkServiceAsync
import com.courier.services.async.BulkServiceAsyncImpl
import com.courier.services.async.DigestServiceAsync
import com.courier.services.async.DigestServiceAsyncImpl
import com.courier.services.async.FeedbackServiceAsync
import com.courier.services.async.FeedbackServiceAsyncImpl
import com.courier.services.async.InboundServiceAsync
import com.courier.services.async.InboundServiceAsyncImpl
import com.courier.services.async.JourneyServiceAsync
Expand Down Expand Up @@ -111,6 +113,10 @@ class CourierClientAsyncImpl(private val clientOptions: ClientOptions) : Courier
DigestServiceAsyncImpl(clientOptionsWithUserAgent)
}

private val feedback: FeedbackServiceAsync by lazy {
FeedbackServiceAsyncImpl(clientOptionsWithUserAgent)
}

private val inbound: InboundServiceAsync by lazy {
InboundServiceAsyncImpl(clientOptionsWithUserAgent)
}
Expand Down Expand Up @@ -211,6 +217,12 @@ class CourierClientAsyncImpl(private val clientOptions: ClientOptions) : Courier

override fun digests(): DigestServiceAsync = digests

/**
* Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent,
* a developer tool or by hand.
*/
override fun feedback(): FeedbackServiceAsync = feedback

/** Record an inbound event that triggers the journeys and automations mapped to it. */
override fun inbound(): InboundServiceAsync = inbound

Expand Down Expand Up @@ -318,6 +330,10 @@ class CourierClientAsyncImpl(private val clientOptions: ClientOptions) : Courier
DigestServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

private val feedback: FeedbackServiceAsync.WithRawResponse by lazy {
FeedbackServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

private val inbound: InboundServiceAsync.WithRawResponse by lazy {
InboundServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
Expand Down Expand Up @@ -426,6 +442,12 @@ class CourierClientAsyncImpl(private val clientOptions: ClientOptions) : Courier

override fun digests(): DigestServiceAsync.WithRawResponse = digests

/**
* Report suspected bugs, confusing behavior and missing features in Courier, from an AI
* agent, a developer tool or by hand.
*/
override fun feedback(): FeedbackServiceAsync.WithRawResponse = feedback

/** Record an inbound event that triggers the journeys and automations mapped to it. */
override fun inbound(): InboundServiceAsync.WithRawResponse = inbound

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import com.courier.services.blocking.BulkService
import com.courier.services.blocking.BulkServiceImpl
import com.courier.services.blocking.DigestService
import com.courier.services.blocking.DigestServiceImpl
import com.courier.services.blocking.FeedbackService
import com.courier.services.blocking.FeedbackServiceImpl
import com.courier.services.blocking.InboundService
import com.courier.services.blocking.InboundServiceImpl
import com.courier.services.blocking.JourneyService
Expand Down Expand Up @@ -103,6 +105,10 @@ class CourierClientImpl(private val clientOptions: ClientOptions) : CourierClien

private val digests: DigestService by lazy { DigestServiceImpl(clientOptionsWithUserAgent) }

private val feedback: FeedbackService by lazy {
FeedbackServiceImpl(clientOptionsWithUserAgent)
}

private val inbound: InboundService by lazy { InboundServiceImpl(clientOptionsWithUserAgent) }

private val lists: ListService by lazy { ListServiceImpl(clientOptionsWithUserAgent) }
Expand Down Expand Up @@ -193,6 +199,12 @@ class CourierClientImpl(private val clientOptions: ClientOptions) : CourierClien

override fun digests(): DigestService = digests

/**
* Report suspected bugs, confusing behavior and missing features in Courier, from an AI agent,
* a developer tool or by hand.
*/
override fun feedback(): FeedbackService = feedback

/** Record an inbound event that triggers the journeys and automations mapped to it. */
override fun inbound(): InboundService = inbound

Expand Down Expand Up @@ -300,6 +312,10 @@ class CourierClientImpl(private val clientOptions: ClientOptions) : CourierClien
DigestServiceImpl.WithRawResponseImpl(clientOptions)
}

private val feedback: FeedbackService.WithRawResponse by lazy {
FeedbackServiceImpl.WithRawResponseImpl(clientOptions)
}

private val inbound: InboundService.WithRawResponse by lazy {
InboundServiceImpl.WithRawResponseImpl(clientOptions)
}
Expand Down Expand Up @@ -408,6 +424,12 @@ class CourierClientImpl(private val clientOptions: ClientOptions) : CourierClien

override fun digests(): DigestService.WithRawResponse = digests

/**
* Report suspected bugs, confusing behavior and missing features in Courier, from an AI
* agent, a developer tool or by hand.
*/
override fun feedback(): FeedbackService.WithRawResponse = feedback

/** Record an inbound event that triggers the journeys and automations mapped to it. */
override fun inbound(): InboundService.WithRawResponse = inbound

Expand Down
Loading
Loading