@osdk/cli 0.24.0-beta.12 → 0.24.0-beta.14

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 (58) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/build/browser/{chunk-FHGPBDJE.js → chunk-IK6CLC6I.js} +4 -4
  3. package/build/browser/{chunk-FHGPBDJE.js.map → chunk-IK6CLC6I.js.map} +1 -1
  4. package/build/{esm/chunk-SBJIY4HI.js → browser/chunk-Q2H7XAS4.js} +29 -8
  5. package/build/browser/chunk-Q2H7XAS4.js.map +1 -0
  6. package/build/{esm/chunk-XJLUGCCS.js → browser/chunk-VDO5KGGR.js} +11 -4
  7. package/build/browser/chunk-VDO5KGGR.js.map +1 -0
  8. package/build/{esm/handleGenerate-5ANBXHY3-NRCPE7IO.js → browser/handleGenerate-37Z73JKR.js} +56 -280
  9. package/build/browser/handleGenerate-37Z73JKR.js.map +1 -0
  10. package/build/browser/index.js +22 -13
  11. package/build/browser/index.js.map +1 -1
  12. package/build/browser/loginFlow-622FU6FR.js +4 -0
  13. package/build/browser/{loginFlow-X2LB2TEP.js.map → loginFlow-622FU6FR.js.map} +1 -1
  14. package/build/browser/{siteDeployCommand-OYNFXM4G.js → siteDeployCommand-KV7OEWSZ.js} +4 -4
  15. package/build/browser/{siteDeployCommand-OYNFXM4G.js.map → siteDeployCommand-KV7OEWSZ.js.map} +1 -1
  16. package/build/browser/{versionDeleteCommand-I6JJR3KD.js → versionDeleteCommand-JALRWV7N.js} +4 -4
  17. package/build/browser/{versionDeleteCommand-I6JJR3KD.js.map → versionDeleteCommand-JALRWV7N.js.map} +1 -1
  18. package/build/{esm/versionGetCommand-LVG3FBW5.js → browser/versionGetCommand-ZWABO75R.js} +4 -4
  19. package/build/browser/{versionGetCommand-LVG3FBW5.js.map → versionGetCommand-ZWABO75R.js.map} +1 -1
  20. package/build/{esm/versionListCommand-VZQDE6LT.js → browser/versionListCommand-S7ZNXKLB.js} +4 -4
  21. package/build/browser/{versionListCommand-VZQDE6LT.js.map → versionListCommand-S7ZNXKLB.js.map} +1 -1
  22. package/build/{esm/versionSetCommand-RSTHOATA.js → browser/versionSetCommand-D25C3HBN.js} +4 -4
  23. package/build/browser/{versionSetCommand-RSTHOATA.js.map → versionSetCommand-D25C3HBN.js.map} +1 -1
  24. package/build/{esm/versionUnsetCommand-TCIPMVDP.js → browser/versionUnsetCommand-YL7WZDYA.js} +4 -4
  25. package/build/browser/{versionUnsetCommand-TCIPMVDP.js.map → versionUnsetCommand-YL7WZDYA.js.map} +1 -1
  26. package/build/esm/{chunk-FHGPBDJE.js → chunk-IK6CLC6I.js} +4 -4
  27. package/build/esm/{chunk-FHGPBDJE.js.map → chunk-IK6CLC6I.js.map} +1 -1
  28. package/build/{browser/chunk-SBJIY4HI.js → esm/chunk-Q2H7XAS4.js} +29 -8
  29. package/build/esm/chunk-Q2H7XAS4.js.map +1 -0
  30. package/build/{browser/chunk-XJLUGCCS.js → esm/chunk-VDO5KGGR.js} +11 -4
  31. package/build/esm/chunk-VDO5KGGR.js.map +1 -0
  32. package/build/{browser/handleGenerate-5ANBXHY3-NRCPE7IO.js → esm/handleGenerate-37Z73JKR.js} +56 -280
  33. package/build/esm/handleGenerate-37Z73JKR.js.map +1 -0
  34. package/build/esm/index.js +22 -13
  35. package/build/esm/index.js.map +1 -1
  36. package/build/esm/loginFlow-622FU6FR.js +4 -0
  37. package/build/esm/{loginFlow-X2LB2TEP.js.map → loginFlow-622FU6FR.js.map} +1 -1
  38. package/build/esm/{siteDeployCommand-OYNFXM4G.js → siteDeployCommand-KV7OEWSZ.js} +4 -4
  39. package/build/esm/{siteDeployCommand-OYNFXM4G.js.map → siteDeployCommand-KV7OEWSZ.js.map} +1 -1
  40. package/build/esm/{versionDeleteCommand-I6JJR3KD.js → versionDeleteCommand-JALRWV7N.js} +4 -4
  41. package/build/esm/{versionDeleteCommand-I6JJR3KD.js.map → versionDeleteCommand-JALRWV7N.js.map} +1 -1
  42. package/build/{browser/versionGetCommand-LVG3FBW5.js → esm/versionGetCommand-ZWABO75R.js} +4 -4
  43. package/build/esm/{versionGetCommand-LVG3FBW5.js.map → versionGetCommand-ZWABO75R.js.map} +1 -1
  44. package/build/{browser/versionListCommand-VZQDE6LT.js → esm/versionListCommand-S7ZNXKLB.js} +4 -4
  45. package/build/esm/{versionListCommand-VZQDE6LT.js.map → versionListCommand-S7ZNXKLB.js.map} +1 -1
  46. package/build/{browser/versionSetCommand-RSTHOATA.js → esm/versionSetCommand-D25C3HBN.js} +4 -4
  47. package/build/esm/{versionSetCommand-RSTHOATA.js.map → versionSetCommand-D25C3HBN.js.map} +1 -1
  48. package/build/{browser/versionUnsetCommand-TCIPMVDP.js → esm/versionUnsetCommand-YL7WZDYA.js} +4 -4
  49. package/build/esm/{versionUnsetCommand-TCIPMVDP.js.map → versionUnsetCommand-YL7WZDYA.js.map} +1 -1
  50. package/package.json +6 -8
  51. package/build/browser/chunk-SBJIY4HI.js.map +0 -1
  52. package/build/browser/chunk-XJLUGCCS.js.map +0 -1
  53. package/build/browser/handleGenerate-5ANBXHY3-NRCPE7IO.js.map +0 -1
  54. package/build/browser/loginFlow-X2LB2TEP.js +0 -4
  55. package/build/esm/chunk-SBJIY4HI.js.map +0 -1
  56. package/build/esm/chunk-XJLUGCCS.js.map +0 -1
  57. package/build/esm/handleGenerate-5ANBXHY3-NRCPE7IO.js.map +0 -1
  58. package/build/esm/loginFlow-X2LB2TEP.js +0 -4
@@ -1,6 +1,6 @@
1
- import { invokeLoginFlow } from './chunk-XJLUGCCS.js';
2
- import { YargsCheckError, ExitProcessError } from './chunk-SBJIY4HI.js';
3
- import { __commonJS, init_esm_shims, __toESM } from './chunk-DAYFZSC6.js';
1
+ import { invokeLoginFlow } from './chunk-VDO5KGGR.js';
2
+ import { YargsCheckError, ExitProcessError } from './chunk-Q2H7XAS4.js';
3
+ import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-DAYFZSC6.js';
4
4
  import { getExpectedDependencies, __UNSTABLE_generateClientSdkPackage, generateClientSdkVersionTwoPointZero } from '@osdk/generator';
5
5
  import { createClientContext } from '@osdk/shared.net';
6
6
  import { consola } from 'consola';
@@ -42,35 +42,37 @@ var require_fast_deep_equal = __commonJS({
42
42
  }
43
43
  });
44
44
 
45
- // ../cli.cmd.typescript/build/esm/handleGenerate-5ANBXHY3.js
45
+ // ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
46
46
  init_esm_shims();
