@osdk/functions 1.5.1 → 1.5.2

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 (53) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/browser/aliases/aliases.test.js +191 -0
  3. package/build/browser/aliases/aliases.test.js.map +1 -0
  4. package/build/browser/aliases/custom.js +26 -0
  5. package/build/browser/aliases/custom.js.map +1 -0
  6. package/build/browser/aliases/environment.js +48 -0
  7. package/build/browser/aliases/environment.js.map +1 -0
  8. package/build/browser/aliases/index.js +19 -0
  9. package/build/browser/aliases/index.js.map +1 -0
  10. package/build/browser/aliases/loaders.js +66 -0
  11. package/build/browser/aliases/loaders.js.map +1 -0
  12. package/build/browser/aliases/model.js +26 -0
  13. package/build/browser/aliases/model.js.map +1 -0
  14. package/build/browser/aliases/types.js +30 -0
  15. package/build/browser/aliases/types.js.map +1 -0
  16. package/build/browser/index.js +1 -0
  17. package/build/browser/index.js.map +1 -1
  18. package/build/cjs/index.cjs +133 -0
  19. package/build/cjs/index.cjs.map +1 -1
  20. package/build/cjs/index.d.cts +20 -1
  21. package/build/esm/aliases/aliases.test.js +191 -0
  22. package/build/esm/aliases/aliases.test.js.map +1 -0
  23. package/build/esm/aliases/custom.js +26 -0
  24. package/build/esm/aliases/custom.js.map +1 -0
  25. package/build/esm/aliases/environment.js +48 -0
  26. package/build/esm/aliases/environment.js.map +1 -0
  27. package/build/esm/aliases/index.js +19 -0
  28. package/build/esm/aliases/index.js.map +1 -0
  29. package/build/esm/aliases/loaders.js +66 -0
  30. package/build/esm/aliases/loaders.js.map +1 -0
  31. package/build/esm/aliases/model.js +26 -0
  32. package/build/esm/aliases/model.js.map +1 -0
  33. package/build/esm/aliases/types.js +30 -0
  34. package/build/esm/aliases/types.js.map +1 -0
  35. package/build/esm/index.js +1 -0
  36. package/build/esm/index.js.map +1 -1
  37. package/build/types/aliases/aliases.test.d.ts +1 -0
  38. package/build/types/aliases/aliases.test.d.ts.map +1 -0
  39. package/build/types/aliases/custom.d.ts +3 -0
  40. package/build/types/aliases/custom.d.ts.map +1 -0
  41. package/build/types/aliases/environment.d.ts +6 -0
  42. package/build/types/aliases/environment.d.ts.map +1 -0
  43. package/build/types/aliases/index.d.ts +2 -0
  44. package/build/types/aliases/index.d.ts.map +1 -0
  45. package/build/types/aliases/loaders.d.ts +3 -0
  46. package/build/types/aliases/loaders.d.ts.map +1 -0
  47. package/build/types/aliases/model.d.ts +3 -0
  48. package/build/types/aliases/model.d.ts.map +1 -0
  49. package/build/types/aliases/types.d.ts +40 -0
  50. package/build/types/aliases/types.d.ts.map +1 -0
  51. package/build/types/index.d.ts +1 -0
  52. package/build/types/index.d.ts.map +1 -1
  53. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @osdk/functions
2
2
 
