@sparkvault/sdk-js 15.14.2 → 15.15.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.cjs CHANGED
@@ -12154,10 +12154,13 @@ class NotifyProductModule {
12154
12154
  /**
12155
12155
  * The account's effective Notify config (secure defaults deep-merged with its
12156
12156
  * overrides) plus the raw override delta, so an editor can show what is
12157
- * customized versus default.
12157
+ * customized versus default, and the `version` of the stored config they
12158
+ * show (0 before anything is saved, one higher with each save). Answers can
12159
+ * arrive out of order, as two overlapping `updateConfig` calls' can: the one
12160
+ * with the higher `version` is the newer config, so keep that one.
12158
12161
  *
12159
12162
  * @example
12160
- * const { effective, overrides } = await sv.products.notify.getConfig();
12163
+ * const { effective, overrides, version } = await sv.products.notify.getConfig();
12161
12164
  */
12162
12165
  async getConfig() {
12163
12166
  const response = await this.http.get(this.path `/v1/products/notify/config`);
@@ -12191,7 +12194,8 @@ class NotifyProductModule {
12191
12194
  * (`details: { sections, required_role: 'admin' }`). A ladder naming a channel
12192
12195
  * other than `in_app` and `email` is refused 403 `NOTIFY_CHANNEL_NOT_AVAILABLE`
12193
12196
  * (`details: { field, channels }`); a save that overlapping saves kept
12194
- * outracing is refused 409 `CONFLICT`: reload and patch again.
12197
+ * outracing is refused 409 `CONFLICT`: reload and patch again. A save answers
12198
+ * as `getConfig` does, its `version` the one this save wrote.
12195
12199
  *
12196
12200
  * @example
12197
12201
  * await sv.products.notify.updateConfig({
@@ -26236,7 +26240,7 @@ class VaultsModule {
26236
26240
  * Update a vault's upload settings (max size, notification email).
26237
26241
  *
26238
26242
  * @example
26239
- * await sv.vaults.updateUploadConfig('vlt_abc', { maxSizeBytes: 1048576 });
26243
+ * await sv.vaults.updateUploadConfig('vlt_abc', { maxSizeBytes: 5 * 1024 ** 4 });
26240
26244
  */
26241
26245
  async updateUploadConfig(vaultId, config) {
26242
26246
  const id = requireResourceId(vaultId, 'vaultId');
@@ -27081,7 +27085,7 @@ class SparkVault {
27081
27085
  }
27082
27086
  /** Get the SDK version */
27083
27087
  static get version() {
27084
- return '15.14.2';
27088
+ return '15.15.0';
27085
27089
  }
27086
27090
  }
27087
27091
  if (typeof window !== 'undefined') {