47
47
 
48
48
  // ../internal.foundry.ontologiesv2/build/esm/index.js
49
49
  init_esm_shims();
50
50
 
51
- // ../internal.foundry.ontologiesv2/build/esm/chunk-CTA4DXZF.js
51
+ // ../internal.foundry.ontologiesv2/build/esm/public/Action.js
52
52
  init_esm_shims();
53
53
 
54
- // ../internal.foundry.ontologiesv2/build/esm/chunk-PZ5AY32C.js
54
+ // ../shared.net.platformapi/build/esm/index.js
55
55
  init_esm_shims();
56
- var __defProp = Object.defineProperty;
57
- var __export = (target, all) => {
58
- for (var name in all) __defProp(target, name, {
59
- get: all[name],
60
- enumerable: true
61
- });
62
- };
63
56
 
64
- // ../shared.net.platformapi/build/esm/index.js
57
+ // ../shared.net.platformapi/build/esm/foundryPlatformFetch.js
65
58
  init_esm_shims();
66
59
 
67
- // ../shared.client/index.mjs
60
+ // ../shared.client/index.js
68
61
  init_esm_shims();
69
62
  var symbolClientContext = Symbol("ClientContext");
70
63
 
71
64
  // ../shared.net.errors/build/esm/index.js
72
65
  init_esm_shims();
66
+
67
+ // ../shared.net.errors/build/esm/PalantirApiError.js
68
+ init_esm_shims();
73
69
  var PalantirApiError = class extends Error {
70
+ message;
71
+ errorName;
72
+ errorType;
73
+ statusCode;
74
+ errorInstanceId;
75
+ parameters;
74
76
  constructor(message, errorName, errorType, statusCode, errorInstanceId, parameters) {
75
77
  super(message);
76
78
  this.message = message;
@@ -81,14 +83,18 @@ var PalantirApiError = class extends Error {
81
83
  this.parameters = parameters;
82
84
  }
83
85
  };
86
+
87
+ // ../shared.net.errors/build/esm/UnknownError.js
88
+ init_esm_shims();
84
89
  var UnknownError = class extends PalantirApiError {
90
+ originalError;
85
91
  constructor(message, errorType, originalError) {
86
92
  super(message, errorType);
87
93
  this.originalError = originalError;
88
94
  }
89
95
  };
90
96
 
91
- // ../shared.net.platformapi/build/esm/index.js
97
+ // ../shared.net.platformapi/build/esm/foundryPlatformFetch.js
92
98
  async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
93
99
  const path2 = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
94
100
  const body = flags & 1 ? args.shift() : void 0;
@@ -145,70 +151,38 @@ async function apiFetch(clientCtx, method, endpointPath, data, queryArguments, h
145
151
  return response.blob();
146
152
  }
147
153
 
148
- // ../internal.foundry.ontologiesv2/build/esm/chunk-CTA4DXZF.js
149
- var OntologyObjectSet_exports = {};
150
- __export(OntologyObjectSet_exports, {
151
- aggregateObjectSetV2: () => aggregateObjectSetV2,
152
- createTemporaryObjectSetV2: () => createTemporaryObjectSetV2,
153
- getObjectSetV2: () => getObjectSetV2,
154
- loadObjectSetV2: () => loadObjectSetV2
155
- });
156
- var _createTemporaryObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/createTemporary", 1];
157
- function createTemporaryObjectSetV2($ctx, ...args) {
158
- return foundryPlatformFetch($ctx, _createTemporaryObjectSetV2, ...args);
159
- }
160
- var _getObjectSetV2 = [0, "/v2/ontologies/{0}/objectSets/{1}"];
161
- function getObjectSetV2($ctx, ...args) {
162
- return foundryPlatformFetch($ctx, _getObjectSetV2, ...args);
163
- }
164
- var _loadObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/loadObjects", 3];
165
- function loadObjectSetV2($ctx, ...args) {
166
- return foundryPlatformFetch($ctx, _loadObjectSetV2, ...args);
167
- }
168
- var _aggregateObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/aggregate", 3];
169
- function aggregateObjectSetV2($ctx, ...args) {
170
- return foundryPlatformFetch($ctx, _aggregateObjectSetV2, ...args);
171
- }
154
+ // ../internal.foundry.ontologiesv2/build/esm/public/ActionTypeV2.js
155
+ init_esm_shims();
172
156
 
173
- // ../internal.foundry.ontologiesv2/build/esm/chunk-U76D6BOW.js
157
+ // ../internal.foundry.ontologiesv2/build/esm/public/Attachment.js
174
158
  init_esm_shims();
175
- var OntologyObjectV2_exports = {};
176
- __export(OntologyObjectV2_exports, {
177
- aggregateObjectsV2: () => aggregateObjectsV2,
178
- countObjects: () => countObjects,
179
- getObjectV2: () => getObjectV2,
180
- listObjectsV2: () => listObjectsV2,
181
- searchObjectsV2: () => searchObjectsV2
182
- });
183
- var _listObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}", 2];
184
- function listObjectsV2($ctx, ...args) {
185
- return foundryPlatformFetch($ctx, _listObjectsV2, ...args);
186
- }
187
- var _getObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}", 2];
188
- function getObjectV2($ctx, ...args) {
189
- return foundryPlatformFetch($ctx, _getObjectV2, ...args);
190
- }
191
- var _countObjects = [1, "/v2/ontologies/{0}/objects/{1}/count", 2];
192
- function countObjects($ctx, ...args) {
193
- return foundryPlatformFetch($ctx, _countObjects, ...args);
194
- }
195
- var _searchObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/search", 3];
196
- function searchObjectsV2($ctx, ...args) {
197
- return foundryPlatformFetch($ctx, _searchObjectsV2, ...args);
198
- }
199
- var _aggregateObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/aggregate", 3];
200
- function aggregateObjectsV2($ctx, ...args) {
201
- return foundryPlatformFetch($ctx, _aggregateObjectsV2, ...args);
202
- }
203
159
 
204
- // ../internal.foundry.ontologiesv2/build/esm/chunk-35VM6XLH.js
160
+ // ../internal.foundry.ontologiesv2/build/esm/public/AttachmentPropertyV2.js
205
161
  init_esm_shims();
162
+
163
+ // ../internal.foundry.ontologiesv2/build/esm/public/LinkedObjectV2.js
164
+ init_esm_shims();
165
+
166
+ // ../internal.foundry.ontologiesv2/build/esm/public/ObjectTypeV2.js
167
+ init_esm_shims();
168
+
169
+ // ../internal.foundry.ontologiesv2/build/esm/public/OntologyInterface.js
170
+ init_esm_shims();
171
+
172
+ // ../internal.foundry.ontologiesv2/build/esm/public/OntologyObjectSet.js
173
+ init_esm_shims();
174
+
175
+ // ../internal.foundry.ontologiesv2/build/esm/public/OntologyObjectV2.js
176
+ init_esm_shims();
177
+
178
+ // ../internal.foundry.ontologiesv2/build/esm/public/OntologyV2.js
206
179
  var OntologyV2_exports = {};
207
180
  __export(OntologyV2_exports, {
208
181
  getOntologyFullMetadata: () => getOntologyFullMetadata,
209
182
  getOntologyV2: () => getOntologyV2,
210
183
  listOntologiesV2: () => listOntologiesV2
211
184
  });
185
+ init_esm_shims();
212
186
  var _listOntologiesV2 = [0, "/v2/ontologies"];
