@dxos/client-services 0.6.14-staging.8758a12 → 0.6.14-staging.9b873ce

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.
@@ -6,7 +6,7 @@ import {
6
6
  InvitationsManager,
7
7
  ServiceContext,
8
8
  SpaceInvitationProtocol
9
- } from "../chunk-5GW6342T.mjs";
9
+ } from "../chunk-Y7BJHI2Y.mjs";
10
10
 
11
11
  // packages/sdk/client-services/src/packlets/testing/credential-utils.ts
12
12
  import { createCredential } from "@dxos/credentials";
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_4B7346FH_exports = {};
30
- __export(chunk_4B7346FH_exports, {
29
+ var chunk_DPSYV3JU_exports = {};
30
+ __export(chunk_DPSYV3JU_exports, {
31
31
  ClientRpcServer: () => ClientRpcServer,
32
32
  ClientServicesHost: () => ClientServicesHost,
33
33
  DataSpace: () => DataSpace,
@@ -72,7 +72,7 @@ __export(chunk_4B7346FH_exports, {
72
72
  subscribeToSpaces: () => subscribeToSpaces,
73
73
  subscribeToSwarmInfo: () => subscribeToSwarmInfo
74
74
  });
75
- module.exports = __toCommonJS(chunk_4B7346FH_exports);
75
+ module.exports = __toCommonJS(chunk_DPSYV3JU_exports);
76
76
  var import_async = require("@dxos/async");
77
77
  var import_codec_protobuf = require("@dxos/codec-protobuf");
78
78
  var import_feed_store = require("@dxos/feed-store");
@@ -739,7 +739,7 @@ var DevtoolsServiceImpl = class {
739
739
  });
740
740
  }
741
741
  };
742
- var DXOS_VERSION = "0.6.14-staging.8758a12";
742
+ var DXOS_VERSION = "0.6.14-staging.9b873ce";
743
743
  var getPlatform = () => {
744
744
  if (process.browser) {
745
745
  if (typeof window !== "undefined") {
@@ -6816,8 +6816,8 @@ var InvitationsManager = class {
6816
6816
  this._persistentInvitationsLoadedEvent.once(ctx, () => callback());
6817
6817
  }
6818
6818
  }
6819
- _createInvitation(protocol, options) {
6820
- const { invitationId = import_keys14.PublicKey.random().toHex(), type = import_services18.Invitation.Type.INTERACTIVE, authMethod = import_services18.Invitation.AuthMethod.SHARED_SECRET, state = import_services18.Invitation.State.INIT, timeout = import_client_protocol6.INVITATION_TIMEOUT, swarmKey = import_keys14.PublicKey.random(), persistent = options?.authMethod !== import_services18.Invitation.AuthMethod.KNOWN_PUBLIC_KEY, created = /* @__PURE__ */ new Date(), guestKeypair = void 0, role = import_credentials21.SpaceMember.Role.ADMIN, lifetime = 86400, multiUse = false } = options ?? {};
6819
+ _createInvitation(protocol, _options) {
6820
+ const { invitationId = import_keys14.PublicKey.random().toHex(), type = import_services18.Invitation.Type.INTERACTIVE, authMethod = import_services18.Invitation.AuthMethod.SHARED_SECRET, state = import_services18.Invitation.State.INIT, timeout = import_client_protocol6.INVITATION_TIMEOUT, swarmKey = import_keys14.PublicKey.random(), persistent = _options?.authMethod !== import_services18.Invitation.AuthMethod.KNOWN_PUBLIC_KEY, created = /* @__PURE__ */ new Date(), guestKeypair = void 0, role = import_credentials21.SpaceMember.Role.ADMIN, lifetime = 86400, multiUse = false, ...options } = _options ?? {};
6821
6821
  const authCode = options?.authCode ?? (authMethod === import_services18.Invitation.AuthMethod.SHARED_SECRET ? (0, import_credentials20.generatePasscode)(import_client_protocol6.AUTHENTICATION_CODE_LENGTH) : void 0);
6822
6822
  return {
6823
6823
  invitationId,
@@ -6834,6 +6834,7 @@ var InvitationsManager = class {
6834
6834
  role,
6835
6835
  multiUse,
6836
6836
  delegationCredentialId: options?.delegationCredentialId,
6837
+ ...options,
6837
6838
  ...protocol.getInvitationContext()
6838
6839
  };
6839
6840
  }
@@ -6846,14 +6847,14 @@ var InvitationsManager = class {
6846
6847
  }
6847
6848
  }, {
6848
6849
  F: __dxlog_file23,
6849
- L: 234
6850
+ L: 236
6850
6851
  });
6851
6852
  ctx.onDispose(() => {
6852
6853
  (0, import_log20.log)("complete", {
6853
6854
  ...handler.toJSON()
6854
6855
  }, {
6855
6856
  F: __dxlog_file23,
6856
- L: 241,
6857
+ L: 243,
6857
6858
  S: this,
6858
6859
  C: (f, a) => f(...a)
6859
6860
  });
@@ -6886,7 +6887,7 @@ var InvitationsManager = class {
6886
6887
  ...handler.toJSON()
6887
6888
  }, {
6888
6889
  F: __dxlog_file23,
6889
- L: 261,
6890
+ L: 263,
6890
6891
  S: this,
6891
6892
  C: (f, a) => f(...a)
6892
6893
  });
@@ -6897,7 +6898,7 @@ var InvitationsManager = class {
6897
6898
  } else {
6898
6899
  import_log20.log.warn("auth failed", err, {
6899
6900
  F: __dxlog_file23,
6900
- L: 264,
6901
+ L: 266,
6901
6902
  S: this,
6902
6903
  C: (f, a) => f(...a)
6903
6904
  });
@@ -6910,14 +6911,14 @@ var InvitationsManager = class {
6910
6911
  }
6911
6912
  }, {
6912
6913
  F: __dxlog_file23,
6913
- L: 258
6914
+ L: 260
6914
6915
  });
6915
6916
  ctx.onDispose(() => {
6916
6917
  (0, import_log20.log)("complete", {
6917
6918
  ...handler.toJSON()
6918
6919
  }, {
6919
6920
  F: __dxlog_file23,
6920
- L: 271,
6921
+ L: 273,
6921
6922
  S: this,
6922
6923
  C: (f, a) => f(...a)
6923
6924
  });
@@ -6962,7 +6963,7 @@ var InvitationsManager = class {
6962
6963
  } catch (err) {
6963
6964
  import_log20.log.catch(err, void 0, {
6964
6965
  F: __dxlog_file23,
6965
- L: 307,
6966
+ L: 309,
6966
6967
  S: this,
6967
6968
  C: (f, a) => f(...a)
6968
6969
  });
@@ -8919,4 +8920,4 @@ ClientServicesHost = _ts_decorate11([
8919
8920
  subscribeToSpaces,
8920
8921
  subscribeToSwarmInfo
8921
8922
  });
8922
- //# sourceMappingURL=chunk-4B7346FH.cjs.map
8923
+ //# sourceMappingURL=chunk-DPSYV3JU.cjs.map