@firebase/ai 2.7.0-canary.8123231a1 → 2.7.0-canary.b10a296fa
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/dist/ai-public.d.ts +12 -12
- package/dist/ai.d.ts +12 -12
- package/dist/esm/index.esm.js +4 -4
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/src/types/content.d.ts +4 -4
- package/dist/esm/src/types/enums.d.ts +4 -4
- package/dist/esm/src/types/responses.d.ts +4 -4
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.node.cjs.js +4 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +4 -4
- package/dist/index.node.mjs.map +1 -1
- package/dist/src/types/content.d.ts +4 -4
- package/dist/src/types/enums.d.ts +4 -4
- package/dist/src/types/responses.d.ts +4 -4
- package/package.json +8 -8
package/dist/ai-public.d.ts
CHANGED
|
@@ -410,7 +410,7 @@ export declare interface CitationMetadata {
|
|
|
410
410
|
/**
|
|
411
411
|
* The results of code execution run by the model.
|
|
412
412
|
*
|
|
413
|
-
* @
|
|
413
|
+
* @public
|
|
414
414
|
*/
|
|
415
415
|
export declare interface CodeExecutionResult {
|
|
416
416
|
/**
|
|
@@ -427,7 +427,7 @@ export declare interface CodeExecutionResult {
|
|
|
427
427
|
/**
|
|
428
428
|
* Represents the code execution result from the model.
|
|
429
429
|
*
|
|
430
|
-
* @
|
|
430
|
+
* @public
|
|
431
431
|
*/
|
|
432
432
|
export declare interface CodeExecutionResultPart {
|
|
433
433
|
text?: never;
|
|
@@ -600,7 +600,7 @@ export declare interface ErrorDetails {
|
|
|
600
600
|
/**
|
|
601
601
|
* An interface for executable code returned by the model.
|
|
602
602
|
*
|
|
603
|
-
* @
|
|
603
|
+
* @public
|
|
604
604
|
*/
|
|
605
605
|
export declare interface ExecutableCode {
|
|
606
606
|
/**
|
|
@@ -616,7 +616,7 @@ export declare interface ExecutableCode {
|
|
|
616
616
|
/**
|
|
617
617
|
* Represents the code that is executed by the model.
|
|
618
618
|
*
|
|
619
|
-
* @
|
|
619
|
+
* @public
|
|
620
620
|
*/
|
|
621
621
|
export declare interface ExecutableCodePart {
|
|
622
622
|
text?: never;
|
|
@@ -1924,7 +1924,7 @@ export declare class IntegerSchema extends Schema {
|
|
|
1924
1924
|
/**
|
|
1925
1925
|
* The programming language of the code.
|
|
1926
1926
|
*
|
|
1927
|
-
* @
|
|
1927
|
+
* @public
|
|
1928
1928
|
*/
|
|
1929
1929
|
export declare const Language: {
|
|
1930
1930
|
UNSPECIFIED: string;
|
|
@@ -1934,7 +1934,7 @@ export declare const Language: {
|
|
|
1934
1934
|
/**
|
|
1935
1935
|
* The programming language of the code.
|
|
1936
1936
|
*
|
|
1937
|
-
* @
|
|
1937
|
+
* @public
|
|
1938
1938
|
*/
|
|
1939
1939
|
export declare type Language = (typeof Language)[keyof typeof Language];
|
|
1940
1940
|
|
|
@@ -2455,7 +2455,7 @@ export declare interface OnDeviceParams {
|
|
|
2455
2455
|
/**
|
|
2456
2456
|
* Represents the result of the code execution.
|
|
2457
2457
|
*
|
|
2458
|
-
* @
|
|
2458
|
+
* @public
|
|
2459
2459
|
*/
|
|
2460
2460
|
export declare const Outcome: {
|
|
2461
2461
|
UNSPECIFIED: string;
|
|
@@ -2467,7 +2467,7 @@ export declare const Outcome: {
|
|
|
2467
2467
|
/**
|
|
2468
2468
|
* Represents the result of the code execution.
|
|
2469
2469
|
*
|
|
2470
|
-
* @
|
|
2470
|
+
* @public
|
|
2471
2471
|
*/
|
|
2472
2472
|
export declare type Outcome = (typeof Outcome)[keyof typeof Outcome];
|
|
2473
2473
|
|
|
@@ -3223,7 +3223,7 @@ export declare interface URLContext {
|
|
|
3223
3223
|
/**
|
|
3224
3224
|
* Metadata related to {@link URLContextTool}.
|
|
3225
3225
|
*
|
|
3226
|
-
* @
|
|
3226
|
+
* @public
|
|
3227
3227
|
*/
|
|
3228
3228
|
export declare interface URLContextMetadata {
|
|
3229
3229
|
/**
|
|
@@ -3249,7 +3249,7 @@ export declare interface URLContextTool {
|
|
|
3249
3249
|
/**
|
|
3250
3250
|
* Metadata for a single URL retrieved by the {@link URLContextTool} tool.
|
|
3251
3251
|
*
|
|
3252
|
-
* @
|
|
3252
|
+
* @public
|
|
3253
3253
|
*/
|
|
3254
3254
|
export declare interface URLMetadata {
|
|
3255
3255
|
/**
|
|
@@ -3277,7 +3277,7 @@ export declare interface URLMetadata {
|
|
|
3277
3277
|
* <b>URL_RETRIEVAL_STATUS_UNSAFE:</b> The URL retrieval failed because the content is unsafe.
|
|
3278
3278
|
* <br/>
|
|
3279
3279
|
*
|
|
3280
|
-
* @
|
|
3280
|
+
* @public
|
|
3281
3281
|
*/
|
|
3282
3282
|
export declare const URLRetrievalStatus: {
|
|
3283
3283
|
/**
|
|
@@ -3317,7 +3317,7 @@ export declare const URLRetrievalStatus: {
|
|
|
3317
3317
|
* <b>URL_RETRIEVAL_STATUS_UNSAFE:</b> The URL retrieval failed because the content is unsafe.
|
|
3318
3318
|
* <br/>
|
|
3319
3319
|
*
|
|
3320
|
-
* @
|
|
3320
|
+
* @public
|
|
3321
3321
|
*/
|
|
3322
3322
|
export declare type URLRetrievalStatus = (typeof URLRetrievalStatus)[keyof typeof URLRetrievalStatus];
|
|
3323
3323
|
|
package/dist/ai.d.ts
CHANGED
|
@@ -462,7 +462,7 @@ export declare interface CitationMetadata {
|
|
|
462
462
|
/**
|
|
463
463
|
* The results of code execution run by the model.
|
|
464
464
|
*
|
|
465
|
-
* @
|
|
465
|
+
* @public
|
|
466
466
|
*/
|
|
467
467
|
export declare interface CodeExecutionResult {
|
|
468
468
|
/**
|
|
@@ -479,7 +479,7 @@ export declare interface CodeExecutionResult {
|
|
|
479
479
|
/**
|
|
480
480
|
* Represents the code execution result from the model.
|
|
481
481
|
*
|
|
482
|
-
* @
|
|
482
|
+
* @public
|
|
483
483
|
*/
|
|
484
484
|
export declare interface CodeExecutionResultPart {
|
|
485
485
|
text?: never;
|
|
@@ -655,7 +655,7 @@ export declare interface ErrorDetails {
|
|
|
655
655
|
/**
|
|
656
656
|
* An interface for executable code returned by the model.
|
|
657
657
|
*
|
|
658
|
-
* @
|
|
658
|
+
* @public
|
|
659
659
|
*/
|
|
660
660
|
export declare interface ExecutableCode {
|
|
661
661
|
/**
|
|
@@ -671,7 +671,7 @@ export declare interface ExecutableCode {
|
|
|
671
671
|
/**
|
|
672
672
|
* Represents the code that is executed by the model.
|
|
673
673
|
*
|
|
674
|
-
* @
|
|
674
|
+
* @public
|
|
675
675
|
*/
|
|
676
676
|
export declare interface ExecutableCodePart {
|
|
677
677
|
text?: never;
|
|
@@ -2054,7 +2054,7 @@ export declare class IntegerSchema extends Schema {
|
|
|
2054
2054
|
/**
|
|
2055
2055
|
* The programming language of the code.
|
|
2056
2056
|
*
|
|
2057
|
-
* @
|
|
2057
|
+
* @public
|
|
2058
2058
|
*/
|
|
2059
2059
|
export declare const Language: {
|
|
2060
2060
|
UNSPECIFIED: string;
|
|
@@ -2064,7 +2064,7 @@ export declare const Language: {
|
|
|
2064
2064
|
/**
|
|
2065
2065
|
* The programming language of the code.
|
|
2066
2066
|
*
|
|
2067
|
-
* @
|
|
2067
|
+
* @public
|
|
2068
2068
|
*/
|
|
2069
2069
|
export declare type Language = (typeof Language)[keyof typeof Language];
|
|
2070
2070
|
|
|
@@ -2601,7 +2601,7 @@ export declare interface OnDeviceParams {
|
|
|
2601
2601
|
/**
|
|
2602
2602
|
* Represents the result of the code execution.
|
|
2603
2603
|
*
|
|
2604
|
-
* @
|
|
2604
|
+
* @public
|
|
2605
2605
|
*/
|
|
2606
2606
|
export declare const Outcome: {
|
|
2607
2607
|
UNSPECIFIED: string;
|
|
@@ -2613,7 +2613,7 @@ export declare const Outcome: {
|
|
|
2613
2613
|
/**
|
|
2614
2614
|
* Represents the result of the code execution.
|
|
2615
2615
|
*
|
|
2616
|
-
* @
|
|
2616
|
+
* @public
|
|
2617
2617
|
*/
|
|
2618
2618
|
export declare type Outcome = (typeof Outcome)[keyof typeof Outcome];
|
|
2619
2619
|
|
|
@@ -3386,7 +3386,7 @@ export declare interface URLContext {
|
|
|
3386
3386
|
/**
|
|
3387
3387
|
* Metadata related to {@link URLContextTool}.
|
|
3388
3388
|
*
|
|
3389
|
-
* @
|
|
3389
|
+
* @public
|
|
3390
3390
|
*/
|
|
3391
3391
|
export declare interface URLContextMetadata {
|
|
3392
3392
|
/**
|
|
@@ -3412,7 +3412,7 @@ export declare interface URLContextTool {
|
|
|
3412
3412
|
/**
|
|
3413
3413
|
* Metadata for a single URL retrieved by the {@link URLContextTool} tool.
|
|
3414
3414
|
*
|
|
3415
|
-
* @
|
|
3415
|
+
* @public
|
|
3416
3416
|
*/
|
|
3417
3417
|
export declare interface URLMetadata {
|
|
3418
3418
|
/**
|
|
@@ -3440,7 +3440,7 @@ export declare interface URLMetadata {
|
|
|
3440
3440
|
* <b>URL_RETRIEVAL_STATUS_UNSAFE:</b> The URL retrieval failed because the content is unsafe.
|
|
3441
3441
|
* <br/>
|
|
3442
3442
|
*
|
|
3443
|
-
* @
|
|
3443
|
+
* @public
|
|
3444
3444
|
*/
|
|
3445
3445
|
export declare const URLRetrievalStatus: {
|
|
3446
3446
|
/**
|
|
@@ -3480,7 +3480,7 @@ export declare const URLRetrievalStatus: {
|
|
|
3480
3480
|
* <b>URL_RETRIEVAL_STATUS_UNSAFE:</b> The URL retrieval failed because the content is unsafe.
|
|
3481
3481
|
* <br/>
|
|
3482
3482
|
*
|
|
3483
|
-
* @
|
|
3483
|
+
* @public
|
|
3484
3484
|
*/
|
|
3485
3485
|
export declare type URLRetrievalStatus = (typeof URLRetrievalStatus)[keyof typeof URLRetrievalStatus];
|
|
3486
3486
|
|
package/dist/esm/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import { FirebaseError, Deferred, getModularInstance } from '@firebase/util';
|
|
|
4
4
|
import { Logger } from '@firebase/logger';
|
|
5
5
|
|
|
6
6
|
var name = "@firebase/ai";
|
|
7
|
-
var version = "2.7.0-canary.
|
|
7
|
+
var version = "2.7.0-canary.b10a296fa";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -392,7 +392,7 @@ const InferenceSource = {
|
|
|
392
392
|
/**
|
|
393
393
|
* Represents the result of the code execution.
|
|
394
394
|
*
|
|
395
|
-
* @
|
|
395
|
+
* @public
|
|
396
396
|
*/
|
|
397
397
|
const Outcome = {
|
|
398
398
|
UNSPECIFIED: 'OUTCOME_UNSPECIFIED',
|
|
@@ -403,7 +403,7 @@ const Outcome = {
|
|
|
403
403
|
/**
|
|
404
404
|
* The programming language of the code.
|
|
405
405
|
*
|
|
406
|
-
* @
|
|
406
|
+
* @public
|
|
407
407
|
*/
|
|
408
408
|
const Language = {
|
|
409
409
|
UNSPECIFIED: 'LANGUAGE_UNSPECIFIED',
|
|
@@ -454,7 +454,7 @@ const ThinkingLevel = {
|
|
|
454
454
|
* <b>URL_RETRIEVAL_STATUS_UNSAFE:</b> The URL retrieval failed because the content is unsafe.
|
|
455
455
|
* <br/>
|
|
456
456
|
*
|
|
457
|
-
* @
|
|
457
|
+
* @public
|
|
458
458
|
*/
|
|
459
459
|
const URLRetrievalStatus = {
|
|
460
460
|
/**
|