@osdk/client 0.19.0 → 0.19.1-main-20240517182038

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 (37) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/js/{chunk-RRZAWVXI.browser.mjs → chunk-3CNPDXOR.browser.mjs} +525 -16
  3. package/build/js/chunk-3CNPDXOR.browser.mjs.map +1 -0
  4. package/build/js/{chunk-UFAOLLVO.mjs → chunk-HJIFZCUU.mjs} +525 -16
  5. package/build/js/chunk-HJIFZCUU.mjs.map +1 -0
  6. package/build/js/{chunk-OLO4AGDC.cjs → chunk-PWETA2FS.cjs} +525 -15
  7. package/build/js/chunk-PWETA2FS.cjs.map +1 -0
  8. package/build/js/index.browser.mjs +1 -1
  9. package/build/js/index.cjs +3 -3
  10. package/build/js/index.mjs +1 -1
  11. package/build/js/public/unstable-do-not-use.browser.mjs +4 -8
  12. package/build/js/public/unstable-do-not-use.browser.mjs.map +1 -1
  13. package/build/js/public/unstable-do-not-use.cjs +8 -12
  14. package/build/js/public/unstable-do-not-use.cjs.map +1 -1
  15. package/build/js/public/unstable-do-not-use.mjs +4 -8
  16. package/build/js/public/unstable-do-not-use.mjs.map +1 -1
  17. package/build/types/Client.d.ts +1 -1
  18. package/build/types/generatedNoCheck/OntologyMetadata.d.ts +1 -1
  19. package/build/types/object/fetchPage.d.ts.map +1 -1
  20. package/build/types/object/fetchSingle.d.ts +1 -1
  21. package/build/types/object/fetchSingle.d.ts.map +1 -1
  22. package/build/types/objectSet/ObjectSetListenerWebsocket.d.ts +7 -1
  23. package/build/types/objectSet/ObjectSetListenerWebsocket.d.ts.map +1 -1
  24. package/build/types/objectSet/toConjureObjectSet.d.ts +1 -1
  25. package/build/types/objectSet/toConjureObjectSet.d.ts.map +1 -1
  26. package/build/types/ontology/StandardOntologyProvider.d.ts.map +1 -1
  27. package/build/types/ontology/loadFullObjectMetadata.d.ts.map +1 -1
  28. package/build/types/util/WireObjectSet.d.ts +1 -1
  29. package/build/types/util/WireObjectSet.d.ts.map +1 -1
  30. package/build/types/util/isOntologyObjectV2.d.ts +1 -1
  31. package/build/types/util/isOntologyObjectV2.d.ts.map +1 -1
  32. package/build/types/util/toDataValue.d.ts +1 -1
  33. package/build/types/util/toDataValue.d.ts.map +1 -1
  34. package/package.json +7 -7
  35. package/build/js/chunk-OLO4AGDC.cjs.map +0 -1
  36. package/build/js/chunk-RRZAWVXI.browser.mjs.map +0 -1
  37. package/build/js/chunk-UFAOLLVO.mjs.map +0 -1
@@ -10,7 +10,398 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
10
  var invariant2__default = /*#__PURE__*/_interopDefault(invariant2);
11
11
  var deepEqual__default = /*#__PURE__*/_interopDefault(deepEqual);
12
12
 
