@osdk/functions 2.0.0-beta.8 → 2.0.0-main-20260407112212

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 (163) hide show
  1. package/CHANGELOG.md +381 -19
  2. package/build/browser/Markings.js +2 -0
  3. package/build/browser/Markings.js.map +1 -0
  4. package/build/browser/Notification.js +2 -0
  5. package/build/browser/Notification.js.map +1 -0
  6. package/build/browser/UserGroup.js +2 -0
  7. package/build/browser/UserGroup.js.map +1 -0
  8. package/build/browser/aliases/custom.js +26 -0
  9. package/build/browser/aliases/custom.js.map +1 -0
  10. package/build/browser/aliases/environment.js +48 -0
  11. package/build/browser/aliases/environment.js.map +1 -0
  12. package/build/browser/aliases/index.js +19 -0
  13. package/build/browser/aliases/index.js.map +1 -0
  14. package/build/browser/aliases/loaders.js +66 -0
  15. package/build/browser/aliases/loaders.js.map +1 -0
  16. package/build/browser/aliases/model.js +26 -0
  17. package/build/browser/aliases/model.js.map +1 -0
  18. package/build/browser/aliases/types.js +30 -0
  19. package/build/browser/aliases/types.js.map +1 -0
  20. package/build/browser/edits/EditBatch.js.map +1 -1
  21. package/build/browser/edits/createEditBatch.js +26 -2
  22. package/build/browser/edits/createEditBatch.js.map +1 -1
  23. package/build/browser/edits/types.js +6 -0
  24. package/build/browser/edits/types.js.map +1 -1
  25. package/build/browser/errors/UserFacingError.js +22 -0
  26. package/build/browser/errors/UserFacingError.js.map +1 -0
  27. package/build/browser/helpers/uploadMedia.js +37 -0
  28. package/build/browser/helpers/uploadMedia.js.map +1 -0
  29. package/build/browser/index.js +3 -0
  30. package/build/browser/index.js.map +1 -1
  31. package/build/browser/public/experimental.js +2 -0
  32. package/build/browser/public/experimental.js.map +1 -0
  33. package/build/browser/public/internal.js.map +1 -1
  34. package/build/browser/public/unstable-do-not-use.js +20 -0
  35. package/build/browser/public/unstable-do-not-use.js.map +1 -0
  36. package/build/browser/transactions/EditRequestManager.js +96 -0
  37. package/build/browser/transactions/EditRequestManager.js.map +1 -0
  38. package/build/browser/transactions/WriteableClient.js +19 -0
  39. package/build/browser/transactions/WriteableClient.js.map +1 -0
  40. package/build/browser/transactions/createWriteableClient.js +125 -0
  41. package/build/browser/transactions/createWriteableClient.js.map +1 -0
  42. package/build/browser/transactions/flushEdits.js +21 -0
  43. package/build/browser/transactions/flushEdits.js.map +1 -0
  44. package/build/browser/transactions/toPropertyDataValue.js +41 -0
  45. package/build/browser/transactions/toPropertyDataValue.js.map +1 -0
  46. package/build/browser/utils/getApiGatewayBaseUrl.js +79 -0
  47. package/build/browser/utils/getApiGatewayBaseUrl.js.map +1 -0
  48. package/build/cjs/EditBatch-DenXqhoa.d.cts +30 -0
  49. package/build/cjs/chunk-4DCWE2WY.cjs +105 -0
  50. package/build/cjs/chunk-4DCWE2WY.cjs.map +1 -0
  51. package/build/cjs/index.cjs +260 -2
  52. package/build/cjs/index.cjs.map +1 -1
  53. package/build/cjs/index.d.cts +84 -26
  54. package/build/cjs/{internal-BfI_-x2A.d.cts → internal-CmSoe_xi.d.cts} +30 -4
  55. package/build/cjs/public/experimental.cjs +4 -0
  56. package/build/cjs/public/experimental.cjs.map +1 -0
  57. package/build/cjs/public/experimental.d.cts +35 -0
  58. package/build/cjs/public/internal.d.cts +1 -1
  59. package/build/cjs/public/unstable-do-not-use.cjs +270 -0
  60. package/build/cjs/public/unstable-do-not-use.cjs.map +1 -0
  61. package/build/cjs/public/unstable-do-not-use.d.cts +28 -0
  62. package/build/esm/Markings.js +2 -0
  63. package/build/esm/Markings.js.map +1 -0
  64. package/build/esm/Notification.js +2 -0
  65. package/build/esm/Notification.js.map +1 -0
  66. package/build/esm/UserGroup.js +2 -0
  67. package/build/esm/UserGroup.js.map +1 -0
  68. package/build/esm/aliases/custom.js +26 -0
  69. package/build/esm/aliases/custom.js.map +1 -0
  70. package/build/esm/aliases/environment.js +48 -0
  71. package/build/esm/aliases/environment.js.map +1 -0
  72. package/build/esm/aliases/index.js +19 -0
  73. package/build/esm/aliases/index.js.map +1 -0
  74. package/build/esm/aliases/loaders.js +66 -0
  75. package/build/esm/aliases/loaders.js.map +1 -0
  76. package/build/esm/aliases/model.js +26 -0
  77. package/build/esm/aliases/model.js.map +1 -0
  78. package/build/esm/aliases/types.js +30 -0
  79. package/build/esm/aliases/types.js.map +1 -0
  80. package/build/esm/edits/EditBatch.js.map +1 -1
  81. package/build/esm/edits/createEditBatch.js +26 -2
  82. package/build/esm/edits/createEditBatch.js.map +1 -1
  83. package/build/esm/edits/types.js +6 -0
  84. package/build/esm/edits/types.js.map +1 -1
  85. package/build/esm/errors/UserFacingError.js +22 -0
  86. package/build/esm/errors/UserFacingError.js.map +1 -0
  87. package/build/esm/helpers/uploadMedia.js +37 -0
  88. package/build/esm/helpers/uploadMedia.js.map +1 -0
  89. package/build/esm/index.js +3 -0
  90. package/build/esm/index.js.map +1 -1
  91. package/build/esm/public/experimental.js +2 -0
  92. package/build/esm/public/experimental.js.map +1 -0
  93. package/build/esm/public/internal.js.map +1 -1
  94. package/build/esm/public/unstable-do-not-use.js +20 -0
  95. package/build/esm/public/unstable-do-not-use.js.map +1 -0
  96. package/build/esm/transactions/EditRequestManager.js +96 -0
  97. package/build/esm/transactions/EditRequestManager.js.map +1 -0
  98. package/build/esm/transactions/WriteableClient.js +19 -0
  99. package/build/esm/transactions/WriteableClient.js.map +1 -0
  100. package/build/esm/transactions/createWriteableClient.js +125 -0
  101. package/build/esm/transactions/createWriteableClient.js.map +1 -0
  102. package/build/esm/transactions/flushEdits.js +21 -0
  103. package/build/esm/transactions/flushEdits.js.map +1 -0
  104. package/build/esm/transactions/toPropertyDataValue.js +41 -0
  105. package/build/esm/transactions/toPropertyDataValue.js.map +1 -0
  106. package/build/esm/utils/getApiGatewayBaseUrl.js +79 -0
  107. package/build/esm/utils/getApiGatewayBaseUrl.js.map +1 -0
  108. package/build/types/Markings.d.ts +6 -0
  109. package/build/types/Markings.d.ts.map +1 -0
  110. package/build/types/Notification.d.ts +32 -0
  111. package/build/types/Notification.d.ts.map +1 -0
  112. package/build/types/UserGroup.d.ts +14 -0
  113. package/build/types/UserGroup.d.ts.map +1 -0
  114. package/build/types/aliases/custom.d.ts +3 -0
  115. package/build/types/aliases/custom.d.ts.map +1 -0
  116. package/build/types/aliases/environment.d.ts +6 -0
  117. package/build/types/aliases/environment.d.ts.map +1 -0
  118. package/build/types/aliases/index.d.ts +2 -0
  119. package/build/types/aliases/index.d.ts.map +1 -0
  120. package/build/types/aliases/loaders.d.ts +3 -0
  121. package/build/types/aliases/loaders.d.ts.map +1 -0
  122. package/build/types/aliases/model.d.ts +3 -0
  123. package/build/types/aliases/model.d.ts.map +1 -0
  124. package/build/types/aliases/types.d.ts +40 -0
  125. package/build/types/aliases/types.d.ts.map +1 -0
  126. package/build/types/edits/EditBatch.d.ts +16 -13
  127. package/build/types/edits/EditBatch.d.ts.map +1 -1
  128. package/build/types/edits/createEditBatch.d.ts.map +1 -1
  129. package/build/types/edits/types.d.ts +26 -3
  130. package/build/types/edits/types.d.ts.map +1 -1
  131. package/build/types/errors/UserFacingError.d.ts +3 -0
  132. package/build/types/errors/UserFacingError.d.ts.map +1 -0
  133. package/build/types/helpers/uploadMedia.d.ts +2 -0
  134. package/build/types/helpers/uploadMedia.d.ts.map +1 -0
  135. package/build/types/index.d.ts +8 -1
  136. package/build/types/index.d.ts.map +1 -1
  137. package/build/types/public/experimental.d.ts +1 -0
  138. package/build/types/public/experimental.d.ts.map +1 -0
  139. package/build/types/public/internal.d.ts +1 -1
  140. package/build/types/public/internal.d.ts.map +1 -1
  141. package/build/types/public/unstable-do-not-use.d.ts +4 -0
  142. package/build/types/public/unstable-do-not-use.d.ts.map +1 -0
  143. package/build/types/transactions/EditRequestManager.d.ts +14 -0
  144. package/build/types/transactions/EditRequestManager.d.ts.map +1 -0
  145. package/build/types/transactions/WriteableClient.d.ts +25 -0
  146. package/build/types/transactions/WriteableClient.d.ts.map +1 -0
  147. package/build/types/transactions/createWriteableClient.d.ts +4 -0
  148. package/build/types/transactions/createWriteableClient.d.ts.map +1 -0
  149. package/build/types/transactions/flushEdits.d.ts +2 -0
  150. package/build/types/transactions/flushEdits.d.ts.map +1 -0
  151. package/build/types/transactions/toPropertyDataValue.d.ts +2 -0
  152. package/build/types/transactions/toPropertyDataValue.d.ts.map +1 -0
  153. package/build/types/utils/getApiGatewayBaseUrl.d.ts +16 -0
  154. package/build/types/utils/getApiGatewayBaseUrl.d.ts.map +1 -0
  155. package/experimental.d.ts +17 -0
  156. package/package.json +36 -7
  157. package/unstable-do-not-use.d.ts +17 -0
  158. package/build/browser/edits/createEditBatch.test.js +0 -440
  159. package/build/browser/edits/createEditBatch.test.js.map +0 -1
  160. package/build/esm/edits/createEditBatch.test.js +0 -440
  161. package/build/esm/edits/createEditBatch.test.js.map +0 -1
  162. package/build/types/edits/createEditBatch.test.d.ts +0 -1
  163. package/build/types/edits/createEditBatch.test.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,54 +1,416 @@
