@axiom-lattice/protocols 7.7.0 → 7.8.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
@@ -182,6 +182,29 @@ function assertGenericProjectConfig(config) {
182
182
  }
183
183
  }
184
184
 
185
+ // src/ChannelInstallationStoreProtocol.ts
186
+ var CHANNEL_INSTALLATION_SECRET_FIELDS = [
187
+ "appSecret",
188
+ "verificationToken",
189
+ "encryptKey",
190
+ "botToken",
191
+ "secret"
192
+ ];
193
+ var CHANNEL_INSTALLATION_SECRET_MASK = "********";
194
+ function maskChannelInstallationSecrets(installation) {
195
+ const config = installation.config;
196
+ if (config === null || typeof config !== "object" || Array.isArray(config)) {
197
+ return installation;
198
+ }
199
+ const masked = { ...config };
200
+ for (const field of CHANNEL_INSTALLATION_SECRET_FIELDS) {
201
+ if (typeof masked[field] === "string" && masked[field] !== "") {
202
+ masked[field] = CHANNEL_INSTALLATION_SECRET_MASK;
203
+ }
204
+ }
205
+ return { ...installation, config: masked };
206
+ }
207
+
185
208
  // src/McpServerConfigStoreProtocol.ts
186
209
  function isPersonalMcpServerConfigStore(store) {
187
210
  const candidate = store;
@@ -2684,7 +2707,16 @@ var PlatformSettingsVersionConflictError = class extends Error {
2684
2707
  }
2685
2708
  };
2686
2709
  var PLATFORM_SETTINGS_DEFAULTS = {
2687
- auth: { emailCompletionEnabled: false },
2710
+ auth: {
2711
+ emailCompletionEnabled: false,
2712
+ session: {
2713
+ refreshEnabled: true,
2714
+ accessTtlSeconds: 86400,
2715
+ refreshIdleSeconds: 604800,
2716
+ refreshAbsoluteSeconds: 2592e3,
2717
+ refreshReuseGraceSeconds: 20
2718
+ }
2719
+ },
2688
2720
  invite: { defaultExpiresInHours: 168, defaultMaxUses: 1 },
2689
2721
  rateLimits: {
2690
2722
  openApiPerMinute: 6e4,
@@ -3007,6 +3039,8 @@ export {
3007
3039
  BRANDING_PERCENT_KEYS,
3008
3040
  BRANDING_TEXT_KEYS,
3009
3041
  BRANDING_VIDEO_URL_KEYS,
3042
+ CHANNEL_INSTALLATION_SECRET_FIELDS,
3043
+ CHANNEL_INSTALLATION_SECRET_MASK,
3010
3044
  CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT,
3011
3045
  CHANNEL_REPLY_JOB_LIST_LIMIT_MAX,
3012
3046
  CHANNEL_REPLY_JOB_LIST_LIMIT_MIN,
@@ -3097,6 +3131,7 @@ export {
3097
3131
  isWorkspacePublicRoomProjectId,
3098
3132
  layoutSpecificFields,
3099
3133
  layoutSupportsSurface,
3134
+ maskChannelInstallationSecrets,
3100
3135
  normalizeAllowedPrivateHosts,
3101
3136
  normalizeBrandingHost,
3102
3137
  normalizeChannelReplyJobListLimit,