213
187
  function listOntologiesV2($ctx, ...args) {
214
188
  return foundryPlatformFetch($ctx, _listOntologiesV2, ...args);
@@ -222,219 +196,21 @@ function getOntologyFullMetadata($ctx, ...args) {
222
196
  return foundryPlatformFetch($ctx, _getOntologyFullMetadata, ...args);
223
197
  }
224
198
 
225
- // ../internal.foundry.ontologiesv2/build/esm/chunk-UFJTKRQC.js
199
+ // ../internal.foundry.ontologiesv2/build/esm/public/Query.js
226
200
  init_esm_shims();
227
- var Query_exports = {};
228
- __export(Query_exports, {
229
- executeQueryV2: () => executeQueryV2
230
- });
231
- var _executeQueryV2 = [1, "/v2/ontologies/{0}/queries/{1}/execute", 3];
232
- function executeQueryV2($ctx, ...args) {
233
- return foundryPlatformFetch($ctx, _executeQueryV2, ...args);
234
- }
235
201
 
236
- // ../internal.foundry.ontologiesv2/build/esm/chunk-GWYI4RKT.js
202
+ // ../internal.foundry.ontologiesv2/build/esm/public/QueryType.js
237
203
  init_esm_shims();
238
- var QueryType_exports = {};
239
- __export(QueryType_exports, {
240
- getQueryTypeV2: () => getQueryTypeV2,
241
- listQueryTypesV2: () => listQueryTypesV2
242
- });
243
- var _listQueryTypesV2 = [0, "/v2/ontologies/{0}/queryTypes", 2];
244
- function listQueryTypesV2($ctx, ...args) {
245
- return foundryPlatformFetch($ctx, _listQueryTypesV2, ...args);
246
- }
247
- var _getQueryTypeV2 = [0, "/v2/ontologies/{0}/queryTypes/{1}"];
248
- function getQueryTypeV2($ctx, ...args) {
249
- return foundryPlatformFetch($ctx, _getQueryTypeV2, ...args);
250
- }
251
204
 
252
- // ../internal.foundry.ontologiesv2/build/esm/chunk-KQNF55S5.js
205
+ // ../internal.foundry.ontologiesv2/build/esm/public/TimeSeriesPropertyV2.js
253
206
  init_esm_shims();
254
- var TimeSeriesPropertyV2_exports = {};
255
- __export(TimeSeriesPropertyV2_exports, {
256
- getFirstPoint: () => getFirstPoint,
257
- getLastPoint: () => getLastPoint,
258
- streamPoints: () => streamPoints
259
- });
260
- var _getFirstPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint", 2];
261
- function getFirstPoint($ctx, ...args) {
262
- return foundryPlatformFetch($ctx, _getFirstPoint, ...args);
263
- }
264
- var _getLastPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint", 2];
265
- function getLastPoint($ctx, ...args) {
266
- return foundryPlatformFetch($ctx, _getLastPoint, ...args);
267
- }
268
- var _streamPoints = [1, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints", 3, , "*/*"];
269
- function streamPoints($ctx, ...args) {
270
- return foundryPlatformFetch($ctx, _streamPoints, ...args);
271
- }
272
207
 
273
- // ../internal.foundry.ontologiesv2/build/esm/chunk-A2ZEBCGI.js
208
+ // ../internal.foundry.ontologiesv2/build/esm/public/TimeSeriesValueBankProperty.js
274
209
  init_esm_shims();
275
- var Action_exports = {};
276
- __export(Action_exports, {
277
- applyActionAsyncV2: () => applyActionAsyncV2,
278
- applyActionBatchV2: () => applyActionBatchV2,
279
- applyActionV2: () => applyActionV2
280
- });
281
- var _applyActionV2 = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
282
- function applyActionV2($ctx, ...args) {
283
- return foundryPlatformFetch($ctx, _applyActionV2, ...args);
284
- }
285
- var _applyActionAsyncV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyAsync", 3];
286
- function applyActionAsyncV2($ctx, ...args) {
287
- return foundryPlatformFetch($ctx, _applyActionAsyncV2, ...args);
288
- }
289
- var _applyActionBatchV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyBatch", 3];
290
- function applyActionBatchV2($ctx, ...args) {
291
- return foundryPlatformFetch($ctx, _applyActionBatchV2, ...args);
292
- }
293
-
294
- // ../internal.foundry.ontologiesv2/build/esm/chunk-VCCTOHYG.js
295
- init_esm_shims();
296
- var ActionTypeV2_exports = {};
297
- __export(ActionTypeV2_exports, {
298
- getActionTypeV2: () => getActionTypeV2,
299
- listActionTypesV2: () => listActionTypesV2
300
- });
301
- var _listActionTypesV2 = [0, "/v2/ontologies/{0}/actionTypes", 2];
302
- function listActionTypesV2($ctx, ...args) {
303
- return foundryPlatformFetch($ctx, _listActionTypesV2, ...args);
304
- }
305
- var _getActionTypeV2 = [0, "/v2/ontologies/{0}/actionTypes/{1}"];
306
- function getActionTypeV2($ctx, ...args) {
307
- return foundryPlatformFetch($ctx, _getActionTypeV2, ...args);
308
- }
309
-
310
- // ../internal.foundry.ontologiesv2/build/esm/chunk-EFVOGNPX.js
311
- init_esm_shims();
312
- var Attachment_exports = {};
313
- __export(Attachment_exports, {
314
- getAttachmentContentV2: () => getAttachmentContentV2,
315
- getAttachmentV2: () => getAttachmentV2,
316
- uploadAttachmentV2: () => uploadAttachmentV2
317
- });
318
- var _uploadAttachmentV2 = [1, "/v2/ontologies/attachments/upload", 7, "*/*"];
319
- function uploadAttachmentV2($ctx, ...args) {
320
- const headerParams = {
321
- ...args[2],
322
- "Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
323
- "Content-Length": args[0].size.toString()
324
- };
325
- return foundryPlatformFetch($ctx, _uploadAttachmentV2, args[0], args[1], headerParams);
326
- }
327
- var _getAttachmentContentV2 = [0, "/v2/ontologies/attachments/{0}/content", , , "*/*"];
328
- function getAttachmentContentV2($ctx, ...args) {
329
- return foundryPlatformFetch($ctx, _getAttachmentContentV2, ...args);
330
- }
331
- var _getAttachmentV2 = [0, "/v2/ontologies/attachments/{0}"];
332
- function getAttachmentV2($ctx, ...args) {
333
- return foundryPlatformFetch($ctx, _getAttachmentV2, ...args);
334
- }
335
-
336
- // ../internal.foundry.ontologiesv2/build/esm/chunk-3H3SHEFA.js
337
- init_esm_shims();
338
- var AttachmentPropertyV2_exports = {};
339
- __export(AttachmentPropertyV2_exports, {
340
- getAttachmentPropertyByRidV2: () => getAttachmentPropertyByRidV2,
341
- getAttachmentPropertyContentByRidV2: () => getAttachmentPropertyContentByRidV2,
342
- getAttachmentPropertyContentV2: () => getAttachmentPropertyContentV2,
343
- listPropertyAttachments: () => listPropertyAttachments
344
- });
345
- var _listPropertyAttachments = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}", 2];
346
- function listPropertyAttachments($ctx, ...args) {
347
- return foundryPlatformFetch($ctx, _listPropertyAttachments, ...args);
348
- }
349
- var _getAttachmentPropertyByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}", 2];
350
- function getAttachmentPropertyByRidV2($ctx, ...args) {
351
- return foundryPlatformFetch($ctx, _getAttachmentPropertyByRidV2, ...args);
352
- }
353
- var _getAttachmentPropertyContentV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content", 2, , "*/*"];
354
- function getAttachmentPropertyContentV2($ctx, ...args) {
355
- return foundryPlatformFetch($ctx, _getAttachmentPropertyContentV2, ...args);
356
- }
357
- var _getAttachmentPropertyContentByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content", 2, , "*/*"];
358
- function getAttachmentPropertyContentByRidV2($ctx, ...args) {
359
- return foundryPlatformFetch($ctx, _getAttachmentPropertyContentByRidV2, ...args);
360
- }
361
-
362
- // ../internal.foundry.ontologiesv2/build/esm/chunk-4TOWICL3.js
363
- init_esm_shims();
364
- var LinkedObjectV2_exports = {};
365
- __export(LinkedObjectV2_exports, {
366
- getLinkedObjectV2: () => getLinkedObjectV2,
367
- listLinkedObjectsV2: () => listLinkedObjectsV2
368
- });
369
- var _listLinkedObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
370
- function listLinkedObjectsV2($ctx, ...args) {
371
- return foundryPlatformFetch($ctx, _listLinkedObjectsV2, ...args);
372
- }
373
- var _getLinkedObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}", 2];
374
- function getLinkedObjectV2($ctx, ...args) {
375
- return foundryPlatformFetch($ctx, _getLinkedObjectV2, ...args);
376
- }
377
-
378
- // ../internal.foundry.ontologiesv2/build/esm/chunk-ZNHKEV4X.js
379
- init_esm_shims();
380
- var ObjectTypeV2_exports = {};
381
- __export(ObjectTypeV2_exports, {
382
- getObjectTypeFullMetadata: () => getObjectTypeFullMetadata,
383
- getObjectTypeV2: () => getObjectTypeV2,
384
- getOutgoingLinkTypeV2: () => getOutgoingLinkTypeV2,
385
- listObjectTypesV2: () => listObjectTypesV2,
386
- listOutgoingLinkTypesV2: () => listOutgoingLinkTypesV2
387
- });
388
- var _listObjectTypesV2 = [0, "/v2/ontologies/{0}/objectTypes", 2];
389
- function listObjectTypesV2($ctx, ...args) {
390
- return foundryPlatformFetch($ctx, _listObjectTypesV2, ...args);
391
- }
392
- var _getObjectTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}"];
393
- function getObjectTypeV2($ctx, ...args) {
394
- return foundryPlatformFetch($ctx, _getObjectTypeV2, ...args);
395
- }
396
- var _getObjectTypeFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
397
- function getObjectTypeFullMetadata($ctx, ...args) {
398
- return foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);
399
- }
400
- var _listOutgoingLinkTypesV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
401
- function listOutgoingLinkTypesV2($ctx, ...args) {
402
- return foundryPlatformFetch($ctx, _listOutgoingLinkTypesV2, ...args);
403
- }
404
- var _getOutgoingLinkTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}"];
405
- function getOutgoingLinkTypeV2($ctx, ...args) {
406
- return foundryPlatformFetch($ctx, _getOutgoingLinkTypeV2, ...args);
407
- }
408
-
409
- // ../internal.foundry.ontologiesv2/build/esm/chunk-OBKC7XBM.js
410
- init_esm_shims();
411
- var OntologyInterface_exports = {};
412
- __export(OntologyInterface_exports, {
413
- aggregateObjectsForInterface: () => aggregateObjectsForInterface,
414
- getInterfaceType: () => getInterfaceType,
415
- listInterfaceTypes: () => listInterfaceTypes,
416
- searchObjectsForInterface: () => searchObjectsForInterface
417
- });
418
- var _listInterfaceTypes = [0, "/v2/ontologies/{0}/interfaceTypes", 2];
419
- function listInterfaceTypes($ctx, ...args) {
420
- return foundryPlatformFetch($ctx, _listInterfaceTypes, ...args);
421
- }
422
- var _getInterfaceType = [0, "/v2/ontologies/{0}/interfaceTypes/{1}", 2];
423
- function getInterfaceType($ctx, ...args) {
424
- return foundryPlatformFetch($ctx, _getInterfaceType, ...args);
425
- }
426
- var _searchObjectsForInterface = [1, "/v2/ontologies/{0}/interfaces/{1}/search", 3];
427
- function searchObjectsForInterface($ctx, ...args) {
428
- return foundryPlatformFetch($ctx, _searchObjectsForInterface, ...args);
429
- }
430
- var _aggregateObjectsForInterface = [1, "/v2/ontologies/{0}/interfaces/{1}/aggregate", 3];
431
- function aggregateObjectsForInterface($ctx, ...args) {
432
- return foundryPlatformFetch($ctx, _aggregateObjectsForInterface, ...args);
433
- }
434
210
 
