@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/index.ts
CHANGED
|
@@ -3469,12 +3469,16 @@ export interface SqlStorage {
|
|
|
3469
3469
|
}
|
|
3470
3470
|
export declare abstract class SqlStorageStatement {}
|
|
3471
3471
|
export type SqlStorageValue = ArrayBuffer | string | number | null;
|
|
3472
|
+
export interface SqlStorageCursor<
|
|
3473
|
+
T extends Record<string, SqlStorageValue>,
|
|
3474
|
+
> extends Disposable {}
|
|
3472
3475
|
export declare abstract class SqlStorageCursor<
|
|
3473
3476
|
T extends Record<string, SqlStorageValue>,
|
|
3474
3477
|
> {
|
|
3475
3478
|
next(): IteratorResult<T, undefined>;
|
|
3476
3479
|
toArray(): T[];
|
|
3477
3480
|
one(): T;
|
|
3481
|
+
close(): void;
|
|
3478
3482
|
raw<U extends SqlStorageValue[]>(): IterableIterator<U>;
|
|
3479
3483
|
columnNames: string[];
|
|
3480
3484
|
get rowsRead(): number;
|
|
@@ -12665,16 +12669,49 @@ export type BrowserRunLinksOptions = BrowserRunCommonOptions & {
|
|
|
12665
12669
|
excludeExternalLinks?: boolean;
|
|
12666
12670
|
};
|
|
12667
12671
|
export type BrowserRunSnapshotFormat =
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12672
|
+
| "content"
|
|
12673
|
+
| "screenshot"
|
|
12674
|
+
| "markdown"
|
|
12675
|
+
| "accessibilityTree"
|
|
12676
|
+
| "pdf"
|
|
12677
|
+
| "links"
|
|
12678
|
+
| "scrape"
|
|
12679
|
+
| "json";
|
|
12680
|
+
export type BrowserRunSnapshotOptions = BrowserRunCommonOptions &
|
|
12681
|
+
BrowserRunJsonBaseOptions & {
|
|
12682
|
+
/** Which representations of the page to return. At least two distinct formats
|
|
12683
|
+
* are required; request a single format from its dedicated action instead.
|
|
12684
|
+
* @default ["content","screenshot"]
|
|
12685
|
+
*/
|
|
12686
|
+
formats?: BrowserRunSnapshotFormat[];
|
|
12687
|
+
/** @see https://pptr.dev/api/puppeteer.screenshotoptions */
|
|
12688
|
+
screenshotOptions?: Omit<BrowserRunPuppeteerScreenshotOptions, "encoding">;
|
|
12689
|
+
/** CSS selectors to scrape. Required when `formats` includes `scrape`. */
|
|
12690
|
+
elements?: BrowserRunScrapeOptions["elements"];
|
|
12691
|
+
/** @see https://pptr.dev/api/puppeteer.pdfoptions */
|
|
12692
|
+
pdfOptions?: BrowserRunPDFOptions["pdfOptions"];
|
|
12693
|
+
/** When true, only return links that are visible on the page. @default false */
|
|
12694
|
+
visibleLinksOnly?: BrowserRunLinksOptions["visibleLinksOnly"];
|
|
12695
|
+
/** When true, exclude links pointing to external domains. @default false */
|
|
12696
|
+
excludeExternalLinks?: BrowserRunLinksOptions["excludeExternalLinks"];
|
|
12697
|
+
/** When true, prune accessibility nodes that carry no semantic meaning.
|
|
12698
|
+
* @default true
|
|
12699
|
+
*/
|
|
12700
|
+
interestingOnly?: BrowserRunAccessibilityTreeOptions["interestingOnly"];
|
|
12701
|
+
/** CSS selector limiting the accessibility tree to the matching element's
|
|
12702
|
+
* subtree.
|
|
12703
|
+
*/
|
|
12704
|
+
root?: BrowserRunAccessibilityTreeOptions["root"];
|
|
12705
|
+
/** Natural-language prompt describing what data to extract. Required when
|
|
12706
|
+
* `formats` includes `json`, unless `response_format` is set.
|
|
12707
|
+
*/
|
|
12708
|
+
prompt?: string;
|
|
12709
|
+
/** Structured output schema for the AI model. Required when `formats`
|
|
12710
|
+
* includes `json`, unless `prompt` is set.
|
|
12711
|
+
* @see https://developers.cloudflare.com/workers-ai/json-mode/
|
|
12712
|
+
*/
|
|
12713
|
+
response_format?: AiTextGenerationResponseFormat;
|
|
12714
|
+
};
|
|
12678
12715
|
/** Options for the `accessibilityTree` quick action. */
|
|
12679
12716
|
export type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
|
|
12680
12717
|
/** When true, prune nodes that carry no semantic meaning, such as generic
|
|
@@ -12852,6 +12889,14 @@ export type BrowserRunSnapshotSuccessResponse = {
|
|
|
12852
12889
|
markdown?: string;
|
|
12853
12890
|
/** Root of the page's accessibility tree. */
|
|
12854
12891
|
accessibilityTree?: BrowserRunSerializedAXNode;
|
|
12892
|
+
/** Base64-encoded PDF. */
|
|
12893
|
+
pdf?: string;
|
|
12894
|
+
/** Links found on the page. */
|
|
12895
|
+
links?: string[];
|
|
12896
|
+
/** Elements matched by the requested selectors. */
|
|
12897
|
+
scrape?: BrowserRunScrapeSuccessResponse["result"];
|
|
12898
|
+
/** JSON data extracted from the page using an AI model. */
|
|
12899
|
+
json?: Record<string, unknown> | unknown[] | null;
|
|
12855
12900
|
};
|
|
12856
12901
|
meta: BrowserRunResponseMeta;
|
|
12857
12902
|
};
|
|
@@ -13228,8 +13273,9 @@ export declare abstract class BrowserRun {
|
|
|
13228
13273
|
/**
|
|
13229
13274
|
* Get several representations of a web page in one request.
|
|
13230
13275
|
* @param action - Must be `'snapshot'`.
|
|
13231
|
-
* @param options - Snapshot options
|
|
13232
|
-
*
|
|
13276
|
+
* @param options - Snapshot options: the `formats` to return, plus the
|
|
13277
|
+
* per-format options for screenshots, PDFs, scraped elements, links, the
|
|
13278
|
+
* accessibility tree, and JSON extraction.
|
|
13233
13279
|
* @returns A `Response` containing one of:
|
|
13234
13280
|
*
|
|
13235
13281
|
* **Success (HTTP 200):**
|
|
@@ -14785,15 +14831,15 @@ export interface EmailMessage {
|
|
|
14785
14831
|
* Envelope To attribute of the email message.
|
|
14786
14832
|
*/
|
|
14787
14833
|
readonly to: string;
|
|
14834
|
+
/**
|
|
14835
|
+
* Stream of the email message content.
|
|
14836
|
+
*/
|
|
14837
|
+
readonly raw: ReadableStream<Uint8Array>;
|
|
14788
14838
|
}
|
|
14789
14839
|
/**
|
|
14790
14840
|
* An email message that is sent to a consumer Worker and can be rejected/forwarded.
|
|
14791
14841
|
*/
|
|
14792
14842
|
export interface ForwardableEmailMessage extends EmailMessage {
|
|
14793
|
-
/**
|
|
14794
|
-
* Stream of the email message content.
|
|
14795
|
-
*/
|
|
14796
|
-
readonly raw: ReadableStream<Uint8Array>;
|
|
14797
14843
|
/**
|
|
14798
14844
|
* An [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers).
|
|
14799
14845
|
*/
|
|
@@ -15798,6 +15844,19 @@ export declare class MessageChannel {
|
|
|
15798
15844
|
export interface MessagePortPostMessageOptions {
|
|
15799
15845
|
transfer?: any[];
|
|
15800
15846
|
}
|
|
15847
|
+
/**
|
|
15848
|
+
* An `oidc_token` binding: issues OpenID Connect tokens for the Worker's own
|
|
15849
|
+
* identity, to exchange for cloud credentials or send to an API as a bearer
|
|
15850
|
+
* token. Each binding has one audience, set in its config.
|
|
15851
|
+
*/
|
|
15852
|
+
export interface OidcTokenBinding {
|
|
15853
|
+
/**
|
|
15854
|
+
* Returns a newly signed JWT for the configured audience, valid for 5
|
|
15855
|
+
* minutes. Each call gets a new `jti`. Call it when you need a token; don't
|
|
15856
|
+
* store the token across requests.
|
|
15857
|
+
*/
|
|
15858
|
+
getToken(): Promise<string>;
|
|
15859
|
+
}
|
|
15801
15860
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
15802
15861
|
export type EventContext<Env, P extends string, Data> = {
|
|
15803
15862
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -15895,6 +15954,381 @@ export interface RateLimit {
|
|
|
15895
15954
|
*/
|
|
15896
15955
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
15897
15956
|
}
|
|
15957
|
+
/** Main interface for creating meetings in the app configured for your binding. */
|
|
15958
|
+
export interface RealtimeKitBinding {
|
|
15959
|
+
/**
|
|
15960
|
+
* Creates a meeting and returns its details along with a method for adding
|
|
15961
|
+
* participants.
|
|
15962
|
+
*/
|
|
15963
|
+
createMeeting(
|
|
15964
|
+
options?: RealtimeKitCreateMeetingOptions,
|
|
15965
|
+
): Promise<RealtimeKitMeeting>;
|
|
15966
|
+
}
|
|
15967
|
+
/** Settings for creating a meeting. */
|
|
15968
|
+
export interface RealtimeKitCreateMeetingOptions {
|
|
15969
|
+
/** Human-readable meeting title. */
|
|
15970
|
+
title?: string | null;
|
|
15971
|
+
/**
|
|
15972
|
+
* Start recording when a participant joins.
|
|
15973
|
+
* @default false
|
|
15974
|
+
*/
|
|
15975
|
+
record_on_start?: boolean | null;
|
|
15976
|
+
/**
|
|
15977
|
+
* Start livestreaming when the meeting starts.
|
|
15978
|
+
* @default false
|
|
15979
|
+
*/
|
|
15980
|
+
live_stream_on_start?: boolean | null;
|
|
15981
|
+
/** Meeting recording settings, which take precedence over app settings. */
|
|
15982
|
+
recording_config?: RealtimeKitRecordingConfig;
|
|
15983
|
+
/** Transcription and summarization settings. */
|
|
15984
|
+
ai_config?: RealtimeKitAIConfig;
|
|
15985
|
+
/**
|
|
15986
|
+
* Retain meeting chat for a week.
|
|
15987
|
+
* @default false
|
|
15988
|
+
*/
|
|
15989
|
+
persist_chat?: boolean;
|
|
15990
|
+
/**
|
|
15991
|
+
* Generate a meeting summary; requires transcription.
|
|
15992
|
+
* @default false
|
|
15993
|
+
*/
|
|
15994
|
+
summarize_on_end?: boolean;
|
|
15995
|
+
/**
|
|
15996
|
+
* Generate a transcript when the meeting ends.
|
|
15997
|
+
* @default false
|
|
15998
|
+
*/
|
|
15999
|
+
transcribe_on_end?: boolean;
|
|
16000
|
+
/**
|
|
16001
|
+
* Seconds a session stays active after its last participant leaves.
|
|
16002
|
+
* Between 60 and 600.
|
|
16003
|
+
* @default 60
|
|
16004
|
+
*/
|
|
16005
|
+
session_keep_alive_time_in_secs?: number;
|
|
16006
|
+
}
|
|
16007
|
+
/** Details of the participant to add to a meeting. */
|
|
16008
|
+
export interface RealtimeKitAddParticipantOptions {
|
|
16009
|
+
/** Your unique identifier for the participant, such as a user ID or email. */
|
|
16010
|
+
custom_participant_id: string;
|
|
16011
|
+
/** Name of an existing preset to apply, such as group_call_host. */
|
|
16012
|
+
preset_name: string;
|
|
16013
|
+
/** Participant display name. */
|
|
16014
|
+
name?: string | null;
|
|
16015
|
+
/** URL of the participant's profile picture. */
|
|
16016
|
+
picture?: string | null;
|
|
16017
|
+
/** Validity window for the participant authentication token. */
|
|
16018
|
+
token?: RealtimeKitParticipantTokenValidity;
|
|
16019
|
+
}
|
|
16020
|
+
/**
|
|
16021
|
+
* Controls when a participant's join token can be used.
|
|
16022
|
+
* The token is valid from not_before up to, but not including, expires_on.
|
|
16023
|
+
* The validity period cannot exceed 100 days and defaults to 100 days from now.
|
|
16024
|
+
*/
|
|
16025
|
+
export interface RealtimeKitParticipantTokenValidity {
|
|
16026
|
+
/** RFC 3339 timestamp with a timezone; defaults to now and may be in the past. */
|
|
16027
|
+
not_before?: string;
|
|
16028
|
+
/**
|
|
16029
|
+
* RFC 3339 timestamp with a timezone; must be in the future when issued.
|
|
16030
|
+
* Defaults to not_before plus 100 days.
|
|
16031
|
+
*/
|
|
16032
|
+
expires_on?: string;
|
|
16033
|
+
}
|
|
16034
|
+
/** Participant details and the authentication token needed to join the meeting. */
|
|
16035
|
+
export interface RealtimeKitParticipant {
|
|
16036
|
+
/** Participant UUID. */
|
|
16037
|
+
id: string;
|
|
16038
|
+
/** The unique participant identifier you provided when adding the participant. */
|
|
16039
|
+
custom_participant_id: string;
|
|
16040
|
+
/** Preset applied to the participant. */
|
|
16041
|
+
preset_name: string;
|
|
16042
|
+
/** Supplied participant display name. */
|
|
16043
|
+
name?: string | null;
|
|
16044
|
+
/** URL of the participant's profile picture. */
|
|
16045
|
+
picture?: string | null;
|
|
16046
|
+
/** When the participant was created, as an ISO date-time string. */
|
|
16047
|
+
created_at: string;
|
|
16048
|
+
/** When the participant was last updated, as an ISO date-time string. */
|
|
16049
|
+
updated_at: string;
|
|
16050
|
+
/** Sensitive authentication token used to join the meeting. Do not log it. */
|
|
16051
|
+
token: string;
|
|
16052
|
+
/** Time from which the token is valid, as a UTC date-time string. */
|
|
16053
|
+
not_before?: string;
|
|
16054
|
+
/** Time at which the token expires, as a UTC date-time string. */
|
|
16055
|
+
expires_on?: string;
|
|
16056
|
+
}
|
|
16057
|
+
/**
|
|
16058
|
+
* Meeting details captured when the meeting was created.
|
|
16059
|
+
* Use addParticipant() to add participants to this meeting.
|
|
16060
|
+
* Use `using` to release the meeting handle when finished.
|
|
16061
|
+
*/
|
|
16062
|
+
export interface RealtimeKitMeeting extends Disposable {
|
|
16063
|
+
/** Unique identifier of the meeting. */
|
|
16064
|
+
readonly id: string;
|
|
16065
|
+
/** Human-readable meeting title. */
|
|
16066
|
+
title?: string;
|
|
16067
|
+
/** When the meeting was created, as an ISO date-time string. */
|
|
16068
|
+
readonly created_at: string;
|
|
16069
|
+
/** When the meeting was last updated, as an ISO date-time string. */
|
|
16070
|
+
readonly updated_at: string;
|
|
16071
|
+
/** Whether recording starts when a participant joins. */
|
|
16072
|
+
record_on_start?: boolean;
|
|
16073
|
+
/** Whether livestreaming starts when the meeting starts. */
|
|
16074
|
+
live_stream_on_start?: boolean;
|
|
16075
|
+
/** Whether meeting chat persists for a week. */
|
|
16076
|
+
persist_chat?: boolean;
|
|
16077
|
+
/** Whether a meeting summary is generated using transcripts. */
|
|
16078
|
+
summarize_on_end?: boolean;
|
|
16079
|
+
/** Whether a transcript is generated when the meeting ends. */
|
|
16080
|
+
transcribe_on_end?: boolean;
|
|
16081
|
+
/** Recording settings for the meeting. Storage credentials are not included. */
|
|
16082
|
+
recording_config?: RealtimeKitRecordingConfigResponse;
|
|
16083
|
+
/** Transcription and summarization settings. */
|
|
16084
|
+
ai_config?: RealtimeKitAIConfig;
|
|
16085
|
+
/** Participants cannot join an INACTIVE meeting. */
|
|
16086
|
+
status?: "ACTIVE" | "INACTIVE";
|
|
16087
|
+
/**
|
|
16088
|
+
* Session keep-alive duration, 60 to 600 seconds.
|
|
16089
|
+
* @default 60
|
|
16090
|
+
*/
|
|
16091
|
+
session_keep_alive_time_in_secs?: number;
|
|
16092
|
+
/**
|
|
16093
|
+
* Adds a participant to this meeting and returns their details and join token.
|
|
16094
|
+
*/
|
|
16095
|
+
addParticipant(
|
|
16096
|
+
options: RealtimeKitAddParticipantOptions,
|
|
16097
|
+
): Promise<RealtimeKitParticipant>;
|
|
16098
|
+
}
|
|
16099
|
+
/** Meeting-level recording settings, overriding the app's recording settings. */
|
|
16100
|
+
export interface RealtimeKitRecordingConfig {
|
|
16101
|
+
/** Maximum recording duration in seconds, between 60 and 86400. */
|
|
16102
|
+
max_seconds?: number;
|
|
16103
|
+
/** Prefix added to the recording file name. */
|
|
16104
|
+
file_name_prefix?: string;
|
|
16105
|
+
/** Recorded video encoding, dimensions, and watermark settings. */
|
|
16106
|
+
video_config?: RealtimeKitVideoConfig;
|
|
16107
|
+
/** Recorded audio encoding and channel settings. */
|
|
16108
|
+
audio_config?: RealtimeKitAudioConfig;
|
|
16109
|
+
/** Storage destination and credentials for uploading recordings. */
|
|
16110
|
+
storage_config?: RealtimeKitStorageConfig;
|
|
16111
|
+
/** Whether recordings are uploaded to RealtimeKit's bucket. */
|
|
16112
|
+
realtimekit_bucket_config?: RealtimeKitBucketConfig;
|
|
16113
|
+
/** Destination for live-streaming the recording. */
|
|
16114
|
+
live_streaming_config?: RealtimeKitLivestreamingConfig;
|
|
16115
|
+
}
|
|
16116
|
+
/** Recording settings for a meeting, with storage credentials omitted. */
|
|
16117
|
+
export interface RealtimeKitRecordingConfigResponse extends Omit<
|
|
16118
|
+
RealtimeKitRecordingConfig,
|
|
16119
|
+
"storage_config"
|
|
16120
|
+
> {
|
|
16121
|
+
/** Destination storage with access keys, secrets, passwords, and keys omitted. */
|
|
16122
|
+
storage_config?: RealtimeKitStorageConfigResponse;
|
|
16123
|
+
}
|
|
16124
|
+
/** Video settings for meeting recordings. */
|
|
16125
|
+
export interface RealtimeKitVideoConfig {
|
|
16126
|
+
/**
|
|
16127
|
+
* Video codec.
|
|
16128
|
+
* @default 'H264'
|
|
16129
|
+
*/
|
|
16130
|
+
codec?: "H264" | "VP8" | "VP9";
|
|
16131
|
+
/**
|
|
16132
|
+
* Video width in pixels, between 1 and 1920.
|
|
16133
|
+
* @default 1280
|
|
16134
|
+
*/
|
|
16135
|
+
width?: number;
|
|
16136
|
+
/**
|
|
16137
|
+
* Video height in pixels, between 1 and 1920.
|
|
16138
|
+
* @default 720
|
|
16139
|
+
*/
|
|
16140
|
+
height?: number;
|
|
16141
|
+
/** Watermark image, dimensions, and placement. */
|
|
16142
|
+
watermark?: {
|
|
16143
|
+
/** URL of the watermark image. */
|
|
16144
|
+
url?: string;
|
|
16145
|
+
/** Watermark dimensions in pixels. */
|
|
16146
|
+
size?: {
|
|
16147
|
+
/** Watermark width; minimum 1 pixel. */
|
|
16148
|
+
width?: number;
|
|
16149
|
+
/** Watermark height; minimum 1 pixel. */
|
|
16150
|
+
height?: number;
|
|
16151
|
+
};
|
|
16152
|
+
/**
|
|
16153
|
+
* Watermark placement.
|
|
16154
|
+
* @default 'left top'
|
|
16155
|
+
*/
|
|
16156
|
+
position?: "left top" | "right top" | "left bottom" | "right bottom";
|
|
16157
|
+
};
|
|
16158
|
+
/**
|
|
16159
|
+
* Export a separate video file.
|
|
16160
|
+
* @default true
|
|
16161
|
+
*/
|
|
16162
|
+
export_file?: boolean;
|
|
16163
|
+
}
|
|
16164
|
+
/** Audio settings for meeting recordings. */
|
|
16165
|
+
export interface RealtimeKitAudioConfig {
|
|
16166
|
+
/**
|
|
16167
|
+
* Audio codec. VP8/VP9 video automatically uses Vorbis audio, and the audio
|
|
16168
|
+
* codec cannot be changed.
|
|
16169
|
+
* @default 'AAC'
|
|
16170
|
+
*/
|
|
16171
|
+
codec?: "MP3" | "AAC";
|
|
16172
|
+
/**
|
|
16173
|
+
* Audio channel layout.
|
|
16174
|
+
* @default 'stereo'
|
|
16175
|
+
*/
|
|
16176
|
+
channel?: "mono" | "stereo";
|
|
16177
|
+
/**
|
|
16178
|
+
* Export a separate audio file.
|
|
16179
|
+
* @default true
|
|
16180
|
+
*/
|
|
16181
|
+
export_file?: boolean;
|
|
16182
|
+
}
|
|
16183
|
+
/** Destination and authentication settings for external recording storage. */
|
|
16184
|
+
export interface RealtimeKitStorageConfigBase {
|
|
16185
|
+
/** Destination bucket name. */
|
|
16186
|
+
bucket: string;
|
|
16187
|
+
/**
|
|
16188
|
+
* Storage access key; required and nonempty except for Google Cloud Storage.
|
|
16189
|
+
* Not included in returned storage details.
|
|
16190
|
+
*/
|
|
16191
|
+
access_key?: string;
|
|
16192
|
+
/** Secret key for the storage provider. Not included in returned details. */
|
|
16193
|
+
secret?: string;
|
|
16194
|
+
/** Storage region; required and nonempty except for Google Cloud Storage. */
|
|
16195
|
+
region?: string;
|
|
16196
|
+
/** Recording path relative to the bucket root. */
|
|
16197
|
+
path?: string;
|
|
16198
|
+
/** Authentication method for SFTP storage. */
|
|
16199
|
+
auth_method?: "KEY" | "PASSWORD";
|
|
16200
|
+
/** Destination SSH username for SFTP. */
|
|
16201
|
+
username?: string;
|
|
16202
|
+
/**
|
|
16203
|
+
* SFTP login password, or SSH private-key passphrase when using KEY.
|
|
16204
|
+
* Not included in returned storage details.
|
|
16205
|
+
*/
|
|
16206
|
+
password?: string;
|
|
16207
|
+
/** Destination SSH hostname for SFTP. */
|
|
16208
|
+
host?: string;
|
|
16209
|
+
/** Destination SSH port for SFTP. */
|
|
16210
|
+
port?: number;
|
|
16211
|
+
/** SSH private key for SFTP key authentication. Not included in returned details. */
|
|
16212
|
+
private_key?: string;
|
|
16213
|
+
}
|
|
16214
|
+
/** Recording destination in Google Cloud Storage, AWS, Azure, DigitalOcean, or SFTP. */
|
|
16215
|
+
export type RealtimeKitStorageConfig =
|
|
16216
|
+
| (RealtimeKitStorageConfigBase &
|
|
16217
|
+
(
|
|
16218
|
+
| {
|
|
16219
|
+
type: "gcs";
|
|
16220
|
+
}
|
|
16221
|
+
| {
|
|
16222
|
+
type: "aws" | "azure" | "digitalocean";
|
|
16223
|
+
access_key: string;
|
|
16224
|
+
region: string;
|
|
16225
|
+
}
|
|
16226
|
+
| ({
|
|
16227
|
+
type: "sftp";
|
|
16228
|
+
access_key: string;
|
|
16229
|
+
region: string;
|
|
16230
|
+
username: string;
|
|
16231
|
+
host: string;
|
|
16232
|
+
port: number;
|
|
16233
|
+
} & (
|
|
16234
|
+
| {
|
|
16235
|
+
auth_method: "KEY";
|
|
16236
|
+
private_key: string;
|
|
16237
|
+
}
|
|
16238
|
+
| {
|
|
16239
|
+
auth_method: "PASSWORD";
|
|
16240
|
+
password: string;
|
|
16241
|
+
}
|
|
16242
|
+
))
|
|
16243
|
+
))
|
|
16244
|
+
| null;
|
|
16245
|
+
/** Recording destination details, without access keys, secrets, passwords, or private keys. */
|
|
16246
|
+
export type RealtimeKitStorageConfigResponse =
|
|
16247
|
+
| (Omit<
|
|
16248
|
+
RealtimeKitStorageConfigBase,
|
|
16249
|
+
"access_key" | "secret" | "password" | "private_key"
|
|
16250
|
+
> &
|
|
16251
|
+
(
|
|
16252
|
+
| {
|
|
16253
|
+
type: "gcs";
|
|
16254
|
+
}
|
|
16255
|
+
| {
|
|
16256
|
+
type: "aws" | "azure" | "digitalocean";
|
|
16257
|
+
region: string;
|
|
16258
|
+
}
|
|
16259
|
+
| {
|
|
16260
|
+
type: "sftp";
|
|
16261
|
+
region: string;
|
|
16262
|
+
auth_method: "KEY" | "PASSWORD";
|
|
16263
|
+
username: string;
|
|
16264
|
+
host: string;
|
|
16265
|
+
port: number;
|
|
16266
|
+
}
|
|
16267
|
+
))
|
|
16268
|
+
| null;
|
|
16269
|
+
/** Controls uploading recordings to RealtimeKit's managed bucket. */
|
|
16270
|
+
export interface RealtimeKitBucketConfig {
|
|
16271
|
+
/**
|
|
16272
|
+
* Enable managed-bucket uploads. If false, recording download URLs and
|
|
16273
|
+
* their expiry are not generated.
|
|
16274
|
+
*/
|
|
16275
|
+
enabled: boolean;
|
|
16276
|
+
}
|
|
16277
|
+
/** Live-streaming destination for a recording. */
|
|
16278
|
+
export interface RealtimeKitLivestreamingConfig {
|
|
16279
|
+
/** RTMP destination URL. */
|
|
16280
|
+
rtmp_url?: string;
|
|
16281
|
+
}
|
|
16282
|
+
/** Transcription and summary customization for a meeting. */
|
|
16283
|
+
export interface RealtimeKitAIConfig {
|
|
16284
|
+
/** Transcription options. */
|
|
16285
|
+
transcription?: RealtimeKitTranscriptionConfig;
|
|
16286
|
+
/** Summary options. */
|
|
16287
|
+
summarization?: RealtimeKitSummarizationConfig;
|
|
16288
|
+
}
|
|
16289
|
+
/** Meeting transcription settings. */
|
|
16290
|
+
export interface RealtimeKitTranscriptionConfig {
|
|
16291
|
+
/** Terms to recognize more accurately during transcription. */
|
|
16292
|
+
keywords?: string[];
|
|
16293
|
+
/**
|
|
16294
|
+
* Language used for transcription. If omitted, post-meeting transcription
|
|
16295
|
+
* detects the language automatically.
|
|
16296
|
+
*/
|
|
16297
|
+
language?:
|
|
16298
|
+
"en-US" | "en-IN" | "de" | "hi" | "sv" | "ru" | "pl" | "el" | "fr" | "nl";
|
|
16299
|
+
/**
|
|
16300
|
+
* Filter offensive language in transcripts.
|
|
16301
|
+
* @default false
|
|
16302
|
+
*/
|
|
16303
|
+
profanity_filter?: boolean;
|
|
16304
|
+
}
|
|
16305
|
+
/** Meeting summarization settings. */
|
|
16306
|
+
export interface RealtimeKitSummarizationConfig {
|
|
16307
|
+
/**
|
|
16308
|
+
* Maximum words in the summary, between 150 and 1000.
|
|
16309
|
+
* @default 500
|
|
16310
|
+
*/
|
|
16311
|
+
word_limit?: number;
|
|
16312
|
+
/**
|
|
16313
|
+
* Summary text format.
|
|
16314
|
+
* @default 'markdown'
|
|
16315
|
+
*/
|
|
16316
|
+
text_format?: "plain_text" | "markdown";
|
|
16317
|
+
/**
|
|
16318
|
+
* Summary style.
|
|
16319
|
+
* @default 'general'
|
|
16320
|
+
*/
|
|
16321
|
+
summary_type?:
|
|
16322
|
+
| "general"
|
|
16323
|
+
| "team_meeting"
|
|
16324
|
+
| "sales_call"
|
|
16325
|
+
| "client_check_in"
|
|
16326
|
+
| "interview"
|
|
16327
|
+
| "daily_standup"
|
|
16328
|
+
| "one_on_one_meeting"
|
|
16329
|
+
| "lecture"
|
|
16330
|
+
| "code_review";
|
|
16331
|
+
}
|
|
15898
16332
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
15899
16333
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
15900
16334
|
// strips all `module` blocks.
|
package/package.json
CHANGED