attio 0.0.1-experimental.20251001 → 0.0.1-experimental.20251002

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 (228) 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/experimental/index.d.ts +3 -0
  13. package/lib/client/experimental/index.d.ts.map +1 -0
  14. package/lib/client/experimental/index.js +10 -0
  15. package/lib/client/experimental/index.js.map +1 -0
  16. package/lib/client/experimental/settings/get-settings.d.ts +7 -0
  17. package/lib/client/experimental/settings/get-settings.d.ts.map +1 -0
  18. package/lib/client/{workflow-block.js → experimental/settings/get-settings.js} +1 -1
  19. package/lib/client/experimental/settings/get-settings.js.map +1 -0
  20. package/lib/client/experimental/settings/index.d.ts +5 -0
  21. package/lib/client/experimental/settings/index.d.ts.map +1 -0
  22. package/lib/client/experimental/settings/index.js +8 -0
  23. package/lib/client/experimental/settings/index.js.map +1 -0
  24. package/lib/client/experimental/settings/set-user-setting.d.ts +7 -0
  25. package/lib/client/experimental/settings/set-user-setting.d.ts.map +1 -0
  26. package/lib/client/experimental/settings/set-user-setting.js +3 -0
  27. package/lib/client/experimental/settings/set-user-setting.js.map +1 -0
  28. package/lib/client/experimental/settings/set-workspace-setting.d.ts +7 -0
  29. package/lib/client/experimental/settings/set-workspace-setting.d.ts.map +1 -0
  30. package/lib/client/experimental/settings/set-workspace-setting.js +3 -0
  31. package/lib/client/experimental/settings/set-workspace-setting.js.map +1 -0
  32. package/lib/client/experimental/settings/use-settings.d.ts +7 -0
  33. package/lib/client/experimental/settings/use-settings.d.ts.map +1 -0
  34. package/lib/client/experimental/settings/use-settings.js +3 -0
  35. package/lib/client/experimental/settings/use-settings.js.map +1 -0
  36. package/lib/client/index.d.ts +3 -1
  37. package/lib/client/index.d.ts.map +1 -1
  38. package/lib/client/index.js +1 -0
  39. package/lib/client/index.js.map +1 -1
  40. package/lib/client/workflow/index.d.ts +1 -19
  41. package/lib/client/workflow/index.d.ts.map +1 -1
  42. package/lib/client/workflow/index.js +2 -1
  43. package/lib/client/workflow/index.js.map +1 -1
  44. package/lib/client/workflow/outcome-data-schema/array-node.d.ts +10 -0
  45. package/lib/client/workflow/outcome-data-schema/array-node.d.ts.map +1 -0
  46. package/lib/client/workflow/outcome-data-schema/array-node.js +3 -0
  47. package/lib/client/workflow/outcome-data-schema/array-node.js.map +1 -0
  48. package/lib/client/workflow/outcome-data-schema/attio-record.d.ts +10 -0
  49. package/lib/client/workflow/outcome-data-schema/attio-record.d.ts.map +1 -0
  50. package/lib/client/workflow/outcome-data-schema/attio-record.js +3 -0
  51. package/lib/client/workflow/outcome-data-schema/attio-record.js.map +1 -0
  52. package/lib/client/workflow/outcome-data-schema/attio-select.d.ts +10 -0
  53. package/lib/client/workflow/outcome-data-schema/attio-select.d.ts.map +1 -0
  54. package/lib/client/workflow/outcome-data-schema/attio-select.js +3 -0
  55. package/lib/client/workflow/outcome-data-schema/attio-select.js.map +1 -0
  56. package/lib/client/workflow/outcome-data-schema/boolean-node.d.ts +10 -0
  57. package/lib/client/workflow/outcome-data-schema/boolean-node.d.ts.map +1 -0
  58. package/lib/client/workflow/outcome-data-schema/boolean-node.js +3 -0
  59. package/lib/client/workflow/outcome-data-schema/boolean-node.js.map +1 -0
  60. package/lib/client/workflow/outcome-data-schema/index.d.ts +8 -0
  61. package/lib/client/workflow/outcome-data-schema/index.d.ts.map +1 -0
  62. package/lib/client/workflow/outcome-data-schema/index.js +18 -0
  63. package/lib/client/workflow/outcome-data-schema/index.js.map +1 -0
  64. package/lib/client/workflow/outcome-data-schema/number-node.d.ts +10 -0
  65. package/lib/client/workflow/outcome-data-schema/number-node.d.ts.map +1 -0
  66. package/lib/client/workflow/outcome-data-schema/number-node.js +3 -0
  67. package/lib/client/workflow/outcome-data-schema/number-node.js.map +1 -0
  68. package/lib/client/workflow/outcome-data-schema/string-node.d.ts +10 -0
  69. package/lib/client/workflow/outcome-data-schema/string-node.d.ts.map +1 -0
  70. package/lib/client/workflow/outcome-data-schema/string-node.js +3 -0
  71. package/lib/client/workflow/outcome-data-schema/string-node.js.map +1 -0
  72. package/lib/client/workflow/outcome-data-schema/struct-node.d.ts +12 -0
  73. package/lib/client/workflow/outcome-data-schema/struct-node.d.ts.map +1 -0
  74. package/lib/client/workflow/outcome-data-schema/struct-node.js +3 -0
  75. package/lib/client/workflow/outcome-data-schema/struct-node.js.map +1 -0
  76. package/lib/client/workflow/outcome.d.ts +9 -0
  77. package/lib/client/workflow/outcome.d.ts.map +1 -0
  78. package/lib/client/workflow/outcome.js +3 -0
  79. package/lib/client/workflow/outcome.js.map +1 -0
  80. package/lib/client/workflow/use-configurator.d.ts +17 -0
  81. package/lib/client/workflow/use-configurator.d.ts.map +1 -1
  82. package/lib/client/{workflow-block.d.ts → workflow-step-block.d.ts} +6 -2
  83. package/lib/client/workflow-step-block.d.ts.map +1 -0
  84. package/lib/client/workflow-step-block.js +3 -0
  85. package/lib/client/workflow-step-block.js.map +1 -0
  86. package/lib/client/workflow-trigger-block.d.ts +18 -0
  87. package/lib/client/workflow-trigger-block.d.ts.map +1 -0
  88. package/lib/client/workflow-trigger-block.js +3 -0
  89. package/lib/client/workflow-trigger-block.js.map +1 -0
  90. package/lib/commands/build.js +9 -1
  91. package/lib/commands/dev/client-builder.js +9 -3
  92. package/lib/commands/dev/prepare-build-context.js +17 -27
  93. package/lib/commands/dev/server-builder.js +3 -2
  94. package/lib/commands/dev.js +10 -1
  95. package/lib/commands/version/create.js +9 -1
  96. package/lib/constants/hidden-attio-directory.js +1 -0
  97. package/lib/constants/settings-files.js +2 -0
  98. package/lib/env.js +1 -0
  99. package/lib/root/index.d.ts +6 -0
  100. package/lib/root/index.d.ts.map +1 -0
  101. package/lib/root/index.js +12 -0
  102. package/lib/root/index.js.map +1 -0
  103. package/lib/root/settings/app-settings-schema.d.ts +6 -0
  104. package/lib/root/settings/app-settings-schema.d.ts.map +1 -0
  105. package/lib/root/settings/app-settings-schema.js +3 -0
  106. package/lib/root/settings/app-settings-schema.js.map +1 -0
  107. package/lib/root/settings/app-settings.d.ts +26 -0
  108. package/lib/root/settings/app-settings.d.ts.map +1 -0
  109. package/lib/root/settings/app-settings.js +3 -0
  110. package/lib/root/settings/app-settings.js.map +1 -0
  111. package/lib/root/settings/index.d.ts +5 -0
  112. package/lib/root/settings/index.d.ts.map +1 -0
  113. package/lib/root/settings/index.js +8 -0
  114. package/lib/root/settings/index.js.map +1 -0
  115. package/lib/root/settings/node/boolean.d.ts +11 -0
  116. package/lib/root/settings/node/boolean.d.ts.map +1 -0
  117. package/lib/root/settings/node/boolean.js +11 -0
  118. package/lib/root/settings/node/boolean.js.map +1 -0
  119. package/lib/root/settings/node/index.d.ts +7 -0
  120. package/lib/root/settings/node/index.d.ts.map +1 -0
  121. package/lib/root/settings/node/index.js +12 -0
  122. package/lib/root/settings/node/index.js.map +1 -0
  123. package/lib/root/settings/node/number.d.ts +11 -0
  124. package/lib/root/settings/node/number.d.ts.map +1 -0
  125. package/lib/root/settings/node/number.js +11 -0
  126. package/lib/root/settings/node/number.js.map +1 -0
  127. package/lib/root/settings/node/settings.d.ts +4 -0
  128. package/lib/root/settings/node/settings.d.ts.map +1 -0
  129. package/lib/root/settings/node/settings.js +10 -0
  130. package/lib/root/settings/node/settings.js.map +1 -0
  131. package/lib/root/settings/node/string.d.ts +11 -0
  132. package/lib/root/settings/node/string.d.ts.map +1 -0
  133. package/lib/root/settings/node/string.js +11 -0
  134. package/lib/root/settings/node/string.js.map +1 -0
  135. package/lib/root/settings/settings-schema.d.ts +7 -0
  136. package/lib/root/settings/settings-schema.d.ts.map +1 -0
  137. package/lib/root/settings/settings-schema.js +3 -0
  138. package/lib/root/settings/settings-schema.js.map +1 -0
  139. package/lib/root/settings/utils/typeof-setting-node.d.ts +3 -0
  140. package/lib/root/settings/utils/typeof-setting-node.d.ts.map +1 -0
  141. package/lib/root/settings/utils/typeof-setting-node.js +3 -0
  142. package/lib/root/settings/utils/typeof-setting-node.js.map +1 -0
  143. package/lib/server/experimental/index.d.ts +1 -0
  144. package/lib/server/experimental/index.d.ts.map +1 -1
  145. package/lib/server/experimental/index.js +9 -1
  146. package/lib/server/experimental/index.js.map +1 -1
  147. package/lib/server/experimental/kv-store.d.ts +10 -0
  148. package/lib/server/experimental/kv-store.d.ts.map +1 -1
  149. package/lib/server/experimental/settings/get-settings.d.ts +7 -0
  150. package/lib/server/experimental/settings/get-settings.d.ts.map +1 -0
  151. package/lib/server/experimental/settings/get-settings.js +3 -0
  152. package/lib/server/experimental/settings/get-settings.js.map +1 -0
  153. package/lib/server/experimental/settings/get-user-setting.d.ts +7 -0
  154. package/lib/server/experimental/settings/get-user-setting.d.ts.map +1 -0
  155. package/lib/server/experimental/settings/get-user-setting.js +3 -0
  156. package/lib/server/experimental/settings/get-user-setting.js.map +1 -0
  157. package/lib/server/experimental/settings/get-user-settings.d.ts +7 -0
  158. package/lib/server/experimental/settings/get-user-settings.d.ts.map +1 -0
  159. package/lib/server/experimental/settings/get-user-settings.js +3 -0
  160. package/lib/server/experimental/settings/get-user-settings.js.map +1 -0
  161. package/lib/server/experimental/settings/get-workspace-setting.d.ts +7 -0
  162. package/lib/server/experimental/settings/get-workspace-setting.d.ts.map +1 -0
  163. package/lib/server/experimental/settings/get-workspace-setting.js +3 -0
  164. package/lib/server/experimental/settings/get-workspace-setting.js.map +1 -0
  165. package/lib/server/experimental/settings/get-workspace-settings.d.ts +7 -0
  166. package/lib/server/experimental/settings/get-workspace-settings.d.ts.map +1 -0
  167. package/lib/server/experimental/settings/get-workspace-settings.js +3 -0
  168. package/lib/server/experimental/settings/get-workspace-settings.js.map +1 -0
  169. package/lib/server/experimental/settings/index.d.ts +8 -0
  170. package/lib/server/experimental/settings/index.d.ts.map +1 -0
  171. package/lib/server/experimental/settings/index.js +18 -0
  172. package/lib/server/experimental/settings/index.js.map +1 -0
  173. package/lib/server/experimental/settings/set-user-setting.d.ts +7 -0
  174. package/lib/server/experimental/settings/set-user-setting.d.ts.map +1 -0
  175. package/lib/server/experimental/settings/set-user-setting.js +3 -0
  176. package/lib/server/experimental/settings/set-user-setting.js.map +1 -0
  177. package/lib/server/experimental/settings/set-workspace-setting.d.ts +7 -0
  178. package/lib/server/experimental/settings/set-workspace-setting.d.ts.map +1 -0
  179. package/lib/server/experimental/settings/set-workspace-setting.js +3 -0
  180. package/lib/server/experimental/settings/set-workspace-setting.js.map +1 -0
  181. package/lib/shared/schema-utils/index.d.ts +1 -1
  182. package/lib/shared/schema-utils/index.d.ts.map +1 -1
  183. package/lib/shared/schema-utils/index.js +3 -0
  184. package/lib/shared/schema-utils/index.js.map +1 -1
  185. package/lib/shared/schema-utils/normalize.d.ts +1 -2
  186. package/lib/shared/schema-utils/normalize.d.ts.map +1 -1
  187. package/lib/shared/workflow/outcome/attio-record.d.ts +18 -0
  188. package/lib/shared/workflow/outcome/attio-record.d.ts.map +1 -0
  189. package/lib/shared/workflow/outcome/attio-record.js +3 -0
  190. package/lib/shared/workflow/outcome/attio-record.js.map +1 -0
  191. package/lib/shared/workflow/outcome/attio-select.d.ts +21 -0
  192. package/lib/shared/workflow/outcome/attio-select.d.ts.map +1 -0
  193. package/lib/shared/workflow/outcome/attio-select.js +3 -0
  194. package/lib/shared/workflow/outcome/attio-select.js.map +1 -0
  195. package/lib/shared/workflow/outcome/boolean-node.d.ts +11 -0
  196. package/lib/shared/workflow/outcome/boolean-node.d.ts.map +1 -0
  197. package/lib/shared/workflow/outcome/boolean-node.js +3 -0
  198. package/lib/shared/workflow/outcome/boolean-node.js.map +1 -0
  199. package/lib/shared/workflow/outcome/friendly-node.d.ts +8 -0
  200. package/lib/shared/workflow/outcome/friendly-node.d.ts.map +1 -0
  201. package/lib/shared/workflow/outcome/friendly-node.js +3 -0
  202. package/lib/shared/workflow/outcome/friendly-node.js.map +1 -0
  203. package/lib/shared/workflow/outcome/friendly-value-of.d.ts +19 -0
  204. package/lib/shared/workflow/outcome/friendly-value-of.d.ts.map +1 -0
  205. package/lib/shared/workflow/outcome/friendly-value-of.js +3 -0
  206. package/lib/shared/workflow/outcome/friendly-value-of.js.map +1 -0
  207. package/lib/shared/workflow/outcome/node.d.ts +32 -0
  208. package/lib/shared/workflow/outcome/node.d.ts.map +1 -0
  209. package/lib/shared/workflow/outcome/node.js +3 -0
  210. package/lib/shared/workflow/outcome/node.js.map +1 -0
  211. package/lib/shared/workflow/outcome/number-node.d.ts +11 -0
  212. package/lib/shared/workflow/outcome/number-node.d.ts.map +1 -0
  213. package/lib/shared/workflow/outcome/number-node.js +3 -0
  214. package/lib/shared/workflow/outcome/number-node.js.map +1 -0
  215. package/lib/shared/workflow/outcome/string-node.d.ts +11 -0
  216. package/lib/shared/workflow/outcome/string-node.d.ts.map +1 -0
  217. package/lib/shared/workflow/outcome/string-node.js +3 -0
  218. package/lib/shared/workflow/outcome/string-node.js.map +1 -0
  219. package/lib/tsconfig.lib.tsbuildinfo +1 -1
  220. package/lib/util/assert-app-settings.js +13 -0
  221. package/lib/util/exit-with-missing-app-settings.js +5 -0
  222. package/lib/util/exit-with-missing-entry-point.js +2 -8
  223. package/lib/util/generate-gitignore.js +42 -0
  224. package/lib/util/generate-settings-files.js +71 -0
  225. package/lib/util/get-package-manager-command.js +9 -0
  226. package/package.json +8 -1
  227. package/lib/client/workflow-block.d.ts.map +0 -1
  228. package/lib/client/workflow-block.js.map +0 -1
