attio 0.0.1-experimental.20250930 → 0.0.1-experimental.20251001.1

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.
Files changed (161) hide show
  1. package/lib/build/client/create-client-build-config.js +7 -1
  2. package/lib/build/client/generate-client-entry.js +9 -0
  3. package/lib/build/get-file-exports.js +1 -2
  4. package/lib/build/proxy-block-modules-plugin.js +68 -0
  5. package/lib/build/server/create-server-build-config.js +4 -0
  6. package/lib/build/server/find-workflow-block-server-modules.js +300 -30
  7. package/lib/build/server/fine-workflow-block.test.js +66 -0
  8. package/lib/build/server/generate-server-entry.js +40 -27
  9. package/lib/build/workflow-block-modules.js +1 -0
  10. package/lib/client/app.d.ts +7 -5
  11. package/lib/client/app.d.ts.map +1 -1
  12. package/lib/client/bulk-record-action.d.ts +5 -1
  13. package/lib/client/bulk-record-action.d.ts.map +1 -1
  14. package/lib/client/experimental/index.d.ts +3 -0
  15. package/lib/client/experimental/index.d.ts.map +1 -0
  16. package/lib/client/experimental/index.js +10 -0
  17. package/lib/client/experimental/index.js.map +1 -0
  18. package/lib/client/experimental/settings/get-settings.d.ts +7 -0
  19. package/lib/client/experimental/settings/get-settings.d.ts.map +1 -0
  20. package/lib/client/{workflow-block.js → experimental/settings/get-settings.js} +1 -1
  21. package/lib/client/experimental/settings/get-settings.js.map +1 -0
  22. package/lib/client/experimental/settings/index.d.ts +5 -0
  23. package/lib/client/experimental/settings/index.d.ts.map +1 -0
  24. package/lib/client/experimental/settings/index.js +8 -0
  25. package/lib/client/experimental/settings/index.js.map +1 -0
  26. package/lib/client/experimental/settings/set-user-setting.d.ts +7 -0
  27. package/lib/client/experimental/settings/set-user-setting.d.ts.map +1 -0
  28. package/lib/client/experimental/settings/set-user-setting.js +3 -0
  29. package/lib/client/experimental/settings/set-user-setting.js.map +1 -0
  30. package/lib/client/experimental/settings/set-workspace-setting.d.ts +7 -0
  31. package/lib/client/experimental/settings/set-workspace-setting.d.ts.map +1 -0
  32. package/lib/client/experimental/settings/set-workspace-setting.js +3 -0
  33. package/lib/client/experimental/settings/set-workspace-setting.js.map +1 -0
  34. package/lib/client/experimental/settings/use-settings.d.ts +7 -0
  35. package/lib/client/experimental/settings/use-settings.d.ts.map +1 -0
  36. package/lib/client/experimental/settings/use-settings.js +3 -0
  37. package/lib/client/experimental/settings/use-settings.js.map +1 -0
  38. package/lib/client/index.d.ts +3 -1
  39. package/lib/client/index.d.ts.map +1 -1
  40. package/lib/client/index.js +1 -0
  41. package/lib/client/index.js.map +1 -1
  42. package/lib/client/record-action.d.ts +5 -1
  43. package/lib/client/record-action.d.ts.map +1 -1
  44. package/lib/client/record-widget.d.ts +5 -1
  45. package/lib/client/record-widget.d.ts.map +1 -1
  46. package/lib/client/workflow/index.d.ts +0 -19
  47. package/lib/client/workflow/index.d.ts.map +1 -1
  48. package/lib/client/workflow/index.js.map +1 -1
  49. package/lib/client/{workflow-block.d.ts → workflow-step-block.d.ts} +6 -2
  50. package/lib/client/workflow-step-block.d.ts.map +1 -0
  51. package/lib/client/workflow-step-block.js +3 -0
  52. package/lib/client/workflow-step-block.js.map +1 -0
  53. package/lib/client/workflow-trigger-block.d.ts +18 -0
  54. package/lib/client/workflow-trigger-block.d.ts.map +1 -0
  55. package/lib/client/workflow-trigger-block.js +3 -0
  56. package/lib/client/workflow-trigger-block.js.map +1 -0
  57. package/lib/commands/build.js +9 -1
  58. package/lib/commands/dev/client-builder.js +9 -3
  59. package/lib/commands/dev/prepare-build-context.js +17 -27
  60. package/lib/commands/dev/server-builder.js +3 -2
  61. package/lib/commands/dev.js +10 -1
  62. package/lib/commands/version/create.js +9 -1
  63. package/lib/constants/hidden-attio-directory.js +1 -0
  64. package/lib/constants/settings-files.js +2 -0
  65. package/lib/env.js +1 -0
  66. package/lib/root/index.d.ts +6 -0
  67. package/lib/root/index.d.ts.map +1 -0
  68. package/lib/root/index.js +12 -0
  69. package/lib/root/index.js.map +1 -0
  70. package/lib/root/settings/app-settings-schema.d.ts +6 -0
  71. package/lib/root/settings/app-settings-schema.d.ts.map +1 -0
  72. package/lib/root/settings/app-settings-schema.js +3 -0
  73. package/lib/root/settings/app-settings-schema.js.map +1 -0
  74. package/lib/root/settings/app-settings.d.ts +26 -0
  75. package/lib/root/settings/app-settings.d.ts.map +1 -0
  76. package/lib/root/settings/app-settings.js +3 -0
  77. package/lib/root/settings/app-settings.js.map +1 -0
  78. package/lib/root/settings/index.d.ts +5 -0
  79. package/lib/root/settings/index.d.ts.map +1 -0
  80. package/lib/root/settings/index.js +8 -0
  81. package/lib/root/settings/index.js.map +1 -0
  82. package/lib/root/settings/node/boolean.d.ts +11 -0
  83. package/lib/root/settings/node/boolean.d.ts.map +1 -0
  84. package/lib/root/settings/node/boolean.js +11 -0
  85. package/lib/root/settings/node/boolean.js.map +1 -0
  86. package/lib/root/settings/node/index.d.ts +7 -0
  87. package/lib/root/settings/node/index.d.ts.map +1 -0
  88. package/lib/root/settings/node/index.js +12 -0
  89. package/lib/root/settings/node/index.js.map +1 -0
  90. package/lib/root/settings/node/number.d.ts +11 -0
  91. package/lib/root/settings/node/number.d.ts.map +1 -0
  92. package/lib/root/settings/node/number.js +11 -0
  93. package/lib/root/settings/node/number.js.map +1 -0
  94. package/lib/root/settings/node/settings.d.ts +4 -0
  95. package/lib/root/settings/node/settings.d.ts.map +1 -0
  96. package/lib/root/settings/node/settings.js +10 -0
  97. package/lib/root/settings/node/settings.js.map +1 -0
  98. package/lib/root/settings/node/string.d.ts +11 -0
  99. package/lib/root/settings/node/string.d.ts.map +1 -0
  100. package/lib/root/settings/node/string.js +11 -0
  101. package/lib/root/settings/node/string.js.map +1 -0
  102. package/lib/root/settings/settings-schema.d.ts +7 -0
  103. package/lib/root/settings/settings-schema.d.ts.map +1 -0
  104. package/lib/root/settings/settings-schema.js +3 -0
  105. package/lib/root/settings/settings-schema.js.map +1 -0
  106. package/lib/root/settings/utils/typeof-setting-node.d.ts +3 -0
  107. package/lib/root/settings/utils/typeof-setting-node.d.ts.map +1 -0
  108. package/lib/root/settings/utils/typeof-setting-node.js +3 -0
  109. package/lib/root/settings/utils/typeof-setting-node.js.map +1 -0
  110. package/lib/server/experimental/index.d.ts +1 -0
  111. package/lib/server/experimental/index.d.ts.map +1 -1
  112. package/lib/server/experimental/index.js +9 -1
  113. package/lib/server/experimental/index.js.map +1 -1
  114. package/lib/server/experimental/kv-store.d.ts +10 -0
  115. package/lib/server/experimental/kv-store.d.ts.map +1 -1
  116. package/lib/server/experimental/settings/get-settings.d.ts +7 -0
  117. package/lib/server/experimental/settings/get-settings.d.ts.map +1 -0
  118. package/lib/server/experimental/settings/get-settings.js +3 -0
  119. package/lib/server/experimental/settings/get-settings.js.map +1 -0
  120. package/lib/server/experimental/settings/get-user-setting.d.ts +7 -0
  121. package/lib/server/experimental/settings/get-user-setting.d.ts.map +1 -0
  122. package/lib/server/experimental/settings/get-user-setting.js +3 -0
  123. package/lib/server/experimental/settings/get-user-setting.js.map +1 -0
  124. package/lib/server/experimental/settings/get-user-settings.d.ts +7 -0
  125. package/lib/server/experimental/settings/get-user-settings.d.ts.map +1 -0
  126. package/lib/server/experimental/settings/get-user-settings.js +3 -0
  127. package/lib/server/experimental/settings/get-user-settings.js.map +1 -0
  128. package/lib/server/experimental/settings/get-workspace-setting.d.ts +7 -0
  129. package/lib/server/experimental/settings/get-workspace-setting.d.ts.map +1 -0
  130. package/lib/server/experimental/settings/get-workspace-setting.js +3 -0
  131. package/lib/server/experimental/settings/get-workspace-setting.js.map +1 -0
  132. package/lib/server/experimental/settings/get-workspace-settings.d.ts +7 -0
  133. package/lib/server/experimental/settings/get-workspace-settings.d.ts.map +1 -0
  134. package/lib/server/experimental/settings/get-workspace-settings.js +3 -0
  135. package/lib/server/experimental/settings/get-workspace-settings.js.map +1 -0
  136. package/lib/server/experimental/settings/index.d.ts +8 -0
  137. package/lib/server/experimental/settings/index.d.ts.map +1 -0
  138. package/lib/server/experimental/settings/index.js +18 -0
  139. package/lib/server/experimental/settings/index.js.map +1 -0
  140. package/lib/server/experimental/settings/set-user-setting.d.ts +7 -0
  141. package/lib/server/experimental/settings/set-user-setting.d.ts.map +1 -0
  142. package/lib/server/experimental/settings/set-user-setting.js +3 -0
  143. package/lib/server/experimental/settings/set-user-setting.js.map +1 -0
  144. package/lib/server/experimental/settings/set-workspace-setting.d.ts +7 -0
  145. package/lib/server/experimental/settings/set-workspace-setting.d.ts.map +1 -0
  146. package/lib/server/experimental/settings/set-workspace-setting.js +3 -0
  147. package/lib/server/experimental/settings/set-workspace-setting.js.map +1 -0
  148. package/lib/shared/schema-utils/index.d.ts +1 -1
  149. package/lib/shared/schema-utils/index.d.ts.map +1 -1
  150. package/lib/shared/schema-utils/index.js +3 -0
  151. package/lib/shared/schema-utils/index.js.map +1 -1
  152. package/lib/tsconfig.lib.tsbuildinfo +1 -1
  153. package/lib/util/assert-app-settings.js +13 -0
  154. package/lib/util/exit-with-missing-app-settings.js +5 -0
  155. package/lib/util/exit-with-missing-entry-point.js +2 -8
  156. package/lib/util/generate-gitignore.js +42 -0
  157. package/lib/util/generate-settings-files.js +71 -0
  158. package/lib/util/get-package-manager-command.js +9 -0
  159. package/package.json +8 -1
  160. package/lib/client/workflow-block.d.ts.map +0 -1
  161. package/lib/client/workflow-block.js.map +0 -1
