fireflies-api 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +64 -0
- package/dist/action-items-CC9yUxHY.d.cts +380 -0
- package/dist/action-items-CC9yUxHY.d.ts +380 -0
- package/dist/cli/index.cjs +3909 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +2 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +3906 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.cjs +3389 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +966 -0
- package/dist/index.d.ts +966 -0
- package/dist/index.js +3344 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware/express.cjs +2491 -0
- package/dist/middleware/express.cjs.map +1 -0
- package/dist/middleware/express.d.cts +36 -0
- package/dist/middleware/express.d.ts +36 -0
- package/dist/middleware/express.js +2489 -0
- package/dist/middleware/express.js.map +1 -0
- package/dist/middleware/fastify.cjs +2501 -0
- package/dist/middleware/fastify.cjs.map +1 -0
- package/dist/middleware/fastify.d.cts +66 -0
- package/dist/middleware/fastify.d.ts +66 -0
- package/dist/middleware/fastify.js +2498 -0
- package/dist/middleware/fastify.js.map +1 -0
- package/dist/middleware/hono.cjs +2493 -0
- package/dist/middleware/hono.cjs.map +1 -0
- package/dist/middleware/hono.d.cts +37 -0
- package/dist/middleware/hono.d.ts +37 -0
- package/dist/middleware/hono.js +2490 -0
- package/dist/middleware/hono.js.map +1 -0
- package/dist/schemas/index.cjs +307 -0
- package/dist/schemas/index.cjs.map +1 -0
- package/dist/schemas/index.d.cts +926 -0
- package/dist/schemas/index.d.ts +926 -0
- package/dist/schemas/index.js +268 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/speaker-analytics-Dr46LKyP.d.ts +275 -0
- package/dist/speaker-analytics-l45LXqO1.d.cts +275 -0
- package/dist/types-BX-3JcRI.d.cts +41 -0
- package/dist/types-C_XxdRd1.d.cts +1546 -0
- package/dist/types-CaHcwnKw.d.ts +41 -0
- package/dist/types-DIPZmUl3.d.ts +1546 -0
- package/package.json +126 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { W as WebhookPayload, F as FirefliesClient } from './types-DIPZmUl3.js';
|
|
2
|
+
import { T as Transcript } from './action-items-CC9yUxHY.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Context provided to webhook event handlers.
|
|
6
|
+
*/
|
|
7
|
+
interface WebhookHandlerContext {
|
|
8
|
+
/** The parsed and validated webhook payload */
|
|
9
|
+
payload: WebhookPayload;
|
|
10
|
+
/** The full transcript, if apiKey provided and autoFetch enabled */
|
|
11
|
+
transcript?: Transcript;
|
|
12
|
+
/** FirefliesClient instance, available if apiKey provided */
|
|
13
|
+
client?: FirefliesClient;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Handler function for webhook events.
|
|
17
|
+
*/
|
|
18
|
+
type WebhookEventHandler = (context: WebhookHandlerContext) => void | Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Error handler function for webhook processing errors.
|
|
21
|
+
*/
|
|
22
|
+
type WebhookErrorHandler = (error: Error, payload?: WebhookPayload) => void | Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Options for configuring webhook middleware.
|
|
25
|
+
*/
|
|
26
|
+
interface WebhookMiddlewareOptions {
|
|
27
|
+
/** Webhook secret for signature verification (required) */
|
|
28
|
+
secret: string;
|
|
29
|
+
/** API key for auto-fetching transcripts (optional) */
|
|
30
|
+
apiKey?: string;
|
|
31
|
+
/** Auto-fetch transcript when apiKey is provided (default: true if apiKey provided) */
|
|
32
|
+
autoFetch?: boolean;
|
|
33
|
+
/** Handler called for 'Transcription completed' events */
|
|
34
|
+
onTranscriptionCompleted?: WebhookEventHandler;
|
|
35
|
+
/** Generic handler called for all events (runs before specific handlers) */
|
|
36
|
+
onEvent?: WebhookEventHandler;
|
|
37
|
+
/** Handler called when an error occurs during processing */
|
|
38
|
+
onError?: WebhookErrorHandler;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type { WebhookMiddlewareOptions as W };
|