Skip to content

Commit 5623923

Browse files
committed
Merge branch 'feat/pipelines' into markduckworth/g3-import-firestore-globals
2 parents 637027a + 0aca735 commit 5623923

File tree

68 files changed

+3415
-1087
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3415
-1087
lines changed

.changeset/angry-apples-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/auth': patch
3+
---
4+
5+
Expose `browserCookiePersistence` beta feature in public typings.

.changeset/dull-ligers-bow.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'firebase': minor
3+
'@firebase/ai': minor
4+
---
5+
6+
Deprecate `sendMediaChunks()` and `sendMediaStream()`. Instead, use the new methods added to the `LiveSession` class.
7+
Add `sendTextRealtime()`, `sendAudioReatime()`, and `sendVideoRealtime()` to the `LiveSession` class.

.changeset/fast-rocks-sing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'firebase': minor
3+
'@firebase/ai': minor
4+
---
5+
6+
Add support for audio transcriptions in the Live API.

.changeset/metal-lies-compete.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/auth': patch
3+
'firebase': patch
4+
---
5+
6+
Export MISSING_PASSWORD via AuthErrorCodes in @firebase/auth.

.changeset/rare-hats-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/ai': patch
3+
---
4+
5+
Fix logic for merging default `onDeviceParams` with user-provided `onDeviceParams`.

.changeset/smooth-parrots-speak.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/ai': minor
3+
'firebase': minor
4+
---
5+
6+
Add `inferenceSource` to the response from `generateContent` and `generateContentStream`. This property indicates whether on-device or in-cloud inference was used to generate the result.

common/api-review/ai.api.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ export interface AudioConversationController {
9292
stop: () => Promise<void>;
9393
}
9494

95+
// @public
96+
export interface AudioTranscriptionConfig {
97+
}
98+
9599
// @public
96100
export abstract class Backend {
97101
protected constructor(type: BackendType);
@@ -153,6 +157,8 @@ export interface ChromeAdapter {
153157
generateContent(request: GenerateContentRequest): Promise<Response>;
154158
generateContentStream(request: GenerateContentRequest): Promise<Response>;
155159
isAvailable(request: GenerateContentRequest): Promise<boolean>;
160+
// @internal (undocumented)
161+
mode: InferenceMode;
156162
}
157163

158164
// @public
@@ -256,6 +262,8 @@ export { Date_2 as Date }
256262
// @public
257263
export interface EnhancedGenerateContentResponse extends GenerateContentResponse {
258264
functionCalls: () => FunctionCall[] | undefined;
265+
// @beta
266+
inferenceSource?: InferenceSource;
259267
inlineDataParts: () => InlineDataPart[] | undefined;
260268
text: () => string;
261269
thoughtSummary: () => string | undefined;
@@ -816,6 +824,15 @@ export const InferenceMode: {
816824
// @beta
817825
export type InferenceMode = (typeof InferenceMode)[keyof typeof InferenceMode];
818826

827+
// @beta
828+
export const InferenceSource: {
829+
readonly ON_DEVICE: "on_device";
830+
readonly IN_CLOUD: "in_cloud";
831+
};
832+
833+
// @beta
834+
export type InferenceSource = (typeof InferenceSource)[keyof typeof InferenceSource];
835+
819836
// @public
820837
export interface InlineDataPart {
821838
// (undocumented)
@@ -911,7 +928,9 @@ export interface LanguageModelPromptOptions {
911928
// @beta
912929
export interface LiveGenerationConfig {
913930
frequencyPenalty?: number;
931+
inputAudioTranscription?: AudioTranscriptionConfig;
914932
maxOutputTokens?: number;
933+
outputAudioTranscription?: AudioTranscriptionConfig;
915934
presencePenalty?: number;
916935
responseModalities?: ResponseModality[];
917936
speechConfig?: SpeechConfig;
@@ -964,8 +983,10 @@ export type LiveResponseType = (typeof LiveResponseType)[keyof typeof LiveRespon
964983

965984
// @beta
966985
export interface LiveServerContent {
986+
inputTranscription?: Transcription;
967987
interrupted?: boolean;
968988
modelTurn?: Content;
989+
outputTranscription?: Transcription;
969990
turnComplete?: boolean;
970991
// (undocumented)
971992
type: 'serverContent';
@@ -994,9 +1015,14 @@ export class LiveSession {
9941015
isClosed: boolean;
9951016
receive(): AsyncGenerator<LiveServerContent | LiveServerToolCall | LiveServerToolCallCancellation>;
9961017
send(request: string | Array<string | Part>, turnComplete?: boolean): Promise<void>;
1018+
sendAudioRealtime(blob: GenerativeContentBlob): Promise<void>;
9971019
sendFunctionResponses(functionResponses: FunctionResponse[]): Promise<void>;
1020+
// @deprecated
9981021
sendMediaChunks(mediaChunks: GenerativeContentBlob[]): Promise<void>;
1022+
// @deprecated (undocumented)
9991023
sendMediaStream(mediaChunkStream: ReadableStream<GenerativeContentBlob>): Promise<void>;
1024+
sendTextRealtime(text: string): Promise<void>;
1025+
sendVideoRealtime(blob: GenerativeContentBlob): Promise<void>;
10001026
}
10011027

10021028
// @public
@@ -1326,6 +1352,11 @@ export interface ToolConfig {
13261352
functionCallingConfig?: FunctionCallingConfig;
13271353
}
13281354

1355+
// @beta
1356+
export interface Transcription {
1357+
text?: string;
1358+
}
1359+
13291360
// @public
13301361
export type TypedSchema = IntegerSchema | NumberSchema | StringSchema | BooleanSchema | ObjectSchema | ArraySchema | AnyOfSchema;
13311362

common/api-review/auth.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export const AuthErrorCodes: {
195195
readonly MISSING_MFA_INFO: "auth/missing-multi-factor-info";
196196
readonly MISSING_MFA_SESSION: "auth/missing-multi-factor-session";
197197
readonly MISSING_PHONE_NUMBER: "auth/missing-phone-number";
198+
readonly MISSING_PASSWORD: "auth/missing-password";
198199
readonly MISSING_SESSION_INFO: "auth/missing-verification-id";
199200
readonly MODULE_DESTROYED: "auth/app-deleted";
200201
readonly NEED_CONFIRMATION: "auth/account-exists-with-different-credential";

0 commit comments

Comments
 (0)