@osdk/client 2.40.0 → 2.41.0-main-d24cc61b1e7fde7722d8229ed2b6821f5ce1bf8a

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 (42) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/browser/Client.js +1 -1
  3. package/build/browser/Client.js.map +1 -1
  4. package/build/browser/createCipherTextProperty.js +39 -0
  5. package/build/browser/createCipherTextProperty.js.map +1 -0
  6. package/build/browser/index.js.map +1 -1
  7. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +10 -1
  8. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  9. package/build/browser/util/UserAgent.js +2 -2
  10. package/build/browser/util/UserAgent.js.map +1 -1
  11. package/build/cjs/{applyStreamingQuery-6ZZRUAB2.cjs → applyStreamingQuery-RBPTQJXT.cjs} +9 -9
  12. package/build/cjs/{applyStreamingQuery-6ZZRUAB2.cjs.map → applyStreamingQuery-RBPTQJXT.cjs.map} +1 -1
  13. package/build/cjs/{chunk-F4L4RFUT.cjs → chunk-6BO5YHRX.cjs} +2 -2
  14. package/build/cjs/{chunk-F4L4RFUT.cjs.map → chunk-6BO5YHRX.cjs.map} +1 -1
  15. package/build/cjs/{chunk-XLX6T4OB.cjs → chunk-CHIEZR53.cjs} +95 -61
  16. package/build/cjs/chunk-CHIEZR53.cjs.map +1 -0
  17. package/build/cjs/{chunk-GOW2XJR7.cjs → chunk-T6NQXSJY.cjs} +80 -80
  18. package/build/cjs/{chunk-GOW2XJR7.cjs.map → chunk-T6NQXSJY.cjs.map} +1 -1
  19. package/build/cjs/{chunk-JDRCSS7F.cjs → chunk-VUQAQMDE.cjs} +13 -13
  20. package/build/cjs/{chunk-JDRCSS7F.cjs.map → chunk-VUQAQMDE.cjs.map} +1 -1
  21. package/build/cjs/index.cjs +11 -11
  22. package/build/cjs/index.d.cts +1 -1
  23. package/build/cjs/public/experimental.cjs +6 -6
  24. package/build/cjs/public/internal.cjs +7 -7
  25. package/build/cjs/public/observable.cjs +5 -5
  26. package/build/cjs/public/unstable-do-not-use.cjs +15 -15
  27. package/build/esm/Client.js +1 -1
  28. package/build/esm/Client.js.map +1 -1
  29. package/build/esm/createCipherTextProperty.js +39 -0
  30. package/build/esm/createCipherTextProperty.js.map +1 -0
  31. package/build/esm/index.js.map +1 -1
  32. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +10 -1
  33. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  34. package/build/esm/util/UserAgent.js +2 -2
  35. package/build/esm/util/UserAgent.js.map +1 -1
  36. package/build/types/Client.d.ts +1 -1
  37. package/build/types/createCipherTextProperty.d.ts +12 -0
  38. package/build/types/createCipherTextProperty.d.ts.map +1 -0
  39. package/build/types/index.d.ts +1 -1
  40. package/build/types/index.d.ts.map +1 -1
  41. package/package.json +7 -7
  42. package/build/cjs/chunk-XLX6T4OB.cjs.map +0 -1
@@ -4,19 +4,19 @@ var chunkYJG67XL4_cjs = require('./chunk-YJG67XL4.cjs');
4
4
  var chunkTQUNF2DZ_cjs = require('./chunk-TQUNF2DZ.cjs');
5
5
  var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
6
6
  var chunkCEBSLQQC_cjs = require('./chunk-CEBSLQQC.cjs');
7
- var chunkJDRCSS7F_cjs = require('./chunk-JDRCSS7F.cjs');
8
- var chunkF4L4RFUT_cjs = require('./chunk-F4L4RFUT.cjs');
7
+ var chunkVUQAQMDE_cjs = require('./chunk-VUQAQMDE.cjs');
8
+ var chunk6BO5YHRX_cjs = require('./chunk-6BO5YHRX.cjs');
9
9
  var chunkROJIXXGF_cjs = require('./chunk-ROJIXXGF.cjs');
