@dxos/client-services 0.6.14-staging.77003c1 → 0.6.14-staging.7b35391

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.
@@ -397,7 +397,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
397
397
  import { TRACE_PROCESSOR } from "@dxos/tracing";
398
398
 
399
399
  // packages/sdk/client-services/src/version.ts
400
- var DXOS_VERSION = "0.6.14-staging.77003c1";
400
+ var DXOS_VERSION = "0.6.14-staging.7b35391";
401
401
 
402
402
  // packages/sdk/client-services/src/packlets/services/platform.ts
403
403
  import { Platform } from "@dxos/protocols/proto/dxos/client/services";
@@ -6828,8 +6828,8 @@ var InvitationsManager = class {
6828
6828
  this._persistentInvitationsLoadedEvent.once(ctx, () => callback());
6829
6829
  }
6830
6830
  }
6831
- _createInvitation(protocol, options) {
6832
- const { invitationId = PublicKey12.random().toHex(), type = Invitation9.Type.INTERACTIVE, authMethod = Invitation9.AuthMethod.SHARED_SECRET, state = Invitation9.State.INIT, timeout = INVITATION_TIMEOUT2, swarmKey = PublicKey12.random(), persistent = options?.authMethod !== Invitation9.AuthMethod.KNOWN_PUBLIC_KEY, created = /* @__PURE__ */ new Date(), guestKeypair = void 0, role = SpaceMember7.Role.ADMIN, lifetime = 86400, multiUse = false } = options ?? {};
6831
+ _createInvitation(protocol, _options) {
6832
+ const { invitationId = PublicKey12.random().toHex(), type = Invitation9.Type.INTERACTIVE, authMethod = Invitation9.AuthMethod.SHARED_SECRET, state = Invitation9.State.INIT, timeout = INVITATION_TIMEOUT2, swarmKey = PublicKey12.random(), persistent = _options?.authMethod !== Invitation9.AuthMethod.KNOWN_PUBLIC_KEY, created = /* @__PURE__ */ new Date(), guestKeypair = void 0, role = SpaceMember7.Role.ADMIN, lifetime = 86400, multiUse = false, ...options } = _options ?? {};
6833
6833
  const authCode = options?.authCode ?? (authMethod === Invitation9.AuthMethod.SHARED_SECRET ? generatePasscode(AUTHENTICATION_CODE_LENGTH) : void 0);
6834
6834
  return {
6835
6835
  invitationId,
@@ -6846,6 +6846,7 @@ var InvitationsManager = class {
6846
6846
  role,
6847
6847
  multiUse,
6848
6848
  delegationCredentialId: options?.delegationCredentialId,
6849
+ ...options,
6849
6850
  ...protocol.getInvitationContext()
6850
6851
  };
6851
6852
  }
@@ -6858,14 +6859,14 @@ var InvitationsManager = class {
6858
6859
  }
6859
6860
  }, {
6860
6861
  F: __dxlog_file24,
6861
- L: 234
6862
+ L: 236
6862
6863
  });
6863
6864
  ctx.onDispose(() => {
6864
6865
  log21("complete", {
6865
6866
  ...handler.toJSON()
6866
6867
  }, {
6867
6868
  F: __dxlog_file24,
6868
- L: 241,
6869
+ L: 243,
6869
6870
  S: this,
6870
6871
  C: (f, a) => f(...a)
6871
6872
  });
@@ -6898,7 +6899,7 @@ var InvitationsManager = class {
6898
6899
  ...handler.toJSON()
6899
6900
  }, {
6900
6901
  F: __dxlog_file24,
6901
- L: 261,
6902
+ L: 263,
6902
6903
  S: this,
6903
6904
  C: (f, a) => f(...a)
6904
6905
  });
@@ -6909,7 +6910,7 @@ var InvitationsManager = class {
6909
6910
  } else {
6910
6911
  log21.warn("auth failed", err, {
6911
6912
  F: __dxlog_file24,
6912
- L: 264,
6913
+ L: 266,
6913
6914
  S: this,
6914
6915
  C: (f, a) => f(...a)
6915
6916
  });
@@ -6922,14 +6923,14 @@ var InvitationsManager = class {
6922
6923
  }
6923
6924
  }, {
6924
6925
  F: __dxlog_file24,
6925
- L: 258
6926
+ L: 260
6926
6927
  });
6927
6928
  ctx.onDispose(() => {
6928
6929
  log21("complete", {
6929
6930
  ...handler.toJSON()
6930
6931
  }, {
6931
6932
  F: __dxlog_file24,
6932
- L: 271,
6933
+ L: 273,
6933
6934
  S: this,
6934
6935
  C: (f, a) => f(...a)
6935
6936
  });
@@ -6974,7 +6975,7 @@ var InvitationsManager = class {
6974
6975
  } catch (err) {
6975
6976
  log21.catch(err, void 0, {
6976
6977
  F: __dxlog_file24,
6977
- L: 307,
6978
+ L: 309,
6978
6979
  S: this,
6979
6980
  C: (f, a) => f(...a)
6980
6981
  });
@@ -9122,4 +9123,4 @@ export {
9122
9123
  importProfileData,
9123
9124
  ClientServicesHost
9124
9125
  };
9125
- //# sourceMappingURL=chunk-LNNYTY5K.mjs.map
9126
+ //# sourceMappingURL=chunk-GUY4SCPF.mjs.map