@sogni-ai/sogni-client 5.27.0 → 5.28.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/src/index.ts CHANGED
@@ -88,7 +88,7 @@ import type {
88
88
  TrialEligibility,
89
89
  TrialReasonCode
90
90
  } from './Account/subscription.types.js';
91
- import type { ToastMessage } from './ApiClient/WebSocketClient/events.js';
91
+ import type { AppAlert, AppAlertAction, ToastMessage } from './ApiClient/WebSocketClient/events.js';
92
92
  import type DataEntity from './lib/DataEntity.js';
93
93
  import {
94
94
  ControlNetName,
@@ -184,6 +184,7 @@ import {
184
184
  import StatsApi from './Stats/index.js';
185
185
  // Replay records
186
186
  import ReplayApi from './Replay/index.js';
187
+ import AnnouncementsApi from './Announcements/index.js';
187
188
  import {
188
189
  GetReplayRecordResult,
189
190
  ListReplayRecordsOptions,
@@ -365,6 +366,8 @@ export type {
365
366
  JobPreparation,
366
367
  RawProject,
367
368
  ToastMessage,
369
+ AppAlert,
370
+ AppAlertAction,
368
371
  DataEntity,
369
372
  InputMedia,
370
373
  AgentAttributionMetadata,
@@ -533,6 +536,14 @@ export class SogniClient {
533
536
  * identity.
534
537
  */
535
538
  replay: ReplayApi;
539
+ /**
540
+ * Admin-authored in-app announcements (`/v1/announcements`). Live delivery is
541
+ * the `appAlert` socket event — opt in with
542
+ * `socketEventSubscriptions: { appAlert: true }`. This group covers the two
543
+ * moments the socket cannot: reading what is live at launch, and dismissing an
544
+ * announcement per account so it stays dismissed on every device.
545
+ */
546
+ announcements: AnnouncementsApi;
536
547
 
537
548
  apiClient: ApiClient;
538
549
 
@@ -543,6 +554,7 @@ export class SogniClient {
543
554
  this.chat = new ChatApi(config, this.projects);
544
555
  this.workflows = new CreativeWorkflowsApi(config);
545
556
  this.replay = new ReplayApi(config);
557
+ this.announcements = new AnnouncementsApi(config);
546
558
 
547
559
  this.apiClient = config.client;
548
560
  }
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/generate-version.mjs — do not edit.
2
2
  // Source of truth: package.json version.
3
- export const LIB_VERSION = '5.27.0';
3
+ export const LIB_VERSION = '5.28.0';