1
1
  # @osdk/functions
2
2
 
3
- ## 2.0.0-beta.8
3
+ ## 2.0.0-main-20260407112212
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f8b9f12]
8
+ - Updated dependencies [bcf359f]
9
+ - Updated dependencies [51ccca8]
10
+ - @osdk/client@2.9.0-main-20260407112212
11
+
12
+ ## 1.6.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 776ae8a: Simulated release
17
+ - 7538b79: Allow link/unlink edits for ONE direction links
18
+ - 0a0d7cb: Filter out $ prefixed properties when creating or updating objects in writeable client
19
+ - 35f2f1a: Add Media inputs/outputs for Queries
20
+ - 34a5ad2: Add helper functions for resolving custom and model aliases in functions
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [322c5bc]
25
+ - Updated dependencies [c40444b]
26
+ - Updated dependencies [09e5659]
27
+ - Updated dependencies [abb0e0f]
28
+ - Updated dependencies [fceb4ce]
29
+ - Updated dependencies [520398c]
30
+ - Updated dependencies [73e617e]
31
+ - Updated dependencies [cbfa135]
32
+ - Updated dependencies [c8384de]
33
+ - Updated dependencies [f294f5a]
34
+ - Updated dependencies [dfc8019]
35
+ - Updated dependencies [599426b]
36
+ - Updated dependencies [e64bf0b]
37
+ - Updated dependencies [27a5902]
38
+ - Updated dependencies [f4604c2]
39
+ - Updated dependencies [642be5f]
40
+ - Updated dependencies [baba327]
41
+ - Updated dependencies [8825f8c]
42
+ - Updated dependencies [2b01323]
43
+ - Updated dependencies [8c60682]
44
+ - Updated dependencies [dda14be]
45
+ - Updated dependencies [ffc6efe]
46
+ - Updated dependencies [2855223]
47
+ - Updated dependencies [15e1686]
48
+ - Updated dependencies [26cec61]
49
+ - Updated dependencies [d1ad4d1]
50
+ - Updated dependencies [0d174a2]
51
+ - Updated dependencies [d284bf2]
52
+ - Updated dependencies [4ef6adc]
53
+ - Updated dependencies [2ebe62c]
54
+ - Updated dependencies [60b5ffb]
55
+ - Updated dependencies [abb0e0f]
56
+ - Updated dependencies [8c30908]
57
+ - Updated dependencies [4cd7389]
58
+ - Updated dependencies [92e7297]
59
+ - Updated dependencies [35f2f1a]
60
+ - Updated dependencies [c9d954d]
61
+ - Updated dependencies [044eb80]
62
+ - Updated dependencies [9d234b9]
63
+ - Updated dependencies [f5f95e2]
64
+ - Updated dependencies [46f0a47]
65
+ - Updated dependencies [4470c0d]
66
+ - Updated dependencies [d80c234]
67
+ - Updated dependencies [61e33ab]
68
+ - Updated dependencies [71e28ef]
69
+ - Updated dependencies [5848e3c]
70
+ - @osdk/client@2.8.0
71
+
72
+ ## 1.6.0-beta.4
73
+
74
+ ### Minor Changes
75
+
76
+ - 7538b79: Allow link/unlink edits for ONE direction links
77
+ - 34a5ad2: Add helper functions for resolving custom and model aliases in functions
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [09e5659]
82
+ - Updated dependencies [2ebe62c]
83
+ - @osdk/client@2.8.0-beta.16
84
+
85
+ ## 1.6.0-beta.3
86
+
87
+ ### Minor Changes
88
+
89
+ - 35f2f1a: Add Media inputs/outputs for Queries
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [e64bf0b]
94
+ - Updated dependencies [baba327]
95
+ - Updated dependencies [d1ad4d1]
96
+ - Updated dependencies [35f2f1a]
97
+ - Updated dependencies [71e28ef]
98
+ - @osdk/client@2.8.0-beta.14
99
+
100
+ ## 1.6.0-beta.2
101
+
102
+ ### Minor Changes
103
+
104
+ - 0a0d7cb: Filter out $ prefixed properties when creating or updating objects in writeable client
105
+
106
+ ### Patch Changes
107
+
108
+ - @osdk/client@2.8.0-beta.8
109
+
110
+ ## 1.5.0-beta.4
111
+
112
+ ### Minor Changes
113
+
114
+ - c6124eb: Add ability to flush edits to transactions
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [c6124eb]
119
+ - @osdk/client@2.7.0-beta.8
120
+
121
+ ## 1.5.0-beta.3
122
+
123
+ ### Minor Changes
124
+
125
+ - dc33f68: Add Transaction ID to Queries
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [dc33f68]
130
+ - @osdk/client@2.7.0-beta.5
131
+
132
+ ## 1.5.0-beta.2
133
+
134
+ ### Minor Changes
135
+
136
+ - 448763f: introduce new token field, note readToken as deprecated
137
+
138
+ ### Patch Changes
139
+
140
+ - Updated dependencies [a23784c]
141
+ - Updated dependencies [f0a57a5]
142
+ - @osdk/client@2.7.0-beta.3
143
+
144
+ ## 1.4.0-beta.9
145
+
146
+ ### Minor Changes
147
+
148
+ - 84f0eef: Bumping OSDK apis
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies [84f0eef]
153
+ - Updated dependencies [486ef7e]
154
+ - Updated dependencies [ea077c6]
155
+ - @osdk/client@2.6.0-beta.13
156
+
157
+ ## 1.4.0-beta.8
158
+
159
+ ### Minor Changes
160
+
161
+ - 3fbb596: Pipe through transactionId to endpoints that load data via object sets
162
+
163
+ ### Patch Changes
164
+
165
+ - Updated dependencies [3fbb596]
166
+ - @osdk/client@2.6.0-beta.10
167
+
168
+ ## 1.4.0-beta.7
169
+
170
+ ### Minor Changes
171
+
172
+ - f318daf: Use correct API gateway service name
173
+
174
+ ## 1.4.0-beta.6
175
+
176
+ ### Minor Changes
177
+
178
+ - a2e9c62: Fix upload function.
179
+
180
+ ## 1.4.0-beta.5
181
+
182
+ ### Minor Changes
183
+
184
+ - b307201: Add edits support for media reference.
185
+
186
+ ### Patch Changes
187
+
188
+ - @osdk/client@2.6.0-beta.9
189
+
190
+ ## 1.4.0-beta.4
191
+
192
+ ### Minor Changes
193
+
194
+ - 7f9f123: Add foundry hostname util
195
+
196
+ ## 1.4.0-beta.3
197
+
198
+ ### Minor Changes
199
+
200
+ - a1ffb20: Use new ephemeral media upload endpoint.
201
+
202
+ ### Patch Changes
203
+
204
+ - Updated dependencies [a1ffb20]
205
+ - Updated dependencies [e62c692]
206
+ - @osdk/client@2.6.0-beta.8
207
+
208
+ ## 1.4.0-beta.2
209
+
210
+ ### Minor Changes
211
+
212
+ - 84e61fc: Add propertyValueFormatting type to property metadata
213
+
214
+ ### Patch Changes
215
+
216
+ - Updated dependencies [84e61fc]
217
+ - Updated dependencies [c4f8529]
218
+ - Updated dependencies [b762231]
219
+ - Updated dependencies [f7ae38a]
220
+ - Updated dependencies [f085283]
221
+ - @osdk/client@2.6.0-beta.2
222
+
223
+ ## 1.3.0
224
+
225
+ ### Patch Changes
226
+
227
+ - 776ae8a: Simulated release
228
+ - a41b62a: add markings types to osdk/functions
229
+ - 4b1b399: Update dependencies with @osdk/foundry.core
230
+ - 0a0e560: Reexport user and group id types with branding
231
+ - 7cdab1d: Update platform sdk dependencies
232
+ - a00d2ed: Update Platform SDK dependencies
233
+ - 9bbe664: Add compile check to prevent link and unlink edits when traversing a One direction
234
+ - 1a647a8: Adding geometry type support
235
+ - a96d89e: Update Platform SDK dependencies
236
+ - 3ae01bb: Add UserFacingError to functions package
237
+ - ba5f116: Add Principal Type
238
+ - 7cdab1d: Add implementation for transaction edits
239
+ - Updated dependencies [322c5bc]
240
+ - Updated dependencies [b05075d]
241
+ - Updated dependencies [d797f0c]
242
+ - Updated dependencies [7160276]
243
+ - Updated dependencies [7cdab1d]
244
+ - Updated dependencies [a00d2ed]
245
+ - Updated dependencies [ab29baa]
246
+ - Updated dependencies [85e8edb]
247
+ - Updated dependencies [eeaf8eb]
248
+ - Updated dependencies [3d7461d]
249
+ - Updated dependencies [7bdac45]
250
+ - Updated dependencies [37eb75b]
251
+ - Updated dependencies [7b97128]
252
+ - Updated dependencies [b9e9a88]
253
+ - Updated dependencies [76905f5]
254
+ - Updated dependencies [48d52b7]
255
+ - Updated dependencies [a96d89e]
256
+ - Updated dependencies [48040a8]
257
+ - Updated dependencies [20962bc]
258
+ - Updated dependencies [cbcf2ad]
259
+ - Updated dependencies [052a96b]
260
+ - Updated dependencies [f49171a]
261
+ - @osdk/client@2.5.0
262
+
263
+ ## 1.3.0-beta.7
4
264
 
