@firebase/ai 2.1.0-canary.02280d747 → 2.1.0-canary.2058432e6

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.
@@ -3,13 +3,10 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import { AIService } from './service';
7
- import { ComponentContainer, InstanceFactoryOptions } from '@firebase/component';
8
6
  declare global {
9
7
  interface Window {
10
8
  [key: string]: unknown;
11
9
  }
12
10
  }
13
- export declare function factory(container: ComponentContainer, { instanceIdentifier }: InstanceFactoryOptions): AIService;
14
11
  export * from './api';
15
12
  export * from './public-types';
@@ -33,7 +33,7 @@ export declare abstract class AIModel {
33
33
  /**
34
34
  * @internal
35
35
  */
36
- _apiSettings: ApiSettings;
36
+ protected _apiSettings: ApiSettings;
37
37
  /**
38
38
  * Constructs a new instance of the {@link AIModel} class.
39
39
  *
@@ -35,10 +35,6 @@ export interface AI {
35
35
  * Vertex AI Gemini API (using {@link VertexAIBackend}).
36
36
  */
37
37
  backend: Backend;
38
- /**
39
- * Options applied to this {@link AI} instance.
40
- */
41
- options?: AIOptions;
42
38
  /**
43
39
  * @deprecated use `AI.backend.location` instead.
44
40
  *
@@ -87,11 +83,6 @@ export type BackendType = (typeof BackendType)[keyof typeof BackendType];
87
83
  export interface AIOptions {
88
84
  /**
89
85
  * The backend configuration to use for the AI service instance.
90
- * Defaults to the Gemini Developer API backend ({@link GoogleAIBackend}).
91
86
  */
92
- backend?: Backend;
93
- /**
94
- * Whether to use App Check limited use tokens. Defaults to false.
95
- */
96
- useLimitedUseAppCheckTokens?: boolean;
87
+ backend: Backend;
97
88
  }
@@ -15,7 +15,7 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { FirebaseApp, _FirebaseService } from '@firebase/app';
18
- import { AI, AIOptions } from './public-types';
18
+ import { AI } from './public-types';
19
19
  import { AppCheckInternalComponentName, FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
20
20
  import { Provider } from '@firebase/component';
21
21
  import { FirebaseAuthInternal, FirebaseAuthInternalName } from '@firebase/auth-interop-types';
@@ -25,10 +25,7 @@ export declare class AIService implements AI, _FirebaseService {
25
25
  backend: Backend;
26
26
  auth: FirebaseAuthInternal | null;
27
27
  appCheck: FirebaseAppCheckInternal | null;
28
- _options?: Omit<AIOptions, 'backend'>;
29
28
  location: string;
30
29
  constructor(app: FirebaseApp, backend: Backend, authProvider?: Provider<FirebaseAuthInternalName>, appCheckProvider?: Provider<AppCheckInternalComponentName>);
31
30
  _delete(): Promise<void>;
32
- set options(optionsToSet: AIOptions);
33
- get options(): AIOptions | undefined;
34
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/ai",
3
- "version": "2.1.0-canary.02280d747",
3
+ "version": "2.1.0-canary.2058432e6",
4
4
  "description": "The Firebase AI SDK",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "engines": {
@@ -45,19 +45,19 @@
45
45
  "trusted-type-check": "tsec -p tsconfig.json --noEmit"
46
46
  },
47
47
  "peerDependencies": {
48
- "@firebase/app": "0.14.1-canary.02280d747",
49
- "@firebase/app-types": "0.9.3-canary.02280d747"
48
+ "@firebase/app": "0.14.1-canary.2058432e6",
49
+ "@firebase/app-types": "0.9.3-canary.2058432e6"
50
50
  },
51
51
  "dependencies": {
52
- "@firebase/app-check-interop-types": "0.3.3-canary.02280d747",
53
- "@firebase/component": "0.7.0-canary.02280d747",
54
- "@firebase/logger": "0.5.0-canary.02280d747",
55
- "@firebase/util": "1.13.0-canary.02280d747",
52
+ "@firebase/app-check-interop-types": "0.3.3-canary.2058432e6",
53
+ "@firebase/component": "0.7.0-canary.2058432e6",
54
+ "@firebase/logger": "0.5.0-canary.2058432e6",
55
+ "@firebase/util": "1.13.0-canary.2058432e6",
56
56
  "tslib": "^2.1.0"
57
57
  },
58
58
  "license": "Apache-2.0",
59
59
  "devDependencies": {
60
- "@firebase/app": "0.14.1-canary.02280d747",
60
+ "@firebase/app": "0.14.1-canary.2058432e6",
61
61
  "@rollup/plugin-json": "6.1.0",
62
62
  "rollup": "2.79.2",
63
63
  "rollup-plugin-replace": "2.2.0",