@supernova-studio/client 1.32.1 → 1.33.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/dist/index.mjs CHANGED
@@ -9226,6 +9226,13 @@ var DTOFeatureIterationTag = z312.object({
9226
9226
  */
9227
9227
  iterationId: Id
9228
9228
  });
9229
+ var DTOFeatureSandbox = z312.object({
9230
+ id: Id,
9231
+ url: z312.string(),
9232
+ staticPreviewUrl: z312.string().optional(),
9233
+ parentMessageId: Id.nullable(),
9234
+ currentIterationId: Id
9235
+ });
9229
9236
  var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
9230
9237
  id: true,
9231
9238
  body: true,
@@ -17183,6 +17190,7 @@ var FeatureRoomBaseYDoc = class {
17183
17190
  const iterationTags = this.getIterationTags();
17184
17191
  const agentResponseTrackers = this.getAgentResponseTrackers();
17185
17192
  const executedTransactionIds = this.getExecutedTransactionIds();
17193
+ const sandboxes = this.getSandboxes();
17186
17194
  const isLoaded = true;
17187
17195
  return {
17188
17196
  isLoaded,
@@ -17190,7 +17198,8 @@ var FeatureRoomBaseYDoc = class {
17190
17198
  artifacts,
17191
17199
  iterationTags,
17192
17200
  agentResponseTrackers,
17193
- executedTransactionIds
17201
+ executedTransactionIds,
17202
+ sandboxes
17194
17203
  };
17195
17204
  }
17196
17205
  //
@@ -17275,6 +17284,21 @@ var FeatureRoomBaseYDoc = class {
17275
17284
  return this.yDoc.getArray("executedTransactionIds");
17276
17285
  }
17277
17286
  //
17287
+ // Sandboxes
17288
+ //
17289
+ getSandboxes() {
17290
+ return this.getObjects(this.sandboxesYMap, DTOFeatureSandbox);
17291
+ }
17292
+ updateSandboxes(sandboxes) {
17293
+ this.setObjects(this.sandboxesYMap, sandboxes);
17294
+ }
17295
+ deleteSandboxes(ids) {
17296
+ this.deleteObjects(this.sandboxesYMap, ids);
17297
+ }
17298
+ get sandboxesYMap() {
17299
+ return this.yDoc.getMap("sandboxes");
17300
+ }
17301
+ //
17278
17302
  // Utility methods
17279
17303
  //
17280
17304
  getObjects(map, schema) {
@@ -17307,6 +17331,8 @@ var BackendFeatureRoomYDoc = class {
17307
17331
  transaction.iterationTags && yDoc.updateIterationTags(transaction.iterationTags);
17308
17332
  transaction.agentResponseTrackerIdsToDelete && yDoc.deleteAgentResponseTrackers(transaction.agentResponseTrackerIdsToDelete);
17309
17333
  transaction.agentResponseTrackers && yDoc.updateAgentResponseTrackers(transaction.agentResponseTrackers);
17334
+ transaction.sandboxIdsToDelete && yDoc.deleteSandboxes(transaction.sandboxIdsToDelete);
17335
+ transaction.sandboxes && yDoc.updateSandboxes(transaction.sandboxes);
17310
17336
  transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
17311
17337
  });
17312
17338
  }
@@ -17360,11 +17386,11 @@ var FrontendFeatureRoomYDoc = class {
17360
17386
  }
17361
17387
  updateAgentResponseTracker(tracker) {
17362
17388
  const doc = new FeatureRoomBaseYDoc(this.yDoc);
17363
- doc.updateAgentResponseTrackers([tracker]);
17389
+ return doc.updateAgentResponseTrackers([tracker]);
17364
17390
  }
17365
17391
  deleteAgentResponseTrackers(id) {
17366
17392
  const doc = new FeatureRoomBaseYDoc(this.yDoc);
17367
- doc.deleteAgentResponseTrackers([id]);
17393
+ return doc.deleteAgentResponseTrackers([id]);
17368
17394
  }
17369
17395
  //
17370
17396
  // Utility Methods
@@ -18484,6 +18510,7 @@ export {
18484
18510
  DTOFeatureMessageSystemSender,
18485
18511
  DTOFeatureMessageUpdateInput,
18486
18512
  DTOFeatureMessageUserSender,
18513
+ DTOFeatureSandbox,
18487
18514
  DTOFigmaComponent,
18488
18515
  DTOFigmaComponentGroup,
18489
18516
  DTOFigmaComponentGroupListResponse,