5
265
  ### Minor Changes
6
266
 
7
- - 9f4fe9e: Add new types mapping for internal creation workflow.
267
+ - 9bbe664: Add compile check to prevent link and unlink edits when traversing a One direction
8
268
 
9
269
  ### Patch Changes
10
270
 
11
- - Updated dependencies [9f4fe9e]
12
- - @osdk/client@2.4.0-beta.8
271
+ - Updated dependencies [85e8edb]
272
+ - @osdk/client@2.5.0-beta.12
13
273
 
14
- ## 2.0.0-beta.7
274
+ ## 1.3.0-beta.6
275
+
276
+ ### Minor Changes
277
+
278
+ - 1a647a8: Adding geometry type support
15
279
 
16
280
  ### Patch Changes
17
281
 
18
- - @osdk/client@2.4.0-beta.7
282
+ - Updated dependencies [ab29baa]
283
+ - @osdk/client@2.5.0-beta.7
284
+
285
+ ## 1.3.0-beta.5
286
+
287
+ ### Minor Changes
19
288
 
20
- ## 2.0.0-beta.6
289
+ - a41b62a: add markings types to osdk/functions
21
290
 
22
291
  ### Patch Changes
23
292
 
24
- - @osdk/client@2.4.0-beta.6
293
+ - Updated dependencies [d797f0c]
294
+ - Updated dependencies [cbcf2ad]
295
+ - @osdk/client@2.5.0-beta.6
296
+
297
+ ## 1.3.0-beta.4
25
298
 
