@smartspace/chat-ui 1.13.1-dev.8f17e91 → 1.13.1-dev.c162627

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.ts CHANGED
@@ -257,22 +257,22 @@ type MentionUser = {
257
257
  type Workspace = {
258
258
  id: string;
259
259
  name: string;
260
- tags?: string[];
261
- showSources?: boolean;
262
- dataSpaces?: unknown[];
260
+ tags: string[];
261
+ showSources: boolean;
262
+ dataSpaces: unknown[];
263
263
  createdByUserId?: string;
264
264
  createdAt?: Date;
265
265
  modifiedByUserId?: string;
266
266
  modifiedAt?: Date;
267
267
  favorited: boolean;
268
- summary?: string;
269
- firstPrompt?: string;
268
+ summary: string;
269
+ firstPrompt: string;
270
270
  outputSchema?: unknown;
271
- isPromptAndResponseLoggingEnabled?: boolean;
272
271
  inputs?: unknown;
272
+ isPromptAndResponseLoggingEnabled: boolean;
273
273
  variables: Variables;
274
274
  sandBoxThreadId?: string;
275
- supportsFiles?: boolean;
275
+ supportsFiles: boolean;
276
276
  avatarName: string;
277
277
  };
278
278
 
package/dist/index.js CHANGED
@@ -20132,21 +20132,23 @@ function mapWorkspaceDtoToModel(dto) {
20132
20132
  id: dto.id ?? "",
20133
20133
  name: dto.name ?? "",
20134
20134
  tags: dto.tags ?? [],
20135
- showSources: dto.showSources ?? void 0,
20136
- dataSpaces: Array.isArray(dto.dataSpaces) ? dto.dataSpaces : void 0,
20135
+ showSources: truthy(dto.showSources),
20136
+ dataSpaces: Array.isArray(dto.dataSpaces) ? dto.dataSpaces : [],
20137
20137
  createdByUserId: dto.createdByUserId ?? void 0,
20138
20138
  createdAt: dto.createdAt != null ? utcDate(dto.createdAt) : void 0,
20139
20139
  modifiedByUserId: dto.modifiedByUserId ?? void 0,
20140
20140
  modifiedAt: dto.modifiedAt != null ? utcDate(dto.modifiedAt) : void 0,
20141
20141
  favorited: truthy(dto.favorited),
20142
- summary: dto.summary ?? void 0,
20143
- firstPrompt: dto.firstPrompt ?? void 0,
20142
+ summary: dto.summary ?? "",
20143
+ firstPrompt: dto.firstPrompt ?? "",
20144
20144
  outputSchema: dto.outputSchema ?? void 0,
20145
- isPromptAndResponseLoggingEnabled: dto.isPromptAndResponseLoggingEnabled ?? void 0,
20146
20145
  inputs: dto.inputs ?? void 0,
20146
+ isPromptAndResponseLoggingEnabled: truthy(
20147
+ dto.isPromptAndResponseLoggingEnabled
20148
+ ),
20147
20149
  variables,
20148
20150
  sandBoxThreadId: dto.sandBoxThreadId ?? void 0,
20149
- supportsFiles: dto.supportsFiles ?? void 0,
20151
+ supportsFiles: truthy(dto.supportsFiles),
20150
20152
  avatarName: computeAvatar(dto.name ?? "")
20151
20153
  };
20152
20154
  }