@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @osdk/client
2
2
 
3
+ ## 0.19.1-main-20240517182038
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [94833a7]
8
+ - @osdk/shared.net@1.11.1-main-20240517182038
9
+ - @osdk/api@1.8.1-main-20240517182038
10
+ - @osdk/generator-converters@0.6.1-main-20240517182038
11
+
3
12
  ## 0.19.0
4
13
 
5
14
  ### Minor Changes
@@ -3,7 +3,398 @@ import invariant2 from 'tiny-invariant';
3
3
  import { wireObjectTypeFullMetadataToSdkObjectTypeDefinition, __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from '@osdk/generator-converters';
4
4
  import deepEqual from 'fast-deep-equal';
5
5
 
6
- // ../internal.foundry/build/js/public/OntologiesV2_OntologyObjectSet.mjs
6
+ var __defProp = Object.defineProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+
12
+ // ../internal.foundry.datasets/build/js/chunk-ZSTKOCBT.mjs
13
+ var __defProp2 = Object.defineProperty;
14
+ var __export2 = (target, all) => {
15
+ for (var name in all)
16
+ __defProp2(target, name, {
17
+ get: all[name],
18
+ enumerable: true
19
+ });
20
+ };
21
+ var Branch_exports = {};
22
+ __export2(Branch_exports, {
23
+ createBranch: () => createBranch,
24
+ deleteBranch: () => deleteBranch,
25
+ getBranch: () => getBranch,
26
+ listBranches: () => listBranches
27
+ });
28
+ var _listBranches = [0, "/v1/datasets/{0}/branches", 2];
29
+ function listBranches($ctx, ...args) {
30
+ return foundryPlatformFetch($ctx, _listBranches, ...args);
31
+ }
32
+ var _createBranch = [1, "/v1/datasets/{0}/branches", 1];
33
+ function createBranch($ctx, ...args) {
34
+ return foundryPlatformFetch($ctx, _createBranch, ...args);
35
+ }
36
+ var _getBranch = [0, "/v1/datasets/{0}/branches/{1}"];
37
+ function getBranch($ctx, ...args) {
38
+ return foundryPlatformFetch($ctx, _getBranch, ...args);
39
+ }
40
+ var _deleteBranch = [3, "/v1/datasets/{0}/branches/{1}"];
41
+ function deleteBranch($ctx, ...args) {
42
+ return foundryPlatformFetch($ctx, _deleteBranch, ...args);
43
+ }
44
+ var Dataset_exports = {};
45
+ __export2(Dataset_exports, {
46
+ createDataset: () => createDataset,
47
+ deleteSchema: () => deleteSchema,
48
+ getDataset: () => getDataset,
49
+ getSchema: () => getSchema,
50
+ putSchema: () => putSchema,
51
+ readTable: () => readTable
52
+ });
53
+ var _createDataset = [1, "/v1/datasets", 1];
54
+ function createDataset($ctx, ...args) {
55
+ return foundryPlatformFetch($ctx, _createDataset, ...args);
56
+ }
57
+ var _getDataset = [0, "/v1/datasets/{0}"];
58
+ function getDataset($ctx, ...args) {
59
+ return foundryPlatformFetch($ctx, _getDataset, ...args);
60
+ }
61
+ var _readTable = [0, "/v1/datasets/{0}/readTable", 2, , "*/*"];
62
+ function readTable($ctx, ...args) {
63
+ return foundryPlatformFetch($ctx, _readTable, ...args);
64
+ }
65
+ var _getSchema = [0, "/v1/datasets/{0}/schema", 2];
66
+ function getSchema($ctx, ...args) {
67
+ return foundryPlatformFetch($ctx, _getSchema, ...args);
68
+ }
69
+ var _putSchema = [2, "/v1/datasets/{0}/schema", 3];
70
+ function putSchema($ctx, ...args) {
71
+ return foundryPlatformFetch($ctx, _putSchema, ...args);
72
+ }
73
+ var _deleteSchema = [3, "/v1/datasets/{0}/schema", 2];
74
+ function deleteSchema($ctx, ...args) {
75
+ return foundryPlatformFetch($ctx, _deleteSchema, ...args);
76
+ }
77
+ var File_exports = {};
78
+ __export2(File_exports, {
79
+ deleteFile: () => deleteFile,
80
+ getFileContent: () => getFileContent,
81
+ getFileMetadata: () => getFileMetadata,
82
+ listFiles: () => listFiles,
83
+ uploadFile: () => uploadFile
84
+ });
85
+ var _listFiles = [0, "/v1/datasets/{0}/files", 2];
86
+ function listFiles($ctx, ...args) {
87
+ return foundryPlatformFetch($ctx, _listFiles, ...args);
88
+ }
89
+ var _uploadFile = [1, "/v1/datasets/{0}/files:upload", 2, "*/*"];
90
+ function uploadFile($ctx, ...args) {
91
+ return foundryPlatformFetch($ctx, _uploadFile, ...args);
92
+ }
93
+ var _getFileMetadata = [0, "/v1/datasets/{0}/files/{1}", 2];
94
+ function getFileMetadata($ctx, ...args) {
95
+ return foundryPlatformFetch($ctx, _getFileMetadata, ...args);
96
+ }
97
+ var _deleteFile = [3, "/v1/datasets/{0}/files/{1}", 2];
98
+ function deleteFile($ctx, ...args) {
99
+ return foundryPlatformFetch($ctx, _deleteFile, ...args);
100
+ }
101
+ var _getFileContent = [0, "/v1/datasets/{0}/files/{1}/content", 2, , "*/*"];
102
+ function getFileContent($ctx, ...args) {
103
+ return foundryPlatformFetch($ctx, _getFileContent, ...args);
104
+ }
105
+ var Transaction_exports = {};
106
+ __export2(Transaction_exports, {
107
+ abortTransaction: () => abortTransaction,
108
+ commitTransaction: () => commitTransaction,
109
+ createTransaction: () => createTransaction,
110
+ getTransaction: () => getTransaction
111
+ });
112
+ var _createTransaction = [1, "/v1/datasets/{0}/transactions", 3];
113
+ function createTransaction($ctx, ...args) {
114
+ return foundryPlatformFetch($ctx, _createTransaction, ...args);
115
+ }
116
+ var _getTransaction = [0, "/v1/datasets/{0}/transactions/{1}"];
117
+ function getTransaction($ctx, ...args) {
118
+ return foundryPlatformFetch($ctx, _getTransaction, ...args);
119
+ }
120
+ var _commitTransaction = [1, "/v1/datasets/{0}/transactions/{1}/commit"];
121
+ function commitTransaction($ctx, ...args) {
122
+ return foundryPlatformFetch($ctx, _commitTransaction, ...args);
123
+ }
124
+ var _abortTransaction = [1, "/v1/datasets/{0}/transactions/{1}/abort"];
125
+ function abortTransaction($ctx, ...args) {
126
+ return foundryPlatformFetch($ctx, _abortTransaction, ...args);
127
+ }
128
+ var __defProp3 = Object.defineProperty;
129
+ var __export3 = (target, all) => {
130
+ for (var name in all)
131
+ __defProp3(target, name, {
132
+ get: all[name],
133
+ enumerable: true
134
+ });
135
+ };
136
+ var LanguageModel_exports = {};
137
+ __export3(LanguageModel_exports, {
138
+ createChatCompletion: () => createChatCompletion,
139
+ listLanguageModels: () => listLanguageModels,
140
+ streamChatCompletion: () => streamChatCompletion
141
+ });
142
+ var _createChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions", 1];
143
+ function createChatCompletion($ctx, ...args) {
144
+ return foundryPlatformFetch($ctx, _createChatCompletion, ...args);
145
+ }
146
+ var _streamChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions/stream", 1, , "*/*"];
147
+ function streamChatCompletion($ctx, ...args) {
148
+ return foundryPlatformFetch($ctx, _streamChatCompletion, ...args);
149
+ }
150
+ var _listLanguageModels = [0, "/v1/models/languageModels", 2];
151
+ function listLanguageModels($ctx, ...args) {
152
+ return foundryPlatformFetch($ctx, _listLanguageModels, ...args);
153
+ }
154
+
155
+ // ../internal.foundry.ontologies/build/js/chunk-ZSTKOCBT.mjs
156
+ var __defProp4 = Object.defineProperty;
157
+ var __export4 = (target, all) => {
158
+ for (var name in all)
159
+ __defProp4(target, name, {
160
+ get: all[name],
161
+ enumerable: true
162
+ });
163
+ };
164
+ var ActionType_exports = {};
165
+ __export4(ActionType_exports, {
166
+ applyAction: () => applyAction,
167
+ applyActionAsync: () => applyActionAsync,
168
+ applyActionBatch: () => applyActionBatch,
169
+ getActionType: () => getActionType,
170
+ getAsyncActionStatus: () => getAsyncActionStatus,
171
+ listActionTypes: () => listActionTypes,
172
+ validateAction: () => validateAction
173
+ });
174
+ var _listActionTypes = [0, "/v1/ontologies/{0}/actionTypes", 2];
175
+ function listActionTypes($ctx, ...args) {
176
+ return foundryPlatformFetch($ctx, _listActionTypes, ...args);
177
+ }
178
+ var _getActionType = [0, "/v1/ontologies/{0}/actionTypes/{1}"];
179
+ function getActionType($ctx, ...args) {
180
+ return foundryPlatformFetch($ctx, _getActionType, ...args);
181
+ }
182
+ var _applyAction = [1, "/v1/ontologies/{0}/actions/{1}/apply", 1];
183
+ function applyAction($ctx, ...args) {
184
+ return foundryPlatformFetch($ctx, _applyAction, ...args);
185
+ }
186
+ var _applyActionBatch = [1, "/v1/ontologies/{0}/actions/{1}/applyBatch", 1];
187
+ function applyActionBatch($ctx, ...args) {
188
+ return foundryPlatformFetch($ctx, _applyActionBatch, ...args);
189
+ }
190
+ var _applyActionAsync = [1, "/v1/ontologies/{0}/actions/{1}/applyAsync", 3];
191
+ function applyActionAsync($ctx, ...args) {
192
+ return foundryPlatformFetch($ctx, _applyActionAsync, ...args);
193
+ }
194
+ var _getAsyncActionStatus = [0, "/v1/ontologies/{0}/actions/{1}/applyAsync/{2}", 2];
195
+ function getAsyncActionStatus($ctx, ...args) {
196
+ return foundryPlatformFetch($ctx, _getAsyncActionStatus, ...args);
197
+ }
198
+ var _validateAction = [1, "/v1/ontologies/{0}/actions/{1}/validate", 1];
199
+ function validateAction($ctx, ...args) {
200
+ return foundryPlatformFetch($ctx, _validateAction, ...args);
201
+ }
202
+ var Attachment_exports = {};
203
+ __export4(Attachment_exports, {
204
+ getAttachment: () => getAttachment,
205
+ getAttachmentContent: () => getAttachmentContent,
206
+ uploadAttachment: () => uploadAttachment
207
+ });
208
+ var _uploadAttachment = [1, "/v1/attachments/upload", 6, "*/*"];
209
+ function uploadAttachment($ctx, ...args) {
210
+ return foundryPlatformFetch($ctx, _uploadAttachment, ...args);
211
+ }
212
+ var _getAttachmentContent = [0, "/v1/attachments/{0}/content", , , "*/*"];
213
+ function getAttachmentContent($ctx, ...args) {
214
+ return foundryPlatformFetch($ctx, _getAttachmentContent, ...args);
215
+ }
216
+ var _getAttachment = [0, "/v1/attachments/{0}"];
217
+ function getAttachment($ctx, ...args) {
218
+ return foundryPlatformFetch($ctx, _getAttachment, ...args);
219
+ }
220
+ var ObjectType_exports = {};
221
+ __export4(ObjectType_exports, {
222
+ getObjectType: () => getObjectType,
223
+ getOutgoingLinkType: () => getOutgoingLinkType,
224
+ listObjectTypes: () => listObjectTypes,
225
+ listOutgoingLinkTypes: () => listOutgoingLinkTypes
226
+ });
227
+ var _listObjectTypes = [0, "/v1/ontologies/{0}/objectTypes", 2];
228
+ function listObjectTypes($ctx, ...args) {
229
+ return foundryPlatformFetch($ctx, _listObjectTypes, ...args);
230
+ }
231
+ var _getObjectType = [0, "/v1/ontologies/{0}/objectTypes/{1}"];
232
+ function getObjectType($ctx, ...args) {
233
+ return foundryPlatformFetch($ctx, _getObjectType, ...args);
234
+ }
235
+ var _listOutgoingLinkTypes = [0, "/v1/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
236
+ function listOutgoingLinkTypes($ctx, ...args) {
237
+ return foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);
238
+ }
239
+ var _getOutgoingLinkType = [0, "/v1/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}"];
240
+ function getOutgoingLinkType($ctx, ...args) {
241
+ return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
242
+ }
243
+ var Ontology_exports = {};
244
+ __export4(Ontology_exports, {
245
+ getOntology: () => getOntology,
246
+ listOntologies: () => listOntologies
247
+ });
248
+ var _listOntologies = [0, "/v1/ontologies"];
249
+ function listOntologies($ctx, ...args) {
250
+ return foundryPlatformFetch($ctx, _listOntologies, ...args);
251
+ }
252
+ var _getOntology = [0, "/v1/ontologies/{0}"];
253
+ function getOntology($ctx, ...args) {
254
+ return foundryPlatformFetch($ctx, _getOntology, ...args);
255
+ }
256
+ var OntologyObject_exports = {};
257
+ __export4(OntologyObject_exports, {
258
+ aggregateObjects: () => aggregateObjects,
259
+ getLinkedObject: () => getLinkedObject,
260
+ getObject: () => getObject,
261
+ listLinkedObjects: () => listLinkedObjects,
262
+ listObjects: () => listObjects,
263
+ searchObjects: () => searchObjects
264
+ });
265
+ var _listObjects = [0, "/v1/ontologies/{0}/objects/{1}", 2];
266
+ function listObjects($ctx, ...args) {
267
+ return foundryPlatformFetch($ctx, _listObjects, ...args);
268
+ }
269
+ var _getObject = [0, "/v1/ontologies/{0}/objects/{1}/{2}", 2];
270
+ function getObject($ctx, ...args) {
271
+ return foundryPlatformFetch($ctx, _getObject, ...args);
272
+ }
273
+ var _listLinkedObjects = [0, "/v1/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
274
+ function listLinkedObjects($ctx, ...args) {
275
+ return foundryPlatformFetch($ctx, _listLinkedObjects, ...args);
276
+ }
277
+ var _getLinkedObject = [0, "/v1/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}", 2];
278
+ function getLinkedObject($ctx, ...args) {
279
+ return foundryPlatformFetch($ctx, _getLinkedObject, ...args);
280
+ }
281
+ var _searchObjects = [1, "/v1/ontologies/{0}/objects/{1}/search", 1];
282
+ function searchObjects($ctx, ...args) {
283
+ return foundryPlatformFetch($ctx, _searchObjects, ...args);
284
+ }
285
+ var _aggregateObjects = [1, "/v1/ontologies/{0}/objects/{1}/aggregate", 1];
286
+ function aggregateObjects($ctx, ...args) {
287
+ return foundryPlatformFetch($ctx, _aggregateObjects, ...args);
288
+ }
289
+ var QueryType_exports = {};
290
+ __export4(QueryType_exports, {
291
+ executeQuery: () => executeQuery,
292
+ getQueryType: () => getQueryType,
293
+ listQueryTypes: () => listQueryTypes
294
+ });
295
+ var _listQueryTypes = [0, "/v1/ontologies/{0}/queryTypes", 2];
296
+ function listQueryTypes($ctx, ...args) {
297
+ return foundryPlatformFetch($ctx, _listQueryTypes, ...args);
298
+ }
299
+ var _getQueryType = [0, "/v1/ontologies/{0}/queryTypes/{1}", 2];
300
+ function getQueryType($ctx, ...args) {
301
+ return foundryPlatformFetch($ctx, _getQueryType, ...args);
302
+ }
303
+ var _executeQuery = [1, "/v1/ontologies/{0}/queries/{1}/execute", 3];
304
+ function executeQuery($ctx, ...args) {
305
+ return foundryPlatformFetch($ctx, _executeQuery, ...args);
306
+ }
307
+
308
+ // ../internal.foundry.ontologiesv2/build/js/index.mjs
309
+ var js_exports = {};
310
+ __export(js_exports, {
311
+ Action: () => Action_exports,
312
+ ActionTypeV2: () => ActionTypeV2_exports,
313
+ ObjectTypeV2: () => ObjectTypeV2_exports,
314
+ OntologyObjectSet: () => OntologyObjectSet_exports,
315
+ OntologyObjectV2: () => OntologyObjectV2_exports,
316
+ OntologyV2: () => OntologyV2_exports,
317
+ QueryType: () => QueryType_exports2
318
+ });
319
+
320
+ // ../internal.foundry.ontologiesv2/build/js/chunk-ZSTKOCBT.mjs
321
+ var __defProp5 = Object.defineProperty;
322
+ var __export5 = (target, all) => {
323
+ for (var name in all)
324
+ __defProp5(target, name, {
325
+ get: all[name],
326
+ enumerable: true
327
+ });
328
+ };
329
+ var Action_exports = {};
330
+ __export5(Action_exports, {
331
+ applyActionAsyncV2: () => applyActionAsyncV2,
332
+ applyActionBatchV2: () => applyActionBatchV2,
333
+ applyActionV2: () => applyActionV2
334
+ });
335
+ var _applyActionV2 = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
336
+ function applyActionV2($ctx, ...args) {
337
+ return foundryPlatformFetch($ctx, _applyActionV2, ...args);
338
+ }
339
+ var _applyActionBatchV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyBatch", 3];
340
+ function applyActionBatchV2($ctx, ...args) {
341
+ return foundryPlatformFetch($ctx, _applyActionBatchV2, ...args);
342
+ }
343
+ var _applyActionAsyncV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyAsync", 3];
344
+ function applyActionAsyncV2($ctx, ...args) {
345
+ return foundryPlatformFetch($ctx, _applyActionAsyncV2, ...args);
346
+ }
347
+ var ActionTypeV2_exports = {};
348
+ __export5(ActionTypeV2_exports, {
349
+ getActionTypeV2: () => getActionTypeV2,
350
+ listActionTypesV2: () => listActionTypesV2
351
+ });
352
+ var _listActionTypesV2 = [0, "/v2/ontologies/{0}/actionTypes", 2];
353
+ function listActionTypesV2($ctx, ...args) {
354
+ return foundryPlatformFetch($ctx, _listActionTypesV2, ...args);
355
+ }
356
+ var _getActionTypeV2 = [0, "/v2/ontologies/{0}/actionTypes/{1}"];
357
+ function getActionTypeV2($ctx, ...args) {
358
+ return foundryPlatformFetch($ctx, _getActionTypeV2, ...args);
359
+ }
360
+ var ObjectTypeV2_exports = {};
361
+ __export5(ObjectTypeV2_exports, {
362
+ getObjectTypeV2: () => getObjectTypeV2,
363
+ getOutgoingLinkTypeV2: () => getOutgoingLinkTypeV2,
364
+ listObjectTypesV2: () => listObjectTypesV2,
365
+ listOutgoingLinkTypesV2: () => listOutgoingLinkTypesV2
366
+ });
367
+ var _listObjectTypesV2 = [0, "/v2/ontologies/{0}/objectTypes", 2];
368
+ function listObjectTypesV2($ctx, ...args) {
369
+ return foundryPlatformFetch($ctx, _listObjectTypesV2, ...args);
370
+ }
371
+ var _getObjectTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}"];
372
+ function getObjectTypeV2($ctx, ...args) {
373
+ return foundryPlatformFetch($ctx, _getObjectTypeV2, ...args);
374
+ }
375
+ var _listOutgoingLinkTypesV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
376
+ function listOutgoingLinkTypesV2($ctx, ...args) {
377
+ return foundryPlatformFetch($ctx, _listOutgoingLinkTypesV2, ...args);
378
+ }
379
+ var _getOutgoingLinkTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}"];
380
+ function getOutgoingLinkTypeV2($ctx, ...args) {
381
+ return foundryPlatformFetch($ctx, _getOutgoingLinkTypeV2, ...args);
382
+ }
383
+ var OntologyObjectSet_exports = {};
384
+ __export5(OntologyObjectSet_exports, {
385
+ aggregateObjectSetV2: () => aggregateObjectSetV2,
386
+ createTemporaryObjectSetV2: () => createTemporaryObjectSetV2,
387
+ getObjectSetV2: () => getObjectSetV2,
388
+ loadObjectSetV2: () => loadObjectSetV2
389
+ });
390
+ var _createTemporaryObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/createTemporary", 1];
391
+ function createTemporaryObjectSetV2($ctx, ...args) {
392
+ return foundryPlatformFetch($ctx, _createTemporaryObjectSetV2, ...args);
393
+ }
394
+ var _getObjectSetV2 = [0, "/v2/ontologies/{0}/objectSets/{1}"];
395
+ function getObjectSetV2($ctx, ...args) {
396
+ return foundryPlatformFetch($ctx, _getObjectSetV2, ...args);
397
+ }
7
398
  var _loadObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/loadObjects", 3];