26
- ## 2.0.0-beta.5
299
+ ### Minor Changes
300
+
301
+ - a00d2ed: Update Platform SDK dependencies
302
+ - a96d89e: Update Platform SDK dependencies
27
303
 
28
304
  ### Patch Changes
29
305
 
30
- - @osdk/client@2.4.0-beta.5
306
+ - Updated dependencies [a00d2ed]
307
+ - Updated dependencies [a96d89e]
308
+ - @osdk/client@2.5.0-beta.4
309
+
310
+ ## 1.3.0-beta.3
31
311
 
32
- ## 2.0.0-beta.4
312
+ ### Minor Changes
313
+
314
+ - 4b1b399: Update dependencies with @osdk/foundry.core
315
+ - 0a0e560: Reexport user and group id types with branding
316
+ - 3ae01bb: Add UserFacingError to functions package
33
317
 
34
318
  ### Patch Changes
35
319
 
36
- - @osdk/client@2.4.0-beta.4
320
+ - Updated dependencies [7bdac45]
321
+ - Updated dependencies [20962bc]
322
+ - @osdk/client@2.5.0-beta.3
323
+
324
+ ## 1.3.0-beta.2
325
+
326
+ ### Minor Changes
37
327
 
38
- ## 2.0.0-beta.3
328
+ - 7cdab1d: Update platform sdk dependencies
329
+ - ba5f116: Add Principal Type
330
+ - 7cdab1d: Add implementation for transaction edits
39
331
 
