AxEventRouteBuilder
Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L554
Constructors
Constructor
new AxEventRouteBuilder(id: string): AxEventRouteBuilder;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L569
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
AxEventRouteBuilder
Methods
authenticated()
authenticated(): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L611
Returns
this
authorize()
authorize(authorize: (ingress: Readonly<AxEventIngress>) => boolean | Promise<boolean>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L616
Parameters
| Parameter | Type |
|---|---|
authorize | (ingress: Readonly<AxEventIngress>) => boolean | Promise<boolean> |
Returns
this
build()
build(): AxEventRoute;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L701
Returns
correlate()
correlate(kind: string, selector: Readonly<AxEventPath>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L639
Parameters
| Parameter | Type |
|---|---|
kind | string |
selector | Readonly<AxEventPath> |
Returns
this
correlation()
correlation(correlation: (ingress: Readonly<AxEventIngress>) =>
| undefined
| Readonly<AxEventCorrelationKey>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L656
Parameters
| Parameter | Type |
|---|---|
correlation | (ingress: Readonly<AxEventIngress>) => | undefined | Readonly<AxEventCorrelationKey> |
Returns
this
debounce()
debounce(ms: number, options: Readonly<{
coalesce?: "latest";
}>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L690
Parameters
| Parameter | Type |
|---|---|
ms | number |
options | Readonly<{ coalesce?: "latest"; }> |
Returns
this
extensions()
extensions(extensions: Readonly<Record<string, AxEventScalar>>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L602
Parameters
| Parameter | Type |
|---|---|
extensions | Readonly<Record<string, AxEventScalar>> |
Returns
this
instanceKey()
instanceKey(selector:
| Readonly<AxEventPath<unknown>>
| (ingress: Readonly<AxEventIngress>) => string | Promise<string>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L621
Parameters
| Parameter | Type |
|---|---|
selector | | Readonly<AxEventPath<unknown>> | (ingress: Readonly<AxEventIngress>) => string | Promise<string> |
Returns
this
invalidate()
invalidate(invalidator: AxEventInvalidator): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L684
Parameters
| Parameter | Type |
|---|---|
invalidator | AxEventInvalidator |
Returns
this
match()
match(match:
| Readonly<AxEventMatcher>
| (ingress: Readonly<AxEventIngress>) => boolean | Promise<boolean>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L571
Parameters
| Parameter | Type |
|---|---|
match | | Readonly<AxEventMatcher> | (ingress: Readonly<AxEventIngress>) => boolean | Promise<boolean> |
Returns
this
observe()
observe(observe?: (ingress: Readonly<AxEventIngress>, context: Readonly<AxEventContext>) => void | Promise<void>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L673
Parameters
| Parameter | Type |
|---|---|
observe? | (ingress: Readonly<AxEventIngress>, context: Readonly<AxEventContext>) => void | Promise<void> |
Returns
this
ordering()
ordering(ordering: "strict" | "relaxed"): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L696
Parameters
| Parameter | Type |
|---|---|
ordering | "strict" | "relaxed" |
Returns
this
resume()
resume(target: AxEventTarget<any, any>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L669
Parameters
| Parameter | Type |
|---|---|
target | AxEventTarget<any, any> |
Returns
this
sources()
sources(...sources: string[]): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L594
Parameters
| Parameter | Type |
|---|---|
…sources | string[] |
Returns
this
subjects()
subjects(...subjects: string[]): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L598
Parameters
| Parameter | Type |
|---|---|
…subjects | string[] |
Returns
this
types()
types(...types: string[]): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L590
Parameters
| Parameter | Type |
|---|---|
…types | string[] |
Returns
this
wake()
wake(target: AxEventTarget<any, any>): this;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L665
Parameters
| Parameter | Type |
|---|---|
target | AxEventTarget<any, any> |
Returns
this