435
- // ../cli.cmd.typescript/build/esm/handleGenerate-5ANBXHY3.js
211
+ // ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
436
212
  var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
437
- var USER_AGENT = `osdk-cli.cmd.typescript/${"0.6.0-beta.12"}`;
213
+ var USER_AGENT = `osdk-cli.cmd.typescript/${"0.24.0-beta.14"}`;
438
214
  async function handleGenerate(args) {
439
215
  let success = false;
440
216
  if (args.ontologyPath) {
@@ -567,7 +343,7 @@ async function generateClientSdk(ontology, args) {
567
343
  }
568
344
  return true;
569
345
  }
570
- await __UNSTABLE_generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.24.0-beta.12", args.ontologyApiNamespace, args.apiNamespaceMap);
346
+ await __UNSTABLE_generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.24.0-beta.14", args.ontologyApiNamespace, args.apiNamespaceMap);
571
347
  return true;
572
348
  } catch (e) {
573
349
  consola.error("OSDK generation failed", e.message, e.stack);
@@ -580,9 +356,9 @@ async function getDependencyVersions() {
580
356
  const typescriptVersion = ourPackageJson.devDependencies.typescript;
581
357
  const tslibVersion = ourPackageJson.dependencies.tslib;
582
358
  const areTheTypesWrongVersion = ourPackageJson.dependencies["@arethetypeswrong/cli"];
583
- const osdkClientVersion = `^${"2.0.0-beta.13"}`;
584
- const osdkClientApiVersion = `^${"2.0.0-beta.13"}`;
585
- const osdkApiVersion = `^${"2.0.0-beta.13"}`;
359
+ const osdkClientVersion = `^${"2.0.0-beta.15"}`;
360
+ const osdkClientApiVersion = `^${process.env.PACKAGE_CLIENT_API_VERSION}`;
361
+ const osdkApiVersion = `^${"2.0.0-beta.15"}`;
586
362
  const osdkLegacyClientVersion = `^${process.env.PACKAGE_LEGACY_CLIENT_VERSION}`;
587
363
  return {
588
364
  typescriptVersion,
@@ -629,5 +405,5 @@ function createNormalFs() {
629
405
  }
630
406
 
631
407
  export { getDependencyVersions, handleGenerate };
632
- //# sourceMappingURL=handleGenerate-5ANBXHY3-NRCPE7IO.js.map
633
- //# sourceMappingURL=handleGenerate-5ANBXHY3-NRCPE7IO.js.map
408
+ //# sourceMappingURL=handleGenerate-37Z73JKR.js.map
409
+ //# sourceMappingURL=handleGenerate-37Z73JKR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js","../../../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs","../../../internal.foundry.ontologiesv2/build/esm/index.js","../../../internal.foundry.ontologiesv2/build/esm/public/Action.js","../../../shared.net.platformapi/build/esm/index.js","../../../shared.net.platformapi/build/esm/foundryPlatformFetch.js","../../../shared.client/index.js","../../../shared.net.errors/build/esm/index.js","../../../shared.net.errors/build/esm/PalantirApiError.js","../../../shared.net.errors/build/esm/UnknownError.js","../../../internal.foundry.ontologiesv2/build/esm/public/ActionTypeV2.js","../../../internal.foundry.ontologiesv2/build/esm/public/Attachment.js","../../../internal.foundry.ontologiesv2/build/esm/public/AttachmentPropertyV2.js","../../../internal.foundry.ontologiesv2/build/esm/public/LinkedObjectV2.js","../../../internal.foundry.ontologiesv2/build/esm/public/ObjectTypeV2.js","../../../internal.foundry.ontologiesv2/build/esm/public/OntologyInterface.js","../../../internal.foundry.ontologiesv2/build/esm/public/OntologyObjectSet.js","../../../internal.foundry.ontologiesv2/build/esm/public/OntologyObjectV2.js","../../../internal.foundry.ontologiesv2/build/esm/public/OntologyV2.js","../../../internal.foundry.ontologiesv2/build/esm/public/Query.js","../../../internal.foundry.ontologiesv2/build/esm/public/QueryType.js","../../../internal.foundry.ontologiesv2/build/esm/public/TimeSeriesPropertyV2.js","../../../internal.foundry.ontologiesv2/build/esm/public/TimeSeriesValueBankProperty.js"],"names":["path","sortKeys","deepEqual","fs"],"mappings":";;;;;;;;;;;;AAAA,IAAA,uBAAA,GAAA,UAAA,CAAA;AAAA,EAAA,sFAAA,CAAA,OAAA,EAAA,MAAA,EAAA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AAA,oBAAA,EAAsB,KAAK,eAAe,CAAA,CAAA;AACrK,CAAA;AAGA,SAAS,aAAa,OAAS,EAAA;AAC7B,EAAA,IAAI,YAAY,KAAO,EAAA;AACrB,IAAO,OAAA,iCAAA,CAAA;AAAA,GACF,MAAA;AACL,IAAO,OAAA,CAAA,eAAA,EAAkB,OAAO,CAAA,CAAA,EAAI,UAAU,CAAA,CAAA,CAAA;AAAA,GAChD;AACF,CAAA;AACA,SAAS,cAAiB,GAAA;AACxB,EAAO,OAAA;AAAA,IACL,SAAA,EAAW,CAACH,KAAAA,EAAM,QAAa,KAAA;AAC7B,MAAA,OAAU,EAAS,CAAA,QAAA,CAAA,SAAA,CAAUA,KAAM,EAAA,QAAA,EAAU,OAAO,CAAA,CAAA;AAAA,KACtD;AAAA,IACA,KAAA,EAAO,OAAOA,KAAAA,EAAM,OAAY,KAAA;AAC9B,MAAS,MAAA,EAAA,CAAA,QAAA,CAAS,KAAMA,CAAAA,KAAAA,EAAM,OAAO,CAAA,CAAA;AAAA,KACvC;AAAA,IACA,OAAS,EAAA,OAAMA,KAAW,KAAA,EAAA,CAAA,QAAA,CAAS,QAAQA,KAAI,CAAA;AAAA,GACjD,CAAA;AACF","file":"handleGenerate-37Z73JKR.js","sourcesContent":["'use strict';\n\n// do not edit .js files directly - edit src/index.jst\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;) if (!equal(a[i], b[i])) return false;\n return true;\n }\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n if (!equal(a[key], b[key])) return false;\n }\n return true;\n }\n\n // true if both NaN, false otherwise\n return a !== a && b !== b;\n};","/*\n * Copyright 2023 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 */\nimport { ExitProcessError, YargsCheckError } from \"@osdk/cli.common\";\nimport invokeLoginFlow from \"@osdk/cli.common/loginFlow\";\nimport { __UNSTABLE_generateClientSdkPackage, generateClientSdkVersionTwoPointZero, getExpectedDependencies } from \"@osdk/generator\";\nimport { OntologiesV2 } from \"@osdk/internal.foundry.ontologiesv2\";\nimport { createClientContext } from \"@osdk/shared.net\";\nimport { consola } from \"consola\";\nimport deepEqual from \"fast-deep-equal\";\nimport { findUp } from \"find-up\";\nimport * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nconst USER_AGENT = `osdk-cli.cmd.typescript/${process.env.PACKAGE_VERSION}`;\nexport async function handleGenerate(args) {\n let success = false;\n if (args.ontologyPath) {\n success = await generateFromLocalFile(args);\n } else if (args.foundryUrl && args.clientId) {\n success = await generateFromStack(args);\n } else {\n throw new YargsCheckError(\"Must have specified ontologyPath or stack and clientId\");\n }\n if (success) {\n consola.info(\"OSDK Generated!\");\n } else {\n throw new ExitProcessError(1, \"Failed to generate the TypeScript SDK\");\n }\n}\nasync function generateFromLocalFile(args) {\n if (!fs.existsSync(args.ontologyPath)) {\n consola.error(`Ontology file does not exist: ${args.ontologyPath}`);\n return false;\n }\n const ontology = JSON.parse(await fs.promises.readFile(args.ontologyPath, \"utf-8\"));\n return await generateClientSdk(ontology, args);\n}\nasync function generateFromStack(args) {\n const {\n foundryUrl,\n clientId,\n ontologyWritePath\n } = args;\n const token = await invokeLoginFlow({\n clientId,\n foundryUrl,\n verbose: 0\n });\n const ctx = createClientContext(args.foundryUrl, () => token.access_token, USER_AGENT);\n try {\n const ontologies = await OntologiesV2.listOntologiesV2(ctx);\n if (args.ontologyRid) {\n ontologies.data = ontologies.data.filter(o => o.rid === args.ontologyRid);\n }\n if (ontologies.data.length !== 1) {\n consola.error(`Could not look up ontology with these credentials. Found ${ontologies.data.length} ontologies.`);\n return false;\n }\n const ontology = await OntologiesV2.getOntologyFullMetadata(ctx, ontologies.data[0].apiName);\n function sortKeys(obj, mutateValue) {\n const sorted = Object.entries(obj).sort(([a], [b]) => a.localeCompare(b));\n const mutated = mutateValue ? sorted.map(([k, v]) => [k, mutateValue(v)]) : sorted;\n return Object.fromEntries(mutated); //\n }\n ontology.actionTypes = sortKeys(ontology.actionTypes, x => {\n return {\n ...x,\n parameters: sortKeys(x.parameters)\n };\n });\n ontology.objectTypes = sortKeys(ontology.objectTypes, x => {\n return {\n ...x,\n linkTypes: [...x.linkTypes].sort((a, b) => a.apiName.localeCompare(b.apiName)),\n implementsInterfaces2: sortKeys(x.implementsInterfaces2),\n sharedPropertyTypeMapping: sortKeys(x.sharedPropertyTypeMapping),\n objectType: {\n ...x.objectType,\n properties: sortKeys(x.objectType.properties)\n }\n };\n });\n ontology.interfaceTypes = sortKeys(ontology.interfaceTypes, x => {\n return {\n ...x,\n extendsInterfaces: [...x.extendsInterfaces].sort(),\n properties: sortKeys(x.properties)\n };\n });\n ontology.queryTypes = sortKeys(ontology.queryTypes, x => {\n return {\n ...x,\n parameters: sortKeys(x.parameters)\n };\n });\n ontology.sharedPropertyTypes = sortKeys(ontology.sharedPropertyTypes);\n if (ontologyWritePath) {\n fs.writeFileSync(ontologyWritePath, JSON.stringify(ontology, null, 2));\n }\n return await generateClientSdk(ontology, args);\n } catch (e) {\n consola.error(\"Failed to generate the ontology\", e);\n return false;\n }\n}\nasync function generateClientSdk(ontology, args) {\n const minimalFs = createNormalFs();\n try {\n if (args.clean) {\n consola.info(\"Cleaning output directory\", args.outDir);\n await fs.promises.rm(args.outDir, {\n recursive: true,\n force: true\n });\n }\n if (!args.asPackage) {\n await generateSourceFiles(args, ontology, minimalFs);\n const packageJsonPath = await findUp(\"package.json\", {\n cwd: args.outDir\n });\n if (!packageJsonPath) {\n return true;\n }\n const packageJsonOriginal = JSON.parse(await fs.promises.readFile(packageJsonPath, \"utf-8\"));\n const packageJson = JSON.parse(await fs.promises.readFile(packageJsonPath, \"utf-8\"));\n const dependencyVersions = await getDependencyVersions();\n if (args.internal) {\n dependencyVersions.osdkApiVersion = \"workspace:~\";\n dependencyVersions.osdkClientApiVersion = \"workspace:~\";\n dependencyVersions.osdkClientVersion = \"workspace:~\";\n dependencyVersions.osdkLegacyClientVersion = \"workspace:~\";\n }\n const expectedDeps = getExpectedDependencies(dependencyVersions);\n for (const [type, deps] of Object.entries(expectedDeps)) {\n if (!(type in packageJson)) {\n packageJson[type] = deps;\n } else {\n Object.assign(packageJson[type], deps);\n }\n }\n // only write if changed\n if (!deepEqual(packageJsonOriginal, packageJson)) {\n await fs.promises.writeFile(packageJsonPath, JSON.stringify(packageJson, undefined, 2) + \"\\n\");\n }\n return true;\n }\n await __UNSTABLE_generateClientSdkPackage(args.packageName, args.version, args.beta ? \"2.0\" : \"1.1\", args.outDir, ontology, minimalFs, await getDependencyVersions(), process.env.PACKAGE_CLI_VERSION, args.ontologyApiNamespace, args.apiNamespaceMap);\n return true;\n } catch (e) {\n consola.error(\"OSDK generation failed\", e.message, e.stack);\n return false;\n }\n} //\nexport async function getDependencyVersions() {\n const ourPackageJsonPath = await getOurPackageJsonPath();\n const ourPackageJson = JSON.parse(await fs.promises.readFile(ourPackageJsonPath, \"utf-8\"));\n const typescriptVersion = ourPackageJson.devDependencies.typescript;\n const tslibVersion = ourPackageJson.dependencies.tslib;\n const areTheTypesWrongVersion = ourPackageJson.dependencies[\"@arethetypeswrong/cli\"];\n const osdkClientVersion = `^${process.env.PACKAGE_CLIENT_VERSION}`;\n const osdkClientApiVersion = `^${process.env.PACKAGE_CLIENT_API_VERSION}`;\n const osdkApiVersion = `^${process.env.PACKAGE_API_VERSION}`;\n const osdkLegacyClientVersion = `^${process.env.PACKAGE_LEGACY_CLIENT_VERSION}`;\n return {\n typescriptVersion,\n tslibVersion,\n areTheTypesWrongVersion,\n osdkApiVersion,\n osdkClientVersion,\n osdkClientApiVersion,\n osdkLegacyClientVersion\n };\n}\nlet cachedOurPackageJsonPath;\nasync function getOurPackageJsonPath() {\n if (cachedOurPackageJsonPath) return cachedOurPackageJsonPath;\n const __dir = path.dirname(fileURLToPath(import.meta.url));\n // todo replace with find package json alt from sid\n const ourPackageJsonPath = await findUp(\"package.json\", {\n cwd: __dir\n });\n if (!ourPackageJsonPath) {\n throw new Error(\"Could not find our package.json\");\n }\n return cachedOurPackageJsonPath = ourPackageJsonPath;\n}\nasync function generateSourceFiles(args, ontology, fs) {\n await generateClientSdkVersionTwoPointZero(ontology, getUserAgent(args.version), fs, args.outDir, args.packageType, args.ontologyApiNamespace, args.apiNamespaceMap);\n}\n// If the user passed us `dev` as our version, we use that for both our generated package version AND the cli version.\n// This makes it so that releases don't force us to have to regenerate the code when the version strings change.\nfunction getUserAgent(version) {\n if (version === \"dev\") {\n return \"typescript-sdk/dev osdk-cli/dev\";\n } else {\n return `typescript-sdk/${version} ${USER_AGENT}`;\n }\n}\nfunction createNormalFs() {\n return {\n writeFile: (path, contents) => {\n return fs.promises.writeFile(path, contents, \"utf-8\");\n },\n mkdir: async (path, options) => {\n await fs.promises.mkdir(path, options);\n },\n readdir: async path => fs.promises.readdir(path)\n };\n}","/*\n * Copyright 2024 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 */\nexport * as Actions from \"./public/Action.js\";\nexport * as ActionTypesV2 from \"./public/ActionTypeV2.js\";\nexport * as Attachments from \"./public/Attachment.js\";\nexport * as AttachmentPropertiesV2 from \"./public/AttachmentPropertyV2.js\";\nexport * as LinkedObjectsV2 from \"./public/LinkedObjectV2.js\";\nexport * as ObjectTypesV2 from \"./public/ObjectTypeV2.js\";\nexport * as OntologyInterfaces from \"./public/OntologyInterface.js\";\nexport * as OntologyObjectSets from \"./public/OntologyObjectSet.js\";\nexport * as OntologyObjectsV2 from \"./public/OntologyObjectV2.js\";\nexport * as OntologiesV2 from \"./public/OntologyV2.js\";\nexport * as Queries from \"./public/Query.js\";\nexport * as QueryTypes from \"./public/QueryType.js\";\nexport * as TimeSeriesPropertiesV2 from \"./public/TimeSeriesPropertyV2.js\";\nexport * as TimeSeriesValueBankProperties from \"./public/TimeSeriesValueBankProperty.js\";","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _applyActionV2 = [1, \"/v2/ontologies/{0}/actions/{1}/apply\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to the Ontology are eventually consistent and may take some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/apply\n */\nexport function applyActionV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyActionV2, ...args);\n}\nconst _applyActionAsyncV2 = [1, \"/v2/ontologies/{0}/actions/{1}/applyAsync\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to the Ontology are eventually consistent and may take some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyAsync\n */\nexport function applyActionAsyncV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyActionAsyncV2, ...args);\n}\nconst _applyActionBatchV2 = [1, \"/v2/ontologies/{0}/actions/{1}/applyBatch\", 3];\n/**\n * Applies multiple actions (of the same Action Type) using the given parameters.\n * Changes to the Ontology are eventually consistent and may take some time to be visible.\n *\n * Up to 20 actions may be applied in one call. Actions that only modify objects in Object Storage v2 and do not\n * call Functions may receive a higher limit.\n *\n * Note that [notifications](https://www.palantir.com/docs/foundry/action-types/notifications/) are not currently supported by this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyBatch\n */\nexport function applyActionBatchV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyActionBatchV2, ...args);\n}","/*\n * Copyright 2024 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 */\nexport { foundryPlatformFetch } from \"./foundryPlatformFetch.js\";","/*\n * Copyright 2023 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 */\nimport { symbolClientContext } from \"@osdk/shared.client\";\nimport { PalantirApiError, UnknownError } from \"@osdk/shared.net.errors\";\nexport async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {\n const path = origPath.replace(/\\{([^}]+)\\}/g, () => encodeURIComponent(args.shift()));\n const body = flags & 1 ? args.shift() : undefined;\n const queryArgs = flags & 2 ? args.shift() : undefined;\n const headerArgs = flags & 4 ? args.shift() : undefined;\n const method = [\"GET\", \"POST\", \"PUT\", \"DELETE\", \"PATCH\"][httpMethodNum];\n return await apiFetch(client[symbolClientContext] ?? client, method, path, body, queryArgs, headerArgs, contentType, responseContentType);\n}\nasync function apiFetch(clientCtx, method, endpointPath, data, queryArguments, headers, requestMediaType, responseMediaType) {\n const url = new URL(`/api${endpointPath}`, clientCtx.baseUrl);\n for (const [key, value] of Object.entries(queryArguments || {})) {\n if (value == null) {\n continue;\n }\n if (Array.isArray(value)) {\n for (const item of value) {\n url.searchParams.append(key, item);\n }\n } else {\n url.searchParams.append(key, value);\n }\n }\n const headersInit = new Headers();\n headersInit.set(\"Content-Type\", requestMediaType ?? \"application/json\");\n headersInit.set(\"Accept\", responseMediaType ?? \"application/json\");\n Object.entries(headers || {}).forEach(([key, value]) => {\n if (value != null) {\n headersInit.append(key, value.toString());\n }\n });\n const body = data == null || data instanceof globalThis.Blob ? data : JSON.stringify(data);\n // Because this uses the client's fetch, there is a 99.99% chance that it is already going\n // to handle the error case and throw a PalantirApiError since its wrapped in a\n // createFetchOrThrow.\n const response = await clientCtx.fetch(url.toString(), {\n body,\n method: method,\n headers: headersInit\n });\n // However, if we ended up using a \"regular\" fetch, the\n // error status codes are not thrown by fetch automatically,\n // we have to look at the ok property and behave accordingly\n if (!response.ok) {\n try {\n const convertedError = await response.json();\n return new PalantirApiError(convertedError.message, convertedError.errorName, convertedError.errorCode, response.status, convertedError.errorInstanceId, convertedError.parameters);\n } catch (e) {\n if (e instanceof Error) {\n return new UnknownError(e.message, \"UNKNOWN\");\n }\n return new UnknownError(\"Unable to parse error response\", \"UNKNOWN\");\n }\n }\n // Do not return anything if its a 204. Do not parse either!\n if (response.status === 204) {\n return;\n }\n if (responseMediaType == null || responseMediaType === \"application/json\") {\n return await response.json();\n }\n return response.blob();\n}","/*\n * Copyright 2024 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 const symbolClientContext = Symbol(\"ClientContext\");","/*\n * Copyright 2024 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 */\nexport { PalantirApiError } from \"./PalantirApiError.js\";\nexport { UnknownError } from \"./UnknownError.js\";","/*\n * Copyright 2023 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 */\nexport class PalantirApiError extends Error {\n message;\n errorName;\n errorType;\n statusCode;\n errorInstanceId;\n parameters;\n constructor(message, errorName, errorType, statusCode, errorInstanceId, parameters) {\n super(message);\n this.message = message;\n this.errorName = errorName;\n this.errorType = errorType;\n this.statusCode = statusCode;\n this.errorInstanceId = errorInstanceId;\n this.parameters = parameters;\n }\n}","/*\n * Copyright 2023 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 */\nimport { PalantirApiError } from \"./PalantirApiError.js\";\nexport class UnknownError extends PalantirApiError {\n originalError;\n constructor(message, errorType, originalError) {\n super(message, errorType);\n this.originalError = originalError;\n }\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _listActionTypesV2 = [0, \"/v2/ontologies/{0}/actionTypes\", 2];\n/**\n * Lists the action types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/actionTypes\n */\nexport function listActionTypesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listActionTypesV2, ...args);\n}\nconst _getActionTypeV2 = [0, \"/v2/ontologies/{0}/actionTypes/{1}\"];\n/**\n * Gets a specific action type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/actionTypes/{actionType}\n */\nexport function getActionTypeV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getActionTypeV2, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _uploadAttachmentV2 = [1, \"/v2/ontologies/attachments/upload\", 7, \"*/*\"];\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v2/ontologies/attachments/upload\n */\nexport function uploadAttachmentV2($ctx, ...args) {\n const headerParams = {\n ...args[2],\n \"Content-Type\": args[2]?.[\"Content-Type\"] ?? args[0].type,\n \"Content-Length\": args[0].size.toString()\n };\n return $foundryPlatformFetch($ctx, _uploadAttachmentV2, args[0], args[1], headerParams);\n}\nconst _getAttachmentContentV2 = [0, \"/v2/ontologies/attachments/{0}/content\",,, \"*/*\"];\n/**\n * Get the content of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/attachments/{attachmentRid}/content\n */\nexport function getAttachmentContentV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentContentV2, ...args);\n}\nconst _getAttachmentV2 = [0, \"/v2/ontologies/attachments/{0}\"];\n/**\n * Get the metadata of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/attachments/{attachmentRid}\n */\nexport function getAttachmentV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentV2, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _listPropertyAttachments = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}\", 2];\n/**\n * Get the metadata of attachments parented to the given object.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}\n */\nexport function listPropertyAttachments($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listPropertyAttachments, ...args);\n}\nconst _getAttachmentPropertyByRidV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}\", 2];\n/**\n * Get the metadata of a particular attachment in an attachment list.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}\n */\nexport function getAttachmentPropertyByRidV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentPropertyByRidV2, ...args);\n}\nconst _getAttachmentPropertyContentV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content\", 2,, \"*/*\"];\n/**\n * Get the content of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content\n */\nexport function getAttachmentPropertyContentV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentV2, ...args);\n}\nconst _getAttachmentPropertyContentByRidV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content\", 2,, \"*/*\"];\n/**\n * Get the content of an attachment by its RID.\n *\n * The RID must exist in the attachment array of the property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content\n */\nexport function getAttachmentPropertyContentByRidV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentByRidV2, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _listLinkedObjectsV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}\", 2];\n/**\n * Lists the linked objects for a specific object and the given link type.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\n *\n * Note that null value properties will not be returned.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}\n */\nexport function listLinkedObjectsV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listLinkedObjectsV2, ...args);\n}\nconst _getLinkedObjectV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}\", 2];\n/**\n * Get a specific linked object that originates from another object.\n *\n * If there is no link between the two objects, `LinkedObjectNotFound` is thrown.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}\n */\nexport function getLinkedObjectV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLinkedObjectV2, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _listObjectTypesV2 = [0, \"/v2/ontologies/{0}/objectTypes\", 2];\n/**\n * Lists the object types for the given Ontology.\n *\n * Each page may be smaller or larger than the requested page size. However, it is guaranteed that if there are\n * more results available, at least one result will be present in the\n * response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes\n */\nexport function listObjectTypesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listObjectTypesV2, ...args);\n}\nconst _getObjectTypeV2 = [0, \"/v2/ontologies/{0}/objectTypes/{1}\"];\n/**\n * Gets a specific object type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}\n */\nexport function getObjectTypeV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getObjectTypeV2, ...args);\n}\nconst _getObjectTypeFullMetadata = [0, \"/v2/ontologies/{0}/objectTypes/{1}/fullMetadata\", 2];\n/**\n * Gets the full metadata for a specific object type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/fullMetadata\n */\nexport function getObjectTypeFullMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);\n}\nconst _listOutgoingLinkTypesV2 = [0, \"/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes\", 2];\n/**\n * List the outgoing links for an object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes\n */\nexport function listOutgoingLinkTypesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listOutgoingLinkTypesV2, ...args);\n}\nconst _getOutgoingLinkTypeV2 = [0, \"/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}\"];\n/**\n * Get an outgoing link for an object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}\n */\nexport function getOutgoingLinkTypeV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOutgoingLinkTypeV2, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _listInterfaceTypes = [0, \"/v2/ontologies/{0}/interfaceTypes\", 2];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Lists the interface types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaceTypes\n */\nexport function listInterfaceTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listInterfaceTypes, ...args);\n}\nconst _getInterfaceType = [0, \"/v2/ontologies/{0}/interfaceTypes/{1}\", 2];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Gets a specific object type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaceTypes/{interfaceType}\n */\nexport function getInterfaceType($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getInterfaceType, ...args);\n}\nconst _searchObjectsForInterface = [1, \"/v2/ontologies/{0}/interfaces/{1}/search\", 3];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Search for objects in the specified ontology and interface type. Any properties specified in the \"where\" or\n * \"orderBy\" parameters must be shared property type API names defined on the interface. The following search\n * queries are supported:\n *\n * | Query type | Description | Supported Types |\n * |-----------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------|\n * | lt | The provided property is less than the provided value. | number, string, date, timestamp |\n * | gt | The provided property is greater than the provided value. | number, string, date, timestamp |\n * | lte | The provided property is less than or equal to the provided value. | number, string, date, timestamp |\n * | gte | The provided property is greater than or equal to the provided value. | number, string, date, timestamp |\n * | eq | The provided property is exactly equal to the provided value. | number, string, date, timestamp |\n * | isNull | The provided property is (or is not) null. | all |\n * | contains | The provided property contains the provided value. | array |\n * | not | The sub-query does not match. | N/A (applied on a query) |\n * | and | All the sub-queries match. | N/A (applied on queries) |\n * | or | At least one of the sub-queries match. | N/A (applied on queries) |\n * | startsWith | The provided property starts with the provided value. | string |\n * | containsAllTermsInOrderPrefixLastTerm | The provided property contains all the terms provided in order. The last term can be a partial prefix match. | string |\n * | containsAllTermsInOrder | The provided property contains the provided value as a substring. | string |\n * | containsAnyTerm | The provided property contains at least one of the terms separated by whitespace. | string |\n * | containsAllTerms | The provided property contains all the terms separated by whitespace. | string |\n *\n * Attempting to use an unsupported query will result in a validation error. Third-party applications using this\n * endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaces/{interfaceType}/search\n */\nexport function searchObjectsForInterface($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _searchObjectsForInterface, ...args);\n}\nconst _aggregateObjectsForInterface = [1, \"/v2/ontologies/{0}/interfaces/{1}/aggregate\", 3];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Perform functions on object fields in the specified ontology and of the specified interface type. Any\n * properties specified in the query must be shared property type API names defined on the interface.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaces/{interfaceType}/aggregate\n */\nexport function aggregateObjectsForInterface($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregateObjectsForInterface, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _createTemporaryObjectSetV2 = [1, \"/v2/ontologies/{0}/objectSets/createTemporary\", 1];\n/**\n * Creates a temporary `ObjectSet` from the given definition.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/objectSets/createTemporary\n */\nexport function createTemporaryObjectSetV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createTemporaryObjectSetV2, ...args);\n}\nconst _getObjectSetV2 = [0, \"/v2/ontologies/{0}/objectSets/{1}\"];\n/**\n * Gets the definition of the `ObjectSet` with the given RID.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: []\n * URL: /v2/ontologies/{ontology}/objectSets/{objectSetRid}\n */\nexport function getObjectSetV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getObjectSetV2, ...args);\n}\nconst _loadObjectSetV2 = [1, \"/v2/ontologies/{0}/objectSets/loadObjects\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Note that null value properties will not be returned.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjects\n */\nexport function loadObjectSetV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _loadObjectSetV2, ...args);\n}\nconst _aggregateObjectSetV2 = [1, \"/v2/ontologies/{0}/objectSets/aggregate\", 3];\n/**\n * Aggregates the ontology objects present in the `ObjectSet` from the provided object set definition.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/aggregate\n */\nexport function aggregateObjectSetV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregateObjectSetV2, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _listObjectsV2 = [0, \"/v2/ontologies/{0}/objects/{1}\", 2];\n/**\n * Lists the objects for the given Ontology and object type.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\n *\n * Note that null value properties will not be returned.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}\n */\nexport function listObjectsV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listObjectsV2, ...args);\n}\nconst _getObjectV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}\", 2];\n/**\n * Gets a specific object with the given primary key.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}\n */\nexport function getObjectV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getObjectV2, ...args);\n}\nconst _countObjects = [1, \"/v2/ontologies/{0}/objects/{1}/count\", 2];\n/**\n * Returns a count of the objects of the given object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/count\n */\nexport function countObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _countObjects, ...args);\n}\nconst _searchObjectsV2 = [1, \"/v2/ontologies/{0}/objects/{1}/search\", 3];\n/**\n * Search for objects in the specified ontology and object type. The request body is used\n * to filter objects based on the specified query. The supported queries are:\n *\n * | Query type | Description | Supported Types |\n * |-----------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------|\n * | lt | The provided property is less than the provided value. | number, string, date, timestamp |\n * | gt | The provided property is greater than the provided value. | number, string, date, timestamp |\n * | lte | The provided property is less than or equal to the provided value. | number, string, date, timestamp |\n * | gte | The provided property is greater than or equal to the provided value. | number, string, date, timestamp |\n * | eq | The provided property is exactly equal to the provided value. | number, string, date, timestamp |\n * | isNull | The provided property is (or is not) null. | all |\n * | contains | The provided property contains the provided value. | array |\n * | not | The sub-query does not match. | N/A (applied on a query) |\n * | and | All the sub-queries match. | N/A (applied on queries) |\n * | or | At least one of the sub-queries match. | N/A (applied on queries) |\n * | startsWith | The provided property starts with the provided value. | string |\n * | containsAllTermsInOrderPrefixLastTerm | The provided property contains all the terms provided in order. The last term can be a partial prefix match. | string |\n * | containsAllTermsInOrder | The provided property contains the provided value as a substring. | string |\n * | containsAnyTerm | The provided property contains at least one of the terms separated by whitespace. | string |\n * | containsAllTerms | The provided property contains all the terms separated by whitespace. | string |\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/search\n */\nexport function searchObjectsV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _searchObjectsV2, ...args);\n}\nconst _aggregateObjectsV2 = [1, \"/v2/ontologies/{0}/objects/{1}/aggregate\", 3];\n/**\n * Perform functions on object fields in the specified ontology and object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/aggregate\n */\nexport function aggregateObjectsV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregateObjectsV2, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _listOntologiesV2 = [0, \"/v2/ontologies\"];\n/**\n * Lists the Ontologies visible to the current user.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies\n */\nexport function listOntologiesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listOntologiesV2, ...args);\n}\nconst _getOntologyV2 = [0, \"/v2/ontologies/{0}\"];\n/**\n * Gets a specific ontology with the given Ontology RID.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}\n */\nexport function getOntologyV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOntologyV2, ...args);\n}\nconst _getOntologyFullMetadata = [0, \"/v2/ontologies/{0}/fullMetadata\"];\n/**\n * Get the full Ontology metadata. This includes the objects, links, actions, queries, and interfaces.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/fullMetadata\n */\nexport function getOntologyFullMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOntologyFullMetadata, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _executeQueryV2 = [1, \"/v2/ontologies/{0}/queries/{1}/execute\", 3];\n/**\n * Executes a Query using the given parameters.\n *\n * Optional parameters do not need to be supplied.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queries/{queryApiName}/execute\n */\nexport function executeQueryV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeQueryV2, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _listQueryTypesV2 = [0, \"/v2/ontologies/{0}/queryTypes\", 2];\n/**\n * Lists the query types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queryTypes\n */\nexport function listQueryTypesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listQueryTypesV2, ...args);\n}\nconst _getQueryTypeV2 = [0, \"/v2/ontologies/{0}/queryTypes/{1}\"];\n/**\n * Gets a specific query type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queryTypes/{queryApiName}\n */\nexport function getQueryTypeV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getQueryTypeV2, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getFirstPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint\", 2];\n/**\n * Get the first point of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/firstPoint\n */\nexport function getFirstPoint($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFirstPoint, ...args);\n}\nconst _getLastPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint\", 2];\n/**\n * Get the last point of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/lastPoint\n */\nexport function getLastPoint($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLastPoint, ...args);\n}\nconst _streamPoints = [1, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints\", 3,, \"*/*\"];\n/**\n * Stream all of the points of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamPoints\n */\nexport function streamPoints($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamPoints, ...args);\n}","/*\n * Copyright 2024 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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getLatestValue = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/latestValue\", 2];\n/**\n * Get the latest value of a property backed by a timeseries. If a specific geotime series integration has both a history and a live integration, we will give precedence to the live integration.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:read-data`.\n *\n * @alpha\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{propertyName}/latestValue\n */\nexport function getLatestValue($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLatestValue, ...args);\n}"]}