@@ -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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-settings.js","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-user-settings.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { WorkspaceSettings } from "../../../root";
2
+ /**
3
+ * Get a workspace 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 getWorkspaceSetting<TKey extends keyof WorkspaceSettings>(key: TKey): Promise<WorkspaceSettings[TKey]>;
7
+ //# sourceMappingURL=get-workspace-setting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-workspace-setting.d.ts","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-workspace-setting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEpD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,IAAI,SAAS,MAAM,iBAAiB,EAC5E,GAAG,EAAE,IAAI,GACV,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-workspace-setting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-workspace-setting.js","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-workspace-setting.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { WorkspaceSettings } from "../../../root";
2
+ /**
3
+ * Get 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 getWorkspaceSettings(): Promise<WorkspaceSettings>;
7
+ //# sourceMappingURL=get-workspace-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-workspace-settings.d.ts","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-workspace-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEpD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get-workspace-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-workspace-settings.js","sourceRoot":"","sources":["../../../../src/server/experimental/settings/get-workspace-settings.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export { getSettings } from "./get-settings";
2
+ export { getUserSetting } from "./get-user-setting";
3
+ export { getUserSettings } from "./get-user-settings";
4
+ export { getWorkspaceSetting } from "./get-workspace-setting";
5
+ export { getWorkspaceSettings } from "./get-workspace-settings";
6
+ export { setUserSetting } from "./set-user-setting";
7
+ export { setWorkspaceSetting } from "./set-workspace-setting";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/experimental/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setWorkspaceSetting = exports.setUserSetting = exports.getWorkspaceSettings = exports.getWorkspaceSetting = exports.getUserSettings = exports.getUserSetting = exports.getSettings = void 0;
4
+ var get_settings_1 = require("./get-settings");
5
+ Object.defineProperty(exports, "getSettings", { enumerable: true, get: function () { return get_settings_1.getSettings; } });
6
+ var get_user_setting_1 = require("./get-user-setting");
7
+ Object.defineProperty(exports, "getUserSetting", { enumerable: true, get: function () { return get_user_setting_1.getUserSetting; } });
8
+ var get_user_settings_1 = require("./get-user-settings");
9
+ Object.defineProperty(exports, "getUserSettings", { enumerable: true, get: function () { return get_user_settings_1.getUserSettings; } });
10
+ var get_workspace_setting_1 = require("./get-workspace-setting");
11
+ Object.defineProperty(exports, "getWorkspaceSetting", { enumerable: true, get: function () { return get_workspace_setting_1.getWorkspaceSetting; } });
12
+ var get_workspace_settings_1 = require("./get-workspace-settings");
13
+ Object.defineProperty(exports, "getWorkspaceSettings", { enumerable: true, get: function () { return get_workspace_settings_1.getWorkspaceSettings; } });
14
+ var set_user_setting_1 = require("./set-user-setting");
15
+ Object.defineProperty(exports, "setUserSetting", { enumerable: true, get: function () { return set_user_setting_1.setUserSetting; } });
16
+ var set_workspace_setting_1 = require("./set-workspace-setting");
17
+ Object.defineProperty(exports, "setWorkspaceSetting", { enumerable: true, get: function () { return set_workspace_setting_1.setWorkspaceSetting; } });
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/server/experimental/settings/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAAlC,2GAAA,WAAW,OAAA;AACnB,uDAAiD;AAAzC,kHAAA,cAAc,OAAA;AACtB,yDAAmD;AAA3C,oHAAA,eAAe,OAAA;AACvB,iEAA2D;AAAnD,4HAAA,mBAAmB,OAAA;AAC3B,mEAA6D;AAArD,8HAAA,oBAAoB,OAAA;AAC5B,uDAAiD;AAAzC,kHAAA,cAAc,OAAA;AACtB,iEAA2D;AAAnD,4HAAA,mBAAmB,OAAA"}
@@ -0,0 +1,7 @@
1
+ import type { UserSettings } from "../../../root";
2
+ /**
3
+ * Set 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 setUserSetting<TKey extends keyof UserSettings>(key: TKey, value: UserSettings[TKey]): Promise<void>;
7
+ //# sourceMappingURL=set-user-setting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-user-setting.d.ts","sourceRoot":"","sources":["../../../../src/server/experimental/settings/set-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,EACT,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,GAC1B,OAAO,CAAC,IAAI,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=set-user-setting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-user-setting.js","sourceRoot":"","sources":["../../../../src/server/experimental/settings/set-user-setting.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { WorkspaceSettings } from "../../../root";
2
+ /**
3
+ * Set a workspace 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 setWorkspaceSetting<TKey extends keyof WorkspaceSettings>(key: TKey, value: WorkspaceSettings[TKey]): Promise<void>;
7
+ //# sourceMappingURL=set-workspace-setting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-workspace-setting.d.ts","sourceRoot":"","sources":["../../../../src/server/experimental/settings/set-workspace-setting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEpD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,IAAI,SAAS,MAAM,iBAAiB,EAC5E,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAC/B,OAAO,CAAC,IAAI,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=set-workspace-setting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-workspace-setting.js","sourceRoot":"","sources":["../../../../src/server/experimental/settings/set-workspace-setting.ts"],"names":[],"mappings":""}
@@ -4,7 +4,6 @@
4
4
  export type { ArrayNode } from "./array-node";
5
5
  export type { AttioEntityReference } from "./attio-entity-reference";
6
6
  export type { AttioSelect } from "./attio-select";
7
- export type { BaseNode } from "./base-node";
8
7
  export type { BooleanNode } from "./boolean-node";
9
8
  export type { Friendly } from "./friendly";
10
9
  export type { Normalized } from "./normalize";
@@ -13,4 +12,5 @@ export type { Path, PathTo } from "./path";
13
12
  export type { RichTextNode } from "./rich-text-node";
14
13
  export type { StringNode } from "./string-node";
15
14
  export type { StructNode } from "./struct-node";
15
+ export { BaseNode } from "./base-node";
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/schema-utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAC,SAAS,EAAC,MAAM,cAAc,CAAA;AAC3C,YAAY,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;AAClE,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC/C,YAAY,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AACzC,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC/C,YAAY,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACxC,YAAY,EAAC,UAAU,EAAC,MAAM,aAAa,CAAA;AAC3C,YAAY,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7C,YAAY,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,QAAQ,CAAA;AACxC,YAAY,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAA;AAClD,YAAY,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7C,YAAY,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/schema-utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAC,SAAS,EAAC,MAAM,cAAc,CAAA;AAC3C,YAAY,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;AAClE,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC/C,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC/C,YAAY,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACxC,YAAY,EAAC,UAAU,EAAC,MAAM,aAAa,CAAA;AAC3C,YAAY,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7C,YAAY,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,QAAQ,CAAA;AACxC,YAAY,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAA;AAClD,YAAY,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7C,YAAY,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA"}
@@ -3,4 +3,7 @@
3
3
  * This code is copied from "Schema" inside @attio/attio-utils.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BaseNode = void 0;
7
+ var base_node_1 = require("./base-node");
8
+ Object.defineProperty(exports, "BaseNode", { enumerable: true, get: function () { return base_node_1.BaseNode; } });
6
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/schema-utils/index.ts"],"names":[],"mappings":";AAAA;;GAEG"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/schema-utils/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAaH,yCAAoC;AAA5B,qGAAA,QAAQ,OAAA"}
@@ -2,7 +2,7 @@ import type { ArrayNode } from "./array-node";
2
2
  import type { BaseNode } from "./base-node";
3
3
  import type { Friendly } from "./friendly";
4
4
  import type { StructNode } from "./struct-node";
5
- type NormalizedObject<TObject> = {
5
+ export type NormalizedObject<TObject> = {
6
6
  [K in keyof TObject]: TObject[K] extends Friendly<BaseNode> ? Normalized<TObject[K]> : never;
7
7
  };
8
8
  /**
@@ -13,5 +13,4 @@ export type Normalized<TFriendlyNode extends Friendly<any>> = TFriendlyNode exte
13
13
  }, infer TOptions> ? StructNode<NormalizedObject<TObject>, TOptions> : TFriendlyNode extends ArrayNode<infer TElement extends Friendly<BaseNode>, infer TOptions> ? ArrayNode<Normalized<TElement>, TOptions> : TFriendlyNode extends Exclude<BaseNode, StructNode<any> | ArrayNode<any>> ? TFriendlyNode : StructNode<NormalizedObject<TFriendlyNode>, {
14
14
  is_optional: false;
15
15
  }>;
16
- export {};
17
16
  //# sourceMappingURL=normalize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../src/shared/schema-utils/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAE7C,KAAK,gBAAgB,CAAC,OAAO,IAAI;KAC5B,CAAC,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAC/F,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,aAAa,SAAS,QAAQ,CAAC,GAAG,CAAC,IAAI,aAAa,SAAS,UAAU,CAC1F,MAAM,OAAO,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAA;CAAC,EACzD,MAAM,QAAQ,CACjB,GACK,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,GAC/C,aAAa,SAAS,SAAS,CAAC,MAAM,QAAQ,SAAS,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAQ,CAAC,GACxF,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,GACzC,aAAa,SAAS,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,GACvE,aAAa,GACb,UAAU,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../src/shared/schema-utils/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAE7C,MAAM,MAAM,gBAAgB,CAAC,OAAO,IAAI;KACnC,CAAC,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAC/F,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,aAAa,SAAS,QAAQ,CAAC,GAAG,CAAC,IAAI,aAAa,SAAS,UAAU,CAC1F,MAAM,OAAO,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAA;CAAC,EACzD,MAAM,QAAQ,CACjB,GACK,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,GAC/C,aAAa,SAAS,SAAS,CAAC,MAAM,QAAQ,SAAS,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAQ,CAAC,GACxF,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,GACzC,aAAa,SAAS,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,GACvE,aAAa,GACb,UAAU,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type * as Schema from "../../schema-utils";
2
+ /**
3
+ * An Attio record attribute inside a schema.
4
+ */
5
+ export interface AttioRecord<TOptions extends {
6
+ object_slug?: string | Array<string>;
7
+ is_optional: boolean;
8
+ } = {
9
+ object_slug?: string | Array<string>;
10
+ is_optional: boolean;
11
+ }> extends Schema.AttioEntityReference<TOptions> {
12
+ object(args: {
13
+ slug: string | Array<string>;
14
+ }): AttioRecord<TOptions & {
15
+ object_slug: string | Array<string>;
16
+ }>;
17
+ }
18
+ //# sourceMappingURL=attio-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attio-record.d.ts","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/attio-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,oBAAoB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,WAAW,CACxB,QAAQ,SAAS;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;IACpC,WAAW,EAAE,OAAO,CAAA;CACvB,GAAG;IACA,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;IACpC,WAAW,EAAE,OAAO,CAAA;CACvB,CACH,SAAQ,MAAM,CAAC,oBAAoB,CAAC,QAAQ,CAAC;IAC3C,MAAM,CAAC,IAAI,EAAE;QACT,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAC/B,GAAG,WAAW,CAAC,QAAQ,GAAG;QAAC,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,CAAC,CAAA;CACpE"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=attio-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attio-record.js","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/attio-record.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import type * as Schema from "../../schema-utils";
2
+ /**
3
+ * An Attio select attribute inside a schema.
4
+ */
5
+ export interface AttioSelect<TOptions extends ({
6
+ object_slug: string;
7
+ attribute_slug: string;
8
+ } | {}) & {
9
+ is_optional: boolean;
10
+ } = {
11
+ is_optional: boolean;
12
+ }> extends Schema.AttioSelect<TOptions> {
13
+ attribute(args: {
14
+ objectSlug: string;
15
+ attributeSlug: string;
16
+ }): AttioSelect<Omit<TOptions, "object_slug" | "attribute_slug"> & {
17
+ object_slug: string;
18
+ attribute_slug: string;
19
+ }>;
20
+ }
21
+ //# sourceMappingURL=attio-select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attio-select.d.ts","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/attio-select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,oBAAoB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,WAAW,CACxB,QAAQ,SAAS,CACX;IACI,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;CACzB,GACD,EAAE,CACP,GAAG;IACA,WAAW,EAAE,OAAO,CAAA;CACvB,GAAG;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,CAC5B,SAAQ,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC;IAClC,SAAS,CAAC,IAAI,EAAE;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAC,GAAG,WAAW,CACrE,IAAI,CAAC,QAAQ,EAAE,aAAa,GAAG,gBAAgB,CAAC,GAAG;QAC/C,WAAW,EAAE,MAAM,CAAA;QACnB,cAAc,EAAE,MAAM,CAAA;KACzB,CACJ,CAAA;CACJ"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=attio-select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attio-select.js","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/attio-select.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type * as Schema from "../../schema-utils";
2
+ /**
3
+ * A boolean inside a schema.
4
+ */
5
+ export interface BooleanNode<TOptions extends {
6
+ is_optional: boolean;
7
+ } = {
8
+ is_optional: boolean;
9
+ }> extends Schema.BooleanNode<TOptions> {
10
+ }
11
+ //# sourceMappingURL=boolean-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean-node.d.ts","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/boolean-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,oBAAoB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,QAAQ,SAAS;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,GAAG;IAAC,WAAW,EAAE,OAAO,CAAA;CAAC,CACzF,SAAQ,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=boolean-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean-node.js","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/boolean-node.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type * as Schema from "../../schema-utils";
2
+ import type { Node } from "./node";
3
+ /**
4
+ * A schema describing the data associated with a block outcome.
5
+ * It's friendly because it permits JavaScript objects in place of structs.
6
+ */
7
+ export type FriendlyNode = Schema.Friendly<Node>;
8
+ //# sourceMappingURL=friendly-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friendly-node.d.ts","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/friendly-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,oBAAoB,CAAA;AACjD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAEhC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=friendly-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friendly-node.js","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/friendly-node.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import type * as Schema from "../../schema-utils";
2
+ import type { AttioRecordValue, AttioSelectOptionValue } from "../friendly-value";
3
+ import type { AttioRecord } from "./attio-record";
4
+ import type { AttioSelect } from "./attio-select";
5
+ import type { BooleanNode } from "./boolean-node";
6
+ import type { ArrayNode, Node, StructNode } from "./node";
7
+ import type { NumberNode } from "./number-node";
8
+ import type { StringNode } from "./string-node";
9
+ /**
10
+ * Given an outcome data schema node, this returns the values that are assignable to it.
11
+ */
12
+ export type FriendlyValueOf<TNode extends Node> = (TNode extends Schema.BaseNode<any, {
13
+ is_optional: false;
14
+ }> ? never : undefined) | (TNode extends StringNode ? string : TNode extends NumberNode ? number : TNode extends AttioSelect ? AttioSelectOptionValue : TNode extends AttioRecord ? AttioRecordValue : TNode extends StructNode<infer TEntries extends {
15
+ [key: string]: Node;
16
+ }> ? {
17
+ [K in keyof TEntries]: FriendlyValueOf<TEntries[K]>;
18
+ } : TNode extends ArrayNode<infer TElement extends Node> ? Array<FriendlyValueOf<TElement>> : TNode extends BooleanNode ? boolean : never);
19
+ //# sourceMappingURL=friendly-value-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friendly-value-of.d.ts","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/friendly-value-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,oBAAoB,CAAA;AACjD,OAAO,KAAK,EAAC,gBAAgB,EAAE,sBAAsB,EAAC,MAAM,mBAAmB,CAAA;AAC/E,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAC,SAAS,EAAE,IAAI,EAAE,UAAU,EAAC,MAAM,QAAQ,CAAA;AACvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAE7C;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,IAAI,IACxC,CAAC,KAAK,SAAS,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,GAAG,KAAK,GAAG,SAAS,CAAC,GAC9E,CAAC,KAAK,SAAS,UAAU,GACnB,MAAM,GACN,KAAK,SAAS,UAAU,GACtB,MAAM,GACN,KAAK,SAAS,WAAW,GACvB,sBAAsB,GACtB,KAAK,SAAS,WAAW,GACvB,gBAAgB,GAChB,KAAK,SAAS,UAAU,CAAC,MAAM,QAAQ,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAC,CAAC,GACpE;KACK,CAAC,IAAI,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;CACtD,GACD,KAAK,SAAS,SAAS,CAAC,MAAM,QAAQ,SAAS,IAAI,CAAC,GAClD,KAAK,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,GAChC,KAAK,SAAS,WAAW,GACvB,OAAO,GACP,KAAK,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=friendly-value-of.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friendly-value-of.js","sourceRoot":"","sources":["../../../../src/shared/workflow/outcome/friendly-value-of.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import type * as Schema from "../../schema-utils";
2
+ import type { AttioRecord } from "./attio-record";
3
+ import type { AttioSelect } from "./attio-select";
4
+ import type { NumberNode } from "./number-node";
5
+ import type { StringNode } from "./string-node";
6
+ /**
7
+ * An array inside a schema.
8
+ */
9
+ export interface ArrayNode<TElement = Node, TOptions extends {
10
+ is_optional: boolean;
11
+ } = {
12
+ is_optional: boolean;
13
+ }> extends Schema.ArrayNode<TElement, TOptions> {
14
+ }
15
+ /**
16
+ * A struct inside a schema.
17
+ */
18
+ export interface StructNode<TFields extends {
19
+ [key: string]: unknown;
20
+ } = {
21
+ [key: string]: Node;
22
+ }, TOptions extends {
23
+ is_optional: boolean;
24
+ } = {
25
+ is_optional: boolean;
26
+ }> extends Schema.StructNode<TFields, TOptions> {
27
+ }
28
+ /**
29
+ * A schema describing the data associated with a block outcome.
30
+ */
31
+ export type Node = StringNode | NumberNode | AttioSelect | AttioRecord | ArrayNode | StructNode;
32
+ //# sourceMappingURL=node.d.ts.map