8
399
  function loadObjectSetV2($ctx, ...args) {
9
400
  return foundryPlatformFetch($ctx, _loadObjectSetV2, ...args);
@@ -12,6 +403,52 @@ var _aggregateObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/aggregate", 3];
12
403
  function aggregateObjectSetV2($ctx, ...args) {
13
404
  return foundryPlatformFetch($ctx, _aggregateObjectSetV2, ...args);
14
405
  }
406
+ var OntologyObjectV2_exports = {};
407
+ __export5(OntologyObjectV2_exports, {
408
+ aggregateObjectsForInterface: () => aggregateObjectsForInterface,
409
+ aggregateObjectsV2: () => aggregateObjectsV2,
410
+ countObjects: () => countObjects,
411
+ getAttachmentByRidV2: () => getAttachmentByRidV2,
412
+ getAttachmentContentByRidV2: () => getAttachmentContentByRidV2,
413
+ getAttachmentContentV2: () => getAttachmentContentV2,
414
+ getAttachmentsV2: () => getAttachmentsV2,
415
+ getFirstPoint: () => getFirstPoint,
416
+ getInterfaceType: () => getInterfaceType,
417
+ getLastPoint: () => getLastPoint,
418
+ getLinkedObjectV2: () => getLinkedObjectV2,
419
+ getObjectTypeFullMetadata: () => getObjectTypeFullMetadata,
420
+ getObjectV2: () => getObjectV2,
421
+ listInterfaceTypes: () => listInterfaceTypes,
422
+ listLinkedObjectsV2: () => listLinkedObjectsV2,
423
+ listObjectsV2: () => listObjectsV2,
424
+ searchObjectsForInterface: () => searchObjectsForInterface,
425
+ searchObjectsV2: () => searchObjectsV2,
426
+ streamPoints: () => streamPoints
427
+ });
428
+ var _listObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}", 2];
429
+ function listObjectsV2($ctx, ...args) {
430
+ return foundryPlatformFetch($ctx, _listObjectsV2, ...args);
431
+ }
432
+ var _getObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}", 2];
433
+ function getObjectV2($ctx, ...args) {
434
+ return foundryPlatformFetch($ctx, _getObjectV2, ...args);
435
+ }
436
+ var _countObjects = [1, "/v2/ontologies/{0}/objects/{1}/count", 2];
437
+ function countObjects($ctx, ...args) {
438
+ return foundryPlatformFetch($ctx, _countObjects, ...args);
439
+ }
440
+ var _searchObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/search", 3];
441
+ function searchObjectsV2($ctx, ...args) {
442
+ return foundryPlatformFetch($ctx, _searchObjectsV2, ...args);
443
+ }
444
+ var _aggregateObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/aggregate", 3];
445
+ function aggregateObjectsV2($ctx, ...args) {
446
+ return foundryPlatformFetch($ctx, _aggregateObjectsV2, ...args);
447
+ }
448
+ var _listInterfaceTypes = [0, "/v2/ontologies/{0}/interfaceTypes", 2];
449
+ function listInterfaceTypes($ctx, ...args) {
450
+ return foundryPlatformFetch($ctx, _listInterfaceTypes, ...args);
451
+ }
15
452
  var _getInterfaceType = [0, "/v2/ontologies/{0}/interfaceTypes/{1}", 2];
