@deepdesk/deepdesk-sdk 12.1.1-beta.2 → 12.1.1-beta.4
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.cjs.js +5 -5
- package/dist/index.d.mts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.esm.js +5 -5
- package/dist/index.iife.js +12 -12
- package/package.json +1 -1
- package/styles/index.js +1 -1
- package/styles.css +1 -1
- package/widget.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1047,8 +1047,16 @@ declare namespace Server {
|
|
|
1047
1047
|
* Me
|
|
1048
1048
|
*/
|
|
1049
1049
|
type Me = {
|
|
1050
|
-
|
|
1051
|
-
|
|
1050
|
+
id: string;
|
|
1051
|
+
permissions: string[];
|
|
1052
|
+
email: string;
|
|
1053
|
+
username: string;
|
|
1054
|
+
ui_config?: unknown;
|
|
1055
|
+
external_id?: string;
|
|
1056
|
+
nickname?: string;
|
|
1057
|
+
first_name?: string;
|
|
1058
|
+
last_name?: string;
|
|
1059
|
+
default_locale?: string;
|
|
1052
1060
|
};
|
|
1053
1061
|
/**
|
|
1054
1062
|
* A Deepdesk user
|
|
@@ -1294,6 +1302,8 @@ declare class DeepdeskAPI {
|
|
|
1294
1302
|
private preflight;
|
|
1295
1303
|
constructor(apiUrl: string, options?: DeepdeskAPIOptions);
|
|
1296
1304
|
createConversation(options: CreateConversationOptions): Promise<CamelCaseKeys<Server.Conversation>>;
|
|
1305
|
+
getMe(): Promise<CamelCaseKeys<Server.Me>>;
|
|
1306
|
+
patchMe(data: Partial<CamelCaseKeys<Server.Me>>): Promise<unknown>;
|
|
1297
1307
|
getProfile(profileCode: string): Promise<CamelCaseKeys<Server.Profile>>;
|
|
1298
1308
|
getKnowledgeAssistant(code: string): Promise<CamelCaseKeys<Server.KnowledgeAssistant>>;
|
|
1299
1309
|
getContentTypes(): Promise<CamelCaseKeys<Server.ContentType[]>>;
|
|
@@ -2167,12 +2177,6 @@ declare class DeepdeskSDK {
|
|
|
2167
2177
|
private shouldAbort;
|
|
2168
2178
|
login(): Promise<void>;
|
|
2169
2179
|
isLoggedIn(): Promise<boolean>;
|
|
2170
|
-
/**
|
|
2171
|
-
* Set platform id for current user
|
|
2172
|
-
* @param agentId - The platform id of the current user
|
|
2173
|
-
* @deprecated Since 7.14.6 in favor of setAgentInfo
|
|
2174
|
-
*/
|
|
2175
|
-
setPlatformAgentId(agentId: string): Promise<void>;
|
|
2176
2180
|
/**
|
|
2177
2181
|
* Check if conversation is supported by Deepdesk
|
|
2178
2182
|
* @param sessionId - A string with the conversation session ID.
|
package/dist/index.d.ts
CHANGED
|
@@ -1047,8 +1047,16 @@ declare namespace Server {
|
|
|
1047
1047
|
* Me
|
|
1048
1048
|
*/
|
|
1049
1049
|
type Me = {
|
|
1050
|
-
|
|
1051
|
-
|
|
1050
|
+
id: string;
|
|
1051
|
+
permissions: string[];
|
|
1052
|
+
email: string;
|
|
1053
|
+
username: string;
|
|
1054
|
+
ui_config?: unknown;
|
|
1055
|
+
external_id?: string;
|
|
1056
|
+
nickname?: string;
|
|
1057
|
+
first_name?: string;
|
|
1058
|
+
last_name?: string;
|
|
1059
|
+
default_locale?: string;
|
|
1052
1060
|
};
|
|
1053
1061
|
/**
|
|
1054
1062
|
* A Deepdesk user
|
|
@@ -1294,6 +1302,8 @@ declare class DeepdeskAPI {
|
|
|
1294
1302
|
private preflight;
|
|
1295
1303
|
constructor(apiUrl: string, options?: DeepdeskAPIOptions);
|
|
1296
1304
|
createConversation(options: CreateConversationOptions): Promise<CamelCaseKeys<Server.Conversation>>;
|
|
1305
|
+
getMe(): Promise<CamelCaseKeys<Server.Me>>;
|
|
1306
|
+
patchMe(data: Partial<CamelCaseKeys<Server.Me>>): Promise<unknown>;
|
|
1297
1307
|
getProfile(profileCode: string): Promise<CamelCaseKeys<Server.Profile>>;
|
|
1298
1308
|
getKnowledgeAssistant(code: string): Promise<CamelCaseKeys<Server.KnowledgeAssistant>>;
|
|
1299
1309
|
getContentTypes(): Promise<CamelCaseKeys<Server.ContentType[]>>;
|
|
@@ -2167,12 +2177,6 @@ declare class DeepdeskSDK {
|
|
|
2167
2177
|
private shouldAbort;
|
|
2168
2178
|
login(): Promise<void>;
|
|
2169
2179
|
isLoggedIn(): Promise<boolean>;
|
|
2170
|
-
/**
|
|
2171
|
-
* Set platform id for current user
|
|
2172
|
-
* @param agentId - The platform id of the current user
|
|
2173
|
-
* @deprecated Since 7.14.6 in favor of setAgentInfo
|
|
2174
|
-
*/
|
|
2175
|
-
setPlatformAgentId(agentId: string): Promise<void>;
|
|
2176
2180
|
/**
|
|
2177
2181
|
* Check if conversation is supported by Deepdesk
|
|
2178
2182
|
* @param sessionId - A string with the conversation session ID.
|