Skip to content

Files

Latest commit

 

History

History
49 lines (39 loc) · 1.16 KB

firebase-admin.eventarc.api.md

File metadata and controls

49 lines (39 loc) · 1.16 KB

API Report File for "firebase-admin.eventarc"

Do not edit this file. It is a report generated by API Extractor.

import { Agent } from 'http';

// @public
export class Channel {
    readonly allowedEventTypes?: string[];
    get eventarc(): Eventarc;
    get name(): string;
    publish(events: CloudEvent | CloudEvent[]): Promise<void>;
}

// @public
export interface ChannelOptions {
    allowedEventTypes?: string[] | string | undefined;
}

// @public
export interface CloudEvent {
    [key: string]: any;
    data?: object | string;
    datacontenttype?: string;
    id?: string;
    source?: string;
    specversion?: CloudEventVersion;
    subject?: string;
    time?: string;
    type: string;
}

// @public
export type CloudEventVersion = '1.0';

// @public
export class Eventarc {
    // Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
    get app(): App;
    channel(name: string, options?: ChannelOptions): Channel;
    channel(options?: ChannelOptions): Channel;
}

// @public
export function getEventarc(app?: App): Eventarc;