13
- // ../internal.foundry/build/js/public/OntologiesV2_OntologyObjectSet.mjs
13
+ var __defProp = Object.defineProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+
19
+ // ../internal.foundry.datasets/build/js/chunk-ZSTKOCBT.mjs
20
+ var __defProp2 = Object.defineProperty;
21
+ var __export2 = (target, all) => {
22
+ for (var name in all)
23
+ __defProp2(target, name, {
24
+ get: all[name],
25
+ enumerable: true
26
+ });
27
+ };
28
+ var Branch_exports = {};
29
+ __export2(Branch_exports, {
30
+ createBranch: () => createBranch,
31
+ deleteBranch: () => deleteBranch,
32
+ getBranch: () => getBranch,
33
+ listBranches: () => listBranches
34
+ });
35
+ var _listBranches = [0, "/v1/datasets/{0}/branches", 2];
36
+ function listBranches($ctx, ...args) {
37
+ return shared_net.foundryPlatformFetch($ctx, _listBranches, ...args);
38
+ }
39
+ var _createBranch = [1, "/v1/datasets/{0}/branches", 1];
40
+ function createBranch($ctx, ...args) {
41
+ return shared_net.foundryPlatformFetch($ctx, _createBranch, ...args);
42
+ }
43
+ var _getBranch = [0, "/v1/datasets/{0}/branches/{1}"];
44
+ function getBranch($ctx, ...args) {
45
+ return shared_net.foundryPlatformFetch($ctx, _getBranch, ...args);
46
+ }
47
+ var _deleteBranch = [3, "/v1/datasets/{0}/branches/{1}"];
48
+ function deleteBranch($ctx, ...args) {
49
+ return shared_net.foundryPlatformFetch($ctx, _deleteBranch, ...args);
50
+ }
51
+ var Dataset_exports = {};
52
+ __export2(Dataset_exports, {
53
+ createDataset: () => createDataset,
54
+ deleteSchema: () => deleteSchema,
55
+ getDataset: () => getDataset,
56
+ getSchema: () => getSchema,
57
+ putSchema: () => putSchema,
58
+ readTable: () => readTable
59
+ });
60
+ var _createDataset = [1, "/v1/datasets", 1];
61
+ function createDataset($ctx, ...args) {
62
+ return shared_net.foundryPlatformFetch($ctx, _createDataset, ...args);
63
+ }
64
+ var _getDataset = [0, "/v1/datasets/{0}"];
65
+ function getDataset($ctx, ...args) {
66
+ return shared_net.foundryPlatformFetch($ctx, _getDataset, ...args);
67
+ }
68
+ var _readTable = [0, "/v1/datasets/{0}/readTable", 2, , "*/*"];
69
+ function readTable($ctx, ...args) {
70
+ return shared_net.foundryPlatformFetch($ctx, _readTable, ...args);
71
+ }
72
+ var _getSchema = [0, "/v1/datasets/{0}/schema", 2];
73
+ function getSchema($ctx, ...args) {
74
+ return shared_net.foundryPlatformFetch($ctx, _getSchema, ...args);
75
+ }
76
+ var _putSchema = [2, "/v1/datasets/{0}/schema", 3];
77
+ function putSchema($ctx, ...args) {
78
+ return shared_net.foundryPlatformFetch($ctx, _putSchema, ...args);
79
+ }
80
+ var _deleteSchema = [3, "/v1/datasets/{0}/schema", 2];
81
+ function deleteSchema($ctx, ...args) {
82
+ return shared_net.foundryPlatformFetch($ctx, _deleteSchema, ...args);
83
+ }
84
+ var File_exports = {};
85
+ __export2(File_exports, {
86
+ deleteFile: () => deleteFile,
87
+ getFileContent: () => getFileContent,
88
+ getFileMetadata: () => getFileMetadata,
89
+ listFiles: () => listFiles,
90
+ uploadFile: () => uploadFile
91
+ });
92
+ var _listFiles = [0, "/v1/datasets/{0}/files", 2];
93
+ function listFiles($ctx, ...args) {
94
+ return shared_net.foundryPlatformFetch($ctx, _listFiles, ...args);
95
+ }
96
+ var _uploadFile = [1, "/v1/datasets/{0}/files:upload", 2, "*/*"];
97
+ function uploadFile($ctx, ...args) {
98
+ return shared_net.foundryPlatformFetch($ctx, _uploadFile, ...args);
99
+ }
100
+ var _getFileMetadata = [0, "/v1/datasets/{0}/files/{1}", 2];
101
+ function getFileMetadata($ctx, ...args) {
102
+ return shared_net.foundryPlatformFetch($ctx, _getFileMetadata, ...args);
103
+ }
104
+ var _deleteFile = [3, "/v1/datasets/{0}/files/{1}", 2];
105
+ function deleteFile($ctx, ...args) {
106
+ return shared_net.foundryPlatformFetch($ctx, _deleteFile, ...args);
107
+ }
108
+ var _getFileContent = [0, "/v1/datasets/{0}/files/{1}/content", 2, , "*/*"];
109
+ function getFileContent($ctx, ...args) {
110
+ return shared_net.foundryPlatformFetch($ctx, _getFileContent, ...args);
111
+ }
112
+ var Transaction_exports = {};
113
+ __export2(Transaction_exports, {
114
+ abortTransaction: () => abortTransaction,
115
+ commitTransaction: () => commitTransaction,
116
+ createTransaction: () => createTransaction,
117
+ getTransaction: () => getTransaction
118
+ });
119
+ var _createTransaction = [1, "/v1/datasets/{0}/transactions", 3];
120
+ function createTransaction($ctx, ...args) {
121
+ return shared_net.foundryPlatformFetch($ctx, _createTransaction, ...args);
122
+ }
123
+ var _getTransaction = [0, "/v1/datasets/{0}/transactions/{1}"];
124
+ function getTransaction($ctx, ...args) {
125
+ return shared_net.foundryPlatformFetch($ctx, _getTransaction, ...args);
126
+ }
127
+ var _commitTransaction = [1, "/v1/datasets/{0}/transactions/{1}/commit"];
128
+ function commitTransaction($ctx, ...args) {
129
+ return shared_net.foundryPlatformFetch($ctx, _commitTransaction, ...args);
130
+ }
131
+ var _abortTransaction = [1, "/v1/datasets/{0}/transactions/{1}/abort"];
132
+ function abortTransaction($ctx, ...args) {
133
+ return shared_net.foundryPlatformFetch($ctx, _abortTransaction, ...args);
134
+ }
135
+ var __defProp3 = Object.defineProperty;
136
+ var __export3 = (target, all) => {
137
+ for (var name in all)
138
+ __defProp3(target, name, {
139
+ get: all[name],
140
+ enumerable: true
141
+ });
142
+ };
143
+ var LanguageModel_exports = {};
144
+ __export3(LanguageModel_exports, {
145
+ createChatCompletion: () => createChatCompletion,
146
+ listLanguageModels: () => listLanguageModels,
147
+ streamChatCompletion: () => streamChatCompletion
148
+ });
149
+ var _createChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions", 1];
150
+ function createChatCompletion($ctx, ...args) {
151
+ return shared_net.foundryPlatformFetch($ctx, _createChatCompletion, ...args);
152
+ }
153
+ var _streamChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions/stream", 1, , "*/*"];
154
+ function streamChatCompletion($ctx, ...args) {
155
+ return shared_net.foundryPlatformFetch($ctx, _streamChatCompletion, ...args);
156
+ }
157
+ var _listLanguageModels = [0, "/v1/models/languageModels", 2];
158
+ function listLanguageModels($ctx, ...args) {
159
+ return shared_net.foundryPlatformFetch($ctx, _listLanguageModels, ...args);
160
+ }
161
+
162
+ // ../internal.foundry.ontologies/build/js/chunk-ZSTKOCBT.mjs
163
+ var __defProp4 = Object.defineProperty;
164
+ var __export4 = (target, all) => {
165
+ for (var name in all)
166
+ __defProp4(target, name, {
167
+ get: all[name],
168
+ enumerable: true
169
+ });
170
+ };
171
+ var ActionType_exports = {};
172
+ __export4(ActionType_exports, {
173
+ applyAction: () => applyAction,
174
+ applyActionAsync: () => applyActionAsync,
175
+ applyActionBatch: () => applyActionBatch,
176
+ getActionType: () => getActionType,
177
+ getAsyncActionStatus: () => getAsyncActionStatus,
178
+ listActionTypes: () => listActionTypes,
179
+ validateAction: () => validateAction
180
+ });
181
+ var _listActionTypes = [0, "/v1/ontologies/{0}/actionTypes", 2];
182
+ function listActionTypes($ctx, ...args) {
183
+ return shared_net.foundryPlatformFetch($ctx, _listActionTypes, ...args);
184
+ }
185
+ var _getActionType = [0, "/v1/ontologies/{0}/actionTypes/{1}"];
186
+ function getActionType($ctx, ...args) {
187
+ return shared_net.foundryPlatformFetch($ctx, _getActionType, ...args);
188
+ }
189
+ var _applyAction = [1, "/v1/ontologies/{0}/actions/{1}/apply", 1];
190
+ function applyAction($ctx, ...args) {
191
+ return shared_net.foundryPlatformFetch($ctx, _applyAction, ...args);
192
+ }
193
+ var _applyActionBatch = [1, "/v1/ontologies/{0}/actions/{1}/applyBatch", 1];
194
+ function applyActionBatch($ctx, ...args) {
195
+ return shared_net.foundryPlatformFetch($ctx, _applyActionBatch, ...args);
196
+ }
197
+ var _applyActionAsync = [1, "/v1/ontologies/{0}/actions/{1}/applyAsync", 3];
198
+ function applyActionAsync($ctx, ...args) {
199
+ return shared_net.foundryPlatformFetch($ctx, _applyActionAsync, ...args);
200
+ }
201
+ var _getAsyncActionStatus = [0, "/v1/ontologies/{0}/actions/{1}/applyAsync/{2}", 2];
202
+ function getAsyncActionStatus($ctx, ...args) {
203
+ return shared_net.foundryPlatformFetch($ctx, _getAsyncActionStatus, ...args);
204
+ }
205
+ var _validateAction = [1, "/v1/ontologies/{0}/actions/{1}/validate", 1];
206
+ function validateAction($ctx, ...args) {
207
+ return shared_net.foundryPlatformFetch($ctx, _validateAction, ...args);
208
+ }
209
+ var Attachment_exports = {};
210
+ __export4(Attachment_exports, {
211
+ getAttachment: () => getAttachment,
212
+ getAttachmentContent: () => getAttachmentContent,
213
+ uploadAttachment: () => uploadAttachment
214
+ });
215
+ var _uploadAttachment = [1, "/v1/attachments/upload", 6, "*/*"];
216
+ function uploadAttachment($ctx, ...args) {
217
+ return shared_net.foundryPlatformFetch($ctx, _uploadAttachment, ...args);
218
+ }
219
+ var _getAttachmentContent = [0, "/v1/attachments/{0}/content", , , "*/*"];
220
+ function getAttachmentContent($ctx, ...args) {
221
+ return shared_net.foundryPlatformFetch($ctx, _getAttachmentContent, ...args);
222
+ }
223
+ var _getAttachment = [0, "/v1/attachments/{0}"];
224
+ function getAttachment($ctx, ...args) {
225
+ return shared_net.foundryPlatformFetch($ctx, _getAttachment, ...args);
226
+ }
227
+ var ObjectType_exports = {};
228
+ __export4(ObjectType_exports, {
229
+ getObjectType: () => getObjectType,
230
+ getOutgoingLinkType: () => getOutgoingLinkType,
231
+ listObjectTypes: () => listObjectTypes,
232
+ listOutgoingLinkTypes: () => listOutgoingLinkTypes
233
+ });
234
+ var _listObjectTypes = [0, "/v1/ontologies/{0}/objectTypes", 2];
235
+ function listObjectTypes($ctx, ...args) {
236
+ return shared_net.foundryPlatformFetch($ctx, _listObjectTypes, ...args);
237
+ }
238
+ var _getObjectType = [0, "/v1/ontologies/{0}/objectTypes/{1}"];
239
+ function getObjectType($ctx, ...args) {
240
+ return shared_net.foundryPlatformFetch($ctx, _getObjectType, ...args);
241
+ }
242
+ var _listOutgoingLinkTypes = [0, "/v1/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
243
+ function listOutgoingLinkTypes($ctx, ...args) {
244
+ return shared_net.foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);
245
+ }
246
+ var _getOutgoingLinkType = [0, "/v1/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}"];
247
+ function getOutgoingLinkType($ctx, ...args) {
248
+ return shared_net.foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
249
+ }
250
+ var Ontology_exports = {};
251
+ __export4(Ontology_exports, {
252
+ getOntology: () => getOntology,
253
+ listOntologies: () => listOntologies
254
+ });
255
+ var _listOntologies = [0, "/v1/ontologies"];
256
+ function listOntologies($ctx, ...args) {
257
+ return shared_net.foundryPlatformFetch($ctx, _listOntologies, ...args);
258
+ }
259
+ var _getOntology = [0, "/v1/ontologies/{0}"];
260
+ function getOntology($ctx, ...args) {
261
+ return shared_net.foundryPlatformFetch($ctx, _getOntology, ...args);
262
+ }
263
+ var OntologyObject_exports = {};
264
+ __export4(OntologyObject_exports, {
265
+ aggregateObjects: () => aggregateObjects,
266
+ getLinkedObject: () => getLinkedObject,
267
+ getObject: () => getObject,
268
+ listLinkedObjects: () => listLinkedObjects,
269
+ listObjects: () => listObjects,
270
+ searchObjects: () => searchObjects
271
+ });
272
+ var _listObjects = [0, "/v1/ontologies/{0}/objects/{1}", 2];
273
+ function listObjects($ctx, ...args) {
274
+ return shared_net.foundryPlatformFetch($ctx, _listObjects, ...args);
275
+ }
276
+ var _getObject = [0, "/v1/ontologies/{0}/objects/{1}/{2}", 2];
277
+ function getObject($ctx, ...args) {
278
+ return shared_net.foundryPlatformFetch($ctx, _getObject, ...args);
279
+ }
280
+ var _listLinkedObjects = [0, "/v1/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
281
+ function listLinkedObjects($ctx, ...args) {
282
+ return shared_net.foundryPlatformFetch($ctx, _listLinkedObjects, ...args);
283
+ }
284
+ var _getLinkedObject = [0, "/v1/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}", 2];
285
+ function getLinkedObject($ctx, ...args) {
286
+ return shared_net.foundryPlatformFetch($ctx, _getLinkedObject, ...args);
287
+ }
288
+ var _searchObjects = [1, "/v1/ontologies/{0}/objects/{1}/search", 1];
289
+ function searchObjects($ctx, ...args) {
290
+ return shared_net.foundryPlatformFetch($ctx, _searchObjects, ...args);
291
+ }
292
+ var _aggregateObjects = [1, "/v1/ontologies/{0}/objects/{1}/aggregate", 1];
293
+ function aggregateObjects($ctx, ...args) {
294
+ return shared_net.foundryPlatformFetch($ctx, _aggregateObjects, ...args);
295
+ }
296
+ var QueryType_exports = {};
297
+ __export4(QueryType_exports, {
298
+ executeQuery: () => executeQuery,
299
+ getQueryType: () => getQueryType,
300
+ listQueryTypes: () => listQueryTypes
301
+ });
302
+ var _listQueryTypes = [0, "/v1/ontologies/{0}/queryTypes", 2];
303
+ function listQueryTypes($ctx, ...args) {
304
+ return shared_net.foundryPlatformFetch($ctx, _listQueryTypes, ...args);
305
+ }
306
+ var _getQueryType = [0, "/v1/ontologies/{0}/queryTypes/{1}", 2];
307
+ function getQueryType($ctx, ...args) {
308
+ return shared_net.foundryPlatformFetch($ctx, _getQueryType, ...args);
309
+ }
310
+ var _executeQuery = [1, "/v1/ontologies/{0}/queries/{1}/execute", 3];
311
+ function executeQuery($ctx, ...args) {
312
+ return shared_net.foundryPlatformFetch($ctx, _executeQuery, ...args);
313
+ }
314
+
315
+ // ../internal.foundry.ontologiesv2/build/js/index.mjs
316
+ var js_exports = {};
317
+ __export(js_exports, {
318
+ Action: () => Action_exports,
319
+ ActionTypeV2: () => ActionTypeV2_exports,
320
+ ObjectTypeV2: () => ObjectTypeV2_exports,
321
+ OntologyObjectSet: () => OntologyObjectSet_exports,
322
+ OntologyObjectV2: () => OntologyObjectV2_exports,
323
+ OntologyV2: () => OntologyV2_exports,
324
+ QueryType: () => QueryType_exports2
325
+ });
326
+
327
+ // ../internal.foundry.ontologiesv2/build/js/chunk-ZSTKOCBT.mjs
328
+ var __defProp5 = Object.defineProperty;
329
+ var __export5 = (target, all) => {
330
+ for (var name in all)
331
+ __defProp5(target, name, {
332
+ get: all[name],
333
+ enumerable: true
334
+ });
335
+ };
336
+ var Action_exports = {};
337
+ __export5(Action_exports, {
338
+ applyActionAsyncV2: () => applyActionAsyncV2,
339
+ applyActionBatchV2: () => applyActionBatchV2,
340
+ applyActionV2: () => applyActionV2
341
+ });
342
+ var _applyActionV2 = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
343
+ function applyActionV2($ctx, ...args) {
344
+ return shared_net.foundryPlatformFetch($ctx, _applyActionV2, ...args);
345
+ }
346
+ var _applyActionBatchV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyBatch", 3];
347
+ function applyActionBatchV2($ctx, ...args) {
348
+ return shared_net.foundryPlatformFetch($ctx, _applyActionBatchV2, ...args);
349
+ }
350
+ var _applyActionAsyncV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyAsync", 3];
351
+ function applyActionAsyncV2($ctx, ...args) {
352
+ return shared_net.foundryPlatformFetch($ctx, _applyActionAsyncV2, ...args);
353
+ }
354
+ var ActionTypeV2_exports = {};
355
+ __export5(ActionTypeV2_exports, {
356
+ getActionTypeV2: () => getActionTypeV2,
357
+ listActionTypesV2: () => listActionTypesV2
358
+ });
359
+ var _listActionTypesV2 = [0, "/v2/ontologies/{0}/actionTypes", 2];
360
+ function listActionTypesV2($ctx, ...args) {
361
+ return shared_net.foundryPlatformFetch($ctx, _listActionTypesV2, ...args);
362
+ }
363
+ var _getActionTypeV2 = [0, "/v2/ontologies/{0}/actionTypes/{1}"];
364
+ function getActionTypeV2($ctx, ...args) {
365
+ return shared_net.foundryPlatformFetch($ctx, _getActionTypeV2, ...args);
366
+ }
367
+ var ObjectTypeV2_exports = {};
368
+ __export5(ObjectTypeV2_exports, {
369
+ getObjectTypeV2: () => getObjectTypeV2,
370
+ getOutgoingLinkTypeV2: () => getOutgoingLinkTypeV2,
371
+ listObjectTypesV2: () => listObjectTypesV2,
372
+ listOutgoingLinkTypesV2: () => listOutgoingLinkTypesV2
373
+ });
374
+ var _listObjectTypesV2 = [0, "/v2/ontologies/{0}/objectTypes", 2];
375
+ function listObjectTypesV2($ctx, ...args) {
376
+ return shared_net.foundryPlatformFetch($ctx, _listObjectTypesV2, ...args);
377
+ }
378
+ var _getObjectTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}"];
379
+ function getObjectTypeV2($ctx, ...args) {
380
+ return shared_net.foundryPlatformFetch($ctx, _getObjectTypeV2, ...args);
381
+ }
382
+ var _listOutgoingLinkTypesV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
383
+ function listOutgoingLinkTypesV2($ctx, ...args) {
384
+ return shared_net.foundryPlatformFetch($ctx, _listOutgoingLinkTypesV2, ...args);
385
+ }
386
+ var _getOutgoingLinkTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}"];
387
+ function getOutgoingLinkTypeV2($ctx, ...args) {
388
+ return shared_net.foundryPlatformFetch($ctx, _getOutgoingLinkTypeV2, ...args);
389
+ }
390
+ var OntologyObjectSet_exports = {};
391
+ __export5(OntologyObjectSet_exports, {
392
+ aggregateObjectSetV2: () => aggregateObjectSetV2,
393
+ createTemporaryObjectSetV2: () => createTemporaryObjectSetV2,
394
+ getObjectSetV2: () => getObjectSetV2,
395
+ loadObjectSetV2: () => loadObjectSetV2
396
+ });
397
+ var _createTemporaryObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/createTemporary", 1];
398
+ function createTemporaryObjectSetV2($ctx, ...args) {
399
+ return shared_net.foundryPlatformFetch($ctx, _createTemporaryObjectSetV2, ...args);
400
+ }
401
+ var _getObjectSetV2 = [0, "/v2/ontologies/{0}/objectSets/{1}"];
402
+ function getObjectSetV2($ctx, ...args) {
403
+ return shared_net.foundryPlatformFetch($ctx, _getObjectSetV2, ...args);
404
+ }
14
405
  var _loadObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/loadObjects", 3];
