@firebase/ai 2.7.0-canary.691a506ec → 2.7.0-canary.8123231a1

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.
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { FunctionResponse, GenerativeContentBlob, LiveServerContent, LiveServerToolCall, LiveServerToolCallCancellation, Part } from '../public-types';
17
+ import { FunctionResponse, GenerativeContentBlob, LiveServerContent, LiveServerGoingAwayNotice, LiveServerToolCall, LiveServerToolCallCancellation, Part } from '../public-types';
18
18
  import { WebSocketHandler } from '../websocket';
19
19
  /**
20
20
  * Represents an active, real-time, bidirectional conversation with the model.
@@ -121,7 +121,7 @@ export declare class LiveSession {
121
121
  *
122
122
  * @beta
123
123
  */
124
- receive(): AsyncGenerator<LiveServerContent | LiveServerToolCall | LiveServerToolCallCancellation>;
124
+ receive(): AsyncGenerator<LiveServerContent | LiveServerToolCall | LiveServerToolCallCancellation | LiveServerGoingAwayNotice>;
125
125
  /**
126
126
  * Closes this session.
127
127
  * All methods on this session will throw an error once this resolves.
@@ -574,6 +574,18 @@ export interface LiveServerToolCallCancellation {
574
574
  */
575
575
  functionIds: string[];
576
576
  }
577
+ /**
578
+ * Notification that the server will not be able to service the client soon.
579
+ *
580
+ * @beta
581
+ */
582
+ export interface LiveServerGoingAwayNotice {
583
+ type: 'goingAwayNotice';
584
+ /**
585
+ * The remaining time (in seconds) before the connection will be terminated.
586
+ */
587
+ timeLeft: number;
588
+ }
577
589
  /**
578
590
  * The types of responses that can be returned by {@link LiveSession.receive}.
579
591
  *
@@ -583,6 +595,7 @@ export declare const LiveResponseType: {
583
595
  SERVER_CONTENT: string;
584
596
  TOOL_CALL: string;
585
597
  TOOL_CALL_CANCELLATION: string;
598
+ GOING_AWAY_NOTICE: string;
586
599
  };
587
600
  /**
588
601
  * The types of responses that can be returned by {@link LiveSession.receive}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/ai",
3
- "version": "2.7.0-canary.691a506ec",
3
+ "version": "2.7.0-canary.8123231a1",
4
4
  "description": "The Firebase AI SDK",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "engines": {
@@ -48,19 +48,19 @@
48
48
  "trusted-type-check": "tsec -p tsconfig.json --noEmit"
49
49
  },
50
50
  "peerDependencies": {
51
- "@firebase/app": "0.14.7-canary.691a506ec",
52
- "@firebase/app-types": "0.9.3-canary.691a506ec"
51
+ "@firebase/app": "0.14.7-canary.8123231a1",
52
+ "@firebase/app-types": "0.9.3-canary.8123231a1"
53
53
  },
54
54
  "dependencies": {
55
- "@firebase/app-check-interop-types": "0.3.3-canary.691a506ec",
56
- "@firebase/component": "0.7.0-canary.691a506ec",
57
- "@firebase/logger": "0.5.0-canary.691a506ec",
58
- "@firebase/util": "1.13.0-canary.691a506ec",
55
+ "@firebase/app-check-interop-types": "0.3.3-canary.8123231a1",
56
+ "@firebase/component": "0.7.0-canary.8123231a1",
57
+ "@firebase/logger": "0.5.0-canary.8123231a1",
58
+ "@firebase/util": "1.13.0-canary.8123231a1",
59
59
  "tslib": "^2.1.0"
60
60
  },
61
61
  "license": "Apache-2.0",
62
62
  "devDependencies": {
63
- "@firebase/app": "0.14.7-canary.691a506ec",
63
+ "@firebase/app": "0.14.7-canary.8123231a1",
64
64
  "@rollup/plugin-json": "6.1.0",
65
65
  "rollup": "2.79.2",
66
66
  "rollup-plugin-replace": "2.2.0",