@salesforce/sdk-chat 1.39.0 → 1.41.0
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/index.d.ts +9 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import type { ChatSDK } from "@salesforce/sdk-core";
|
|
1
|
+
import type { ChatSDK, SDKOptions } from "@salesforce/sdk-core";
|
|
2
|
+
/**
|
|
3
|
+
* Options for creating a ChatSDK instance.
|
|
4
|
+
*/
|
|
5
|
+
export interface ChatSDKOptions extends SDKOptions {
|
|
6
|
+
}
|
|
2
7
|
/**
|
|
3
8
|
* Create and initialize a ChatSDK instance based on the detected surface
|
|
4
9
|
*
|
|
10
|
+
* @param options - Optional configuration including surface override
|
|
5
11
|
* @returns Promise resolving to an initialized ChatSDK instance
|
|
6
12
|
*/
|
|
7
|
-
export declare function createChatSDK(): Promise<ChatSDK>;
|
|
8
|
-
export type { ChatMessage, ChatSDK, DisplayMode, ResourceRequest, ToolCall, ToolState, } from "@salesforce/sdk-core";
|
|
13
|
+
export declare function createChatSDK(options?: ChatSDKOptions): Promise<ChatSDK>;
|
|
14
|
+
export type { ChatMessage, ChatSDK, DisplayMode, ResourceRequest, SDKOptions, ToolCall, ToolState, } from "@salesforce/sdk-core";
|
|
9
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKhE;;GAEG;AAEH,MAAM,WAAW,cAAe,SAAQ,UAAU;CAAG;AAErD;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAe9E;AAED,YAAY,EACX,WAAW,EACX,OAAO,EACP,WAAW,EACX,eAAe,EACf,UAAU,EACV,QAAQ,EACR,SAAS,GACT,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,10 +10,11 @@ import { SalesforceACCChatSDK } from "./salesforce-acc.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* Create and initialize a ChatSDK instance based on the detected surface
|
|
12
12
|
*
|
|
13
|
+
* @param options - Optional configuration including surface override
|
|
13
14
|
* @returns Promise resolving to an initialized ChatSDK instance
|
|
14
15
|
*/
|
|
15
|
-
export async function createChatSDK() {
|
|
16
|
-
const surface = getSurface();
|
|
16
|
+
export async function createChatSDK(options) {
|
|
17
|
+
const surface = getSurface(options?.surface);
|
|
17
18
|
switch (surface) {
|
|
18
19
|
case Surface.OpenAI:
|
|
19
20
|
return new OpenAIChatSDK();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/sdk-chat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test:coverage": "vitest run --coverage"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@salesforce/sdk-core": "^1.
|
|
29
|
+
"@salesforce/sdk-core": "^1.41.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"vitest": "^4.0.6"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "8c3ab0e185b482b2331a3e8401fa7d49c751c647"
|
|
38
38
|
}
|