3
+ ## 1.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - b2d94c9: Add helper functions for resolving custom and model aliases in functions
8
+
3
9
  ## 1.5.1
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,191 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import * as fs from "fs";
18
+ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
19
+ import { custom } from "./custom.js";
20
+ import { ALIASES_JSON_FILE_ENV_VAR, detectEnvironment, RESOURCES_JSON_FILE_ENV_VAR } from "./environment.js";
21
+ import { resetPublishedCache } from "./loaders.js";
22
+ import { model } from "./model.js";
23
+ import { AliasEnvironment } from "./types.js";
24
+
25
+ // Read test data before mocking fs - use node:fs which is not affected by vi.mock("fs")
26
+ const {
27
+ testAliasesData,
28
+ testResourcesData
29
+ } = vi.hoisted(() => {
30
+ const nodeFs = require("node:fs");
31
+ const nodePath = require("node:path");
32
+ const aliasesPath = nodePath.resolve(__dirname, "./test-data/aliases.json");
33
+ const resourcesPath = nodePath.resolve(__dirname, "./test-data/resources.json");
34
+ return {
35
+ testAliasesData: nodeFs.readFileSync(aliasesPath, "utf-8"),
36
+ testResourcesData: nodeFs.readFileSync(resourcesPath, "utf-8")
37
+ };
38
+ });
39
+ vi.mock("fs");
40
+ describe("environment detection", () => {
41
+ beforeEach(() => {
42
+ delete process.env[ALIASES_JSON_FILE_ENV_VAR];
43
+ delete process.env[RESOURCES_JSON_FILE_ENV_VAR];
44
+ });
45
+ afterEach(() => {
46
+ delete process.env[ALIASES_JSON_FILE_ENV_VAR];
47
+ delete process.env[RESOURCES_JSON_FILE_ENV_VAR];
48
+ });
49
+ it("detects published environment", () => {
50
+ process.env[ALIASES_JSON_FILE_ENV_VAR] = "/some/path/aliases.json";
51
+ expect(detectEnvironment()).toBe(AliasEnvironment.PUBLISHED);
52
+ });
53
+ it("detects live preview environment", () => {
54
+ process.env[RESOURCES_JSON_FILE_ENV_VAR] = "/some/path/resources.json";
55
+ expect(detectEnvironment()).toBe(AliasEnvironment.LIVE_PREVIEW);
56
+ });
57
+ it("throws when both env vars are set", () => {
58
+ process.env[ALIASES_JSON_FILE_ENV_VAR] = "/some/path/aliases.json";
59
+ process.env[RESOURCES_JSON_FILE_ENV_VAR] = "/some/path/resources.json";
60
+ expect(() => detectEnvironment()).toThrow("Ambiguous alias configuration");
61
+ });
62
+ it("throws when neither env var is set", () => {
63
+ expect(() => detectEnvironment()).toThrow("Unknown alias environment");
64
+ });
65
+ });
66
+ describe("published mode aliases", () => {
67
+ beforeEach(() => {
68
+ resetPublishedCache();
69
+ vi.clearAllMocks();
70
+ delete process.env[RESOURCES_JSON_FILE_ENV_VAR];
71
+ process.env[ALIASES_JSON_FILE_ENV_VAR] = "/app/var/data/aliases.json";
72
+ vi.mocked(fs.existsSync).mockReturnValue(true);
73
+ vi.mocked(fs.readFileSync).mockReturnValue(testAliasesData);
74
+ });
75
+ afterEach(() => {
76
+ delete process.env[ALIASES_JSON_FILE_ENV_VAR];
77
+ delete process.env[RESOURCES_JSON_FILE_ENV_VAR];
78
+ });
79
+ describe("custom", () => {
80
+ it("loads alias successfully", () => {
81
+ const result = custom("myCustomAlias");
82
+ expect(result).toBe("myCustomValue");
83
+ });
84
+ it("throws on nonexistent alias", () => {
85
+ expect(() => custom("nonexistent")).toThrow("Custom alias 'nonexistent' not found. Available aliases: [myCustomAlias, anotherCustomAlias]");
86
+ });
87
+ it("selects correct alias from multiple", () => {
88
+ expect(custom("myCustomAlias")).toBe("myCustomValue");
89
+ expect(custom("anotherCustomAlias")).toBe("anotherCustomValue");
90
+ });
91
+ });
92
+ describe("model", () => {
93
+ it("loads alias successfully and returns rid", () => {
94
+ const result = model("myModelAlias");
95
+ expect(result).toEqual({
96
+ rid: "ri.foundry-ml.main.model.12345678-1234-1234-1234-123456789012"
97
+ });
98
+ });
99
+ it("throws on nonexistent alias", () => {
100
+ expect(() => model("nonexistent")).toThrow("Model alias 'nonexistent' not found. Available aliases: [myModelAlias, anotherModelAlias]");
101
+ });
102
+ it("selects correct alias from multiple", () => {
103
+ const result1 = model("myModelAlias");
104
+ const result2 = model("anotherModelAlias");
105
+ expect(result1.rid).toBe("ri.foundry-ml.main.model.12345678-1234-1234-1234-123456789012");
106
+ expect(result2.rid).toBe("ri.foundry-ml.main.model.87654321-4321-4321-4321-210987654321");
107
+ });
108
+ });
109
+ describe("caching", () => {
110
+ it("reads file only once across multiple lookups", () => {
111
+ custom("myCustomAlias");
112
+ model("myModelAlias");
113
+ custom("anotherCustomAlias");
114
+ expect(fs.readFileSync).toHaveBeenCalledTimes(1);
115
+ });
116
+ it("re-reads after resetPublishedCache", () => {
117
+ custom("myCustomAlias");
118
+ expect(fs.readFileSync).toHaveBeenCalledTimes(1);
119
+ resetPublishedCache();
120
+ custom("myCustomAlias");
121
+ expect(fs.readFileSync).toHaveBeenCalledTimes(2);
122
+ });
123
+ });
124
+ describe("file not found", () => {
125
+ it("throws when aliases file does not exist", () => {
126
+ vi.mocked(fs.existsSync).mockReturnValue(false);
127
+ expect(() => custom("any-alias")).toThrow("Aliases file not found at");
128
+ });
129
+ });
130
+ });
131
+ describe("live preview mode aliases", () => {
132
+ beforeEach(() => {
133
+ vi.clearAllMocks();
134
+ delete process.env[ALIASES_JSON_FILE_ENV_VAR];
135
+ process.env[RESOURCES_JSON_FILE_ENV_VAR] = "/app/var/data/resources.json";
136
+ vi.mocked(fs.existsSync).mockReturnValue(true);
137
+ vi.mocked(fs.readFileSync).mockReturnValue(testResourcesData);
138
+ });
139
+ afterEach(() => {
140
+ delete process.env[ALIASES_JSON_FILE_ENV_VAR];
141
+ delete process.env[RESOURCES_JSON_FILE_ENV_VAR];
142
+ });
143
+ describe("custom", () => {
144
+ it("loads alias successfully", () => {
145
+ const result = custom("previewCustomAlias");
146
+ expect(result).toBe("previewCustomValue");
147
+ });
148
+ it("throws on nonexistent alias", () => {
149
+ expect(() => custom("nonexistent")).toThrow("Custom alias 'nonexistent' not found. Available aliases: [previewCustomAlias, anotherPreviewCustom]");
150
+ });
151
+ it("selects correct alias from multiple", () => {
152
+ expect(custom("previewCustomAlias")).toBe("previewCustomValue");
153
+ expect(custom("anotherPreviewCustom")).toBe("anotherPreviewValue");
154
+ });
155
+ });
156
+ describe("model", () => {
157
+ it("loads alias successfully and returns rid", () => {
158
+ const result = model("previewModelAlias");
159
+ expect(result).toEqual({
160
+ rid: "ri.foundry-ml.main.model.aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
161
+ });
162
+ });
163
+ it("throws on nonexistent alias", () => {
164
+ expect(() => model("nonexistent")).toThrow("Model alias 'nonexistent' not found. Available aliases: [previewModelAlias, anotherPreviewModel]");
165
+ });
166
+ it("selects correct alias from multiple", () => {
167
+ const result1 = model("previewModelAlias");
168
+ const result2 = model("anotherPreviewModel");
169
+ expect(result1.rid).toBe("ri.foundry-ml.main.model.aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa");
170
+ expect(result2.rid).toBe("ri.foundry-ml.main.model.bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb");
171
+ });
172
+ it("excludes models with null or missing alias", () => {
173
+ expect(() => model("some-random-lookup")).toThrow("Available aliases: [previewModelAlias, anotherPreviewModel]");
174
+ });
175
+ });
176
+ describe("no caching", () => {
177
+ it("re-reads file on every call", () => {
178
+ custom("previewCustomAlias");
179
+ custom("previewCustomAlias");
180
+ custom("previewCustomAlias");
181
+ expect(fs.readFileSync).toHaveBeenCalledTimes(3);
182
+ });
183
+ });
184
+ describe("file not found", () => {
185
+ it("throws when resources file does not exist", () => {
186
+ vi.mocked(fs.existsSync).mockReturnValue(false);
187
+ expect(() => custom("any-alias")).toThrow("Resources file not found at");
188
+ });
189
+ });
190
+ });
191
+ //# sourceMappingURL=aliases.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aliases.test.js","names":["fs","afterEach","beforeEach","describe","expect","it","vi","custom","ALIASES_JSON_FILE_ENV_VAR","detectEnvironment","RESOURCES_JSON_FILE_ENV_VAR","resetPublishedCache","model","AliasEnvironment","testAliasesData","testResourcesData","hoisted","nodeFs","require","nodePath","aliasesPath","resolve","__dirname","resourcesPath","readFileSync","mock","process","env","toBe","PUBLISHED","LIVE_PREVIEW","toThrow","clearAllMocks","mocked","existsSync","mockReturnValue","result","toEqual","rid","result1","result2","toHaveBeenCalledTimes"],"sources":["aliases.test.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as fs from \"fs\";\nimport { afterEach, beforeEach, describe, expect, it, vi } from \"vitest\";\nimport { custom } from \"./custom.js\";\nimport {\n ALIASES_JSON_FILE_ENV_VAR,\n detectEnvironment,\n RESOURCES_JSON_FILE_ENV_VAR,\n} from \"./environment.js\";\nimport { resetPublishedCache } from \"./loaders.js\";\nimport { model } from \"./model.js\";\nimport { AliasEnvironment } from \"./types.js\";\n\n// Read test data before mocking fs - use node:fs which is not affected by vi.mock(\"fs\")\nconst { testAliasesData, testResourcesData } = vi.hoisted(() => {\n const nodeFs = require(\"node:fs\");\n const nodePath = require(\"node:path\");\n const aliasesPath = nodePath.resolve(\n __dirname,\n \"./test-data/aliases.json\",\n );\n const resourcesPath = nodePath.resolve(\n __dirname,\n \"./test-data/resources.json\",\n );\n return {\n testAliasesData: nodeFs.readFileSync(aliasesPath, \"utf-8\") as string,\n testResourcesData: nodeFs.readFileSync(resourcesPath, \"utf-8\") as string,\n };\n});\n\nvi.mock(\"fs\");\n\ndescribe(\"environment detection\", () => {\n beforeEach(() => {\n delete process.env[ALIASES_JSON_FILE_ENV_VAR];\n delete process.env[RESOURCES_JSON_FILE_ENV_VAR];\n });\n\n afterEach(() => {\n delete process.env[ALIASES_JSON_FILE_ENV_VAR];\n delete process.env[RESOURCES_JSON_FILE_ENV_VAR];\n });\n\n it(\"detects published environment\", () => {\n process.env[ALIASES_JSON_FILE_ENV_VAR] = \"/some/path/aliases.json\";\n expect(detectEnvironment()).toBe(AliasEnvironment.PUBLISHED);\n });\n\n it(\"detects live preview environment\", () => {\n process.env[RESOURCES_JSON_FILE_ENV_VAR] = \"/some/path/resources.json\";\n expect(detectEnvironment()).toBe(AliasEnvironment.LIVE_PREVIEW);\n });\n\n it(\"throws when both env vars are set\", () => {\n process.env[ALIASES_JSON_FILE_ENV_VAR] = \"/some/path/aliases.json\";\n process.env[RESOURCES_JSON_FILE_ENV_VAR] = \"/some/path/resources.json\";\n expect(() => detectEnvironment()).toThrow(\n \"Ambiguous alias configuration\",\n );\n });\n\n it(\"throws when neither env var is set\", () => {\n expect(() => detectEnvironment()).toThrow(\n \"Unknown alias environment\",\n );\n });\n});\n\ndescribe(\"published mode aliases\", () => {\n beforeEach(() => {\n resetPublishedCache();\n vi.clearAllMocks();\n delete process.env[RESOURCES_JSON_FILE_ENV_VAR];\n process.env[ALIASES_JSON_FILE_ENV_VAR] = \"/app/var/data/aliases.json\";\n vi.mocked(fs.existsSync).mockReturnValue(true);\n vi.mocked(fs.readFileSync).mockReturnValue(testAliasesData);\n });\n\n afterEach(() => {\n delete process.env[ALIASES_JSON_FILE_ENV_VAR];\n delete process.env[RESOURCES_JSON_FILE_ENV_VAR];\n });\n\n describe(\"custom\", () => {\n it(\"loads alias successfully\", () => {\n const result = custom(\"myCustomAlias\");\n expect(result).toBe(\"myCustomValue\");\n });\n\n it(\"throws on nonexistent alias\", () => {\n expect(() => custom(\"nonexistent\")).toThrow(\n \"Custom alias 'nonexistent' not found. Available aliases: [myCustomAlias, anotherCustomAlias]\",\n );\n });\n\n it(\"selects correct alias from multiple\", () => {\n expect(custom(\"myCustomAlias\")).toBe(\"myCustomValue\");\n expect(custom(\"anotherCustomAlias\")).toBe(\"anotherCustomValue\");\n });\n });\n\n describe(\"model\", () => {\n it(\"loads alias successfully and returns rid\", () => {\n const result = model(\"myModelAlias\");\n expect(result).toEqual({\n rid: \"ri.foundry-ml.main.model.12345678-1234-1234-1234-123456789012\",\n });\n });\n\n it(\"throws on nonexistent alias\", () => {\n expect(() => model(\"nonexistent\")).toThrow(\n \"Model alias 'nonexistent' not found. Available aliases: [myModelAlias, anotherModelAlias]\",\n );\n });\n\n it(\"selects correct alias from multiple\", () => {\n const result1 = model(\"myModelAlias\");\n const result2 = model(\"anotherModelAlias\");\n expect(result1.rid).toBe(\n \"ri.foundry-ml.main.model.12345678-1234-1234-1234-123456789012\",\n );\n expect(result2.rid).toBe(\n \"ri.foundry-ml.main.model.87654321-4321-4321-4321-210987654321\",\n );\n });\n });\n\n describe(\"caching\", () => {\n it(\"reads file only once across multiple lookups\", () => {\n custom(\"myCustomAlias\");\n model(\"myModelAlias\");\n custom(\"anotherCustomAlias\");\n\n expect(fs.readFileSync).toHaveBeenCalledTimes(1);\n });\n\n it(\"re-reads after resetPublishedCache\", () => {\n custom(\"myCustomAlias\");\n expect(fs.readFileSync).toHaveBeenCalledTimes(1);\n\n resetPublishedCache();\n custom(\"myCustomAlias\");\n expect(fs.readFileSync).toHaveBeenCalledTimes(2);\n });\n });\n\n describe(\"file not found\", () => {\n it(\"throws when aliases file does not exist\", () => {\n vi.mocked(fs.existsSync).mockReturnValue(false);\n\n expect(() => custom(\"any-alias\")).toThrow(\n \"Aliases file not found at\",\n );\n });\n });\n});\n\ndescribe(\"live preview mode aliases\", () => {\n beforeEach(() => {\n vi.clearAllMocks();\n delete process.env[ALIASES_JSON_FILE_ENV_VAR];\n process.env[RESOURCES_JSON_FILE_ENV_VAR] = \"/app/var/data/resources.json\";\n vi.mocked(fs.existsSync).mockReturnValue(true);\n vi.mocked(fs.readFileSync).mockReturnValue(testResourcesData);\n });\n\n afterEach(() => {\n delete process.env[ALIASES_JSON_FILE_ENV_VAR];\n delete process.env[RESOURCES_JSON_FILE_ENV_VAR];\n });\n\n describe(\"custom\", () => {\n it(\"loads alias successfully\", () => {\n const result = custom(\"previewCustomAlias\");\n expect(result).toBe(\"previewCustomValue\");\n });\n\n it(\"throws on nonexistent alias\", () => {\n expect(() => custom(\"nonexistent\")).toThrow(\n \"Custom alias 'nonexistent' not found. Available aliases: [previewCustomAlias, anotherPreviewCustom]\",\n );\n });\n\n it(\"selects correct alias from multiple\", () => {\n expect(custom(\"previewCustomAlias\")).toBe(\"previewCustomValue\");\n expect(custom(\"anotherPreviewCustom\")).toBe(\"anotherPreviewValue\");\n });\n });\n\n describe(\"model\", () => {\n it(\"loads alias successfully and returns rid\", () => {\n const result = model(\"previewModelAlias\");\n expect(result).toEqual({\n rid: \"ri.foundry-ml.main.model.aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa\",\n });\n });\n\n it(\"throws on nonexistent alias\", () => {\n expect(() => model(\"nonexistent\")).toThrow(\n \"Model alias 'nonexistent' not found. Available aliases: [previewModelAlias, anotherPreviewModel]\",\n );\n });\n\n it(\"selects correct alias from multiple\", () => {\n const result1 = model(\"previewModelAlias\");\n const result2 = model(\"anotherPreviewModel\");\n expect(result1.rid).toBe(\n \"ri.foundry-ml.main.model.aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa\",\n );\n expect(result2.rid).toBe(\n \"ri.foundry-ml.main.model.bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb\",\n );\n });\n\n it(\"excludes models with null or missing alias\", () => {\n expect(() => model(\"some-random-lookup\")).toThrow(\n \"Available aliases: [previewModelAlias, anotherPreviewModel]\",\n );\n });\n });\n\n describe(\"no caching\", () => {\n it(\"re-reads file on every call\", () => {\n custom(\"previewCustomAlias\");\n custom(\"previewCustomAlias\");\n custom(\"previewCustomAlias\");\n\n expect(fs.readFileSync).toHaveBeenCalledTimes(3);\n });\n });\n\n describe(\"file not found\", () => {\n it(\"throws when resources file does not exist\", () => {\n vi.mocked(fs.existsSync).mockReturnValue(false);\n\n expect(() => custom(\"any-alias\")).toThrow(\n \"Resources file not found at\",\n );\n });\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,KAAKA,EAAE,MAAM,IAAI;AACxB,SAASC,SAAS,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,EAAEC,EAAE,QAAQ,QAAQ;AACxE,SAASC,MAAM,QAAQ,aA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C,CAACwB,OAAO,CACvC,6BACF,CAAC;IACH,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { loadResolvedAliases } from "./loaders.js";
18
+ export function custom(alias) {
19
+ const resolvedAliases = loadResolvedAliases();
20
+ if (!(alias in resolvedAliases.custom)) {
21
+ const available = Object.keys(resolvedAliases.custom);
22
+ throw new Error(`Custom alias '${alias}' not found. Available aliases: [${available.join(", ")}]`);
23
+ }
24
+ return resolvedAliases.custom[alias];
25
+ }
26
+ //# sourceMappingURL=custom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom.js","names":["loadResolvedAliases","custom","alias","resolvedAliases","available","Object","keys","Error","join"],"sources":["custom.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { loadResolvedAliases } from \"./loaders.js\";\nimport type { Custom } from \"./types.js\";\nexport type { Custom } from \"./types.js\";\n\nexport function custom(alias: string): Custom {\n const resolvedAliases = loadResolvedAliases();\n\n if (!(alias in resolvedAliases.custom)) {\n const available = Object.keys(resolvedAliases.custom);\n throw new Error(\n `Custom alias '${alias}' not found. Available aliases: [${\n available.join(\", \")\n }]`,\n );\n }\n\n return resolvedAliases.custom[alias] as Custom;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,mBAAmB,QAAQ,cAAc;AAIlD,OAAO,SAASC,MAAMA,CAACC,KAAa,EAAU;EAC5C,MAAMC,eAAe,GAAGH,mBAAmB,CAAC,CAAC;EAE7C,IAAI,EAAEE,KAAK,IAAIC,eAAe,CAACF,MAAM,CAAC,EAAE;IACtC,MAAMG,SAAS,GAAGC,MAAM,CAACC,IAAI,CAACH,eAAe,CAACF,MAAM,CAAC;IACrD,MAAM,IAAIM,KAAK,CACb,iBAAiBL,KAAK,oCACpBE,SAAS,CAACI,IAAI,CAAC,IAAI,CAAC,GAExB,CAAC;EACH;EAEA,OAAOL,eAAe,CAACF,MAAM,CAACC,KAAK,CAAC;AACtC","ignoreList":[]}
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { AliasEnvironment } from "./types.js";
18
+ export const ALIASES_JSON_FILE_ENV_VAR = "ALIASES_JSON_FILE";
19
+ export const RESOURCES_JSON_FILE_ENV_VAR = "RESOURCES_JSON_FILE";
20
+ export function detectEnvironment() {
21
+ const aliasesFileSet = ALIASES_JSON_FILE_ENV_VAR in process.env;
22
+ const resourcesFileSet = RESOURCES_JSON_FILE_ENV_VAR in process.env;
23
+ if (aliasesFileSet && resourcesFileSet) {
24
+ throw new Error(`Ambiguous alias configuration: both ${ALIASES_JSON_FILE_ENV_VAR} and ` + `${RESOURCES_JSON_FILE_ENV_VAR} are set. Only one should be configured.`);
25
+ }
26
+ if (aliasesFileSet) {
27
+ return AliasEnvironment.PUBLISHED;
28
+ }
29
+ if (resourcesFileSet) {
30
+ return AliasEnvironment.LIVE_PREVIEW;
31
+ }
32
+ throw new Error(`Unknown alias environment: neither ${ALIASES_JSON_FILE_ENV_VAR} nor ${RESOURCES_JSON_FILE_ENV_VAR} is set.`);
33
+ }
34
+ export function getAliasesFilePath() {
35
+ const path = process.env[ALIASES_JSON_FILE_ENV_VAR];
36
+ if (path == null) {
37
+ throw new Error(`${ALIASES_JSON_FILE_ENV_VAR} environment variable is not set`);
38
+ }
39
+ return path;
40
+ }
41
+ export function getResourcesFilePath() {
42
+ const path = process.env[RESOURCES_JSON_FILE_ENV_VAR];
43
+ if (path == null) {
44
+ throw new Error(`${RESOURCES_JSON_FILE_ENV_VAR} environment variable is not set`);
45
+ }
46
+ return path;
47
+ }
48
+ //# sourceMappingURL=environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.js","names":["AliasEnvironment","ALIASES_JSON_FILE_ENV_VAR","RESOURCES_JSON_FILE_ENV_VAR","detectEnvironment","aliasesFileSet","process","env","resourcesFileSet","Error","PUBLISHED","LIVE_PREVIEW","getAliasesFilePath","path","getResourcesFilePath"],"sources":["environment.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AliasEnvironment } from \"./types.js\";\n\nexport const ALIASES_JSON_FILE_ENV_VAR = \"ALIASES_JSON_FILE\";\nexport const RESOURCES_JSON_FILE_ENV_VAR = \"RESOURCES_JSON_FILE\";\n\nexport function detectEnvironment(): AliasEnvironment {\n const aliasesFileSet = ALIASES_JSON_FILE_ENV_VAR in process.env;\n const resourcesFileSet = RESOURCES_JSON_FILE_ENV_VAR in process.env;\n\n if (aliasesFileSet && resourcesFileSet) {\n throw new Error(\n `Ambiguous alias configuration: both ${ALIASES_JSON_FILE_ENV_VAR} and `\n + `${RESOURCES_JSON_FILE_ENV_VAR} are set. Only one should be configured.`,\n );\n }\n\n if (aliasesFileSet) {\n return AliasEnvironment.PUBLISHED;\n }\n if (resourcesFileSet) {\n return AliasEnvironment.LIVE_PREVIEW;\n }\n\n throw new Error(\n `Unknown alias environment: neither ${ALIASES_JSON_FILE_ENV_VAR} nor ${RESOURCES_JSON_FILE_ENV_VAR} is set.`,\n );\n}\n\nexport function getAliasesFilePath(): string {\n const path = process.env[ALIASES_JSON_FILE_ENV_VAR];\n if (path == null) {\n throw new Error(\n `${ALIASES_JSON_FILE_ENV_VAR} environment variable is not set`,\n );\n }\n return path;\n}\n\nexport function getResourcesFilePath(): string {\n const path = process.env[RESOURCES_JSON_FILE_ENV_VAR];\n if (path == null) {\n throw new Error(\n `${RESOURCES_JSON_FILE_ENV_VAR} environment variable is not set`,\n );\n }\n return path;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,gBAAgB,QAAQ,YAAY;AAE7C,OAAO,MAAMC,yBAAyB,GAAG,mBAAmB;AAC5D,OAAO,MAAMC,2BAA2B,GAAG,qBAAqB;AAEhE,OAAO,SAASC,iBAAiBA,CAAA,EAAqB;EACpD,MAAMC,cAAc,GAAGH,yBAAyB,IAAII,OAAO,CAACC,GAAG;EAC/D,MAAMC,gBAAgB,GAAGL,2BAA2B,IAAIG,OAAO,CAACC,GAAG;EAEnE,IAAIF,cAAc,IAAIG,gBAAgB,EAAE;IACtC,MAAM,IAAIC,KAAK,CACb,uCAAuCP,yBAAyB,OAAO,GACnE,GAAGC,2BAA2B,0CACpC,CAAC;EACH;EAEA,IAAIE,cAAc,EAAE;IAClB,OAAOJ,gBAAgB,CAACS,SAAS;EACnC;EACA,IAAIF,gBAAgB,EAAE;IACpB,OAAOP,gBAAgB,CAACU,YAAY;EACtC;EAEA,MAAM,IAAIF,KAAK,CACb,sCAAsCP,yBAAyB,QAAQC,2BAA2B,UACpG,CAAC;AACH;AAEA,OAAO,SAASS,kBAAkBA,CAAA,EAAW;EAC3C,MAAMC,IAAI,GAAGP,OAAO,CAACC,GAAG,CAACL,yBAAyB,CAAC;EACnD,IAAIW,IAAI,IAAI,IAAI,EAAE;IAChB,MAAM,IAAIJ,KAAK,CACb,GAAGP,yBAAyB,kCAC9B,CAAC;EACH;EACA,OAAOW,IAAI;AACb;AAEA,OAAO,SAASC,oBAAoBA,CAAA,EAAW;EAC7C,MAAMD,IAAI,GAAGP,OAAO,CAACC,GAAG,CAACJ,2BAA2B,CAAC;EACrD,IAAIU,IAAI,IAAI,IAAI,EAAE;IAChB,MAAM,IAAIJ,KAAK,CACb,GAAGN,2BAA2B,kCAChC,CAAC;EACH;EACA,OAAOU,IAAI;AACb","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export * from "./custom.js";
18
+ export * from "./model.js";
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["index.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from \"./custom.js\";\nexport * from \"./model.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,aAAa;AAC3B,cAAc,YAAY","ignoreList":[]}
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import * as fs from "fs";
18
+ import { detectEnvironment, getAliasesFilePath, getResourcesFilePath } from "./environment.js";
19
+ import { AliasEnvironment } from "./types.js";
20
+ let cachedPublishedAliases;
21
+ function loadPublishedAliases() {
22
+ if (cachedPublishedAliases !== undefined) {
23
+ return cachedPublishedAliases;
24
+ }
25
+ const aliasesPath = getAliasesFilePath();
26
+ if (!fs.existsSync(aliasesPath)) {
27
+ throw new Error(`Aliases file not found at ${aliasesPath}`);
28
+ }
29
+ const data = fs.readFileSync(aliasesPath, "utf-8");
30
+ const aliasesFile = JSON.parse(data);
31
+ cachedPublishedAliases = {
32
+ custom: aliasesFile.defaults.custom,
33
+ models: Object.fromEntries(Object.entries(aliasesFile.defaults.models).map(([alias, {
34
+ id: identifier
35
+ }]) => [alias, identifier]))
36
+ };
37
+ return cachedPublishedAliases;
38
+ }
39
+ function loadPreviewAliases() {
40
+ const resourcesPath = getResourcesFilePath();
41
+ if (!fs.existsSync(resourcesPath)) {
42
+ throw new Error(`Resources file not found at ${resourcesPath}`);
43
+ }
44
+ const data = fs.readFileSync(resourcesPath, "utf-8");
45
+ const resourcesFile = JSON.parse(data);
46
+ return {
47
+ custom: resourcesFile.resources.custom,
48
+ models: Object.fromEntries(resourcesFile.resources.models.filter(model => model.alias != null).map(({
49
+ alias,
50
+ identifier
51
+ }) => [alias, identifier]))
52
+ };
53
+ }
54
+ export function resetPublishedCache() {
55
+ cachedPublishedAliases = undefined;
56
+ }
57
+ export function loadResolvedAliases() {
58
+ const environment = detectEnvironment();
59
+ switch (environment) {
60
+ case AliasEnvironment.PUBLISHED:
61
+ return loadPublishedAliases();
62
+ case AliasEnvironment.LIVE_PREVIEW:
63
+ return loadPreviewAliases();
64
+ }
65
+ }
66
+ //# sourceMappingURL=loaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loaders.js","names":["fs","detectEnvironment","getAliasesFilePath","getResourcesFilePath","AliasEnvironment","cachedPublishedAliases","loadPublishedAliases","undefined","aliasesPath","existsSync","Error","data","readFileSync","aliasesFile","JSON","parse","custom","defaults","models","Object","fromEntries","entries","map","alias","id","identifier","loadPreviewAliases","resourcesPath","resourcesFile","resources","filter","model","resetPublishedCache","loadResolvedAliases","environment","PUBLISHED","LIVE_PREVIEW"],"sources":["loaders.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as fs from \"fs\";\nimport {\n detectEnvironment,\n getAliasesFilePath,\n getResourcesFilePath,\n} from \"./environment.js\";\nimport { AliasEnvironment } from \"./types.js\";\nimport type {\n AliasesFile,\n Model,\n ModelResource,\n ResolvedAliases,\n ResourcesFile,\n} from \"./types.js\";\n\nlet cachedPublishedAliases: ResolvedAliases | undefined;\n\nfunction loadPublishedAliases(): ResolvedAliases {\n if (cachedPublishedAliases !== undefined) {\n return cachedPublishedAliases;\n }\n const aliasesPath = getAliasesFilePath();\n if (!fs.existsSync(aliasesPath)) {\n throw new Error(`Aliases file not found at ${aliasesPath}`);\n }\n\n const data = fs.readFileSync(aliasesPath, \"utf-8\");\n const aliasesFile = JSON.parse(data) as AliasesFile;\n\n cachedPublishedAliases = {\n custom: aliasesFile.defaults.custom,\n models: Object.fromEntries<Model>(\n Object.entries(aliasesFile.defaults.models).map((\n [alias, { id: identifier }],\n ) => [alias, identifier]),\n ),\n };\n return cachedPublishedAliases;\n}\n\nfunction loadPreviewAliases(): ResolvedAliases {\n const resourcesPath = getResourcesFilePath();\n if (!fs.existsSync(resourcesPath)) {\n throw new Error(`Resources file not found at ${resourcesPath}`);\n }\n\n const data = fs.readFileSync(resourcesPath, \"utf-8\");\n const resourcesFile = JSON.parse(data) as ResourcesFile;\n\n return {\n custom: resourcesFile.resources.custom,\n models: Object.fromEntries<Model>(\n resourcesFile.resources.models\n .filter((model): model is ModelResource & { alias: string } =>\n model.alias != null\n )\n .map(({ alias, identifier }) => [alias, identifier]),\n ),\n };\n}\n\nexport function resetPublishedCache(): void {\n cachedPublishedAliases = undefined;\n}\n\nexport function loadResolvedAliases(): ResolvedAliases {\n const environment = detectEnvironment();\n switch (environment) {\n case AliasEnvironment.PUBLISHED:\n return loadPublishedAliases();\n case AliasEnvironment.LIVE_PREVIEW:\n return loadPreviewAliases();\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,KAAKA,EAAE,MAAM,IAAI;AACxB,SACEC,iBAAiB,EACjBC,kBAAkB,EAClBC,oBAAoB,QACf,kBAAkB;AACzB,SAASC,gBAAgB,QAAQ,YAAY;AAS7C,IAAIC,sBAAmD;AAEvD,SAASC,oBAAoBA,CAAA,EAAoB;EAC/C,IAAID,sBAAsB,KAAKE,SAAS,EAAE;IACxC,OAAOF,sBAAsB;EAC/B;EACA,MAAMG,WAAW,GAAGN,kBAAkB,CAAC,CAAC;EACxC,IAAI,CAACF,EAAE,CAACS,UAAU,CAACD,WAAW,CAAC,EAAE;IAC/B,MAAM,IAAIE,KAAK,CAAC,6BAA6BF,WAAW,EAAE,CAAC;EAC7D;EAEA,MAAMG,IAAI,GAAGX,EAAE,CAACY,YAAY,CAACJ,WAAW,EAAE,OAAO,CAAC;EAClD,MAAMK,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAgB;EAEnDN,sBAAsB,GAAG;IACvBW,MAAM,EAAEH,WAAW,CAACI,QAAQ,CAACD,MAAM;IACnCE,MAAM,EAAEC,MAAM,CAACC,WAAW,CACxBD,MAAM,CAACE,OAAO,CAACR,WAAW,CAACI,QAAQ,CAACC,MAAM,CAAC,CAACI,GAAG,CAAC,CAC9C,CAACC,KAAK,EAAE;MAAEC,EAAE,EAAEC;IAAW,CAAC,CAAC,KACxB,CAACF,KAAK,EAAEE,UAAU,CAAC,CAC1B;EACF,CAAC;EACD,OAAOpB,sBAAsB;AAC/B;AAEA,SAASqB,kBAAkBA,CAAA,EAAoB;EAC7C,MAAMC,aAAa,GAAGxB,oBAAoB,CAAC,CAAC;EAC5C,IAAI,CAACH,EAAE,CAACS,UAAU,CAACkB,aAAa,CAAC,EAAE;IACjC,MAAM,IAAIjB,KAAK,CAAC,+BAA+BiB,aAAa,EAAE,CAAC;EACjE;EAEA,MAAMhB,IAAI,GAAGX,EAAE,CAACY,YAAY,CAACe,aAAa,EAAE,OAAO,CAAC;EACpD,MAAMC,aAAa,GAAGd,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAkB;EAEvD,OAAO;IACLK,MAAM,EAAEY,aAAa,CAACC,SAAS,CAACb,MAAM;IACtCE,MAAM,EAAEC,MAAM,CAACC,WAAW,CACxBQ,aAAa,CAACC,SAAS,CAACX,MAAM,CAC3BY,MAAM,CAAEC,KAAK,IACZA,KAAK,CAACR,KAAK,IAAI,IACjB,CAAC,CACAD,GAAG,CAAC,CAAC;MAAEC,KAAK;MAAEE;IAAW,CAAC,KAAK,CAACF,KAAK,EAAEE,UAAU,CAAC,CACvD;EACF,CAAC;AACH;AAEA,OAAO,SAASO,mBAAmBA,CAAA,EAAS;EAC1C3B,sBAAsB,GAAGE,SAAS;AACpC;AAEA,OAAO,SAAS0B,mBAAmBA,CAAA,EAAoB;EACrD,MAAMC,WAAW,GAAGjC,iBAAiB,CAAC,CAAC;EACvC,QAAQiC,WAAW;IACjB,KAAK9B,gBAAgB,CAAC+B,SAAS;MAC7B,OAAO7B,oBAAoB,CAAC,CAAC;IAC/B,KAAKF,gBAAgB,CAACgC,YAAY;MAChC,OAAOV,kBAAkB,CAAC,CAAC;EAC/B;AACF","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { loadResolvedAliases } from "./loaders.js";
18
+ export function model(alias) {
19
+ const resolvedAliases = loadResolvedAliases();
20
+ if (!(alias in resolvedAliases.models)) {
21
+ const available = Object.keys(resolvedAliases.models);
22
+ throw new Error(`Model alias '${alias}' not found. Available aliases: [${available.join(", ")}]`);
23
+ }
24
+ return resolvedAliases.models[alias];
25
+ }
26
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","names":["loadResolvedAliases","model","alias","resolvedAliases","models","available","Object","keys","Error","join"],"sources":["model.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { loadResolvedAliases } from \"./loaders.js\";\nimport type { Model } from \"./types.js\";\nexport type { Model } from \"./types.js\";\n\nexport function model(alias: string): Model {\n const resolvedAliases = loadResolvedAliases();\n\n if (!(alias in resolvedAliases.models)) {\n const available = Object.keys(resolvedAliases.models);\n throw new Error(\n `Model alias '${alias}' not found. Available aliases: [${\n available.join(\", \")\n }]`,\n );\n }\n\n return resolvedAliases.models[alias];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,mBAAmB,QAAQ,cAAc;AAIlD,OAAO,SAASC,KAAKA,CAACC,KAAa,EAAS;EAC1C,MAAMC,eAAe,GAAGH,mBAAmB,CAAC,CAAC;EAE7C,IAAI,EAAEE,KAAK,IAAIC,eAAe,CAACC,MAAM,CAAC,EAAE;IACtC,MAAMC,SAAS,GAAGC,MAAM,CAACC,IAAI,CAACJ,eAAe,CAACC,MAAM,CAAC;IACrD,MAAM,IAAII,KAAK,CACb,gBAAgBN,KAAK,oCACnBG,SAAS,CAACI,IAAI,CAAC,IAAI,CAAC,GAExB,CAAC;EACH;EAEA,OAAON,eAAe,CAACC,MAAM,CAACF,KAAK,CAAC;AACtC","ignoreList":[]}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ // Types relevant to OSDK APIs
18
+
19
+ // Environment
20
+
21
+ export let AliasEnvironment = /*#__PURE__*/function (AliasEnvironment) {
22
+ AliasEnvironment["PUBLISHED"] = "PUBLISHED";
23
+ AliasEnvironment["LIVE_PREVIEW"] = "LIVE_PREVIEW";
24
+ return AliasEnvironment;
25
+ }({});
26
+
27
+ // Live preview mode types (resources.json)
28
+
29
+ // Published mode types (aliases.json)
30
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["AliasEnvironment"],"sources":["types.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Types relevant to OSDK APIs\n\nexport type Custom = string & { readonly __brand: \"Custom\" };\n\nexport interface Model {\n rid: string;\n}\n\nexport interface ResolvedAliases {\n custom: Record<string, string>;\n models: Record<string, Model>;\n}\n\n// Environment\n\nexport enum AliasEnvironment {\n PUBLISHED = \"PUBLISHED\",\n LIVE_PREVIEW = \"LIVE_PREVIEW\",\n}\n\n// Live preview mode types (resources.json)\n\nexport interface ModelResource {\n identifier: ModelIdentifier;\n verbs: string[];\n alias?: string | null;\n}\n\nexport interface ResourceScopes {\n custom: Record<string, string>;\n models: ModelResource[];\n}\n\nexport interface ResourcesFile {\n resources: ResourceScopes;\n}\n\n// Published mode types (aliases.json)\n\nexport interface ModelIdentifier {\n rid: string;\n}\n\nexport interface ModelValue {\n id: ModelIdentifier;\n}\n\nexport interface DefaultAliases {\n custom: Record<string, string>;\n models: Record<string, ModelValue>;\n}\n\nexport interface AliasesFile {\n defaults: DefaultAliases;\n version: number;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAaA;;AAEA,WAAYA,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;;AAK5B;;AAiBA","ignoreList":[]}
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
+ export * as Aliases from "./aliases/index.js";
17
18
  export { createEditBatch } from "./edits/createEditBatch.js";
