@dxos/client-services 0.1.58-main.ffbb8a1 → 0.1.58-next.3349da8

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.
@@ -2165,6 +2165,9 @@ var InvitationsServiceImpl = class {
2165
2165
  }, () => {
2166
2166
  close();
2167
2167
  this._createInvitations.delete(invitation.get().invitationId);
2168
+ if (invitation.get().type !== import_services4.Invitation.Type.MULTIUSE) {
2169
+ this._removedCreated.emit(invitation.get());
2170
+ }
2168
2171
  });
2169
2172
  });
2170
2173
  }
@@ -2187,19 +2190,22 @@ var InvitationsServiceImpl = class {
2187
2190
  }, () => {
2188
2191
  close();
2189
2192
  this._acceptInvitations.delete(invitation.get().invitationId);
2193
+ if (invitation.get().type !== import_services4.Invitation.Type.MULTIUSE) {
2194
+ this._removedAccepted.emit(invitation.get());
2195
+ }
2190
2196
  });
2191
2197
  });
2192
2198
  }
2193
2199
  async authenticate({ invitationId, authCode }) {
2194
2200
  (0, import_log6.log)("authenticating...", void 0, {
2195
2201
  F: __dxlog_file8,
2196
- L: 102,
2202
+ L: 108,
2197
2203
  S: this,
2198
2204
  C: (f, a) => f(...a)
2199
2205
  });
2200
2206
  (0, import_invariant7.invariant)(invitationId, void 0, {
2201
2207
  F: __dxlog_file8,
2202
- L: 103,
2208
+ L: 109,
2203
2209
  S: this,
2204
2210
  A: [
2205
2211
  "invitationId",
@@ -2212,7 +2218,7 @@ var InvitationsServiceImpl = class {
2212
2218
  invitationId
2213
2219
  }, {
2214
2220
  F: __dxlog_file8,
2215
- L: 106,
2221
+ L: 112,
2216
2222
  S: this,
2217
2223
  C: (f, a) => f(...a)
2218
2224
  });
@@ -2223,13 +2229,13 @@ var InvitationsServiceImpl = class {
2223
2229
  async cancelInvitation({ invitationId }) {
2224
2230
  (0, import_log6.log)("deleting...", void 0, {
2225
2231
  F: __dxlog_file8,
2226
- L: 113,
2232
+ L: 119,
2227
2233
  S: this,
2228
2234
  C: (f, a) => f(...a)
2229
2235
  });
2230
2236
  (0, import_invariant7.invariant)(invitationId, void 0, {
2231
2237
  F: __dxlog_file8,
2232
- L: 114,
2238
+ L: 120,
2233
2239
  S: this,
2234
2240
  A: [
2235
2241
  "invitationId",
@@ -2251,7 +2257,7 @@ var InvitationsServiceImpl = class {
2251
2257
  invitationId
2252
2258
  }, {
2253
2259
  F: __dxlog_file8,
2254
- L: 126,
2260
+ L: 132,
2255
2261
  S: this,
2256
2262
  C: (f, a) => f(...a)
2257
2263
  });
@@ -2526,7 +2532,7 @@ var import_protocols5 = require("@dxos/protocols");
2526
2532
  var import_services6 = require("@dxos/protocols/proto/dxos/client/services");
2527
2533
 
2528
2534
  // packages/sdk/client-services/src/version.ts
2529
- var DXOS_VERSION = "0.1.58-main.ffbb8a1";
2535
+ var DXOS_VERSION = "0.1.58-next.3349da8";
2530
2536
 
2531
2537
  // packages/sdk/client-services/src/packlets/services/platform.ts
2532
2538
  var getPlatform = () => {
@@ -3064,6 +3070,7 @@ var DataSpace = class DataSpace2 {
3064
3070
  await this._open();
3065
3071
  }
3066
3072
  async _open() {
3073
+ await this._gossip.open();
3067
3074
  await this._notarizationPlugin.open();
3068
3075
  await this._inner.spaceState.addCredentialProcessor(this._notarizationPlugin);
3069
3076
  await this._inner.open(new import_context7.Context());
@@ -3072,7 +3079,7 @@ var DataSpace = class DataSpace2 {
3072
3079
  state: import_services7.SpaceState[this._state]
3073
3080
  }, {
3074
3081
  F: __dxlog_file12,
3075
- L: 158,
3082
+ L: 159,
3076
3083
  S: this,
3077
3084
  C: (f, a) => f(...a)
3078
3085
  });
@@ -3090,7 +3097,7 @@ var DataSpace = class DataSpace2 {
3090
3097
  state: import_services7.SpaceState[this._state]
3091
3098
  }, {
3092
3099
  F: __dxlog_file12,
3093
- L: 172,
3100
+ L: 173,
3094
3101
  S: this,
3095
3102
  C: (f, a) => f(...a)
3096
3103
  });
@@ -3101,6 +3108,7 @@ var DataSpace = class DataSpace2 {
3101
3108
  await this._inner.spaceState.removeCredentialProcessor(this._notarizationPlugin);
3102
3109
  await this._notarizationPlugin.close();
3103
3110
  await this._presence.destroy();
3111
+ await this._gossip.close();
3104
3112
  }
3105
3113
  async postMessage(channel, message) {
3106
3114
  return this._gossip.postMessage(channel, message);
@@ -3120,7 +3128,7 @@ var DataSpace = class DataSpace2 {
3120
3128
  if (err instanceof import_errors3.CancelledError) {
3121
3129
  (0, import_log10.log)("data pipeline initialization cancelled", err, {
3122
3130
  F: __dxlog_file12,
3123
- L: 203,
3131
+ L: 205,
3124
3132
  S: this,
3125
3133
  C: (f, a) => f(...a)
3126
3134
  });
@@ -3128,7 +3136,7 @@ var DataSpace = class DataSpace2 {
3128
3136
  }
3129
3137
  import_log10.log.error("Error initializing data pipeline", err, {
3130
3138
  F: __dxlog_file12,
3131
- L: 207,
3139
+ L: 209,
3132
3140
  S: this,
3133
3141
  C: (f, a) => f(...a)
3134
3142
  });
@@ -3137,7 +3145,7 @@ var DataSpace = class DataSpace2 {
3137
3145
  state: import_services7.SpaceState[this._state]
3138
3146
  }, {
3139
3147
  F: __dxlog_file12,
3140
- L: 209,
3148
+ L: 211,
3141
3149
  S: this,
3142
3150
  C: (f, a) => f(...a)
3143
3151
  });
@@ -3157,7 +3165,7 @@ var DataSpace = class DataSpace2 {
3157
3165
  state: import_services7.SpaceState[this._state]
3158
3166
  }, {
3159
3167
  F: __dxlog_file12,
3160
- L: 225,
3168
+ L: 227,
3161
3169
  S: this,
3162
3170
  C: (f, a) => f(...a)
3163
3171
  });
@@ -3168,7 +3176,7 @@ var DataSpace = class DataSpace2 {
3168
3176
  await (0, import_context7.cancelWithContext)(this._ctx, this._inner.dataPipeline.ensureEpochInitialized());
3169
3177
  (0, import_log10.log)("waiting for data pipeline to reach target timeframe", void 0, {
3170
3178
  F: __dxlog_file12,
3171
- L: 239,
3179
+ L: 241,
3172
3180
  S: this,
3173
3181
  C: (f, a) => f(...a)
3174
3182
  });
@@ -3179,7 +3187,7 @@ var DataSpace = class DataSpace2 {
3179
3187
  this.metrics.dataPipelineReady = /* @__PURE__ */ new Date();
3180
3188
  (0, import_log10.log)("data pipeline ready", void 0, {
3181
3189
  F: __dxlog_file12,
3182
- L: 248,
3190
+ L: 250,
3183
3191
  S: this,
3184
3192
  C: (f, a) => f(...a)
3185
3193
  });
@@ -3189,7 +3197,7 @@ var DataSpace = class DataSpace2 {
3189
3197
  state: import_services7.SpaceState[this._state]
3190
3198
  }, {
3191
3199
  F: __dxlog_file12,
3192
- L: 252,
3200
+ L: 254,
3193
3201
  S: this,
3194
3202
  C: (f, a) => f(...a)
3195
3203
  });
@@ -3205,7 +3213,7 @@ var DataSpace = class DataSpace2 {
3205
3213
  await this._createWritableFeeds();
3206
3214
  (0, import_log10.log)("writable feeds created", void 0, {
3207
3215
  F: __dxlog_file12,
3208
- L: 268,
3216
+ L: 270,
3209
3217
  S: this,
3210
3218
  C: (f, a) => f(...a)
3211
3219
  });
@@ -3310,7 +3318,7 @@ var DataSpace = class DataSpace2 {
3310
3318
  state: import_services7.SpaceState[this._state]
3311
3319
  }, {
3312
3320
  F: __dxlog_file12,
3313
- L: 384,
3321
+ L: 386,
3314
3322
  S: this,
3315
3323
  C: (f, a) => f(...a)
3316
3324
  });