40
332
  ### Patch Changes
41
333
 
42
- - @osdk/client@2.4.0-beta.3
334
+ - Updated dependencies [b05075d]
335
+ - Updated dependencies [7160276]
336
+ - Updated dependencies [7cdab1d]
337
+ - Updated dependencies [b9e9a88]
338
+ - Updated dependencies [76905f5]
339
+ - Updated dependencies [48d52b7]
340
+ - @osdk/client@2.5.0-beta.2
43
341
 
44
- ## 2.0.0-beta.2
342
+ ## 1.2.0-beta.11
45
343
 
46
344
  ### Patch Changes
47
345
 
48
- - Updated dependencies [8c95154]
49
- - Updated dependencies [c32dcf2]
50
- - Updated dependencies [37c7c0b]
51
- - @osdk/client@2.4.0-beta.2
346
+ - Updated dependencies [06fd45a]
347
+ - @osdk/client@2.4.0-beta.17
348
+
349
+ ## 1.2.0-beta.10
350
+
351
+ ### Patch Changes
352
+
353
+ - Updated dependencies [c763807]
354
+ - @osdk/client@2.4.0-beta.16
355
+
356
+ ## 1.2.0-beta.9
357
+
358
+ ### Patch Changes
359
+
360
+ - Updated dependencies [d2d36e1]
361
+ - @osdk/client@2.4.0-beta.15
362
+
363
+ ## 1.2.0-beta.8
364
+
365
+ ### Patch Changes
366
+
367
+ - @osdk/client@2.4.0-beta.14
368
+
369
+ ## 1.2.0-beta.7
370
+
371
+ ### Patch Changes
372
+
373
+ - Updated dependencies [4bc848b]
374
+ - @osdk/client@2.4.0-beta.13
375
+
376
+ ## 1.2.0-beta.6
377
+
378
+ ### Patch Changes
379
+
380
+ - Updated dependencies [402eb67]
381
+ - @osdk/client@2.4.0-beta.12
382
+
383
+ ## 1.2.0-beta.5
384
+
385
+ ### Patch Changes
386
+
387
+ - @osdk/client@2.4.0-beta.11
388
+
389
+ ## 1.2.0-beta.4
390
+
391
+ ### Minor Changes
392
+
393
+ - b22a1fd: Support Ontology interface edits
394
+ - d8cb63c: Exports interface edit types from internal package
395
+ - f022ffe: Add experimental transactions shape
396
+
397
+ ### Patch Changes
398
+
399
+ - Updated dependencies [f022ffe]
400
+ - @osdk/client@2.4.0-beta.10
401
+
402
+ ## 1.2.0-beta.3
403
+
404
+ ### Patch Changes
405
+
406
+ - Updated dependencies [9101bad]
407
+ - @osdk/client@2.4.0-beta.9
408
+
409
+ ## 1.2.0-beta.2
410
+
411
+ ### Minor Changes
412
+
413
+ - 9be5e2b: add notification type
52
414
 
