@ecency/sdk 2.3.50 → 2.3.52

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.
@@ -19,6 +19,7 @@ interface AiGenerationRequest {
19
19
  prompt: string;
20
20
  aspect_ratio?: string;
21
21
  power?: number;
22
+ idempotency_key?: string;
22
23
  }
23
24
  interface AiGenerationResponse {
24
25
  url: string;
@@ -27,6 +28,7 @@ interface AiGenerationResponse {
27
28
  power: number;
28
29
  cost: number;
29
30
  generation_id: string;
31
+ idempotent_replay?: boolean;
30
32
  }
31
33
  interface AiAssistPrice {
32
34
  action: string;
@@ -65,6 +67,7 @@ interface GenerateImageParams {
65
67
  prompt: string;
66
68
  aspect_ratio?: string;
67
69
  power?: number;
70
+ idempotency_key?: string;
68
71
  }
69
72
  declare function useGenerateImage(username: string | undefined, accessToken: string | undefined): _tanstack_react_query.UseMutationResult<AiGenerationResponse, Error, GenerateImageParams, unknown>;
70
73
 
@@ -6350,7 +6353,7 @@ declare function getSpotlightsQueryOptions(_accessToken?: string): _tanstack_rea
6350
6353
  * markAsRead.mutate({});
6351
6354
  * ```
6352
6355
  */
6353
- declare function useMarkNotificationsRead(username: string | undefined, code: string | undefined, onSuccess?: (unreadCount?: number) => void, onError?: (e: Error) => void): _tanstack_react_query.UseMutationResult<Record<string, unknown>, Error, {
6356
+ declare function useMarkNotificationsRead(username: string | undefined, code: string | undefined, onSuccess?: (unreadCount?: number) => void, onError?: (e: Error) => void): _tanstack_react_query.UseMutationResult<Record<string, unknown> | undefined, Error, {
6354
6357
  id?: string;
6355
6358
  }, {
6356
6359
  previousData: [readonly unknown[], unknown][];