Skip to content

Ehsann/new types to ppl #9134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 27 commits into
base: feat/pipelines
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0716bd7
Add new BSON types to public API (#330)
milaGGL Mar 10, 2025
3c743b2
Implement indexing for bson types (#331)
milaGGL Mar 11, 2025
82f32ca
rename BsonTimestampValue class to BsonTimestamp (#333)
milaGGL Mar 14, 2025
1df3d26
Fix Data Connect Types (#8898)
maneesht Apr 4, 2025
66a09f2
test(vertexai): update mock responses to v8 (#8904)
dlarocque Apr 8, 2025
b332825
Fix: display WebChannel error message (#8907)
milaGGL Apr 9, 2025
4e0f630
test(vertexai): add `backendName` param to mock response getters (#8906)
dlarocque Apr 9, 2025
ed0803a
fix: remove `null` value inclusion from `!=` and `not-in` filter resu…
milaGGL Apr 11, 2025
e055e90
Add assertion IDs that will be included in production log statements …
MarkDuckworth Apr 14, 2025
8bb66c2
docs(vertexai): remove HTML `<code>` tags (#8900)
dlarocque Apr 15, 2025
0cbff6b
test(vertexai): update developerapi mock response dir to googleai (#8…
dlarocque Apr 15, 2025
1363ecc
Fix languageCode parameter in action_code_url (#8912)
pashanka Apr 16, 2025
a0bcc9a
Merge main into release
google-oss-bot Apr 22, 2025
20b45d3
test(vertexai): update mock responses to v10 (#8959)
dlarocque Apr 23, 2025
b204e71
Version Packages (#8956)
google-oss-bot Apr 24, 2025
9952dbc
Merge branch 'release'
dlarocque Apr 24, 2025
fbf7222
Port BSON code updates from other sdks (#341)
milaGGL Apr 25, 2025
0e2558a
Improve the integration test coverage for online vs offline compariso…
ehsannas Apr 28, 2025
dd6a8f0
fix(vertexai): add missing quote to chat role error message (#8979)
dlarocque Apr 29, 2025
ea1f913
Auto Enable SSL for Firebase Studio (#8980)
maneesht Apr 29, 2025
0e12766
Add support for running the emulators in Cloud Workstation (#8968)
maneesht Apr 30, 2025
080a90d
Add Cookie Support For Firebase Studio (#8986)
maneesht May 1, 2025
ac59a1c
Remove FieldValue factory methods (#342)
milaGGL May 1, 2025
8cfdc53
Merge remote-tracking branch 'origin/main' into bson-feature
ehsannas May 2, 2025
4600a34
Create seven-actors-kneel.md
ehsannas May 2, 2025
cbba951
resolve TODOs
milaGGL May 5, 2025
5bb40f0
Merge remote-tracking branch 'origin/feat/pipelines' into new-types
ehsannas Jun 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/gentle-rocks-repeat.md

This file was deleted.

10 changes: 10 additions & 0 deletions .changeset/nice-plants-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@firebase/database-compat": patch
"@firebase/database": patch
"@firebase/firestore": patch
"@firebase/functions": patch
"@firebase/storage": patch
"@firebase/util": patch
---

Auto Enable SSL for Firebase Studio
11 changes: 11 additions & 0 deletions .changeset/nine-pugs-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@firebase/auth": patch
"@firebase/data-connect": patch
"@firebase/database-compat": patch
"@firebase/database": patch
"@firebase/firestore": patch
"@firebase/storage": patch
"@firebase/util": patch
---

Fix Auth Redirects on Firebase Studio
5 changes: 5 additions & 0 deletions .changeset/seven-actors-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@firebase/firestore": minor
---

feat: Adds support for MinKey, MaxKey, RegexValue, Int32Value, BsonObjectId, BsonTimestamp, and BsonBinaryData.
6 changes: 0 additions & 6 deletions .changeset/slow-students-fry.md

This file was deleted.

18 changes: 17 additions & 1 deletion common/api-review/data-connect.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ export const CallerSdkTypeEnum: {
readonly GeneratedAngular: "GeneratedAngular";
};

// @public (undocumented)
export type Code = DataConnectErrorCode;

// @public (undocumented)
export const Code: {
OTHER: DataConnectErrorCode;
ALREADY_INITIALIZED: DataConnectErrorCode;
NOT_INITIALIZED: DataConnectErrorCode;
NOT_SUPPORTED: DataConnectErrorCode;
INVALID_ARGUMENT: DataConnectErrorCode;
PARTIAL_ERROR: DataConnectErrorCode;
UNAUTHORIZED: DataConnectErrorCode;
};

// @public
export function connectDataConnectEmulator(dc: DataConnect, host: string, port?: number, sslEnabled?: boolean): void;

Expand Down Expand Up @@ -54,7 +68,9 @@ export class DataConnect {

// @public
export class DataConnectError extends FirebaseError {
}
/* Excluded from this release type: name */
constructor(code: Code, message: string);
}

// @public (undocumented)
export type DataConnectErrorCode = 'other' | 'already-initialized' | 'not-initialized' | 'not-supported' | 'invalid-argument' | 'partial-error' | 'unauthorized';
Expand Down
60 changes: 60 additions & 0 deletions common/api-review/firestore-lite.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,34 @@ export function arrayUnion(...elements: unknown[]): FieldValue;
// @public
export function average(field: string | FieldPath): AggregateField<number | null>;

// @public
export class BsonBinaryData {
constructor(subtype: number, data: Uint8Array);
// (undocumented)
readonly data: Uint8Array;
isEqual(other: BsonBinaryData): boolean;
// (undocumented)
readonly subtype: number;
}

// @public
export class BsonObjectId {
constructor(value: string);
isEqual(other: BsonObjectId): boolean;
// (undocumented)
readonly value: string;
}

// @public
export class BsonTimestamp {
constructor(seconds: number, increment: number);
// (undocumented)
readonly increment: number;
isEqual(other: BsonTimestamp): boolean;
// (undocumented)
readonly seconds: number;
}

// @public
export class Bytes {
static fromBase64String(base64: string): Bytes;
Expand Down Expand Up @@ -249,6 +277,14 @@ export function initializeFirestore(app: FirebaseApp, settings: Settings): Fires
// @beta
export function initializeFirestore(app: FirebaseApp, settings: Settings, databaseId?: string): Firestore;

// @public
export class Int32Value {
constructor(value: number);
isEqual(other: Int32Value): boolean;
// (undocumented)
readonly value: number;
}

// @public
export function limit(limit: number): QueryLimitConstraint;

Expand All @@ -257,6 +293,20 @@ export function limitToLast(limit: number): QueryLimitConstraint;

export { LogLevel }

// @public
export class MaxKey {
// (undocumented)
static instance(): MaxKey;
readonly type = "MaxKey";
}

// @public
export class MinKey {
// (undocumented)
static instance(): MinKey;
readonly type = "MinKey";
}

// @public
export type NestedUpdateFields<T extends Record<string, unknown>> = UnionToIntersection<{
[K in keyof T & string]: ChildUpdateFields<K, T[K]>;
Expand Down Expand Up @@ -360,6 +410,16 @@ export class QueryStartAtConstraint extends QueryConstraint {
// @public
export function refEqual<AppModelType, DbModelType extends DocumentData>(left: DocumentReference<AppModelType, DbModelType> | CollectionReference<AppModelType, DbModelType>, right: DocumentReference<AppModelType, DbModelType> | CollectionReference<AppModelType, DbModelType>): boolean;

// @public
export class RegexValue {
constructor(pattern: string, options: string);
isEqual(other: RegexValue): boolean;
// (undocumented)
readonly options: string;
// (undocumented)
readonly pattern: string;
}

// @public
export function runTransaction<T>(firestore: Firestore, updateFunction: (transaction: Transaction) => Promise<T>, options?: TransactionOptions): Promise<T>;

Expand Down
60 changes: 60 additions & 0 deletions common/api-review/firestore.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,34 @@ export function arrayUnion(...elements: unknown[]): FieldValue;
// @public
export function average(field: string | FieldPath): AggregateField<number | null>;

// @public
export class BsonBinaryData {
constructor(subtype: number, data: Uint8Array);
// (undocumented)
readonly data: Uint8Array;
isEqual(other: BsonBinaryData): boolean;
// (undocumented)
readonly subtype: number;
}

// @public
export class BsonObjectId {
constructor(value: string);
isEqual(other: BsonObjectId): boolean;
// (undocumented)
readonly value: string;
}

// @public
export class BsonTimestamp {
constructor(seconds: number, increment: number);
// (undocumented)
readonly increment: number;
isEqual(other: BsonTimestamp): boolean;
// (undocumented)
readonly seconds: number;
}

// @public
export class Bytes {
static fromBase64String(base64: string): Bytes;
Expand Down Expand Up @@ -344,6 +372,14 @@ export interface IndexField {
// @public
export function initializeFirestore(app: FirebaseApp, settings: FirestoreSettings, databaseId?: string): Firestore;

// @public
export class Int32Value {
constructor(value: number);
isEqual(other: Int32Value): boolean;
// (undocumented)
readonly value: number;
}

// @public
export function limit(limit: number): QueryLimitConstraint;

Expand Down Expand Up @@ -374,6 +410,13 @@ export interface LoadBundleTaskProgress {

export { LogLevel }

// @public
export class MaxKey {
// (undocumented)
static instance(): MaxKey;
readonly type = "MaxKey";
}

// @public
export interface MemoryCacheSettings {
garbageCollector?: MemoryGarbageCollector;
Expand Down Expand Up @@ -411,6 +454,13 @@ export function memoryLruGarbageCollector(settings?: {
cacheSizeBytes?: number;
}): MemoryLruGarbageCollector;

// @public
export class MinKey {
// (undocumented)
static instance(): MinKey;
readonly type = "MinKey";
}

// @public
export function namedQuery(firestore: Firestore, name: string): Promise<Query | null>;

Expand Down Expand Up @@ -620,6 +670,16 @@ export class QueryStartAtConstraint extends QueryConstraint {
// @public
export function refEqual<AppModelType, DbModelType extends DocumentData>(left: DocumentReference<AppModelType, DbModelType> | CollectionReference<AppModelType, DbModelType>, right: DocumentReference<AppModelType, DbModelType> | CollectionReference<AppModelType, DbModelType>): boolean;

// @public
export class RegexValue {
constructor(pattern: string, options: string);
isEqual(other: RegexValue): boolean;
// (undocumented)
readonly options: string;
// (undocumented)
readonly pattern: string;
}

// @public
export function runTransaction<T>(firestore: Firestore, updateFunction: (transaction: Transaction) => Promise<T>, options?: TransactionOptions): Promise<T>;

Expand Down
4 changes: 3 additions & 1 deletion common/api-review/storage.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class _FirebaseStorageImpl implements FirebaseStorage {
constructor(
app: FirebaseApp, _authProvider: Provider<FirebaseAuthInternalName>,
_appCheckProvider: Provider<AppCheckInternalComponentName>,
_url?: string | undefined, _firebaseVersion?: string | undefined);
_url?: string | undefined, _firebaseVersion?: string | undefined, _isUsingEmulator?: boolean);
readonly app: FirebaseApp;
// (undocumented)
readonly _appCheckProvider: Provider<AppCheckInternalComponentName>;
Expand All @@ -77,6 +77,8 @@ export class _FirebaseStorageImpl implements FirebaseStorage {
_getAuthToken(): Promise<string | null>;
get host(): string;
set host(host: string);
// (undocumented)
_isUsingEmulator: boolean;
// Warning: (ae-forgotten-export) The symbol "ConnectionType" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "RequestInfo" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "Connection" needs to be exported by the entry point index.d.ts
Expand Down
6 changes: 6 additions & 0 deletions common/api-review/util.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ export function isBrowserExtension(): boolean;
// @public
export function isCloudflareWorker(): boolean;

// @public
export function isCloudWorkstation(host: string): boolean;

// Warning: (ae-missing-release-tag) "isElectron" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
Expand Down Expand Up @@ -395,6 +398,9 @@ export function ordinal(i: number): string;
// @public (undocumented)
export type PartialObserver<T> = Partial<Observer<T>>;

// @public
export function pingServer(endpoint: string): Promise<boolean>;

// Warning: (ae-internal-missing-underscore) The name "promiseWithTimeout" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
Expand Down
8 changes: 4 additions & 4 deletions docs-devsite/vertexai.chatsession.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export declare class ChatSession
| Method | Modifiers | Description |
| --- | --- | --- |
| [getHistory()](./vertexai.chatsession.md#chatsessiongethistory) | | Gets the chat history so far. Blocked prompts are not added to history. Neither blocked candidates nor the prompts that generated them are added to history. |
| [sendMessage(request)](./vertexai.chatsession.md#chatsessionsendmessage) | | Sends a chat message and receives a non-streaming <code>[GenerateContentResult](./vertexai.generatecontentresult.md#generatecontentresult_interface)</code> |
| [sendMessageStream(request)](./vertexai.chatsession.md#chatsessionsendmessagestream) | | Sends a chat message and receives the response as a <code>[GenerateContentStreamResult](./vertexai.generatecontentstreamresult.md#generatecontentstreamresult_interface)</code> containing an iterable stream and a response promise. |
| [sendMessage(request)](./vertexai.chatsession.md#chatsessionsendmessage) | | Sends a chat message and receives a non-streaming [GenerateContentResult](./vertexai.generatecontentresult.md#generatecontentresult_interface) |
| [sendMessageStream(request)](./vertexai.chatsession.md#chatsessionsendmessagestream) | | Sends a chat message and receives the response as a [GenerateContentStreamResult](./vertexai.generatecontentstreamresult.md#generatecontentstreamresult_interface) containing an iterable stream and a response promise. |

## ChatSession.(constructor)

Expand Down Expand Up @@ -98,7 +98,7 @@ Promise&lt;[Content](./vertexai.content.md#content_interface)<!-- -->\[\]&gt;

## ChatSession.sendMessage()

Sends a chat message and receives a non-streaming <code>[GenerateContentResult](./vertexai.generatecontentresult.md#generatecontentresult_interface)</code>
Sends a chat message and receives a non-streaming [GenerateContentResult](./vertexai.generatecontentresult.md#generatecontentresult_interface)

<b>Signature:</b>

Expand All @@ -118,7 +118,7 @@ Promise&lt;[GenerateContentResult](./vertexai.generatecontentresult.md#generatec

## ChatSession.sendMessageStream()

Sends a chat message and receives the response as a <code>[GenerateContentStreamResult](./vertexai.generatecontentstreamresult.md#generatecontentstreamresult_interface)</code> containing an iterable stream and a response promise.
Sends a chat message and receives the response as a [GenerateContentStreamResult](./vertexai.generatecontentstreamresult.md#generatecontentstreamresult_interface) containing an iterable stream and a response promise.

<b>Signature:</b>

Expand Down
2 changes: 1 addition & 1 deletion docs-devsite/vertexai.citationmetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}

# CitationMetadata interface
Citation metadata that may be found on a <code>[GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface)</code>.
Citation metadata that may be found on a [GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface)<!-- -->.

<b>Signature:</b>

Expand Down
4 changes: 2 additions & 2 deletions docs-devsite/vertexai.counttokensrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface CountTokensRequest
| [contents](./vertexai.counttokensrequest.md#counttokensrequestcontents) | [Content](./vertexai.content.md#content_interface)<!-- -->\[\] | |
| [generationConfig](./vertexai.counttokensrequest.md#counttokensrequestgenerationconfig) | [GenerationConfig](./vertexai.generationconfig.md#generationconfig_interface) | Configuration options that control how the model generates a response. |
| [systemInstruction](./vertexai.counttokensrequest.md#counttokensrequestsysteminstruction) | string \| [Part](./vertexai.md#part) \| [Content](./vertexai.content.md#content_interface) | Instructions that direct the model to behave a certain way. |
| [tools](./vertexai.counttokensrequest.md#counttokensrequesttools) | [Tool](./vertexai.md#tool)<!-- -->\[\] | <code>[Tool](./vertexai.md#tool)</code> configuration. |
| [tools](./vertexai.counttokensrequest.md#counttokensrequesttools) | [Tool](./vertexai.md#tool)<!-- -->\[\] | [Tool](./vertexai.md#tool) configuration. |

## CountTokensRequest.contents

Expand Down Expand Up @@ -57,7 +57,7 @@ systemInstruction?: string | Part | Content;

## CountTokensRequest.tools

<code>[Tool](./vertexai.md#tool)</code> configuration.
[Tool](./vertexai.md#tool) configuration.

<b>Signature:</b>

Expand Down
4 changes: 2 additions & 2 deletions docs-devsite/vertexai.customerrordata.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface CustomErrorData
| Property | Type | Description |
| --- | --- | --- |
| [errorDetails](./vertexai.customerrordata.md#customerrordataerrordetails) | [ErrorDetails](./vertexai.errordetails.md#errordetails_interface)<!-- -->\[\] | Optional additional details about the error. |
| [response](./vertexai.customerrordata.md#customerrordataresponse) | [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface) | Response from a <code>[GenerateContentRequest](./vertexai.generatecontentrequest.md#generatecontentrequest_interface)</code> |
| [response](./vertexai.customerrordata.md#customerrordataresponse) | [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface) | Response from a [GenerateContentRequest](./vertexai.generatecontentrequest.md#generatecontentrequest_interface) |
| [status](./vertexai.customerrordata.md#customerrordatastatus) | number | HTTP status code of the error response. |
| [statusText](./vertexai.customerrordata.md#customerrordatastatustext) | string | HTTP status text of the error response. |

Expand All @@ -39,7 +39,7 @@ errorDetails?: ErrorDetails[];

## CustomErrorData.response

Response from a <code>[GenerateContentRequest](./vertexai.generatecontentrequest.md#generatecontentrequest_interface)</code>
Response from a [GenerateContentRequest](./vertexai.generatecontentrequest.md#generatecontentrequest_interface)

<b>Signature:</b>

Expand Down
2 changes: 1 addition & 1 deletion docs-devsite/vertexai.filedatapart.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}

# FileDataPart interface
Content part interface if the part represents <code>[FileData](./vertexai.filedata.md#filedata_interface)</code>
Content part interface if the part represents [FileData](./vertexai.filedata.md#filedata_interface)

<b>Signature:</b>

Expand Down
2 changes: 1 addition & 1 deletion docs-devsite/vertexai.functioncall.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}

# FunctionCall interface
A predicted <code>[FunctionCall](./vertexai.functioncall.md#functioncall_interface)</code> returned from the model that contains a string representing the [FunctionDeclaration.name](./vertexai.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing the parameters and their values.
A predicted [FunctionCall](./vertexai.functioncall.md#functioncall_interface) returned from the model that contains a string representing the [FunctionDeclaration.name](./vertexai.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing the parameters and their values.

<b>Signature:</b>

Expand Down
2 changes: 1 addition & 1 deletion docs-devsite/vertexai.functioncallpart.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}

# FunctionCallPart interface
Content part interface if the part represents a <code>[FunctionCall](./vertexai.functioncall.md#functioncall_interface)</code>.
Content part interface if the part represents a [FunctionCall](./vertexai.functioncall.md#functioncall_interface)<!-- -->.

<b>Signature:</b>

Expand Down
Loading
Loading