@deepdesk/deepdesk-sdk 19.6.2-beta.0 → 19.6.2-beta.2

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
@@ -2806,6 +2806,28 @@ declare class DeepdeskSDK {
2806
2806
  * ```
2807
2807
  */
2808
2808
  getAgentSettings<T = unknown>(): Promise<T>;
2809
+ /**
2810
+ * Retrieves the currently logged-in agent's own Deepdesk profile.
2811
+ *
2812
+ * This is the agent's Deepdesk-side identity, including the display name
2813
+ * (`nickname`) they configured in Studio under Profile settings. Platform
2814
+ * integrations should prefer this `nickname` over any name supplied by the
2815
+ * host platform (e.g. Genesys Cloud, LiveEngage) when populating
2816
+ * `agentNickname` via `setAgentInfo`, since the agent's Deepdesk profile
2817
+ * setting is the one they explicitly chose to expose to customers.
2818
+ *
2819
+ * @returns Promise that resolves to the agent's Deepdesk profile
2820
+ *
2821
+ * @example
2822
+ * ```typescript
2823
+ * const me = await sdk.getMe();
2824
+ * await sdk.setAgentInfo({
2825
+ * agentId: platformAgent.id,
2826
+ * agentNickname: me.nickname || platformAgent.name,
2827
+ * });
2828
+ * ```
2829
+ */
2830
+ getMe(): Promise<CamelCaseKeys<Server.Me>>;
2809
2831
  /**
2810
2832
  * Refreshes suggestions based on the current conversation.
2811
2833
  *
package/dist/index.d.ts CHANGED
@@ -2806,6 +2806,28 @@ declare class DeepdeskSDK {
2806
2806
  * ```
2807
2807
  */
2808
2808
  getAgentSettings<T = unknown>(): Promise<T>;
2809
+ /**
2810
+ * Retrieves the currently logged-in agent's own Deepdesk profile.
2811
+ *
2812
+ * This is the agent's Deepdesk-side identity, including the display name
2813
+ * (`nickname`) they configured in Studio under Profile settings. Platform
2814
+ * integrations should prefer this `nickname` over any name supplied by the
2815
+ * host platform (e.g. Genesys Cloud, LiveEngage) when populating
2816
+ * `agentNickname` via `setAgentInfo`, since the agent's Deepdesk profile
2817
+ * setting is the one they explicitly chose to expose to customers.
2818
+ *
2819
+ * @returns Promise that resolves to the agent's Deepdesk profile
2820
+ *
2821
+ * @example
2822
+ * ```typescript
2823
+ * const me = await sdk.getMe();
2824
+ * await sdk.setAgentInfo({
2825
+ * agentId: platformAgent.id,
2826
+ * agentNickname: me.nickname || platformAgent.name,
2827
+ * });
2828
+ * ```
2829
+ */
2830
+ getMe(): Promise<CamelCaseKeys<Server.Me>>;
2809
2831
  /**
2810
2832
  * Refreshes suggestions based on the current conversation.
2811
2833
  *