16
453
  function getInterfaceType($ctx, ...args) {
17
454
  return foundryPlatformFetch($ctx, _getInterfaceType, ...args);
@@ -20,10 +457,86 @@ var _searchObjectsForInterface = [1, "/v2/ontologies/{0}/interfaces/{1}/search",
20
457
  function searchObjectsForInterface($ctx, ...args) {
21
458
  return foundryPlatformFetch($ctx, _searchObjectsForInterface, ...args);
22
459
  }
460
+ var _aggregateObjectsForInterface = [1, "/v2/ontologies/{0}/interfaces/{1}/aggregate", 3];
461
+ function aggregateObjectsForInterface($ctx, ...args) {
462
+ return foundryPlatformFetch($ctx, _aggregateObjectsForInterface, ...args);
463
+ }
464
+ var _listLinkedObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
465
+ function listLinkedObjectsV2($ctx, ...args) {
466
+ return foundryPlatformFetch($ctx, _listLinkedObjectsV2, ...args);
467
+ }
468
+ var _getLinkedObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}", 2];
469
+ function getLinkedObjectV2($ctx, ...args) {
470
+ return foundryPlatformFetch($ctx, _getLinkedObjectV2, ...args);
471
+ }
472
+ var _getAttachmentsV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}", 2];
473
+ function getAttachmentsV2($ctx, ...args) {
474
+ return foundryPlatformFetch($ctx, _getAttachmentsV2, ...args);
475
+ }
476
+ var _getAttachmentByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}", 2];
477
+ function getAttachmentByRidV2($ctx, ...args) {
478
+ return foundryPlatformFetch($ctx, _getAttachmentByRidV2, ...args);
479
+ }
480
+ var _getAttachmentContentV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content", 2, , "*/*"];
481
+ function getAttachmentContentV2($ctx, ...args) {
482
+ return foundryPlatformFetch($ctx, _getAttachmentContentV2, ...args);
483
+ }
484
+ var _getAttachmentContentByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content", 2, , "*/*"];
485
+ function getAttachmentContentByRidV2($ctx, ...args) {
486
+ return foundryPlatformFetch($ctx, _getAttachmentContentByRidV2, ...args);
487
+ }
488
+ var _getFirstPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint", 2];
489
+ function getFirstPoint($ctx, ...args) {
490
+ return foundryPlatformFetch($ctx, _getFirstPoint, ...args);
491
+ }
492
+ var _getLastPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint", 2];
493
+ function getLastPoint($ctx, ...args) {
494
+ return foundryPlatformFetch($ctx, _getLastPoint, ...args);
495
+ }
496
+ var _streamPoints = [1, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints", 3, , "*/*"];
497
+ function streamPoints($ctx, ...args) {
498
+ return foundryPlatformFetch($ctx, _streamPoints, ...args);
499
+ }
23
500
  var _getObjectTypeFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
24
501
  function getObjectTypeFullMetadata($ctx, ...args) {
25
502
  return foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);
26
503
  }
504
+ var OntologyV2_exports = {};
505
+ __export5(OntologyV2_exports, {
506
+ getOntologyFullMetadata: () => getOntologyFullMetadata,
507
+ getOntologyV2: () => getOntologyV2,
508
+ listOntologiesV2: () => listOntologiesV2
509
+ });
510
+ var _listOntologiesV2 = [0, "/v2/ontologies"];
511
+ function listOntologiesV2($ctx, ...args) {
512
+ return foundryPlatformFetch($ctx, _listOntologiesV2, ...args);
513
+ }
514
+ var _getOntologyV2 = [0, "/v2/ontologies/{0}"];
515
+ function getOntologyV2($ctx, ...args) {
516
+ return foundryPlatformFetch($ctx, _getOntologyV2, ...args);
517
+ }
518
+ var _getOntologyFullMetadata = [0, "/v2/ontologies/{0}/fullMetadata"];
519
+ function getOntologyFullMetadata($ctx, ...args) {
520
+ return foundryPlatformFetch($ctx, _getOntologyFullMetadata, ...args);
521
+ }
522
+ var QueryType_exports2 = {};
523
+ __export5(QueryType_exports2, {
524
+ executeQueryV2: () => executeQueryV2,
525
+ getQueryTypeV2: () => getQueryTypeV2,
526
+ listQueryTypesV2: () => listQueryTypesV2
527
+ });
528
+ var _listQueryTypesV2 = [0, "/v2/ontologies/{0}/queryTypes", 2];
529
+ function listQueryTypesV2($ctx, ...args) {
530
+ return foundryPlatformFetch($ctx, _listQueryTypesV2, ...args);
531
+ }
532
+ var _getQueryTypeV2 = [0, "/v2/ontologies/{0}/queryTypes/{1}"];
533
+ function getQueryTypeV2($ctx, ...args) {
534
+ return foundryPlatformFetch($ctx, _getQueryTypeV2, ...args);
535
+ }
536
+ var _executeQueryV2 = [1, "/v2/ontologies/{0}/queries/{1}/execute", 3];
537
+ function executeQueryV2($ctx, ...args) {
538
+ return foundryPlatformFetch($ctx, _executeQueryV2, ...args);
539
+ }
27
540
  function addUserAgent(client, withMetadata) {
28
541
  if (withMetadata.osdkMetadata) {
29
542
  return {
@@ -343,7 +856,7 @@ async function aggregate(clientCtx, objectType, objectSet = {
343
856
  if (req.where) {
344
857
  body.where = modernToLegacyWhereClause(req.where);
345
858
  }
346
- const result = await aggregateObjectSetV2(addUserAgent(clientCtx, objectType), clientCtx.ontologyRid, {
859
+ const result = await js_exports.OntologyObjectSet.aggregateObjectSetV2(addUserAgent(clientCtx, objectType), clientCtx.ontologyRid, {
347
860
  objectSet,
348
861
  groupBy: body.groupBy,
349
862
  aggregation: body.aggregation
@@ -863,7 +1376,7 @@ function objectSetToSearchJsonV2(objectSet, expectedApiName, existingWhere = voi
863
1376
  throw new Error(`Unsupported objectSet type: ${objectSet.type}`);
864
1377
  }
865
1378
  async function fetchInterfacePage(client, interfaceType, args, objectSet) {
866
- const result = await searchObjectsForInterface(addUserAgent(client, interfaceType), client.ontologyRid, interfaceType.apiName, applyFetchArgs(args, {
1379
+ const result = await js_exports.OntologyObjectV2.searchObjectsForInterface(addUserAgent(client, interfaceType), client.ontologyRid, interfaceType.apiName, applyFetchArgs(args, {
867
1380
  augmentedProperties: args.augment ?? {},
868
1381
  augmentedSharedPropertyTypes: {},
869
1382
  otherInterfaceTypes: [],
@@ -930,7 +1443,7 @@ function applyFetchArgs(args, body) {
930
1443
  return body;
931
1444
  }
932
1445
  async function fetchObjectPage(client, objectType, args, objectSet) {
933
- const r = await loadObjectSetV2(addUserAgent(client, objectType), client.ontologyRid, applyFetchArgs(args, {
1446
+ const r = await js_exports.OntologyObjectSet.loadObjectSetV2(addUserAgent(client, objectType), client.ontologyRid, applyFetchArgs(args, {
934
1447
  objectSet,
935
1448
  // We have to do the following case because LoadObjectSetRequestV2 isnt readonly
936
1449
  select: args?.select ?? [],
@@ -950,10 +1463,6 @@ var ActionValidationError = class extends Error {
950
1463
  this.validation = validation;
951
1464
  }
952
1465
  };
953
- var _applyActionV2 = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
954
- function applyActionV2($ctx, ...args) {
955
- return foundryPlatformFetch($ctx, _applyActionV2, ...args);
956
- }
957
1466
 
958
1467
  // src/util/isOntologyObjectV2.ts
959
1468
  function isOntologyObjectV2(o) {
@@ -990,8 +1499,8 @@ function toDataValue(value) {
990
1499
  }
991
1500
 
992
1501
  // src/actions/applyAction.ts
993
- async function applyAction(client, action, parameters, options = {}) {
994
- const response = await applyActionV2(addUserAgent(client, action), client.ontologyRid, action.apiName, {
1502
+ async function applyAction2(client, action, parameters, options = {}) {
1503
+ const response = await js_exports.Action.applyActionV2(addUserAgent(client, action), client.ontologyRid, action.apiName, {
995
1504
  parameters: remapActionParams(parameters),
996
1505
  options: {
997
1506
  mode: options?.validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
@@ -1021,11 +1530,11 @@ function remapActionParams(params) {
1021
1530
  // src/actions/createActionInvoker.ts
1022
1531
  function createActionInvoker(client, action) {
1023
1532
  return function(...args) {
1024
- return applyAction(client, action, ...args);
1533
+ return applyAction2(client, action, ...args);
1025
1534
  };
1026
1535
  }
1027
1536
  async function loadFullObjectMetadata(client, objtype) {
1028
- const full = await getObjectTypeFullMetadata(client, client.ontologyRid, objtype, {
1537
+ const full = await js_exports.OntologyObjectV2.getObjectTypeFullMetadata(client, client.ontologyRid, objtype, {
1029
1538
  preview: true
1030
1539
  });
1031
1540
  const ret = wireObjectTypeFullMetadataToSdkObjectTypeDefinition(full, true);
@@ -1036,7 +1545,7 @@ async function loadFullObjectMetadata(client, objtype) {
1036
1545
  };
1037
1546
  }
1038
1547
  async function loadInterfaceDefinition(client, objtype) {
1039
- const r = await getInterfaceType(client, client.ontologyRid, objtype, {
1548
+ const r = await js_exports.OntologyObjectV2.getInterfaceType(client, client.ontologyRid, objtype, {
1040
1549
  preview: true
1041
1550
  });
1042
1551
  return __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
@@ -1082,7 +1591,7 @@ var createStandardOntologyProviderFactory = (client) => {
1082
1591
  };
1083
1592
 
1084
1593
  // src/util/UserAgent.ts
1085
- var USER_AGENT = `osdk-client/${"0.19.0"}`;
1594
+ var USER_AGENT = `osdk-client/${"0.19.1-main-20240517182038"}`;
1086
1595
 
1087
1596
  // src/createMinimalClient.ts
1088
1597
  function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = createObjectSet) {
@@ -1130,6 +1639,6 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1130
1639
  }
1131
1640
  var createClient = createClientInternal.bind(void 0, createObjectSet);
1132
1641
 
1133
- export { ActionValidationError, augment, convertWireToOsdkObjects, createClient, createClientInternal, createObjectSet, createSimpleAsyncCache };
1642
+ export { ActionValidationError, augment, convertWireToOsdkObjects, createClient, createClientInternal, createObjectSet, createSimpleAsyncCache, js_exports };
1134
1643
  //# sourceMappingURL=out.js.map
1135
- //# sourceMappingURL=chunk-RRZAWVXI.browser.mjs.map
1644
+ //# sourceMappingURL=chunk-3CNPDXOR.browser.mjs.map