Firebase Eventarc.

## Functions

| Function | Description |
|---|---|
| [getEventarc(app)](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc#geteventarc_8a40afc) | Gets the [Eventarc](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc.eventarc#eventarc_class) service for the default app or a given app.`getEventarc()` can be called with no arguments to access the default app's `Eventarc` service or as `getEventarc(app)` to access the `Eventarc` service associated with specific app. |

## Classes

| Class | Description |
|---|---|
| [Channel](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc.channel#channel_class) | Eventarc Channel. |
| [Eventarc](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc.eventarc#eventarc_class) | Eventarc service bound to the provided app. |
| [FirebaseEventarcError](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc.firebaseeventarcerror#firebaseeventarcerror_class) | Firebase Eventarc error code structure. This extends `FirebaseError`. |

## Interfaces

| Interface | Description |
|---|---|
| [ChannelOptions](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc.channeloptions#channeloptions_interface) | Channel options interface. |
| [CloudEvent](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc.cloudevent#cloudevent_interface) | A CloudEvent describes event data. |

## Variables

| Variable | Description |
|---|---|
| [EventarcErrorCode](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc#eventarcerrorcode) | The constant mapping for valid Eventarc client error codes. |

## Type Aliases

| Type Alias | Description |
|---|---|
| [CloudEventVersion](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc#cloudeventversion) | A CloudEvent version. |
| [EventarcErrorCode](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc#eventarcerrorcode) | The type definition for valid Eventarc client error codes. |

## getEventarc(app)

Gets the [Eventarc](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc.eventarc#eventarc_class) service for the default app or a given app.

`getEventarc()` can be called with no arguments to access the default app's `Eventarc` service or as `getEventarc(app)` to access the `Eventarc` service associated with specific app.

**Signature:**

    export declare function getEventarc(app?: App): Eventarc;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| app | App | Optional app whose `Eventarc` service will be returned. If not provided, the default `Eventarc` service will be returned. |

**Returns:**

[Eventarc](https://firebase.google.com/docs/reference/admin/node/firebase-admin.eventarc.eventarc#eventarc_class)

The default `Eventarc` service if no app is provided or the `Eventarc` service associated with the provided app.

### Example 1

    // Get the Eventarc service for the default app
    const defaultEventarc = getEventarc();

### Example 2

    // Get the Eventarc service for a given app
    const otherEventarc = getEventarc(otherApp);

## EventarcErrorCode

The constant mapping for valid Eventarc client error codes.

**Signature:**

    EventarcErrorCode: {
        readonly UNKNOWN_ERROR: "unknown-error";
        readonly INVALID_ARGUMENT: "invalid-argument";
    }

## CloudEventVersion

A CloudEvent version.

**Signature:**

    export type CloudEventVersion = '1.0';

## EventarcErrorCode

The type definition for valid Eventarc client error codes.

**Signature:**

    export type EventarcErrorCode = typeof EventarcErrorCode[keyof typeof EventarcErrorCode];