15
406
  function loadObjectSetV2($ctx, ...args) {
16
407
  return shared_net.foundryPlatformFetch($ctx, _loadObjectSetV2, ...args);
@@ -19,6 +410,52 @@ var _aggregateObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/aggregate", 3];
19
410
  function aggregateObjectSetV2($ctx, ...args) {
20
411
  return shared_net.foundryPlatformFetch($ctx, _aggregateObjectSetV2, ...args);
21
412
  }
413
+ var OntologyObjectV2_exports = {};
414
+ __export5(OntologyObjectV2_exports, {
415
+ aggregateObjectsForInterface: () => aggregateObjectsForInterface,
416
+ aggregateObjectsV2: () => aggregateObjectsV2,
417
+ countObjects: () => countObjects,
418
+ getAttachmentByRidV2: () => getAttachmentByRidV2,
419
+ getAttachmentContentByRidV2: () => getAttachmentContentByRidV2,
420
+ getAttachmentContentV2: () => getAttachmentContentV2,
421
+ getAttachmentsV2: () => getAttachmentsV2,
422
+ getFirstPoint: () => getFirstPoint,
423
+ getInterfaceType: () => getInterfaceType,
424
+ getLastPoint: () => getLastPoint,
425
+ getLinkedObjectV2: () => getLinkedObjectV2,
426
+ getObjectTypeFullMetadata: () => getObjectTypeFullMetadata,
427
+ getObjectV2: () => getObjectV2,
428
+ listInterfaceTypes: () => listInterfaceTypes,
429
+ listLinkedObjectsV2: () => listLinkedObjectsV2,
430
+ listObjectsV2: () => listObjectsV2,
431
+ searchObjectsForInterface: () => searchObjectsForInterface,
432
+ searchObjectsV2: () => searchObjectsV2,
433
+ streamPoints: () => streamPoints
434
+ });
435
+ var _listObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}", 2];
436
+ function listObjectsV2($ctx, ...args) {
437
+ return shared_net.foundryPlatformFetch($ctx, _listObjectsV2, ...args);
438
+ }
439
+ var _getObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}", 2];
440
+ function getObjectV2($ctx, ...args) {
441
+ return shared_net.foundryPlatformFetch($ctx, _getObjectV2, ...args);
442
+ }
443
+ var _countObjects = [1, "/v2/ontologies/{0}/objects/{1}/count", 2];
444
+ function countObjects($ctx, ...args) {
445
+ return shared_net.foundryPlatformFetch($ctx, _countObjects, ...args);
446
+ }
447
+ var _searchObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/search", 3];
448
+ function searchObjectsV2($ctx, ...args) {
449
+ return shared_net.foundryPlatformFetch($ctx, _searchObjectsV2, ...args);
450
+ }
451
+ var _aggregateObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/aggregate", 3];
452
+ function aggregateObjectsV2($ctx, ...args) {
453
+ return shared_net.foundryPlatformFetch($ctx, _aggregateObjectsV2, ...args);
454
+ }
455
+ var _listInterfaceTypes = [0, "/v2/ontologies/{0}/interfaceTypes", 2];
456
+ function listInterfaceTypes($ctx, ...args) {
457
+ return shared_net.foundryPlatformFetch($ctx, _listInterfaceTypes, ...args);
458
+ }
22
459
  var _getInterfaceType = [0, "/v2/ontologies/{0}/interfaceTypes/{1}", 2];