18
19
  export { UserFacingError } from "./errors/UserFacingError.js";
19
20
  export { uploadMedia } from "./helpers/uploadMedia.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["createEditBatch","UserFacingError","uploadMedia"],"sources":["index.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type {\n DateISOString,\n Double,\n Float,\n Integer,\n Long,\n TimestampISOString,\n} from \"./PrimitiveTypes.js\";\n\nexport type {\n Attachment,\n MediaReference,\n MediaUpload,\n Range,\n ThreeDimensionalAggregation,\n TwoDimensionalAggregation,\n} from \"@osdk/client\";\n\nexport { createEditBatch } from \"./edits/createEditBatch.js\";\nexport type { EditBatch } from \"./edits/EditBatch.js\";\nexport type { Edits } from \"./edits/types.js\";\nexport { UserFacingError } from \"./errors/UserFacingError.js\";\nexport { uploadMedia } from \"./helpers/uploadMedia.js\";\n\nexport type {\n EmailNotification,\n Notification,\n NotificationLink,\n NotificationLinkTarget,\n ObjectLinkTarget,\n PlatformNotification,\n RidLinkTarget,\n UrlLinkTarget,\n} from \"./Notification.js\";\n\nexport type { ClassificationMarking, MandatoryMarking } from \"./Markings.js\";\nexport type { GroupId, Principal, UserId } from \"./UserGroup.js\";\n\nexport type { Geometry, Point } from \"geojson\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoBA,SAASA,eAAe,QAAQ,4BAA4B;AAG5D,SAASC,eAAe,QAAQ,6BAA6B;AAC7D,SAASC,WAAW,QAAQ,0BAA0B","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["Aliases","createEditBatch","UserFacingError","uploadMedia"],"sources":["index.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type {\n DateISOString,\n Double,\n Float,\n Integer,\n Long,\n TimestampISOString,\n} from \"./PrimitiveTypes.js\";\n\nexport type {\n Attachment,\n MediaReference,\n MediaUpload,\n Range,\n ThreeDimensionalAggregation,\n TwoDimensionalAggregation,\n} from \"@osdk/client\";\n\nexport * as Aliases from \"./aliases/index.js\";\nexport { createEditBatch } from \"./edits/createEditBatch.js\";\nexport type { EditBatch } from \"./edits/EditBatch.js\";\nexport type { Edits } from \"./edits/types.js\";\nexport { UserFacingError } from \"./errors/UserFacingError.js\";\nexport { uploadMedia } from \"./helpers/uploadMedia.js\";\n\nexport type {\n EmailNotification,\n Notification,\n NotificationLink,\n NotificationLinkTarget,\n ObjectLinkTarget,\n PlatformNotification,\n RidLinkTarget,\n UrlLinkTarget,\n} from \"./Notification.js\";\n\nexport type { ClassificationMarking, MandatoryMarking } from \"./Markings.js\";\nexport type { GroupId, Principal, UserId } from \"./UserGroup.js\";\n\nexport type { Geometry, Point } from \"geojson\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoBA,OAAO,KAAKA,OAAO,MAAM,oBAAoB;AAC7C,SAASC,eAAe,QAAQ,4BAA4B;AAG5D,SAASC,eAAe,QAAQ,6BAA6B;AAC7D,SAASC,WAAW,QAAQ,0BAA0B","ignoreList":[]}