@cloudflare/workers-types 5.20261123.1 → 5.20261124.1
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/experimental/index.d.ts +450 -16
- package/experimental/index.ts +450 -16
- package/index.d.ts +450 -16
- package/index.ts +450 -16
- package/package.json +1 -1
package/experimental/index.ts
CHANGED
|
@@ -3630,12 +3630,16 @@ export interface SqlStorage {
|
|
|
3630
3630
|
}
|
|
3631
3631
|
export declare abstract class SqlStorageStatement {}
|
|
3632
3632
|
export type SqlStorageValue = ArrayBuffer | string | number | null;
|
|
3633
|
+
export interface SqlStorageCursor<
|
|
3634
|
+
T extends Record<string, SqlStorageValue>,
|
|
3635
|
+
> extends Disposable {}
|
|
3633
3636
|
export declare abstract class SqlStorageCursor<
|
|
3634
3637
|
T extends Record<string, SqlStorageValue>,
|
|
3635
3638
|
> {
|
|
3636
3639
|
next(): IteratorResult<T, undefined>;
|
|
3637
3640
|
toArray(): T[];
|
|
3638
3641
|
one(): T;
|
|
3642
|
+
close(): void;
|
|
3639
3643
|
raw<U extends SqlStorageValue[]>(): IterableIterator<U>;
|
|
3640
3644
|
columnNames: string[];
|
|
3641
3645
|
get rowsRead(): number;
|
|
@@ -13030,16 +13034,49 @@ export type BrowserRunLinksOptions = BrowserRunCommonOptions & {
|
|
|
13030
13034
|
excludeExternalLinks?: boolean;
|
|
13031
13035
|
};
|
|
13032
13036
|
export type BrowserRunSnapshotFormat =
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
|
|
13041
|
-
|
|
13042
|
-
|
|
13037
|
+
| "content"
|
|
13038
|
+
| "screenshot"
|
|
13039
|
+
| "markdown"
|
|
13040
|
+
| "accessibilityTree"
|
|
13041
|
+
| "pdf"
|
|
13042
|
+
| "links"
|
|
13043
|
+
| "scrape"
|
|
13044
|
+
| "json";
|
|
13045
|
+
export type BrowserRunSnapshotOptions = BrowserRunCommonOptions &
|
|
13046
|
+
BrowserRunJsonBaseOptions & {
|
|
13047
|
+
/** Which representations of the page to return. At least two distinct formats
|
|
13048
|
+
* are required; request a single format from its dedicated action instead.
|
|
13049
|
+
* @default ["content","screenshot"]
|
|
13050
|
+
*/
|
|
13051
|
+
formats?: BrowserRunSnapshotFormat[];
|
|
13052
|
+
/** @see https://pptr.dev/api/puppeteer.screenshotoptions */
|
|
13053
|
+
screenshotOptions?: Omit<BrowserRunPuppeteerScreenshotOptions, "encoding">;
|
|
13054
|
+
/** CSS selectors to scrape. Required when `formats` includes `scrape`. */
|
|
13055
|
+
elements?: BrowserRunScrapeOptions["elements"];
|
|
13056
|
+
/** @see https://pptr.dev/api/puppeteer.pdfoptions */
|
|
13057
|
+
pdfOptions?: BrowserRunPDFOptions["pdfOptions"];
|
|
13058
|
+
/** When true, only return links that are visible on the page. @default false */
|
|
13059
|
+
visibleLinksOnly?: BrowserRunLinksOptions["visibleLinksOnly"];
|
|
13060
|
+
/** When true, exclude links pointing to external domains. @default false */
|
|
13061
|
+
excludeExternalLinks?: BrowserRunLinksOptions["excludeExternalLinks"];
|
|
13062
|
+
/** When true, prune accessibility nodes that carry no semantic meaning.
|
|
13063
|
+
* @default true
|
|
13064
|
+
*/
|
|
13065
|
+
interestingOnly?: BrowserRunAccessibilityTreeOptions["interestingOnly"];
|
|
13066
|
+
/** CSS selector limiting the accessibility tree to the matching element's
|
|
13067
|
+
* subtree.
|
|
13068
|
+
*/
|
|
13069
|
+
root?: BrowserRunAccessibilityTreeOptions["root"];
|
|
13070
|
+
/** Natural-language prompt describing what data to extract. Required when
|
|
13071
|
+
* `formats` includes `json`, unless `response_format` is set.
|
|
13072
|
+
*/
|
|
13073
|
+
prompt?: string;
|
|
13074
|
+
/** Structured output schema for the AI model. Required when `formats`
|
|
13075
|
+
* includes `json`, unless `prompt` is set.
|
|
13076
|
+
* @see https://developers.cloudflare.com/workers-ai/json-mode/
|
|
13077
|
+
*/
|
|
13078
|
+
response_format?: AiTextGenerationResponseFormat;
|
|
13079
|
+
};
|
|
13043
13080
|
/** Options for the `accessibilityTree` quick action. */
|
|
13044
13081
|
export type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
|
|
13045
13082
|
/** When true, prune nodes that carry no semantic meaning, such as generic
|
|
@@ -13217,6 +13254,14 @@ export type BrowserRunSnapshotSuccessResponse = {
|
|
|
13217
13254
|
markdown?: string;
|
|
13218
13255
|
/** Root of the page's accessibility tree. */
|
|
13219
13256
|
accessibilityTree?: BrowserRunSerializedAXNode;
|
|
13257
|
+
/** Base64-encoded PDF. */
|
|
13258
|
+
pdf?: string;
|
|
13259
|
+
/** Links found on the page. */
|
|
13260
|
+
links?: string[];
|
|
13261
|
+
/** Elements matched by the requested selectors. */
|
|
13262
|
+
scrape?: BrowserRunScrapeSuccessResponse["result"];
|
|
13263
|
+
/** JSON data extracted from the page using an AI model. */
|
|
13264
|
+
json?: Record<string, unknown> | unknown[] | null;
|
|
13220
13265
|
};
|
|
13221
13266
|
meta: BrowserRunResponseMeta;
|
|
13222
13267
|
};
|
|
@@ -13593,8 +13638,9 @@ export declare abstract class BrowserRun {
|
|
|
13593
13638
|
/**
|
|
13594
13639
|
* Get several representations of a web page in one request.
|
|
13595
13640
|
* @param action - Must be `'snapshot'`.
|
|
13596
|
-
* @param options - Snapshot options
|
|
13597
|
-
*
|
|
13641
|
+
* @param options - Snapshot options: the `formats` to return, plus the
|
|
13642
|
+
* per-format options for screenshots, PDFs, scraped elements, links, the
|
|
13643
|
+
* accessibility tree, and JSON extraction.
|
|
13598
13644
|
* @returns A `Response` containing one of:
|
|
13599
13645
|
*
|
|
13600
13646
|
* **Success (HTTP 200):**
|
|
@@ -15150,15 +15196,15 @@ export interface EmailMessage {
|
|
|
15150
15196
|
* Envelope To attribute of the email message.
|
|
15151
15197
|
*/
|
|
15152
15198
|
readonly to: string;
|
|
15199
|
+
/**
|
|
15200
|
+
* Stream of the email message content.
|
|
15201
|
+
*/
|
|
15202
|
+
readonly raw: ReadableStream<Uint8Array>;
|
|
15153
15203
|
}
|
|
15154
15204
|
/**
|
|
15155
15205
|
* An email message that is sent to a consumer Worker and can be rejected/forwarded.
|
|
15156
15206
|
*/
|
|
15157
15207
|
export interface ForwardableEmailMessage extends EmailMessage {
|
|
15158
|
-
/**
|
|
15159
|
-
* Stream of the email message content.
|
|
15160
|
-
*/
|
|
15161
|
-
readonly raw: ReadableStream<Uint8Array>;
|
|
15162
15208
|
/**
|
|
15163
15209
|
* An [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers).
|
|
15164
15210
|
*/
|
|
@@ -16163,6 +16209,19 @@ export declare class MessageChannel {
|
|
|
16163
16209
|
export interface MessagePortPostMessageOptions {
|
|
16164
16210
|
transfer?: any[];
|
|
16165
16211
|
}
|
|
16212
|
+
/**
|
|
16213
|
+
* An `oidc_token` binding: issues OpenID Connect tokens for the Worker's own
|
|
16214
|
+
* identity, to exchange for cloud credentials or send to an API as a bearer
|
|
16215
|
+
* token. Each binding has one audience, set in its config.
|
|
16216
|
+
*/
|
|
16217
|
+
export interface OidcTokenBinding {
|
|
16218
|
+
/**
|
|
16219
|
+
* Returns a newly signed JWT for the configured audience, valid for 5
|
|
16220
|
+
* minutes. Each call gets a new `jti`. Call it when you need a token; don't
|
|
16221
|
+
* store the token across requests.
|
|
16222
|
+
*/
|
|
16223
|
+
getToken(): Promise<string>;
|
|
16224
|
+
}
|
|
16166
16225
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
16167
16226
|
export type EventContext<Env, P extends string, Data> = {
|
|
16168
16227
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -16260,6 +16319,381 @@ export interface RateLimit {
|
|
|
16260
16319
|
*/
|
|
16261
16320
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
16262
16321
|
}
|
|
16322
|
+
/** Main interface for creating meetings in the app configured for your binding. */
|
|
16323
|
+
export interface RealtimeKitBinding {
|
|
16324
|
+
/**
|
|
16325
|
+
* Creates a meeting and returns its details along with a method for adding
|
|
16326
|
+
* participants.
|
|
16327
|
+
*/
|
|
16328
|
+
createMeeting(
|
|
16329
|
+
options?: RealtimeKitCreateMeetingOptions,
|
|
16330
|
+
): Promise<RealtimeKitMeeting>;
|
|
16331
|
+
}
|
|
16332
|
+
/** Settings for creating a meeting. */
|
|
16333
|
+
export interface RealtimeKitCreateMeetingOptions {
|
|
16334
|
+
/** Human-readable meeting title. */
|
|
16335
|
+
title?: string | null;
|
|
16336
|
+
/**
|
|
16337
|
+
* Start recording when a participant joins.
|
|
16338
|
+
* @default false
|
|
16339
|
+
*/
|
|
16340
|
+
record_on_start?: boolean | null;
|
|
16341
|
+
/**
|
|
16342
|
+
* Start livestreaming when the meeting starts.
|
|
16343
|
+
* @default false
|
|
16344
|
+
*/
|
|
16345
|
+
live_stream_on_start?: boolean | null;
|
|
16346
|
+
/** Meeting recording settings, which take precedence over app settings. */
|
|
16347
|
+
recording_config?: RealtimeKitRecordingConfig;
|
|
16348
|
+
/** Transcription and summarization settings. */
|
|
16349
|
+
ai_config?: RealtimeKitAIConfig;
|
|
16350
|
+
/**
|
|
16351
|
+
* Retain meeting chat for a week.
|
|
16352
|
+
* @default false
|
|
16353
|
+
*/
|
|
16354
|
+
persist_chat?: boolean;
|
|
16355
|
+
/**
|
|
16356
|
+
* Generate a meeting summary; requires transcription.
|
|
16357
|
+
* @default false
|
|
16358
|
+
*/
|
|
16359
|
+
summarize_on_end?: boolean;
|
|
16360
|
+
/**
|
|
16361
|
+
* Generate a transcript when the meeting ends.
|
|
16362
|
+
* @default false
|
|
16363
|
+
*/
|
|
16364
|
+
transcribe_on_end?: boolean;
|
|
16365
|
+
/**
|
|
16366
|
+
* Seconds a session stays active after its last participant leaves.
|
|
16367
|
+
* Between 60 and 600.
|
|
16368
|
+
* @default 60
|
|
16369
|
+
*/
|
|
16370
|
+
session_keep_alive_time_in_secs?: number;
|
|
16371
|
+
}
|
|
16372
|
+
/** Details of the participant to add to a meeting. */
|
|
16373
|
+
export interface RealtimeKitAddParticipantOptions {
|
|
16374
|
+
/** Your unique identifier for the participant, such as a user ID or email. */
|
|
16375
|
+
custom_participant_id: string;
|
|
16376
|
+
/** Name of an existing preset to apply, such as group_call_host. */
|
|
16377
|
+
preset_name: string;
|
|
16378
|
+
/** Participant display name. */
|
|
16379
|
+
name?: string | null;
|
|
16380
|
+
/** URL of the participant's profile picture. */
|
|
16381
|
+
picture?: string | null;
|
|
16382
|
+
/** Validity window for the participant authentication token. */
|
|
16383
|
+
token?: RealtimeKitParticipantTokenValidity;
|
|
16384
|
+
}
|
|
16385
|
+
/**
|
|
16386
|
+
* Controls when a participant's join token can be used.
|
|
16387
|
+
* The token is valid from not_before up to, but not including, expires_on.
|
|
16388
|
+
* The validity period cannot exceed 100 days and defaults to 100 days from now.
|
|
16389
|
+
*/
|
|
16390
|
+
export interface RealtimeKitParticipantTokenValidity {
|
|
16391
|
+
/** RFC 3339 timestamp with a timezone; defaults to now and may be in the past. */
|
|
16392
|
+
not_before?: string;
|
|
16393
|
+
/**
|
|
16394
|
+
* RFC 3339 timestamp with a timezone; must be in the future when issued.
|
|
16395
|
+
* Defaults to not_before plus 100 days.
|
|
16396
|
+
*/
|
|
16397
|
+
expires_on?: string;
|
|
16398
|
+
}
|
|
16399
|
+
/** Participant details and the authentication token needed to join the meeting. */
|
|
16400
|
+
export interface RealtimeKitParticipant {
|
|
16401
|
+
/** Participant UUID. */
|
|
16402
|
+
id: string;
|
|
16403
|
+
/** The unique participant identifier you provided when adding the participant. */
|
|
16404
|
+
custom_participant_id: string;
|
|
16405
|
+
/** Preset applied to the participant. */
|
|
16406
|
+
preset_name: string;
|
|
16407
|
+
/** Supplied participant display name. */
|
|
16408
|
+
name?: string | null;
|
|
16409
|
+
/** URL of the participant's profile picture. */
|
|
16410
|
+
picture?: string | null;
|
|
16411
|
+
/** When the participant was created, as an ISO date-time string. */
|
|
16412
|
+
created_at: string;
|
|
16413
|
+
/** When the participant was last updated, as an ISO date-time string. */
|
|
16414
|
+
updated_at: string;
|
|
16415
|
+
/** Sensitive authentication token used to join the meeting. Do not log it. */
|
|
16416
|
+
token: string;
|
|
16417
|
+
/** Time from which the token is valid, as a UTC date-time string. */
|
|
16418
|
+
not_before?: string;
|
|
16419
|
+
/** Time at which the token expires, as a UTC date-time string. */
|
|
16420
|
+
expires_on?: string;
|
|
16421
|
+
}
|
|
16422
|
+
/**
|
|
16423
|
+
* Meeting details captured when the meeting was created.
|
|
16424
|
+
* Use addParticipant() to add participants to this meeting.
|
|
16425
|
+
* Use `using` to release the meeting handle when finished.
|
|
16426
|
+
*/
|
|
16427
|
+
export interface RealtimeKitMeeting extends Disposable {
|
|
16428
|
+
/** Unique identifier of the meeting. */
|
|
16429
|
+
readonly id: string;
|
|
16430
|
+
/** Human-readable meeting title. */
|
|
16431
|
+
title?: string;
|
|
16432
|
+
/** When the meeting was created, as an ISO date-time string. */
|
|
16433
|
+
readonly created_at: string;
|
|
16434
|
+
/** When the meeting was last updated, as an ISO date-time string. */
|
|
16435
|
+
readonly updated_at: string;
|
|
16436
|
+
/** Whether recording starts when a participant joins. */
|
|
16437
|
+
record_on_start?: boolean;
|
|
16438
|
+
/** Whether livestreaming starts when the meeting starts. */
|
|
16439
|
+
live_stream_on_start?: boolean;
|
|
16440
|
+
/** Whether meeting chat persists for a week. */
|
|
16441
|
+
persist_chat?: boolean;
|
|
16442
|
+
/** Whether a meeting summary is generated using transcripts. */
|
|
16443
|
+
summarize_on_end?: boolean;
|
|
16444
|
+
/** Whether a transcript is generated when the meeting ends. */
|
|
16445
|
+
transcribe_on_end?: boolean;
|
|
16446
|
+
/** Recording settings for the meeting. Storage credentials are not included. */
|
|
16447
|
+
recording_config?: RealtimeKitRecordingConfigResponse;
|
|
16448
|
+
/** Transcription and summarization settings. */
|
|
16449
|
+
ai_config?: RealtimeKitAIConfig;
|
|
16450
|
+
/** Participants cannot join an INACTIVE meeting. */
|
|
16451
|
+
status?: "ACTIVE" | "INACTIVE";
|
|
16452
|
+
/**
|
|
16453
|
+
* Session keep-alive duration, 60 to 600 seconds.
|
|
16454
|
+
* @default 60
|
|
16455
|
+
*/
|
|
16456
|
+
session_keep_alive_time_in_secs?: number;
|
|
16457
|
+
/**
|
|
16458
|
+
* Adds a participant to this meeting and returns their details and join token.
|
|
16459
|
+
*/
|
|
16460
|
+
addParticipant(
|
|
16461
|
+
options: RealtimeKitAddParticipantOptions,
|
|
16462
|
+
): Promise<RealtimeKitParticipant>;
|
|
16463
|
+
}
|
|
16464
|
+
/** Meeting-level recording settings, overriding the app's recording settings. */
|
|
16465
|
+
export interface RealtimeKitRecordingConfig {
|
|
16466
|
+
/** Maximum recording duration in seconds, between 60 and 86400. */
|
|
16467
|
+
max_seconds?: number;
|
|
16468
|
+
/** Prefix added to the recording file name. */
|
|
16469
|
+
file_name_prefix?: string;
|
|
16470
|
+
/** Recorded video encoding, dimensions, and watermark settings. */
|
|
16471
|
+
video_config?: RealtimeKitVideoConfig;
|
|
16472
|
+
/** Recorded audio encoding and channel settings. */
|
|
16473
|
+
audio_config?: RealtimeKitAudioConfig;
|
|
16474
|
+
/** Storage destination and credentials for uploading recordings. */
|
|
16475
|
+
storage_config?: RealtimeKitStorageConfig;
|
|
16476
|
+
/** Whether recordings are uploaded to RealtimeKit's bucket. */
|
|
16477
|
+
realtimekit_bucket_config?: RealtimeKitBucketConfig;
|
|
16478
|
+
/** Destination for live-streaming the recording. */
|
|
16479
|
+
live_streaming_config?: RealtimeKitLivestreamingConfig;
|
|
16480
|
+
}
|
|
16481
|
+
/** Recording settings for a meeting, with storage credentials omitted. */
|
|
16482
|
+
export interface RealtimeKitRecordingConfigResponse extends Omit<
|
|
16483
|
+
RealtimeKitRecordingConfig,
|
|
16484
|
+
"storage_config"
|
|
16485
|
+
> {
|
|
16486
|
+
/** Destination storage with access keys, secrets, passwords, and keys omitted. */
|
|
16487
|
+
storage_config?: RealtimeKitStorageConfigResponse;
|
|
16488
|
+
}
|
|
16489
|
+
/** Video settings for meeting recordings. */
|
|
16490
|
+
export interface RealtimeKitVideoConfig {
|
|
16491
|
+
/**
|
|
16492
|
+
* Video codec.
|
|
16493
|
+
* @default 'H264'
|
|
16494
|
+
*/
|
|
16495
|
+
codec?: "H264" | "VP8" | "VP9";
|
|
16496
|
+
/**
|
|
16497
|
+
* Video width in pixels, between 1 and 1920.
|
|
16498
|
+
* @default 1280
|
|
16499
|
+
*/
|
|
16500
|
+
width?: number;
|
|
16501
|
+
/**
|
|
16502
|
+
* Video height in pixels, between 1 and 1920.
|
|
16503
|
+
* @default 720
|
|
16504
|
+
*/
|
|
16505
|
+
height?: number;
|
|
16506
|
+
/** Watermark image, dimensions, and placement. */
|
|
16507
|
+
watermark?: {
|
|
16508
|
+
/** URL of the watermark image. */
|
|
16509
|
+
url?: string;
|
|
16510
|
+
/** Watermark dimensions in pixels. */
|
|
16511
|
+
size?: {
|
|
16512
|
+
/** Watermark width; minimum 1 pixel. */
|
|
16513
|
+
width?: number;
|
|
16514
|
+
/** Watermark height; minimum 1 pixel. */
|
|
16515
|
+
height?: number;
|
|
16516
|
+
};
|
|
16517
|
+
/**
|
|
16518
|
+
* Watermark placement.
|
|
16519
|
+
* @default 'left top'
|
|
16520
|
+
*/
|
|
16521
|
+
position?: "left top" | "right top" | "left bottom" | "right bottom";
|
|
16522
|
+
};
|
|
16523
|
+
/**
|
|
16524
|
+
* Export a separate video file.
|
|
16525
|
+
* @default true
|
|
16526
|
+
*/
|
|
16527
|
+
export_file?: boolean;
|
|
16528
|
+
}
|
|
16529
|
+
/** Audio settings for meeting recordings. */
|
|
16530
|
+
export interface RealtimeKitAudioConfig {
|
|
16531
|
+
/**
|
|
16532
|
+
* Audio codec. VP8/VP9 video automatically uses Vorbis audio, and the audio
|
|
16533
|
+
* codec cannot be changed.
|
|
16534
|
+
* @default 'AAC'
|
|
16535
|
+
*/
|
|
16536
|
+
codec?: "MP3" | "AAC";
|
|
16537
|
+
/**
|
|
16538
|
+
* Audio channel layout.
|
|
16539
|
+
* @default 'stereo'
|
|
16540
|
+
*/
|
|
16541
|
+
channel?: "mono" | "stereo";
|
|
16542
|
+
/**
|
|
16543
|
+
* Export a separate audio file.
|
|
16544
|
+
* @default true
|
|
16545
|
+
*/
|
|
16546
|
+
export_file?: boolean;
|
|
16547
|
+
}
|
|
16548
|
+
/** Destination and authentication settings for external recording storage. */
|
|
16549
|
+
export interface RealtimeKitStorageConfigBase {
|
|
16550
|
+
/** Destination bucket name. */
|
|
16551
|
+
bucket: string;
|
|
16552
|
+
/**
|
|
16553
|
+
* Storage access key; required and nonempty except for Google Cloud Storage.
|
|
16554
|
+
* Not included in returned storage details.
|
|
16555
|
+
*/
|
|
16556
|
+
access_key?: string;
|
|
16557
|
+
/** Secret key for the storage provider. Not included in returned details. */
|
|
16558
|
+
secret?: string;
|
|
16559
|
+
/** Storage region; required and nonempty except for Google Cloud Storage. */
|
|
16560
|
+
region?: string;
|
|
16561
|
+
/** Recording path relative to the bucket root. */
|
|
16562
|
+
path?: string;
|
|
16563
|
+
/** Authentication method for SFTP storage. */
|
|
16564
|
+
auth_method?: "KEY" | "PASSWORD";
|
|
16565
|
+
/** Destination SSH username for SFTP. */
|
|
16566
|
+
username?: string;
|
|
16567
|
+
/**
|
|
16568
|
+
* SFTP login password, or SSH private-key passphrase when using KEY.
|
|
16569
|
+
* Not included in returned storage details.
|
|
16570
|
+
*/
|
|
16571
|
+
password?: string;
|
|
16572
|
+
/** Destination SSH hostname for SFTP. */
|
|
16573
|
+
host?: string;
|
|
16574
|
+
/** Destination SSH port for SFTP. */
|
|
16575
|
+
port?: number;
|
|
16576
|
+
/** SSH private key for SFTP key authentication. Not included in returned details. */
|
|
16577
|
+
private_key?: string;
|
|
16578
|
+
}
|
|
16579
|
+
/** Recording destination in Google Cloud Storage, AWS, Azure, DigitalOcean, or SFTP. */
|
|
16580
|
+
export type RealtimeKitStorageConfig =
|
|
16581
|
+
| (RealtimeKitStorageConfigBase &
|
|
16582
|
+
(
|
|
16583
|
+
| {
|
|
16584
|
+
type: "gcs";
|
|
16585
|
+
}
|
|
16586
|
+
| {
|
|
16587
|
+
type: "aws" | "azure" | "digitalocean";
|
|
16588
|
+
access_key: string;
|
|
16589
|
+
region: string;
|
|
16590
|
+
}
|
|
16591
|
+
| ({
|
|
16592
|
+
type: "sftp";
|
|
16593
|
+
access_key: string;
|
|
16594
|
+
region: string;
|
|
16595
|
+
username: string;
|
|
16596
|
+
host: string;
|
|
16597
|
+
port: number;
|
|
16598
|
+
} & (
|
|
16599
|
+
| {
|
|
16600
|
+
auth_method: "KEY";
|
|
16601
|
+
private_key: string;
|
|
16602
|
+
}
|
|
16603
|
+
| {
|
|
16604
|
+
auth_method: "PASSWORD";
|
|
16605
|
+
password: string;
|
|
16606
|
+
}
|
|
16607
|
+
))
|
|
16608
|
+
))
|
|
16609
|
+
| null;
|
|
16610
|
+
/** Recording destination details, without access keys, secrets, passwords, or private keys. */
|
|
16611
|
+
export type RealtimeKitStorageConfigResponse =
|
|
16612
|
+
| (Omit<
|
|
16613
|
+
RealtimeKitStorageConfigBase,
|
|
16614
|
+
"access_key" | "secret" | "password" | "private_key"
|
|
16615
|
+
> &
|
|
16616
|
+
(
|
|
16617
|
+
| {
|
|
16618
|
+
type: "gcs";
|
|
16619
|
+
}
|
|
16620
|
+
| {
|
|
16621
|
+
type: "aws" | "azure" | "digitalocean";
|
|
16622
|
+
region: string;
|
|
16623
|
+
}
|
|
16624
|
+
| {
|
|
16625
|
+
type: "sftp";
|
|
16626
|
+
region: string;
|
|
16627
|
+
auth_method: "KEY" | "PASSWORD";
|
|
16628
|
+
username: string;
|
|
16629
|
+
host: string;
|
|
16630
|
+
port: number;
|
|
16631
|
+
}
|
|
16632
|
+
))
|
|
16633
|
+
| null;
|
|
16634
|
+
/** Controls uploading recordings to RealtimeKit's managed bucket. */
|
|
16635
|
+
export interface RealtimeKitBucketConfig {
|
|
16636
|
+
/**
|
|
16637
|
+
* Enable managed-bucket uploads. If false, recording download URLs and
|
|
16638
|
+
* their expiry are not generated.
|
|
16639
|
+
*/
|
|
16640
|
+
enabled: boolean;
|
|
16641
|
+
}
|
|
16642
|
+
/** Live-streaming destination for a recording. */
|
|
16643
|
+
export interface RealtimeKitLivestreamingConfig {
|
|
16644
|
+
/** RTMP destination URL. */
|
|
16645
|
+
rtmp_url?: string;
|
|
16646
|
+
}
|
|
16647
|
+
/** Transcription and summary customization for a meeting. */
|
|
16648
|
+
export interface RealtimeKitAIConfig {
|
|
16649
|
+
/** Transcription options. */
|
|
16650
|
+
transcription?: RealtimeKitTranscriptionConfig;
|
|
16651
|
+
/** Summary options. */
|
|
16652
|
+
summarization?: RealtimeKitSummarizationConfig;
|
|
16653
|
+
}
|
|
16654
|
+
/** Meeting transcription settings. */
|
|
16655
|
+
export interface RealtimeKitTranscriptionConfig {
|
|
16656
|
+
/** Terms to recognize more accurately during transcription. */
|
|
16657
|
+
keywords?: string[];
|
|
16658
|
+
/**
|
|
16659
|
+
* Language used for transcription. If omitted, post-meeting transcription
|
|
16660
|
+
* detects the language automatically.
|
|
16661
|
+
*/
|
|
16662
|
+
language?:
|
|
16663
|
+
"en-US" | "en-IN" | "de" | "hi" | "sv" | "ru" | "pl" | "el" | "fr" | "nl";
|
|
16664
|
+
/**
|
|
16665
|
+
* Filter offensive language in transcripts.
|
|
16666
|
+
* @default false
|
|
16667
|
+
*/
|
|
16668
|
+
profanity_filter?: boolean;
|
|
16669
|
+
}
|
|
16670
|
+
/** Meeting summarization settings. */
|
|
16671
|
+
export interface RealtimeKitSummarizationConfig {
|
|
16672
|
+
/**
|
|
16673
|
+
* Maximum words in the summary, between 150 and 1000.
|
|
16674
|
+
* @default 500
|
|
16675
|
+
*/
|
|
16676
|
+
word_limit?: number;
|
|
16677
|
+
/**
|
|
16678
|
+
* Summary text format.
|
|
16679
|
+
* @default 'markdown'
|
|
16680
|
+
*/
|
|
16681
|
+
text_format?: "plain_text" | "markdown";
|
|
16682
|
+
/**
|
|
16683
|
+
* Summary style.
|
|
16684
|
+
* @default 'general'
|
|
16685
|
+
*/
|
|
16686
|
+
summary_type?:
|
|
16687
|
+
| "general"
|
|
16688
|
+
| "team_meeting"
|
|
16689
|
+
| "sales_call"
|
|
16690
|
+
| "client_check_in"
|
|
16691
|
+
| "interview"
|
|
16692
|
+
| "daily_standup"
|
|
16693
|
+
| "one_on_one_meeting"
|
|
16694
|
+
| "lecture"
|
|
16695
|
+
| "code_review";
|
|
16696
|
+
}
|
|
16263
16697
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
16264
16698
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
16265
16699
|
// strips all `module` blocks.
|