10
10
  var chunkH6PXPU6F_cjs = require('./chunk-H6PXPU6F.cjs');
11
11
  var chunkQ7SFCCGT_cjs = require('./chunk-Q7SFCCGT.cjs');
12
12
  var unstable = require('@osdk/api/unstable');
13
- var invariant2 = require('tiny-invariant');
13
+ var invariant3 = require('tiny-invariant');
14
14
  var shared_client_impl = require('@osdk/shared.client.impl');
15
15
  var api = require('@osdk/api');
16
16
 
17
17
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
18
18
 
19
- var invariant2__default = /*#__PURE__*/_interopDefault(invariant2);
19
+ var invariant3__default = /*#__PURE__*/_interopDefault(invariant3);
20
20
 
21
21
  // src/actions/ActionValidationError.ts
22
22
  var ActionValidationError = class extends Error {
@@ -42,6 +42,12 @@ function get($ctx, ...args) {
42
42
  return chunkH6PXPU6F_cjs.foundryPlatformFetch($ctx, _get, ...args);
43
43
  }
44
44
 
45
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.63.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
46
+ var _decrypt = [0, "/v2/ontologies/{0}/objects/{1}/{2}/ciphertexts/{3}/decrypt"];
47
+ function decrypt($ctx, ...args) {
48
+ return chunkH6PXPU6F_cjs.foundryPlatformFetch($ctx, _decrypt, ...args);
49
+ }
50
+
45
51
  // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.63.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
46
52
  var _getFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
47
53
  function getFullMetadata($ctx, ...args) {
@@ -124,7 +130,7 @@ function isScenarioClient(value) {
124
130
  return value != null && (typeof value === "object" || typeof value === "function") && typeof value.getScenarioReference === "function";
125
131
  }
126
132
  function buildScenarioClient(parent, scenarioRid) {
127
- const ctx = parent[chunkF4L4RFUT_cjs.additionalContext];
133
+ const ctx = parent[chunk6BO5YHRX_cjs.additionalContext];
128
134
  if (ctx.transactionId != null) {
129
135
  console.warn("withScenario / createScenario: the supplied client has an active transaction. Ignoring the transaction and scoping to the scenario instead.");
130
136
  }
@@ -135,7 +141,7 @@ function buildScenarioClient(parent, scenarioRid) {
135
141
  logger: ctx.logger,
136
142
  UNSTABLE_DO_NOT_USE_BRANCH: ctx.branch
137
143
  }, ctx.fetch);
138
- const innerCtx = inner[chunkF4L4RFUT_cjs.additionalContext];
144
+ const innerCtx = inner[chunk6BO5YHRX_cjs.additionalContext];
139
145
  async function getEditedEntityTypes() {
140
146
  const ontologyRid = await innerCtx.ontologyRid;
141
147
  const response = await OntologyScenario_exports.listScenarioEditedEntityTypes(innerCtx, ontologyRid, scenarioRid, {
@@ -277,7 +283,7 @@ async function toDataValue(value, client, actionMetadata) {
277
283
  }
278
284
  if (Array.isArray(value) || value instanceof Set) {
279
285
  const values = Array.from(value);
280
- if (values.some((dataValue) => chunkJDRCSS7F_cjs.isAttachmentUpload(dataValue) || chunkJDRCSS7F_cjs.isAttachmentFile(dataValue))) {
286
+ if (values.some((dataValue) => chunkVUQAQMDE_cjs.isAttachmentUpload(dataValue) || chunkVUQAQMDE_cjs.isAttachmentFile(dataValue))) {
281
287
  const converted = [];
282
288
  for (const value2 of values) {
283
289
  converted.push(await toDataValue(value2, client));
@@ -287,44 +293,44 @@ async function toDataValue(value, client, actionMetadata) {
287
293
  const promiseArray = Array.from(value, async (innerValue) => await toDataValue(innerValue, client));
288
294
  return Promise.all(promiseArray);
289
295
  }
290
- if (chunkJDRCSS7F_cjs.isAttachmentUpload(value)) {
291
- const attachment = await chunkF4L4RFUT_cjs.upload(client, value.data, {
296
+ if (chunkVUQAQMDE_cjs.isAttachmentUpload(value)) {
297
+ const attachment = await chunk6BO5YHRX_cjs.upload(client, value.data, {
292
298
  filename: value.name
293
299
  });
294
300
  return await toDataValue(attachment.rid, client);
295
301
  }
296
- if (chunkJDRCSS7F_cjs.isAttachmentFile(value)) {
297
- const attachment = await chunkF4L4RFUT_cjs.upload(client, value, {
302
+ if (chunkVUQAQMDE_cjs.isAttachmentFile(value)) {
303
+ const attachment = await chunk6BO5YHRX_cjs.upload(client, value, {
298
304
  filename: value.name
299
305
  });
300
306
  return await toDataValue(attachment.rid, client);
301
307
  }
302
- if (chunkJDRCSS7F_cjs.isMediaUpload(value)) {
308
+ if (chunkVUQAQMDE_cjs.isMediaUpload(value)) {
303
309
  const mediaRef = await chunkROJIXXGF_cjs.MediaSet_exports.uploadMedia(client, value.data, {
304
310
  filename: value.fileName,
305
311
  preview: true
306
312
  });
307
313
  return await toDataValue(mediaRef, client);
308
314
  }
309
- if (chunkJDRCSS7F_cjs.isMedia(value)) {
315
+ if (chunkVUQAQMDE_cjs.isMedia(value)) {
310
316
  return value.getMediaReference();
311
317
  }
312
- if (chunkJDRCSS7F_cjs.isMediaReference(value)) {
318
+ if (chunkVUQAQMDE_cjs.isMediaReference(value)) {
313
319
  return value;
314
320
  }
315
321
  if (isOntologyObjectV2(value)) {
316
322
  return await toDataValue(value.__primaryKey, client);
317
323
  }
318
- if (chunkJDRCSS7F_cjs.isObjectSpecifiersObject(value)) {
324
+ if (chunkVUQAQMDE_cjs.isObjectSpecifiersObject(value)) {
319
325
  return await toDataValue(value.$primaryKey, client);
320
326
  }
321
- if (chunkF4L4RFUT_cjs.isWireObjectSet(value)) {
327
+ if (chunk6BO5YHRX_cjs.isWireObjectSet(value)) {
322
328
  return value;
323
329
  }
324
- if (chunkF4L4RFUT_cjs.isObjectSet(value)) {
325
- return chunkF4L4RFUT_cjs.getWireObjectSet(value);
330
+ if (chunk6BO5YHRX_cjs.isObjectSet(value)) {
331
+ return chunk6BO5YHRX_cjs.getWireObjectSet(value);
326
332
  }
327
- if (chunkJDRCSS7F_cjs.isInterfaceActionParam(value)) {
333
+ if (chunkVUQAQMDE_cjs.isInterfaceActionParam(value)) {
328
334
  return {
329
335
  objectTypeApiName: value.$objectType,
330
336
  primaryKeyValue: value.$primaryKey
@@ -345,12 +351,12 @@ async function toDataValue(value, client, actionMetadata) {
345
351
 
346
352
  // src/actions/applyAction.ts
347
353
  async function applyAction(client, action, parameters, options = {}) {
348
- const clientWithHeaders = chunkF4L4RFUT_cjs.addUserAgentAndRequestContextHeaders(chunkF4L4RFUT_cjs.augmentRequestContext(client, (_) => ({
354
+ const clientWithHeaders = chunk6BO5YHRX_cjs.addUserAgentAndRequestContextHeaders(chunk6BO5YHRX_cjs.augmentRequestContext(client, (_) => ({
349
355
  finalMethodCall: "applyAction"
350
356
  })), action);
351
357
  if (Array.isArray(parameters)) {
352
- !(client.transactionId == null) ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false, "Batch actions are not supported for staged edit functions or when supplying a transaction ID") : invariant2__default.default(false) : void 0;
353
- !(client.scenarioRid == null) ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false, "Batch actions are not supported when scoped to a scenario") : invariant2__default.default(false) : void 0;
358
+ !(client.transactionId == null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Batch actions are not supported for staged edit functions or when supplying a transaction ID") : invariant3__default.default(false) : void 0;
359
+ !(client.scenarioRid == null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Batch actions are not supported when scoped to a scenario") : invariant3__default.default(false) : void 0;
354
360
  const response = await applyBatch(clientWithHeaders, await client.ontologyRid, action.unsanitizedApiName ?? action.apiName, {
355
361
  requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.unsanitizedApiName ?? action.apiName)) : [],
356
362
  options: {
@@ -451,6 +457,26 @@ function remapActionResponse(response) {
451
457
  return remappedActionResponse;
452
458
  }
453
459
  }
460
+ var CipherTextPropertyImpl = class {
461
+ #client;
462
+ #locator;
463
+ constructor(args) {
464
+ const {
465
+ client,
466
+ objectApiName,
467
+ primaryKey,
468
+ propertyName
469
+ } = args;
470
+ this.#client = client;
471
+ this.#locator = [objectApiName, primaryKey, propertyName];
472
+ }
473
+ async decrypt() {
474
+ const ontologyRid = await this.#client.ontologyRid;
475
+ const result = await decrypt(this.#client, ontologyRid, ...this.#locator);
476
+ !Object.hasOwn(result, "plaintext") ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected decryption result to have plaintext value") : invariant3__default.default(false) : void 0;
477
+ return result.plaintext;
478
+ }
479
+ };
454
480
  function getTimeRange(body) {
455
481
  if ("$startTime" in body || "$endTime" in body) {
456
482
  return {
@@ -477,7 +503,7 @@ function getTimeRange(body) {
477
503
  }
478
504
  async function* asyncIterPointsHelper(iterator) {
479
505
  const reader = iterator.body?.getReader();
480
- for await (const point of chunkJDRCSS7F_cjs.parseStreamedResponse(chunkJDRCSS7F_cjs.iterateReadableStream(reader))) {
506
+ for await (const point of chunkVUQAQMDE_cjs.parseStreamedResponse(chunkVUQAQMDE_cjs.iterateReadableStream(reader))) {
481
507
  yield {
482
508
  time: point.time,
483
509
  value: point.value
@@ -573,7 +599,7 @@ var MediaReferencePropertyImpl = class {
573
599
  ReadToken: token
574
600
  } : void 0);
575
601
  return {
576
- itemMetadata: chunkF4L4RFUT_cjs.validateMediaItemMetadata(raw)
602
+ itemMetadata: chunk6BO5YHRX_cjs.validateMediaItemMetadata(raw)
577
603
  };
578
604
  }
579
605
  getMediaReference() {
@@ -1001,8 +1027,8 @@ function get$link(holder) {
1001
1027
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
1002
1028
  }).pivotTo(linkName);
1003
1029
  const value = !linkDef.multiplicity ? {
1004
- fetchOne: (options) => chunkF4L4RFUT_cjs.fetchSingle(client, objDef, options ?? {}, chunkF4L4RFUT_cjs.getWireObjectSet(objectSet)),
1005
- fetchOneWithErrors: (options) => chunkF4L4RFUT_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkF4L4RFUT_cjs.getWireObjectSet(objectSet))
1030
+ fetchOne: (options) => chunk6BO5YHRX_cjs.fetchSingle(client, objDef, options ?? {}, chunk6BO5YHRX_cjs.getWireObjectSet(objectSet)),
1031
+ fetchOneWithErrors: (options) => chunk6BO5YHRX_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunk6BO5YHRX_cjs.getWireObjectSet(objectSet))
1006
1032
  } : objectSet;
1007
1033
  return [linkName, value];
1008
1034
  })));
@@ -1025,8 +1051,8 @@ function get$linkForInterface(holder) {
1025
1051
  apiName: linkDef.targetTypeApiName
1026
1052
  };
1027
1053
  const value = !linkDef.multiplicity ? {
1028
- fetchOne: (options) => chunkF4L4RFUT_cjs.fetchSingle(client, linkTargetDef, options ?? {}, chunkF4L4RFUT_cjs.getWireObjectSet(objectSet)),
1029
- fetchOneWithErrors: (options) => chunkF4L4RFUT_cjs.fetchSingleWithErrors(client, linkTargetDef, options ?? {}, chunkF4L4RFUT_cjs.getWireObjectSet(objectSet))
1054
+ fetchOne: (options) => chunk6BO5YHRX_cjs.fetchSingle(client, linkTargetDef, options ?? {}, chunk6BO5YHRX_cjs.getWireObjectSet(objectSet)),
1055
+ fetchOneWithErrors: (options) => chunk6BO5YHRX_cjs.fetchSingleWithErrors(client, linkTargetDef, options ?? {}, chunk6BO5YHRX_cjs.getWireObjectSet(objectSet))
1030
1056
  } : objectSet;
1031
1057
  return [linkName, value];
1032
1058
  })));
@@ -1054,7 +1080,7 @@ function extractValueByImplementation(underlying, impl) {
1054
1080
  }
1055
1081
  }
1056
1082
  function createOsdkInterface(underlying, interfaceDef) {
1057
- const [objApiNamespace] = chunkF4L4RFUT_cjs.extractNamespace(interfaceDef.apiName);
1083
+ const [objApiNamespace] = chunk6BO5YHRX_cjs.extractNamespace(interfaceDef.apiName);
1058
1084
  const objDef = underlying[ObjectDefRef];
1059
1085
  return Object.freeze(Object.defineProperties({}, {
1060
1086
  // first to minimize hidden classes
@@ -1117,7 +1143,7 @@ function createOsdkInterface(underlying, interfaceDef) {
1117
1143
  value: interfaceDef
1118
1144
  },
1119
1145
  ...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
1120
- const [apiNamespace, apiName] = chunkF4L4RFUT_cjs.extractNamespace(p);
1146
+ const [apiNamespace, apiName] = chunk6BO5YHRX_cjs.extractNamespace(p);
1121
1147
  const exposedName = apiNamespace === objApiNamespace ? apiName : p;
1122
1148
  const impl = objDef.interfaceImplementations?.[interfaceDef.apiName]?.[p];
1123
1149
  if (impl != null) {
@@ -1166,7 +1192,7 @@ function remapPropertySecuritiesForInterface(underlyingSecurities, objDef, inter
1166
1192
  }
1167
1193
  const interfacePropName = inverseMap[objPropName];
1168
1194
  if (interfacePropName == null) continue;
1169
- const [apiNamespace, apiName] = chunkF4L4RFUT_cjs.extractNamespace(interfacePropName);
1195
+ const [apiNamespace, apiName] = chunk6BO5YHRX_cjs.extractNamespace(interfacePropName);
1170
1196
  const key = apiNamespace === objApiNamespace ? apiName : interfacePropName;
1171
1197
  remapped[key] = underlyingSecurities[objPropName];
1172
1198
  }
@@ -1221,7 +1247,7 @@ function $asFactory(objDef) {
1221
1247
  }
1222
1248
 
1223
1249
  // src/object/convertWireToOsdkObjects/createOsdkObject.ts
1224
- var specialPropertyTypes = /* @__PURE__ */ new Set(["attachment", "geotimeSeriesReference", "mediaReference", "numericTimeseries", "stringTimeseries", "sensorTimeseries"]);
1250
+ var specialPropertyTypes = /* @__PURE__ */ new Set(["attachment", "cipherText", "geotimeSeriesReference", "mediaReference", "numericTimeseries", "stringTimeseries", "sensorTimeseries"]);
1225
1251
  var securableSpecialKeys = /* @__PURE__ */ new Set(["$primaryKey", "$title"]);
1226
1252
  var basePropDefs = {
1227
1253
  "$as": {
@@ -1259,7 +1285,7 @@ var basePropDefs = {
1259
1285
  "$objectSpecifier": {
1260
1286
  get() {
1261
1287
  const rawObj = this[UnderlyingOsdkObject];
1262
- return chunkJDRCSS7F_cjs.createObjectSpecifierFromPrimaryKey(this[ObjectDefRef], rawObj.$primaryKey);
1288
+ return chunkVUQAQMDE_cjs.createObjectSpecifierFromPrimaryKey(this[ObjectDefRef], rawObj.$primaryKey);
1263
1289
  },
1264
1290
  enumerable: true
1265
1291
  },
@@ -1325,18 +1351,18 @@ function createOsdkObject(client, objectDef, simpleOsdkProperties, derivedProper
1325
1351
  function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKey) {
1326
1352
  if (derivedPropertyTypeByName[propKey].definition.type === "selection" && derivedPropertyTypeByName[propKey].definition.operation.type === "count") {
1327
1353
  const num = Number(rawValue);
1328
- !Number.isSafeInteger(num) ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false, "Count aggregation for derived property " + propKey + " returned a value larger than safe integer.") : invariant2__default.default(false) : void 0;
1354
+ !Number.isSafeInteger(num) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Count aggregation for derived property " + propKey + " returned a value larger than safe integer.") : invariant3__default.default(false) : void 0;
1329
1355
  return num;
1330
1356
  } else if (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType != null && typeof derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType.type === "string" && specialPropertyTypes.has(derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType.type)) {
1331
1357
  switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
1332
1358
  case "attachment":
1333
1359
  if (Array.isArray(rawValue)) {
1334
- return rawValue.map((a) => chunkF4L4RFUT_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1360
+ return rawValue.map((a) => chunk6BO5YHRX_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1335
1361
  } else {
1336
- return chunkF4L4RFUT_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1362
+ return chunk6BO5YHRX_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1337
1363
  }
1338
1364
  default:
1339
- process.env.NODE_ENV !== "production" ? invariant2__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant2__default.default(false) ;
1365
+ process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant3__default.default(false) ;
1340
1366
  }
1341
1367
  }
1342
1368
  return rawValue;
@@ -1345,13 +1371,21 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
1345
1371
  const rawValue = rawObject[p];
1346
1372
  const propDef = objectDef.properties[p];
1347
1373
  if (process.env.NODE_ENV !== "production") {
1348
- !(propDef != null && typeof propDef.type === "string" && specialPropertyTypes.has(propDef.type)) ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false) : invariant2__default.default(false) : void 0;
1374
+ !(propDef != null && typeof propDef.type === "string" && specialPropertyTypes.has(propDef.type)) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false) : invariant3__default.default(false) : void 0;
1349
1375
  }
1350
1376
  if (propDef.type === "attachment") {
1351
1377
  if (Array.isArray(rawValue)) {
1352
- return rawValue.map((a) => chunkF4L4RFUT_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1378
+ return rawValue.map((a) => chunk6BO5YHRX_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1353
1379
  }
1354
- return chunkF4L4RFUT_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1380
+ return chunk6BO5YHRX_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1381
+ }
1382
+ if (propDef.type === "cipherText") {
1383
+ return new CipherTextPropertyImpl({
1384
+ client,
1385
+ objectApiName: objectDef.apiName,
1386
+ primaryKey: rawObject[objectDef.primaryKeyApiName],
1387
+ propertyName: p
1388
+ });
1355
1389
  }
1356
1390
  if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
1357
1391
  return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
@@ -1391,12 +1425,12 @@ function parseWhenSecuritiesLoaded(wirePropertySecurities, rawObject, objectDef,
1391
1425
  const newVal = [];
1392
1426
  const newSecurities = [];
1393
1427
  value.forEach((spv) => {
1394
- !(typeof spv === "object" && spv != null && "value" in spv && "propertySecurityIndex" in spv) ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false, "Expected destructured secured property value object in array") : invariant2__default.default(false) : void 0;
1428
+ !(typeof spv === "object" && spv != null && "value" in spv && "propertySecurityIndex" in spv) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected destructured secured property value object in array") : invariant3__default.default(false) : void 0;
1395
1429
  const securedValue = spv;
1396
1430
  newVal.push(securedValue.value);
1397
1431
  const securityIndex = securedValue.propertySecurityIndex;
1398
- !(securityIndex != null) ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false, "Expected property security index to be defined") : invariant2__default.default(false) : void 0;
1399
- !(securityIndex < wirePropertySecurities.length) ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false, "Expected property security index to be within bounds") : invariant2__default.default(false) : void 0;
1432
+ !(securityIndex != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be defined") : invariant3__default.default(false) : void 0;
1433
+ !(securityIndex < wirePropertySecurities.length) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be within bounds") : invariant3__default.default(false) : void 0;
1400
1434
  newSecurities.push(wirePropertySecurities[securityIndex].disjunction.map(wireToClientPropertySecurities));
1401
1435
  });
1402
1436
  parsedObject[propKey] = newVal;
@@ -1405,8 +1439,8 @@ function parseWhenSecuritiesLoaded(wirePropertySecurities, rawObject, objectDef,
1405
1439
  const securedValue = value;
1406
1440
  parsedObject[propKey] = securedValue.value;
1407
1441
  const securityIndex = securedValue.propertySecurityIndex;
1408
- !(securityIndex != null) ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false, "Expected property security index to be defined") : invariant2__default.default(false) : void 0;
1409
- !(securityIndex < wirePropertySecurities.length) ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false, "Expected property security index to be within bounds") : invariant2__default.default(false) : void 0;
1442
+ !(securityIndex != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be defined") : invariant3__default.default(false) : void 0;
1443
+ !(securityIndex < wirePropertySecurities.length) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be within bounds") : invariant3__default.default(false) : void 0;
1410
1444
  clientPropertySecurities[propKey] = wirePropertySecurities[securityIndex].disjunction.map(wireToClientPropertySecurities);
1411
1445
  } else {
1412
1446
  parsedObject[propKey] = value;
@@ -1447,7 +1481,7 @@ async function convertWireToOsdkObjects(client, objects, interfaceApiName, deriv
1447
1481
  const ret = [];
1448
1482
  for (const rawObj of objects) {
1449
1483
  const objectDef = await client.ontologyProvider.getObjectDefinition(rawObj.$apiName);
1450
- !objectDef ? process.env.NODE_ENV !== "production" ? invariant2__default.default(false, `Missing definition for '${rawObj.$apiName}'`) : invariant2__default.default(false) : void 0;
1484
+ !objectDef ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing definition for '${rawObj.$apiName}'`) : invariant3__default.default(false) : void 0;
1451
1485
  const interfaceToObjMapping = interfaceApiName && isInterfaceScoped ? effectiveMappings[interfaceApiName][rawObj.$apiName] : void 0;
1452
1486
  const ifaceSelected = interfaceApiName && interfaceToObjMapping ? selectedProps ? Object.keys(interfaceToObjMapping).filter((val) => {
1453
1487
  selectedProps?.includes(interfaceToObjMapping[val]);
@@ -1694,11 +1728,11 @@ var createStandardOntologyProviderFactory = (client) => {
1694
1728
  };
1695
1729
 
1696
1730
  // src/util/UserAgent.ts
1697
- var USER_AGENT = `osdk-client/${"2.40.0"}`;
1698
- var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.40.0"}`;
1731
+ var USER_AGENT = `osdk-client/${"2.41.0-main-d24cc61b1e7fde7722d8229ed2b6821f5ce1bf8a"}`;
1732
+ var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.41.0-main-d24cc61b1e7fde7722d8229ed2b6821f5ce1bf8a"}`;
1699
1733
 
1700
1734
  // src/createMinimalClient.ts
1701
- function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkF4L4RFUT_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1735
+ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunk6BO5YHRX_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1702
1736
  if (process.env.NODE_ENV !== "production") {
1703
1737
  try {
1704
1738
  new URL(baseUrl);
@@ -2293,7 +2327,7 @@ var ActionInvoker = class {
2293
2327
  };
2294
2328
  var QueryInvoker = class {
2295
2329
  constructor(clientCtx, queryDef) {
2296
- this.executeFunction = chunkJDRCSS7F_cjs.applyQuery.bind(void 0, clientCtx, queryDef);
2330
+ this.executeFunction = chunkVUQAQMDE_cjs.applyQuery.bind(void 0, clientCtx, queryDef);
2297
2331
  }
2298
2332
  };
2299
2333
  function createClientInternal(objectSetFactory, transactionRid, flushEdits, scenarioRid, subscribeFn, baseUrl, ontologyRid, tokenProvider, options = void 0, fetchFn = fetch) {
@@ -2336,7 +2370,7 @@ function createClientFromContext(clientCtx) {
2336
2370
  async *executeStreamingFunction(query, params) {
2337
2371
  const {
2338
2372
  applyStreamingQuery
2339
- } = await import('./applyStreamingQuery-6ZZRUAB2.cjs');
2373
+ } = await import('./applyStreamingQuery-RBPTQJXT.cjs');
2340
2374
  yield* applyStreamingQuery(clientCtx, query, params);
2341
2375
  }
2342
2376
  };
@@ -2352,7 +2386,7 @@ function createClientFromContext(clientCtx) {
2352
2386
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
2353
2387
  return {
2354
2388
  fetchOneByRid: async (objectType, rid, options) => {
2355
- return await chunkF4L4RFUT_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
2389
+ return await chunk6BO5YHRX_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
2356
2390
  }
2357
2391
  };
2358
2392
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
@@ -2376,10 +2410,10 @@ function createClientFromContext(clientCtx) {
2376
2410
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
2377
2411
  return {
2378
2412
  fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
2379
- return await chunkF4L4RFUT_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
2413
+ return await chunk6BO5YHRX_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
2380
2414
  },
2381
2415
  fetchPageByRidNoType: async (rids, options) => {
2382
- return await chunkF4L4RFUT_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
2416
+ return await chunk6BO5YHRX_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
2383
2417
  }
2384
2418
  };
2385
2419
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet.name:
@@ -2423,7 +2457,7 @@ function createClientFromContext(clientCtx) {
2423
2457
  [symbolClientContext2]: {
2424
2458
  value: clientCtx
2425
2459
  },
2426
- [chunkF4L4RFUT_cjs.additionalContext]: {
2460
+ [chunk6BO5YHRX_cjs.additionalContext]: {
2427
2461
  value: clientCtx
2428
2462
  },
2429
2463
  fetchMetadata: {
@@ -2432,10 +2466,10 @@ function createClientFromContext(clientCtx) {
2432
2466
  });
2433
2467
  return client;
2434
2468
  }
2435
- var createClient = createClientInternal.bind(void 0, chunkF4L4RFUT_cjs.createObjectSet, void 0, void 0, void 0, void 0);
2436
- var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkF4L4RFUT_cjs.createObjectSet, transactionRid, flushEdits, void 0, void 0, ...args);
2437
- var createClientWithSubscribe = (subscribeFn, ...args) => createClientInternal(chunkF4L4RFUT_cjs.createObjectSet, void 0, void 0, void 0, subscribeFn, ...args);
2438
- var createClientWithScenario = (scenarioRid, ...args) => createClientInternal(chunkF4L4RFUT_cjs.createObjectSet, void 0, void 0, scenarioRid, void 0, ...args);
2469
+ var createClient = createClientInternal.bind(void 0, chunk6BO5YHRX_cjs.createObjectSet, void 0, void 0, void 0, void 0);
2470
+ var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunk6BO5YHRX_cjs.createObjectSet, transactionRid, flushEdits, void 0, void 0, ...args);
2471
+ var createClientWithSubscribe = (subscribeFn, ...args) => createClientInternal(chunk6BO5YHRX_cjs.createObjectSet, void 0, void 0, void 0, subscribeFn, ...args);
2472
+ var createClientWithScenario = (scenarioRid, ...args) => createClientInternal(chunk6BO5YHRX_cjs.createObjectSet, void 0, void 0, scenarioRid, void 0, ...args);
2439
2473
  function createWithRid(rids) {
2440
2474
  const withRid = {
2441
2475
  type: "static",
@@ -2458,5 +2492,5 @@ exports.createClientFromContext = createClientFromContext;
2458
2492
  exports.createClientWithSubscribe = createClientWithSubscribe;
2459
2493
  exports.createClientWithTransaction = createClientWithTransaction;
2460
2494
  exports.createOsdkObject = createOsdkObject;
2461
- //# sourceMappingURL=chunk-XLX6T4OB.cjs.map
2462
- //# sourceMappingURL=chunk-XLX6T4OB.cjs.map
2495
+ //# sourceMappingURL=chunk-CHIEZR53.cjs.map
2496
+ //# sourceMappingURL=chunk-CHIEZR53.cjs.map