@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.d.mts CHANGED
@@ -1047,8 +1047,16 @@ declare namespace Server {
1047
1047
  * Me
1048
1048
  */
1049
1049
  type Me = {
1050
- user_email: string;
1051
- user_name: string;
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
- user_email: string;
1051
- user_name: string;
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.