23
460
  function getInterfaceType($ctx, ...args) {
24
461
  return shared_net.foundryPlatformFetch($ctx, _getInterfaceType, ...args);
@@ -27,10 +464,86 @@ var _searchObjectsForInterface = [1, "/v2/ontologies/{0}/interfaces/{1}/search",
27
464
  function searchObjectsForInterface($ctx, ...args) {
28
465
  return shared_net.foundryPlatformFetch($ctx, _searchObjectsForInterface, ...args);
29
466
  }
467
+ var _aggregateObjectsForInterface = [1, "/v2/ontologies/{0}/interfaces/{1}/aggregate", 3];
468
+ function aggregateObjectsForInterface($ctx, ...args) {
469
+ return shared_net.foundryPlatformFetch($ctx, _aggregateObjectsForInterface, ...args);
470
+ }
471
+ var _listLinkedObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
472
+ function listLinkedObjectsV2($ctx, ...args) {
473
+ return shared_net.foundryPlatformFetch($ctx, _listLinkedObjectsV2, ...args);
474
+ }
475
+ var _getLinkedObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}", 2];
476
+ function getLinkedObjectV2($ctx, ...args) {
477
+ return shared_net.foundryPlatformFetch($ctx, _getLinkedObjectV2, ...args);
478
+ }
479
+ var _getAttachmentsV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}", 2];
480
+ function getAttachmentsV2($ctx, ...args) {
481
+ return shared_net.foundryPlatformFetch($ctx, _getAttachmentsV2, ...args);
482
+ }
483
+ var _getAttachmentByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}", 2];
484
+ function getAttachmentByRidV2($ctx, ...args) {
485
+ return shared_net.foundryPlatformFetch($ctx, _getAttachmentByRidV2, ...args);
486
+ }
487
+ var _getAttachmentContentV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content", 2, , "*/*"];
488
+ function getAttachmentContentV2($ctx, ...args) {
489
+ return shared_net.foundryPlatformFetch($ctx, _getAttachmentContentV2, ...args);
490
+ }
491
+ var _getAttachmentContentByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content", 2, , "*/*"];
492
+ function getAttachmentContentByRidV2($ctx, ...args) {
493
+ return shared_net.foundryPlatformFetch($ctx, _getAttachmentContentByRidV2, ...args);
494
+ }
495
+ var _getFirstPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint", 2];
496
+ function getFirstPoint($ctx, ...args) {
497
+ return shared_net.foundryPlatformFetch($ctx, _getFirstPoint, ...args);
498
+ }
499
+ var _getLastPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint", 2];
500
+ function getLastPoint($ctx, ...args) {
501
+ return shared_net.foundryPlatformFetch($ctx, _getLastPoint, ...args);
502
+ }
503
+ var _streamPoints = [1, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints", 3, , "*/*"];
504
+ function streamPoints($ctx, ...args) {
505
+ return shared_net.foundryPlatformFetch($ctx, _streamPoints, ...args);
506
+ }
30
507
  var _getObjectTypeFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
31
508
  function getObjectTypeFullMetadata($ctx, ...args) {
32
509
  return shared_net.foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);
33
510
  }
511
+ var OntologyV2_exports = {};
512
+ __export5(OntologyV2_exports, {
513
+ getOntologyFullMetadata: () => getOntologyFullMetadata,
514
+ getOntologyV2: () => getOntologyV2,
515
+ listOntologiesV2: () => listOntologiesV2
516
+ });
517
+ var _listOntologiesV2 = [0, "/v2/ontologies"];
518
+ function listOntologiesV2($ctx, ...args) {
519
+ return shared_net.foundryPlatformFetch($ctx, _listOntologiesV2, ...args);
520
+ }
521
+ var _getOntologyV2 = [0, "/v2/ontologies/{0}"];
522
+ function getOntologyV2($ctx, ...args) {
523
+ return shared_net.foundryPlatformFetch($ctx, _getOntologyV2, ...args);
524
+ }
525
+ var _getOntologyFullMetadata = [0, "/v2/ontologies/{0}/fullMetadata"];
526
+ function getOntologyFullMetadata($ctx, ...args) {
527
+ return shared_net.foundryPlatformFetch($ctx, _getOntologyFullMetadata, ...args);
528
+ }
529
+ var QueryType_exports2 = {};
530
+ __export5(QueryType_exports2, {
531
+ executeQueryV2: () => executeQueryV2,
532
+ getQueryTypeV2: () => getQueryTypeV2,
533
+ listQueryTypesV2: () => listQueryTypesV2
534
+ });
535
+ var _listQueryTypesV2 = [0, "/v2/ontologies/{0}/queryTypes", 2];
536
+ function listQueryTypesV2($ctx, ...args) {
537
+ return shared_net.foundryPlatformFetch($ctx, _listQueryTypesV2, ...args);
538
+ }
539
+ var _getQueryTypeV2 = [0, "/v2/ontologies/{0}/queryTypes/{1}"];
540
+ function getQueryTypeV2($ctx, ...args) {
541
+ return shared_net.foundryPlatformFetch($ctx, _getQueryTypeV2, ...args);
542
+ }
543
+ var _executeQueryV2 = [1, "/v2/ontologies/{0}/queries/{1}/execute", 3];
544
+ function executeQueryV2($ctx, ...args) {
545
+ return shared_net.foundryPlatformFetch($ctx, _executeQueryV2, ...args);
546
+ }
34
547
  function addUserAgent(client, withMetadata) {
35
548
  if (withMetadata.osdkMetadata) {
36
549
  return {
@@ -350,7 +863,7 @@ async function aggregate(clientCtx, objectType, objectSet = {
350
863
  if (req.where) {
351
864
  body.where = modernToLegacyWhereClause(req.where);
352
865
  }
353
- const result = await aggregateObjectSetV2(addUserAgent(clientCtx, objectType), clientCtx.ontologyRid, {
866
+ const result = await js_exports.OntologyObjectSet.aggregateObjectSetV2(addUserAgent(clientCtx, objectType), clientCtx.ontologyRid, {
354
867
  objectSet,
355
868
  groupBy: body.groupBy,
356
869
  aggregation: body.aggregation
@@ -870,7 +1383,7 @@ function objectSetToSearchJsonV2(objectSet, expectedApiName, existingWhere = voi
870
1383
  throw new Error(`Unsupported objectSet type: ${objectSet.type}`);
871
1384
  }
872
1385
  async function fetchInterfacePage(client, interfaceType, args, objectSet) {
873
- const result = await searchObjectsForInterface(addUserAgent(client, interfaceType), client.ontologyRid, interfaceType.apiName, applyFetchArgs(args, {
1386
+ const result = await js_exports.OntologyObjectV2.searchObjectsForInterface(addUserAgent(client, interfaceType), client.ontologyRid, interfaceType.apiName, applyFetchArgs(args, {
874
1387
  augmentedProperties: args.augment ?? {},
875
1388
  augmentedSharedPropertyTypes: {},
876
1389
  otherInterfaceTypes: [],
@@ -937,7 +1450,7 @@ function applyFetchArgs(args, body) {
937
1450
  return body;
938
1451
  }
939
1452
  async function fetchObjectPage(client, objectType, args, objectSet) {
940
- const r = await loadObjectSetV2(addUserAgent(client, objectType), client.ontologyRid, applyFetchArgs(args, {
1453
+ const r = await js_exports.OntologyObjectSet.loadObjectSetV2(addUserAgent(client, objectType), client.ontologyRid, applyFetchArgs(args, {
941
1454
  objectSet,
942
1455
  // We have to do the following case because LoadObjectSetRequestV2 isnt readonly
943
1456
  select: args?.select ?? [],
@@ -957,10 +1470,6 @@ var ActionValidationError = class extends Error {
957
1470
  this.validation = validation;
958
1471
  }
959
1472
  };
960
- var _applyActionV2 = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
961
- function applyActionV2($ctx, ...args) {
962
- return shared_net.foundryPlatformFetch($ctx, _applyActionV2, ...args);
963
- }
964
1473
 
965
1474
  // src/util/isOntologyObjectV2.ts
966
1475
  function isOntologyObjectV2(o) {
@@ -997,8 +1506,8 @@ function toDataValue(value) {
997
1506
  }
998
1507
 
999
1508
  // src/actions/applyAction.ts
1000
- async function applyAction(client, action, parameters, options = {}) {
1001
- const response = await applyActionV2(addUserAgent(client, action), client.ontologyRid, action.apiName, {
1509
+ async function applyAction2(client, action, parameters, options = {}) {
1510
+ const response = await js_exports.Action.applyActionV2(addUserAgent(client, action), client.ontologyRid, action.apiName, {
1002
1511
  parameters: remapActionParams(parameters),
1003
1512
  options: {
1004
1513
  mode: options?.validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
@@ -1028,11 +1537,11 @@ function remapActionParams(params) {
1028
1537
  // src/actions/createActionInvoker.ts
1029
1538
  function createActionInvoker(client, action) {
1030
1539
  return function(...args) {
1031
- return applyAction(client, action, ...args);
1540
+ return applyAction2(client, action, ...args);
1032
1541
  };
1033
1542
  }
1034
1543
  async function loadFullObjectMetadata(client, objtype) {
1035
- const full = await getObjectTypeFullMetadata(client, client.ontologyRid, objtype, {
1544
+ const full = await js_exports.OntologyObjectV2.getObjectTypeFullMetadata(client, client.ontologyRid, objtype, {
1036
1545
  preview: true
1037
1546
  });
1038
1547
  const ret = generatorConverters.wireObjectTypeFullMetadataToSdkObjectTypeDefinition(full, true);
@@ -1043,7 +1552,7 @@ async function loadFullObjectMetadata(client, objtype) {
1043
1552
  };
1044
1553
  }
1045
1554
  async function loadInterfaceDefinition(client, objtype) {
1046
- const r = await getInterfaceType(client, client.ontologyRid, objtype, {
1555
+ const r = await js_exports.OntologyObjectV2.getInterfaceType(client, client.ontologyRid, objtype, {
1047
1556
  preview: true
1048
1557
  });
1049
1558
  return generatorConverters.__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
@@ -1089,7 +1598,7 @@ var createStandardOntologyProviderFactory = (client) => {
1089
1598
  };
1090
1599
 
1091
1600
  // src/util/UserAgent.ts
1092
- var USER_AGENT = `osdk-client/${"0.19.0"}`;
1601
+ var USER_AGENT = `osdk-client/${"0.19.1-main-20240517182038"}`;
1093
1602
 
1094
1603
  // src/createMinimalClient.ts
1095
1604
  function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = createObjectSet) {
@@ -1144,5 +1653,6 @@ exports.createClient = createClient;
1144
1653
  exports.createClientInternal = createClientInternal;
1145
1654
  exports.createObjectSet = createObjectSet;
1146
1655
  exports.createSimpleAsyncCache = createSimpleAsyncCache;
1656
+ exports.js_exports = js_exports;
1147
1657
  //# sourceMappingURL=out.js.map
1148
- //# sourceMappingURL=chunk-OLO4AGDC.cjs.map
1658
+ //# sourceMappingURL=chunk-PWETA2FS.cjs.map