@@ -1,27 +1,32 @@
1
1
  import path from "path";
2
2
  import chalk from "chalk";
3
3
  import { combine, combineAsync, complete, isErrored, map } from "@attio/fetchable-npm";
4
+ import { findWorkflowBlockModules } from "../../build/server/find-workflow-block-server-modules.js";
4
5
  import { ClientBuilder } from "./client-builder.js";
5
6
  import { ServerBuilder } from "./server-builder.js";
6
7
  export async function prepareBuildContext(mode) {
8
+ const appDir = "";
7
9
  const srcDir = "src";
8
10
  const assetsDir = path.join(srcDir, "assets");
9
11
  const webhooksDir = path.join(srcDir, "webhooks");
10
12
  const eventsDir = path.join(srcDir, "events");
11
- const workflowBlocksDir = path.join(srcDir, "workflow-blocks");
12
13
  const buildersResult = await combineAsync({
13
14
  client: ClientBuilder.create({
14
15
  outfile: path.resolve("dist", "index.js"),
15
- directories: { src: srcDir, assets: assetsDir },
16
+ directories: {
17
+ app: appDir,
18
+ src: srcDir,
19
+ assets: assetsDir,
20
+ },
16
21
  mode,
17
22
  }),
18
23
  server: ServerBuilder.create({
19
24
  outfile: path.resolve("dist", "server.js"),
20
25
  directories: {
26
+ app: appDir,
21
27
  src: srcDir,
22
28
  webhooks: webhooksDir,
23
29
  events: eventsDir,
24
- workflowBlocks: workflowBlocksDir,
25
30
  },
26
31
  mode,
27
32
  }),
@@ -32,9 +37,14 @@ export async function prepareBuildContext(mode) {
32
37
  const { client, server } = buildersResult.value;
33
38
  return complete({
34
39
  rebuild: async () => {
40
+ const workflowBlockModulesResult = await findWorkflowBlockModules(srcDir);
41
+ if (isErrored(workflowBlockModulesResult)) {
42
+ return workflowBlockModulesResult;
43
+ }
44
+ const workflowBlockModules = workflowBlockModulesResult.value;
35
45
  return combineAsync({
36
- client: client.rebuild(),
37
- server: server.rebuild(),
46
+ client: client.rebuild({ workflowBlockModules }),
47
+ server: server.rebuild({ workflowBlockModules }),
38
48
  });
39
49
  },
40
50
  dispose: async (timeoutMs) => {
@@ -73,28 +83,8 @@ export function printBuildContextError(error) {
73
83
  case "ERROR_FINDING_SERVER_FUNCTION_MODULES":
74
84
  process.stderr.write(`${chalk.red("✖ ")}Failed to find server modules: ${error.cause}\n`);
75
85
  break;
76
- case "WORKFLOW_BLOCK_SERVER_MODULE_ERROR":
77
- let message;
78
- const formatPath = (p) => `"${path.relative(process.cwd(), p)}"`;
79
- switch (error.cause.code) {
80
- case "UNABLE_TO_PARSE_EXPORTS": {
81
- message = `Workflow block file ${formatPath(error.cause.path)} could not be parsed: ${error.cause.cause}`;
82
- break;
83
- }
84
- case "MISSING_FUNCTIONS": {
85
- message = `Workflow block module ${formatPath(error.cause.path)} does not export required functions. Step blocks should export an "execute" function and trigger blocks should export "activate" and "deactivate" functions.`;
86
- break;
87
- }
88
- case "MISSING_SCHEMA": {
89
- message = `Workflow block module ${formatPath(error.cause.path)} does not export "schema".`;
90
- break;
91
- }
92
- default: {
93
- error.cause;
94
- break;
95
- }
96
- }
97
- process.stderr.write(`${chalk.red("✖ ")}${message}\n`);
86
+ case "WORKFLOW_BLOCK_RESOLUTION_FAILED":
87
+ process.stderr.write(`${chalk.red("✖ ")}Failed to build workflow block(s): ${error.message}\n`);
98
88
  break;
99
89
  default:
100
90
  return error;
@@ -34,12 +34,13 @@ export class ServerBuilder {
34
34
  });
35
35
  }
36
36
  }
37
- async rebuild() {
37
+ async rebuild({ workflowBlockModules, }) {
38
38
  const jsResult = await generateServerEntry({
39
+ appDirAbsolute: path.resolve(this._directories.app),
39
40
  srcDirAbsolute: path.resolve(this._directories.src),
40
41
  webhooksDirAbsolute: path.resolve(this._directories.webhooks),
41
42
  eventDirAbsolute: path.resolve(this._directories.events),
42
- workflowBlocksDirAbsolute: path.resolve(this._directories.workflowBlocks),
43
+ workflowBlockModules,
43
44
  });
44
45
  if (isErrored(jsResult)) {
45
46
  return jsResult;
@@ -4,9 +4,11 @@ import notifier from "node-notifier";
4
4
  import { z } from "zod";
5
5
  import { isErrored } from "@attio/fetchable-npm";
6
6
  import { authenticator } from "../auth/auth.js";
7
- import { USE_APP_TS } from "../env.js";
7
+ import { USE_APP_TS, USE_SETTINGS } from "../env.js";
8
8
  import { printUploadError } from "../print-errors.js";
9
9
  import { ensureAppEntryPoint } from "../util/ensure-app-entry-point.js";
10
+ import { generateGitignore } from "../util/generate-gitignore.js";
11
+ import { generateSettingsFiles } from "../util/generate-settings-files.js";
10
12
  import { hardExit } from "../util/hard-exit.js";
11
13
  import { printMessage } from "../util/print-message.js";
12
14
  import { printJsError, printTsError } from "../util/typescript.js";
@@ -60,6 +62,13 @@ export const dev = new Command("dev")
60
62
  }
61
63
  }
62
64
  }
65
+ await generateGitignore();
66
+ if (USE_SETTINGS) {
67
+ const generateResult = await generateSettingsFiles();
68
+ if (isErrored(generateResult)) {
69
+ hardExit("Failed to generate settings files");
70
+ }
71
+ }
63
72
  await authenticator.ensureAuthed();
64
73
  const cleanup = async () => {
65
74
  if (isCleaningUp)
@@ -3,12 +3,14 @@ import { Command } from "commander";
3
3
  import { combineAsync, isErrored } from "@attio/fetchable-npm";
4
4
  import { api } from "../../api/api.js";
5
5
  import { authenticator } from "../../auth/auth.js";
6
- import { USE_APP_TS } from "../../env.js";
6
+ import { USE_APP_TS, USE_SETTINGS } from "../../env.js";
7
7
  import { printCliVersionError, printFetcherError, printPackageJsonError } from "../../print-errors.js";
8
8
  import { getAppInfo } from "../../spinners/get-app-info.spinner.js";
9
9
  import { getAppSlugFromPackageJson } from "../../spinners/get-app-slug-from-package-json.js";
10
10
  import { getVersions } from "../../spinners/get-versions.spinner.js";
11
11
  import { ensureAppEntryPoint } from "../../util/ensure-app-entry-point.js";
12
+ import { assertAppSettings } from "../../util/assert-app-settings.js";
13
+ import { exitWithMissingAppSettings } from "../../util/exit-with-missing-app-settings.js";
12
14
  import { exitWithMissingEntryPoint } from "../../util/exit-with-missing-entry-point.js";
13
15
  import { loadAttioCliVersion } from "../../util/load-attio-cli-version.js";
14
16
  import { spinnerify } from "../../util/spinner.js";
@@ -25,6 +27,12 @@ export const versionCreate = new Command("create")
25
27
  exitWithMissingEntryPoint();
26
28
  }
27
29
  }
30
+ if (USE_SETTINGS) {
31
+ const settingsResult = await assertAppSettings();
32
+ if (isErrored(settingsResult)) {
33
+ exitWithMissingAppSettings();
34
+ }
35
+ }
28
36
  await authenticator.ensureAuthed();
29
37
  const appSlugResult = await getAppSlugFromPackageJson();
30
38
  if (isErrored(appSlugResult)) {
@@ -0,0 +1 @@
1
+ export const HIDDEN_ATTIO_DIRECTORY = "src/.attio";
@@ -0,0 +1,2 @@
1
+ export const APP_SETTINGS_FILENAME = "app.settings.ts";
2
+ export const SETTINGS_TYPES_FILENAME = "settings.d.ts";
package/lib/env.js CHANGED
@@ -4,3 +4,4 @@ export const API = `https://build.${DOMAIN}/api`;
4
4
  export const APP_NO_PROTOCOL = `app.${DOMAIN}`;
5
5
  export const APP = `https://${APP_NO_PROTOCOL}`;
6
6
  export const USE_APP_TS = process.env.USE_APP_TS === "true";
7
+ export const USE_SETTINGS = process.env.USE_SETTINGS === "true";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This module defines the types of the "attio" SDK.
3
+ */
4
+ export type { AppSettings, AppSettingsSchema, ScopedSettingsSchema, SettingsNode, SettingsSchema, UserSettings, WorkspaceSettings, } from "./settings";
5
+ export { Settings, SettingsBooleanNode, SettingsNumberNode, SettingsStringNode } from "./settings";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/root/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EACR,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,iBAAiB,GACpB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAC,QAAQ,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,YAAY,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This module defines the types of the "attio" SDK.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SettingsStringNode = exports.SettingsNumberNode = exports.SettingsBooleanNode = exports.Settings = void 0;
7
+ var settings_1 = require("./settings");
8
+ Object.defineProperty(exports, "Settings", { enumerable: true, get: function () { return settings_1.Settings; } });
9
+ Object.defineProperty(exports, "SettingsBooleanNode", { enumerable: true, get: function () { return settings_1.SettingsBooleanNode; } });
10
+ Object.defineProperty(exports, "SettingsNumberNode", { enumerable: true, get: function () { return settings_1.SettingsNumberNode; } });
11
+ Object.defineProperty(exports, "SettingsStringNode", { enumerable: true, get: function () { return settings_1.SettingsStringNode; } });
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/root/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAWH,uCAAgG;AAAxF,oGAAA,QAAQ,OAAA;AAAE,+GAAA,mBAAmB,OAAA;AAAE,8GAAA,kBAAkB,OAAA;AAAE,8GAAA,kBAAkB,OAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This interface is extended in app code
3
+ */
4
+ export interface AppSettingsSchema {
5
+ }
6
+ //# sourceMappingURL=app-settings-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-settings-schema.d.ts","sourceRoot":"","sources":["../../../src/root/settings/app-settings-schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=app-settings-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-settings-schema.js","sourceRoot":"","sources":["../../../src/root/settings/app-settings-schema.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import type { AppSettingsSchema } from "./app-settings-schema";
2
+ import type { ScopedSettingsSchema } from "./settings-schema";
3
+ import type { TypeOfSettingNode } from "./utils/typeof-setting-node";
4
+ export type UserSettings = AppSettingsSchema extends {
5
+ user: ScopedSettingsSchema;
6
+ } ? {
7
+ [K in keyof {
8
+ [Key in keyof AppSettingsSchema["user"]]: TypeOfSettingNode<AppSettingsSchema["user"][Key]>;
9
+ } as string extends K ? never : K]: {
10
+ [Key in keyof AppSettingsSchema["user"]]: TypeOfSettingNode<AppSettingsSchema["user"][Key]>;
11
+ }[K] | null;
12
+ } : Record<string, unknown>;
13
+ export type WorkspaceSettings = AppSettingsSchema extends {
14
+ workspace: ScopedSettingsSchema;
15
+ } ? {
16
+ [K in keyof {
17
+ [Key in keyof AppSettingsSchema["workspace"]]: TypeOfSettingNode<AppSettingsSchema["workspace"][Key]>;
18
+ } as string extends K ? never : K]: {
19
+ [Key in keyof AppSettingsSchema["workspace"]]: TypeOfSettingNode<AppSettingsSchema["workspace"][Key]>;
20
+ }[K] | null;
21
+ } : Record<string, unknown>;
22
+ export interface AppSettings {
23
+ user: UserSettings;
24
+ workspace: WorkspaceSettings;
25
+ }
26
+ //# sourceMappingURL=app-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-settings.d.ts","sourceRoot":"","sources":["../../../src/root/settings/app-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAA;AAElE,MAAM,MAAM,YAAY,GAAG,iBAAiB,SAAS;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAC,GAC3E;KACK,CAAC,IAAI,MAAM;SACP,GAAG,IAAI,MAAM,iBAAiB,CAAC,MAAM,CAAC,GAAG,iBAAiB,CACvD,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CACjC;KACJ,IAAI,MAAM,SAAS,CAAC,GAAG,KAAK,GAAG,CAAC,GAC3B;SACK,GAAG,IAAI,MAAM,iBAAiB,CAAC,MAAM,CAAC,GAAG,iBAAiB,CACvD,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CACjC;KACJ,CAAC,CAAC,CAAC,GACJ,IAAI;CACb,GACD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE7B,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,SAAS;IACtD,SAAS,EAAE,oBAAoB,CAAA;CAClC,GACK;KACK,CAAC,IAAI,MAAM;SACP,GAAG,IAAI,MAAM,iBAAiB,CAAC,WAAW,CAAC,GAAG,iBAAiB,CAC5D,iBAAiB,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CACtC;KACJ,IAAI,MAAM,SAAS,CAAC,GAAG,KAAK,GAAG,CAAC,GAC3B;SACK,GAAG,IAAI,MAAM,iBAAiB,CAAC,WAAW,CAAC,GAAG,iBAAiB,CAC5D,iBAAiB,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CACtC;KACJ,CAAC,CAAC,CAAC,GACJ,IAAI;CACb,GACD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE7B,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,EAAE,iBAAiB,CAAA;CAC/B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=app-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-settings.js","sourceRoot":"","sources":["../../../src/root/settings/app-settings.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from "./app-settings";
2
+ export * from "./app-settings-schema";
3
+ export * from "./node";
4
+ export * from "./settings-schema";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/root/settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,QAAQ,CAAA;AACtB,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./app-settings"), exports);
5
+ tslib_1.__exportStar(require("./app-settings-schema"), exports);
6
+ tslib_1.__exportStar(require("./node"), exports);
7
+ tslib_1.__exportStar(require("./settings-schema"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/root/settings/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B;AAC9B,gEAAqC;AACrC,iDAAsB;AACtB,4DAAiC"}
@@ -0,0 +1,11 @@
1
+ import { BaseNode } from "../../../shared/schema-utils";
2
+ /**
3
+ * A boolean inside a schema.
4
+ */
5
+ export declare abstract class SettingsBooleanNode extends BaseNode<"boolean"> {
6
+ }
7
+ /**
8
+ * Create a new boolean setting schema node.
9
+ */
10
+ export declare function boolean(): SettingsBooleanNode;
11
+ //# sourceMappingURL=boolean.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../../src/root/settings/node/boolean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAA;AAErD;;GAEG;AACH,8BAAsB,mBAAoB,SAAQ,QAAQ,CAAC,SAAS,CAAC;CAAG;AAExE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,mBAAmB,CAAA"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsBooleanNode = void 0;
4
+ const schema_utils_1 = require("../../../shared/schema-utils");
5
+ /**
6
+ * A boolean inside a schema.
7
+ */
8
+ class SettingsBooleanNode extends schema_utils_1.BaseNode {
9
+ }
10
+ exports.SettingsBooleanNode = SettingsBooleanNode;
11
+ //# sourceMappingURL=boolean.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../../src/root/settings/node/boolean.ts"],"names":[],"mappings":";;;AAAA,+DAAqD;AAErD;;GAEG;AACH,MAAsB,mBAAoB,SAAQ,uBAAmB;CAAG;AAAxE,kDAAwE"}
@@ -0,0 +1,7 @@
1
+ import { SettingsBooleanNode } from "./boolean";
2
+ import { SettingsNumberNode } from "./number";
3
+ import { SettingsStringNode } from "./string";
4
+ export * as Settings from "./settings";
5
+ export { SettingsBooleanNode, SettingsNumberNode, SettingsStringNode };
6
+ export type SettingsNode = SettingsBooleanNode | SettingsNumberNode | SettingsStringNode;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/root/settings/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAA;AAC3C,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAA;AAE3C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AACtC,OAAO,EAAC,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAC,CAAA;AAEpE,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG,kBAAkB,GAAG,kBAAkB,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsStringNode = exports.SettingsNumberNode = exports.SettingsBooleanNode = exports.Settings = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const boolean_1 = require("./boolean");
6
+ Object.defineProperty(exports, "SettingsBooleanNode", { enumerable: true, get: function () { return boolean_1.SettingsBooleanNode; } });
7
+ const number_1 = require("./number");
8
+ Object.defineProperty(exports, "SettingsNumberNode", { enumerable: true, get: function () { return number_1.SettingsNumberNode; } });
9
+ const string_1 = require("./string");
10
+ Object.defineProperty(exports, "SettingsStringNode", { enumerable: true, get: function () { return string_1.SettingsStringNode; } });
11
+ exports.Settings = tslib_1.__importStar(require("./settings"));
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/root/settings/node/index.ts"],"names":[],"mappings":";;;;AAAA,uCAA6C;AAKrC,oGALA,6BAAmB,OAKA;AAJ3B,qCAA2C;AAId,mGAJrB,2BAAkB,OAIqB;AAH/C,qCAA2C;AAGM,mGAHzC,2BAAkB,OAGyC;AADnE,+DAAsC"}
@@ -0,0 +1,11 @@
1
+ import { BaseNode } from "../../../shared/schema-utils";
2
+ /**
3
+ * A number inside a schema.
4
+ */
5
+ export declare abstract class SettingsNumberNode extends BaseNode<"number"> {
6
+ }
7
+ /**
8
+ * Create a new number setting schema node.
9
+ */
10
+ export declare function number(): SettingsNumberNode;
11
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../src/root/settings/node/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAA;AAErD;;GAEG;AACH,8BAAsB,kBAAmB,SAAQ,QAAQ,CAAC,QAAQ,CAAC;CAAG;AAEtE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,IAAI,kBAAkB,CAAA"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsNumberNode = void 0;
4
+ const schema_utils_1 = require("../../../shared/schema-utils");
5
+ /**
6
+ * A number inside a schema.
7
+ */
8
+ class SettingsNumberNode extends schema_utils_1.BaseNode {
9
+ }
10
+ exports.SettingsNumberNode = SettingsNumberNode;
11
+ //# sourceMappingURL=number.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.js","sourceRoot":"","sources":["../../../../src/root/settings/node/number.ts"],"names":[],"mappings":";;;AAAA,+DAAqD;AAErD;;GAEG;AACH,MAAsB,kBAAmB,SAAQ,uBAAkB;CAAG;AAAtE,gDAAsE"}
@@ -0,0 +1,4 @@
1
+ export { boolean } from "./boolean";
2
+ export { number } from "./number";
3
+ export { string } from "./string";
4
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/root/settings/node/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AACjC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.string = exports.number = exports.boolean = void 0;
4
+ var boolean_1 = require("./boolean");
5
+ Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return boolean_1.boolean; } });
6
+ var number_1 = require("./number");
7
+ Object.defineProperty(exports, "number", { enumerable: true, get: function () { return number_1.number; } });
8
+ var string_1 = require("./string");
9
+ Object.defineProperty(exports, "string", { enumerable: true, get: function () { return string_1.string; } });
10
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/root/settings/node/settings.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAAzB,kGAAA,OAAO,OAAA;AACf,mCAA+B;AAAvB,gGAAA,MAAM,OAAA;AACd,mCAA+B;AAAvB,gGAAA,MAAM,OAAA"}
@@ -0,0 +1,11 @@
1
+ import { BaseNode } from "../../../shared/schema-utils";
2
+ /**
3
+ * A string inside a schema.
4
+ */
5
+ export declare abstract class SettingsStringNode extends BaseNode<"string"> {
6
+ }
7
+ /**
8
+ * Create a new string setting schema node.
9
+ */
10
+ export declare function string(): SettingsStringNode;
11
+ //# sourceMappingURL=string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../src/root/settings/node/string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAA;AAErD;;GAEG;AACH,8BAAsB,kBAAmB,SAAQ,QAAQ,CAAC,QAAQ,CAAC;CAAG;AAEtE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,IAAI,kBAAkB,CAAA"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsStringNode = void 0;
4
+ const schema_utils_1 = require("../../../shared/schema-utils");
5
+ /**
6
+ * A string inside a schema.
7
+ */
8
+ class SettingsStringNode extends schema_utils_1.BaseNode {
9
+ }
10
+ exports.SettingsStringNode = SettingsStringNode;
11
+ //# sourceMappingURL=string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.js","sourceRoot":"","sources":["../../../../src/root/settings/node/string.ts"],"names":[],"mappings":";;;AAAA,+DAAqD;AAErD;;GAEG;AACH,MAAsB,kBAAmB,SAAQ,uBAAkB;CAAG;AAAtE,gDAAsE"}
@@ -0,0 +1,7 @@
1
+ import type { SettingsNode } from "./node";
2
+ export type ScopedSettingsSchema = Record<string, SettingsNode>;
3
+ export interface SettingsSchema {
4
+ user: ScopedSettingsSchema;
5
+ workspace: ScopedSettingsSchema;
6
+ }
7
+ //# sourceMappingURL=settings-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-schema.d.ts","sourceRoot":"","sources":["../../../src/root/settings/settings-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAA;AAExC,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AAE/D,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,oBAAoB,CAAA;IAC1B,SAAS,EAAE,oBAAoB,CAAA;CAClC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=settings-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-schema.js","sourceRoot":"","sources":["../../../src/root/settings/settings-schema.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { BaseNode } from "../../../shared/schema-utils";
2
+ export type TypeOfSettingNode<TNode extends BaseNode> = TNode["type"] extends "string" ? string : TNode["type"] extends "number" ? number : TNode["type"] extends "boolean" ? boolean : never;
3
+ //# sourceMappingURL=typeof-setting-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeof-setting-node.d.ts","sourceRoot":"","sources":["../../../../src/root/settings/utils/typeof-setting-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAA;AAE1D,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,QAAQ,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS,QAAQ,GAChF,MAAM,GACN,KAAK,CAAC,MAAM,CAAC,SAAS,QAAQ,GAC5B,MAAM,GACN,KAAK,CAAC,MAAM,CAAC,SAAS,SAAS,GAC7B,OAAO,GACP,KAAK,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=typeof-setting-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeof-setting-node.js","sourceRoot":"","sources":["../../../../src/root/settings/utils/typeof-setting-node.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  /** biome-ignore-all lint/style/useNamingConvention: migration */
2
2
  export { type KVSerializable as experimenta_KVSerializable, type KVStore as experimenta_KVStore, kv as experimental_kv, } from "./kv-store";
3
+ export { getSettings as experimental_getSettings, getUserSetting as experimental_getUserSetting, getUserSettings as experimental_getUserSettings, getWorkspaceSetting as experimental_getWorkspaceSetting, getWorkspaceSettings as experimental_getWorkspaceSettings, setUserSetting as experimental_setUserSetting, setWorkspaceSetting as experimental_setWorkspaceSetting, } from "./settings";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/experimental/index.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,EACH,KAAK,cAAc,IAAI,0BAA0B,EACjD,KAAK,OAAO,IAAI,mBAAmB,EACnC,EAAE,IAAI,eAAe,GACxB,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/experimental/index.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,EACH,KAAK,cAAc,IAAI,0BAA0B,EACjD,KAAK,OAAO,IAAI,mBAAmB,EACnC,EAAE,IAAI,eAAe,GACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EACH,WAAW,IAAI,wBAAwB,EACvC,cAAc,IAAI,2BAA2B,EAC7C,eAAe,IAAI,4BAA4B,EAC/C,mBAAmB,IAAI,gCAAgC,EACvD,oBAAoB,IAAI,iCAAiC,EACzD,cAAc,IAAI,2BAA2B,EAC7C,mBAAmB,IAAI,gCAAgC,GAC1D,MAAM,YAAY,CAAA"}
@@ -1,7 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.experimental_kv = void 0;
3
+ exports.experimental_setWorkspaceSetting = exports.experimental_setUserSetting = exports.experimental_getWorkspaceSettings = exports.experimental_getWorkspaceSetting = exports.experimental_getUserSettings = exports.experimental_getUserSetting = exports.experimental_getSettings = exports.experimental_kv = void 0;
4
4
  /** biome-ignore-all lint/style/useNamingConvention: migration */
5
5
  var kv_store_1 = require("./kv-store");
6
6
  Object.defineProperty(exports, "experimental_kv", { enumerable: true, get: function () { return kv_store_1.kv; } });
7
+ var settings_1 = require("./settings");
8
+ Object.defineProperty(exports, "experimental_getSettings", { enumerable: true, get: function () { return settings_1.getSettings; } });
9
+ Object.defineProperty(exports, "experimental_getUserSetting", { enumerable: true, get: function () { return settings_1.getUserSetting; } });
10
+ Object.defineProperty(exports, "experimental_getUserSettings", { enumerable: true, get: function () { return settings_1.getUserSettings; } });
11
+ Object.defineProperty(exports, "experimental_getWorkspaceSetting", { enumerable: true, get: function () { return settings_1.getWorkspaceSetting; } });
12
+ Object.defineProperty(exports, "experimental_getWorkspaceSettings", { enumerable: true, get: function () { return settings_1.getWorkspaceSettings; } });
13
+ Object.defineProperty(exports, "experimental_setUserSetting", { enumerable: true, get: function () { return settings_1.setUserSetting; } });
14
+ Object.defineProperty(exports, "experimental_setWorkspaceSetting", { enumerable: true, get: function () { return settings_1.setWorkspaceSetting; } });
7
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/server/experimental/index.ts"],"names":[],"mappings":";;;AAAA,iEAAiE;AACjE,uCAImB;AADf,2GAAA,EAAE,OAAmB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/server/experimental/index.ts"],"names":[],"mappings":";;;AAAA,iEAAiE;AACjE,uCAImB;AADf,2GAAA,EAAE,OAAmB;AAEzB,uCAQmB;AAPf,oHAAA,WAAW,OAA4B;AACvC,uHAAA,cAAc,OAA+B;AAC7C,wHAAA,eAAe,OAAgC;AAC/C,4HAAA,mBAAmB,OAAoC;AACvD,6HAAA,oBAAoB,OAAqC;AACzD,uHAAA,cAAc,OAA+B;AAC7C,4HAAA,mBAAmB,OAAoC"}
@@ -29,6 +29,16 @@ export interface KVStore {
29
29
  get(key: string): Promise<{
30
30
  value: KVSerializable;
31
31
  } | null>;
32
+ /**
33
+ * Retrieves a list of values from the key-value store.
34
+ *
35
+ * @param keys - The unique identifiers for the stored values
36
+ * @returns An object that maps the keys to their value, wrapped in an object {value: value}, or null if the key was not found
37
+ * @throws Error if the operation fails or the values cannot be deserialized
38
+ */
39
+ mget(keys: Array<string>): Promise<Record<string, {
40
+ value: KVSerializable;
41
+ } | null>>;
32
42
  /**
33
43
  * Deletes a value from the key-value store.
34
44
  *
@@ -1 +1 @@
1
- {"version":3,"file":"kv-store.d.ts","sourceRoot":"","sources":["../../../src/server/experimental/kv-store.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AACnD,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;CAAC,CAAA;AAElG;;;GAGG;AACH,MAAM,WAAW,OAAO;IACpB;;;;;;;;OAQG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEzF;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QAAC,KAAK,EAAE,cAAc,CAAA;KAAC,GAAG,IAAI,CAAC,CAAA;IAEzD;;;;;OAKG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACrC;AAED,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,OAAO,CAAA"}
1
+ {"version":3,"file":"kv-store.d.ts","sourceRoot":"","sources":["../../../src/server/experimental/kv-store.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AACnD,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;CAAC,CAAA;AAElG;;;GAGG;AACH,MAAM,WAAW,OAAO;IACpB;;;;;;;;OAQG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEzF;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QAAC,KAAK,EAAE,cAAc,CAAA;KAAC,GAAG,IAAI,CAAC,CAAA;IAEzD;;;;;;OAMG;IACH,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAC,KAAK,EAAE,cAAc,CAAA;KAAC,GAAG,IAAI,CAAC,CAAC,CAAA;IAElF;;;;;OAKG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACrC;AAED,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,OAAO,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { AppSettings } from "../../../root";
2
+ /**
3
+ * Get user and workspace level settings
4
+ * @deprecated This part of the SDK is not yet released and may change. Do not use it yet.
5
+ */
6
+ export declare function getSettings(): Promise<AppSettings>;
7
+ //# sourceMappingURL=get-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-settings.d.ts","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AAE9C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-settings.js","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-settings.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { UserSettings } from "../../../root";
2
+ /**
3
+ * Get a user level setting
4
+ * @deprecated This part of the SDK is not yet released and may change. Do not use it yet.
5
+ */
6
+ export declare function getUserSetting<TKey extends keyof UserSettings>(key: TKey): Promise<UserSettings[TKey]>;
7
+ //# sourceMappingURL=get-user-setting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-setting.d.ts","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-user-setting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAA;AAE/C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,IAAI,SAAS,MAAM,YAAY,EAClE,GAAG,EAAE,IAAI,GACV,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-user-setting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-setting.js","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-user-setting.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { UserSettings } from "../../../root";
2
+ /**
3
+ * Get user level settings
4
+ * @deprecated This part of the SDK is not yet released and may change. Do not use it yet.
5
+ */
6
+ export declare function getUserSettings(): Promise<UserSettings>;
7
+ //# sourceMappingURL=get-user-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-settings.d.ts","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-user-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAA;AAE/C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-user-settings.js.map