53
415
  ## 1.1.0-beta.10
54
416
 
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Markings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Markings.js","names":[],"sources":["Markings.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 MandatoryMarking<T extends string = string> = T & {\n __markingBrand?: \"mandatory\";\n};\n\nexport type ClassificationMarking<T extends string = string> = T & {\n __markingBrand?: \"classification\";\n};\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification.js","names":[],"sources":["Notification.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\nimport type {\n InterfaceDefinition,\n ObjectTypeDefinition,\n Osdk,\n} from \"@osdk/client\";\n\nexport interface Notification {\n platformNotification: PlatformNotification;\n emailNotification: EmailNotification;\n}\n\n// Details for notifications sent via email.\nexport interface EmailNotification {\n subject: string;\n body: string;\n links: NotificationLink[];\n}\n\n// Details for notifications displayed in Foundry.\nexport interface PlatformNotification {\n heading: string;\n content: string;\n links: NotificationLink[];\n}\n\n// Notification Link Types\nexport interface NotificationLink {\n label: string;\n linkTarget: NotificationLinkTarget;\n}\n\nexport interface RidLinkTarget {\n type: \"rid\";\n rid: string;\n}\n\nexport interface ObjectLinkTarget<\n T extends ObjectTypeDefinition | InterfaceDefinition =\n | ObjectTypeDefinition\n | InterfaceDefinition,\n> {\n type: \"object\";\n object: Osdk.Instance<T>;\n}\n\nexport interface UrlLinkTarget {\n type: \"url\";\n url: string;\n}\n\nexport type NotificationLinkTarget =\n | RidLinkTarget\n | ObjectLinkTarget\n | UrlLinkTarget;\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=UserGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserGroup.js","names":[],"sources":["UserGroup.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\nimport type {\n GroupId as PlatformGroupId,\n UserId as PlatformUserId,\n} from \"@osdk/foundry.core\";\n\nexport type GroupId = PlatformGroupId & {\n __groupIdBrand?: void;\n};\n\nexport type UserId = PlatformUserId & {\n __userIdBrand?: void;\n};\n\nexport type Principal = {\n type: \"user\";\n id: string;\n} | {\n type: \"group\";\n id: string;\n};\n"],"mappings":"","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":[]}