@osdk/client 2.55.0 → 2.55.1-main-cec01e57a04a4058ea12c83f98ab14fff4e769a1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @osdk/client
2
2
 
3
+ ## 2.55.1-main-cec01e57a04a4058ea12c83f98ab14fff4e769a1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [342c492]
8
+ - @osdk/api@2.55.1-main-cec01e57a04a4058ea12c83f98ab14fff4e769a1
9
+ - @osdk/client.unstable@2.55.1-main-cec01e57a04a4058ea12c83f98ab14fff4e769a1
10
+ - @osdk/generator-converters@2.55.1-main-cec01e57a04a4058ea12c83f98ab14fff4e769a1
11
+
3
12
  ## 2.55.0
4
13
 
5
14
  ### Minor Changes
@@ -21,7 +21,7 @@
21
21
  export const additionalContext = Symbol("additionalContext");
22
22
 
23
23
  // BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.
24
- const MaxOsdkVersion = "2.55.0";
24
+ const MaxOsdkVersion = "2.55.1";
25
25
  // END: THIS IS GENERATED CODE. DO NOT EDIT.
26
26
 
27
27
  const ErrorMessage = Symbol("ErrorMessage");
@@ -1 +1 @@
1
- {"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionDefinition,\n ActionMetadata,\n CompileTimeMetadata,\n InterfaceDefinition,\n InterfaceMetadata,\n ObjectMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n VersionBound,\n} from \"@osdk/api\";\nimport type {\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\n\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> =\n Q extends VersionBound<infer V>\n ? SatisfiesSemver<V, MaxOsdkVersion> extends true\n ? Q\n : Q & {\n [ErrorMessage]: `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n /**\n * Returns the operation surface for the given ontology definition. The shape of the\n * returned value is dispatched on what kind of definition is passed:\n * - object type → the object set type for that ontology object (typically a generated extension of {@link ObjectSet})\n * - interface → a {@link MinimalObjectSet} for the interface\n * - action → a callable with `applyAction` / `batchApplyAction`\n * - query → a callable with `executeFunction`\n * - experiment → the unstable feature surface for that experiment\n *\n * @param o - The object type definition to wrap.\n * @example\n * ```ts\n * const employees = await client(Employee).fetchPage({ $pageSize: 30 });\n * const employee = await client(Employee).fetchOne(12345);\n * ```\n * @returns an object set scoped to all objects of this type.\n */\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The interface definition to wrap.\n * @example\n * ```ts\n * const page = await client(MyInterface).fetchPage({ $pageSize: 30 });\n * ```\n * @returns a minimal object set over all objects implementing the interface.\n */\n <Q extends InterfaceDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The action definition to invoke.\n * @example\n * ```ts\n * const result = await client(createEmployee).applyAction(\n * { name: \"Jane\", department: \"Engineering\" },\n * { $returnEdits: true },\n * );\n * ```\n * @returns a callable for applying (or batch-applying) the action.\n */\n <Q extends ActionDefinition<any>>(o: Q): ActionSignatureFromDef<Q>;\n\n /**\n * @param o - The query definition to invoke.\n * @example\n * ```ts\n * const result = await client(getEmployeeCount).executeFunction({ department: \"Engineering\" });\n * ```\n * @returns a callable for executing the query function.\n */\n <Q extends QueryDefinition<any>>(o: Q): QuerySignatureFromDef<Q>;\n\n /**\n * @param experiment - The experiment marker that gates an unstable feature.\n * @example\n * ```ts\n * const employee = await client(__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid)\n * .fetchOneByRid(Employee, \"ri.phonograph2-objects.main.object.1234\");\n * ```\n * @returns the experiment-specific function surface.\n */\n <\n Q extends\n | Experiment<\"2.0.8\">\n | Experiment<\"2.1.0\">\n | Experiment<\"2.2.0\">\n | Experiment<\"2.8.0\">\n | Experiment<\"2.19.0\">,\n >(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n /**\n * Fetches runtime metadata for the given ontology definition. The returned shape\n * is dispatched on the kind of definition passed: {@link ObjectMetadata},\n * {@link InterfaceMetadata}, {@link ActionMetadata}, or {@link QueryMetadata}.\n * @param o - The object type, interface, action, or query definition to look up.\n * @example\n * ```ts\n * const meta = await client.fetchMetadata(Employee);\n * console.log(meta.displayName, meta.description);\n * ```\n * @returns a promise resolving to the metadata for the given definition.\n */\n fetchMetadata<\n Q extends\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>,\n >(\n o: Q,\n ): Promise<\n Q extends ObjectTypeDefinition\n ? ObjectMetadata\n : Q extends InterfaceDefinition\n ? InterfaceMetadata\n : Q extends ActionDefinition<any>\n ? ActionMetadata\n : Q extends QueryDefinition<any>\n ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.55.0\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2BA;;AAiIA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,QAAQ;AAC/B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionDefinition,\n ActionMetadata,\n CompileTimeMetadata,\n InterfaceDefinition,\n InterfaceMetadata,\n ObjectMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n VersionBound,\n} from \"@osdk/api\";\nimport type {\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\n\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> =\n Q extends VersionBound<infer V>\n ? SatisfiesSemver<V, MaxOsdkVersion> extends true\n ? Q\n : Q & {\n [ErrorMessage]: `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n /**\n * Returns the operation surface for the given ontology definition. The shape of the\n * returned value is dispatched on what kind of definition is passed:\n * - object type → the object set type for that ontology object (typically a generated extension of {@link ObjectSet})\n * - interface → a {@link MinimalObjectSet} for the interface\n * - action → a callable with `applyAction` / `batchApplyAction`\n * - query → a callable with `executeFunction`\n * - experiment → the unstable feature surface for that experiment\n *\n * @param o - The object type definition to wrap.\n * @example\n * ```ts\n * const employees = await client(Employee).fetchPage({ $pageSize: 30 });\n * const employee = await client(Employee).fetchOne(12345);\n * ```\n * @returns an object set scoped to all objects of this type.\n */\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The interface definition to wrap.\n * @example\n * ```ts\n * const page = await client(MyInterface).fetchPage({ $pageSize: 30 });\n * ```\n * @returns a minimal object set over all objects implementing the interface.\n */\n <Q extends InterfaceDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The action definition to invoke.\n * @example\n * ```ts\n * const result = await client(createEmployee).applyAction(\n * { name: \"Jane\", department: \"Engineering\" },\n * { $returnEdits: true },\n * );\n * ```\n * @returns a callable for applying (or batch-applying) the action.\n */\n <Q extends ActionDefinition<any>>(o: Q): ActionSignatureFromDef<Q>;\n\n /**\n * @param o - The query definition to invoke.\n * @example\n * ```ts\n * const result = await client(getEmployeeCount).executeFunction({ department: \"Engineering\" });\n * ```\n * @returns a callable for executing the query function.\n */\n <Q extends QueryDefinition<any>>(o: Q): QuerySignatureFromDef<Q>;\n\n /**\n * @param experiment - The experiment marker that gates an unstable feature.\n * @example\n * ```ts\n * const employee = await client(__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid)\n * .fetchOneByRid(Employee, \"ri.phonograph2-objects.main.object.1234\");\n * ```\n * @returns the experiment-specific function surface.\n */\n <\n Q extends\n | Experiment<\"2.0.8\">\n | Experiment<\"2.1.0\">\n | Experiment<\"2.2.0\">\n | Experiment<\"2.8.0\">\n | Experiment<\"2.19.0\">,\n >(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n /**\n * Fetches runtime metadata for the given ontology definition. The returned shape\n * is dispatched on the kind of definition passed: {@link ObjectMetadata},\n * {@link InterfaceMetadata}, {@link ActionMetadata}, or {@link QueryMetadata}.\n * @param o - The object type, interface, action, or query definition to look up.\n * @example\n * ```ts\n * const meta = await client.fetchMetadata(Employee);\n * console.log(meta.displayName, meta.description);\n * ```\n * @returns a promise resolving to the metadata for the given definition.\n */\n fetchMetadata<\n Q extends\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>,\n >(\n o: Q,\n ): Promise<\n Q extends ObjectTypeDefinition\n ? ObjectMetadata\n : Q extends InterfaceDefinition\n ? InterfaceMetadata\n : Q extends ActionDefinition<any>\n ? ActionMetadata\n : Q extends QueryDefinition<any>\n ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.55.1\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2BA;;AAiIA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,QAAQ;AAC/B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.55.0"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.55.0"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.55.1-main-cec01e57a04a4058ea12c83f98ab14fff4e769a1"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.55.1-main-cec01e57a04a4058ea12c83f98ab14fff4e769a1"}`;
19
19
  //# sourceMappingURL=UserAgent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_USER_AGENT"],"sources":["UserAgent.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\nexport const OBSERVABLE_USER_AGENT: string = `osdk-observable-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,yBAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GAAG,oCAAuD","ignoreList":[]}
1
+ {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_USER_AGENT"],"sources":["UserAgent.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\nexport const OBSERVABLE_USER_AGENT: string = `osdk-observable-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,uEAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GAAG,kFAAuD","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkBQYTXH6N_cjs = require('./chunk-BQYTXH6N.cjs');
3
+ var chunkV6DHHKQU_cjs = require('./chunk-V6DHHKQU.cjs');
4
4
  var chunkPR4URXDH_cjs = require('./chunk-PR4URXDH.cjs');
5
5
  var chunkI2SCCYG7_cjs = require('./chunk-I2SCCYG7.cjs');
6
6
  var chunkIWUIN6JJ_cjs = require('./chunk-IWUIN6JJ.cjs');
@@ -194,7 +194,7 @@ function isScenarioClient(value) {
194
194
  return value != null && (typeof value === "object" || typeof value === "function") && typeof value.getScenarioReference === "function";
195
195
  }
196
196
  function buildScenarioClient(parent, scenarioRid) {
197
- const ctx = parent[chunkBQYTXH6N_cjs.additionalContext];
197
+ const ctx = parent[chunkV6DHHKQU_cjs.additionalContext];
198
198
  if (ctx.transactionId != null) {
199
199
  console.warn("withScenario / createScenario: the supplied client has an active transaction. Ignoring the transaction and scoping to the scenario instead.");
200
200
  }
@@ -205,7 +205,7 @@ function buildScenarioClient(parent, scenarioRid) {
205
205
  logger: ctx.logger,
206
206
  UNSTABLE_DO_NOT_USE_BRANCH: ctx.branch
207
207
  }, ctx.fetch);
208
- const innerCtx = inner[chunkBQYTXH6N_cjs.additionalContext];
208
+ const innerCtx = inner[chunkV6DHHKQU_cjs.additionalContext];
209
209
  async function getEditedEntityTypes() {
210
210
  const ontologyRid = await innerCtx.ontologyRid;
211
211
  const response = await OntologyScenario_exports.listScenarioEditedEntityTypes(innerCtx, ontologyRid, scenarioRid, {
@@ -377,13 +377,13 @@ async function toDataValue(value, client, actionMetadata) {
377
377
  return Promise.all(promiseArray);
378
378
  }
379
379
  if (isAttachmentUpload(value)) {
380
- const attachment = await chunkBQYTXH6N_cjs.upload(client, value.data, {
380
+ const attachment = await chunkV6DHHKQU_cjs.upload(client, value.data, {
381
381
  filename: value.name
382
382
  });
383
383
  return await toDataValue(attachment.rid, client);
384
384
  }
385
385
  if (isAttachmentFile(value)) {
386
- const attachment = await chunkBQYTXH6N_cjs.upload(client, value, {
386
+ const attachment = await chunkV6DHHKQU_cjs.upload(client, value, {
387
387
  filename: value.name
388
388
  });
389
389
  return await toDataValue(attachment.rid, client);
@@ -407,11 +407,11 @@ async function toDataValue(value, client, actionMetadata) {
407
407
  if (isObjectSpecifiersObject(value)) {
408
408
  return await toDataValue(value.$primaryKey, client);
409
409
  }
410
- if (chunkBQYTXH6N_cjs.isWireObjectSet(value)) {
410
+ if (chunkV6DHHKQU_cjs.isWireObjectSet(value)) {
411
411
  return value;
412
412
  }
413
- if (chunkBQYTXH6N_cjs.isObjectSet(value)) {
414
- return chunkBQYTXH6N_cjs.getWireObjectSet(value);
413
+ if (chunkV6DHHKQU_cjs.isObjectSet(value)) {
414
+ return chunkV6DHHKQU_cjs.getWireObjectSet(value);
415
415
  }
416
416
  if (isInterfaceActionParam(value)) {
417
417
  return {
@@ -434,7 +434,7 @@ async function toDataValue(value, client, actionMetadata) {
434
434
 
435
435
  // src/actions/applyAction.ts
436
436
  async function applyAction(client, action, parameters, options = {}) {
437
- const clientWithHeaders = chunkBQYTXH6N_cjs.addUserAgentAndRequestContextHeaders(chunkBQYTXH6N_cjs.augmentRequestContext(client, (_) => ({
437
+ const clientWithHeaders = chunkV6DHHKQU_cjs.addUserAgentAndRequestContextHeaders(chunkV6DHHKQU_cjs.augmentRequestContext(client, (_) => ({
438
438
  finalMethodCall: "applyAction"
439
439
  })), action);
440
440
  if (Array.isArray(parameters)) {
@@ -756,7 +756,7 @@ var MediaReferencePropertyImpl = class {
756
756
  ReadToken: token
757
757
  } : void 0);
758
758
  return {
759
- itemMetadata: chunkBQYTXH6N_cjs.validateMediaItemMetadata(raw)
759
+ itemMetadata: chunkV6DHHKQU_cjs.validateMediaItemMetadata(raw)
760
760
  };
761
761
  }
762
762
  getMediaReference() {
@@ -1184,8 +1184,8 @@ function get$link(holder) {
1184
1184
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
1185
1185
  }).pivotTo(linkName);
1186
1186
  const value = !linkDef.multiplicity ? {
1187
- fetchOne: (options) => chunkBQYTXH6N_cjs.fetchSingle(client, objDef, options ?? {}, chunkBQYTXH6N_cjs.getWireObjectSet(objectSet)),
1188
- fetchOneWithErrors: (options) => chunkBQYTXH6N_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkBQYTXH6N_cjs.getWireObjectSet(objectSet))
1187
+ fetchOne: (options) => chunkV6DHHKQU_cjs.fetchSingle(client, objDef, options ?? {}, chunkV6DHHKQU_cjs.getWireObjectSet(objectSet)),
1188
+ fetchOneWithErrors: (options) => chunkV6DHHKQU_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkV6DHHKQU_cjs.getWireObjectSet(objectSet))
1189
1189
  } : objectSet;
1190
1190
  return [linkName, value];
1191
1191
  })));
@@ -1208,8 +1208,8 @@ function get$linkForInterface(holder) {
1208
1208
  apiName: linkDef.targetTypeApiName
1209
1209
  };
1210
1210
  const value = !linkDef.multiplicity ? {
1211
- fetchOne: (options) => chunkBQYTXH6N_cjs.fetchSingle(client, linkTargetDef, options ?? {}, chunkBQYTXH6N_cjs.getWireObjectSet(objectSet)),
1212
- fetchOneWithErrors: (options) => chunkBQYTXH6N_cjs.fetchSingleWithErrors(client, linkTargetDef, options ?? {}, chunkBQYTXH6N_cjs.getWireObjectSet(objectSet))
1211
+ fetchOne: (options) => chunkV6DHHKQU_cjs.fetchSingle(client, linkTargetDef, options ?? {}, chunkV6DHHKQU_cjs.getWireObjectSet(objectSet)),
1212
+ fetchOneWithErrors: (options) => chunkV6DHHKQU_cjs.fetchSingleWithErrors(client, linkTargetDef, options ?? {}, chunkV6DHHKQU_cjs.getWireObjectSet(objectSet))
1213
1213
  } : objectSet;
1214
1214
  return [linkName, value];
1215
1215
  })));
@@ -1237,7 +1237,7 @@ function extractValueByImplementation(underlying, impl) {
1237
1237
  }
1238
1238
  }
1239
1239
  function createOsdkInterface(underlying, interfaceDef) {
1240
- const [objApiNamespace] = chunkBQYTXH6N_cjs.extractNamespace(interfaceDef.apiName);
1240
+ const [objApiNamespace] = chunkV6DHHKQU_cjs.extractNamespace(interfaceDef.apiName);
1241
1241
  const objDef = underlying[ObjectDefRef];
1242
1242
  return Object.freeze(Object.defineProperties({}, {
1243
1243
  // first to minimize hidden classes
@@ -1300,7 +1300,7 @@ function createOsdkInterface(underlying, interfaceDef) {
1300
1300
  value: interfaceDef
1301
1301
  },
1302
1302
  ...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
1303
- const [apiNamespace, apiName] = chunkBQYTXH6N_cjs.extractNamespace(p);
1303
+ const [apiNamespace, apiName] = chunkV6DHHKQU_cjs.extractNamespace(p);
1304
1304
  const exposedName = apiNamespace === objApiNamespace ? apiName : p;
1305
1305
  const impl = objDef.interfaceImplementations?.[interfaceDef.apiName]?.[p];
1306
1306
  if (impl != null) {
@@ -1349,7 +1349,7 @@ function remapPropertySecuritiesForInterface(underlyingSecurities, objDef, inter
1349
1349
  }
1350
1350
  const interfacePropName = inverseMap[objPropName];
1351
1351
  if (interfacePropName == null) continue;
1352
- const [apiNamespace, apiName] = chunkBQYTXH6N_cjs.extractNamespace(interfacePropName);
1352
+ const [apiNamespace, apiName] = chunkV6DHHKQU_cjs.extractNamespace(interfacePropName);
1353
1353
  const key = apiNamespace === objApiNamespace ? apiName : interfacePropName;
1354
1354
  remapped[key] = underlyingSecurities[objPropName];
1355
1355
  }
@@ -1514,9 +1514,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
1514
1514
  switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
1515
1515
  case "attachment":
1516
1516
  if (Array.isArray(rawValue)) {
1517
- return rawValue.map((a) => chunkBQYTXH6N_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1517
+ return rawValue.map((a) => chunkV6DHHKQU_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1518
1518
  } else {
1519
- return chunkBQYTXH6N_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1519
+ return chunkV6DHHKQU_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1520
1520
  }
1521
1521
  default:
1522
1522
  process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant3__default.default(false) ;
@@ -1532,9 +1532,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
1532
1532
  }
1533
1533
  if (propDef.type === "attachment") {
1534
1534
  if (Array.isArray(rawValue)) {
1535
- return rawValue.map((a) => chunkBQYTXH6N_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1535
+ return rawValue.map((a) => chunkV6DHHKQU_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1536
1536
  }
1537
- return chunkBQYTXH6N_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1537
+ return chunkV6DHHKQU_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1538
1538
  }
1539
1539
  if (propDef.type === "cipherText") {
1540
1540
  return new CipherTextPropertyImpl({
@@ -1887,11 +1887,11 @@ var createStandardOntologyProviderFactory = (client) => {
1887
1887
  };
1888
1888
 
1889
1889
  // src/util/UserAgent.ts
1890
- var USER_AGENT = `osdk-client/${"2.55.0"}`;
1891
- var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.55.0"}`;
1890
+ var USER_AGENT = `osdk-client/${"2.55.1-main-cec01e57a04a4058ea12c83f98ab14fff4e769a1"}`;
1891
+ var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.55.1-main-cec01e57a04a4058ea12c83f98ab14fff4e769a1"}`;
1892
1892
 
1893
1893
  // src/createMinimalClient.ts
1894
- function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkBQYTXH6N_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1894
+ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkV6DHHKQU_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1895
1895
  if (process.env.NODE_ENV !== "production") {
1896
1896
  try {
1897
1897
  new URL(baseUrl);
@@ -2569,13 +2569,13 @@ async function toDataValueQueries(value, client, desiredType) {
2569
2569
  switch (desiredType.type) {
2570
2570
  case "attachment": {
2571
2571
  if (isAttachmentUpload(value)) {
2572
- const attachment = await chunkBQYTXH6N_cjs.upload(client, value.data, {
2572
+ const attachment = await chunkV6DHHKQU_cjs.upload(client, value.data, {
2573
2573
  filename: value.name
2574
2574
  });
2575
2575
  return attachment.rid;
2576
2576
  }
2577
2577
  if (isAttachmentFile(value)) {
2578
- const attachment = await chunkBQYTXH6N_cjs.upload(client, value, {
2578
+ const attachment = await chunkV6DHHKQU_cjs.upload(client, value, {
2579
2579
  filename: value.name
2580
2580
  });
2581
2581
  return attachment.rid;
@@ -2631,11 +2631,11 @@ async function toDataValueQueries(value, client, desiredType) {
2631
2631
  }
2632
2632
  case "objectSet":
2633
2633
  case "interfaceObjectSet": {
2634
- if (chunkBQYTXH6N_cjs.isWireObjectSet(value)) {
2634
+ if (chunkV6DHHKQU_cjs.isWireObjectSet(value)) {
2635
2635
  return value;
2636
2636
  }
2637
- if (chunkBQYTXH6N_cjs.isObjectSet(value)) {
2638
- return chunkBQYTXH6N_cjs.getWireObjectSet(value);
2637
+ if (chunkV6DHHKQU_cjs.isObjectSet(value)) {
2638
+ return chunkV6DHHKQU_cjs.getWireObjectSet(value);
2639
2639
  }
2640
2640
  break;
2641
2641
  }
@@ -2680,7 +2680,7 @@ async function applyQuery(client, query, params) {
2680
2680
  if (client.flushEdits != null) {
2681
2681
  await client.flushEdits();
2682
2682
  }
2683
- const response = await execute(chunkBQYTXH6N_cjs.addUserAgentAndRequestContextHeaders(chunkBQYTXH6N_cjs.augmentRequestContext(client, (_) => ({
2683
+ const response = await execute(chunkV6DHHKQU_cjs.addUserAgentAndRequestContextHeaders(chunkV6DHHKQU_cjs.augmentRequestContext(client, (_) => ({
2684
2684
  finalMethodCall: "applyQuery"
2685
2685
  })), query), await client.ontologyRid, query.apiName, {
2686
2686
  parameters: params ? await remapQueryParams(params, client, (await qd).parameters) : {}
@@ -2726,10 +2726,10 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2726
2726
  return responseValue;
2727
2727
  }
2728
2728
  case "attachment": {
2729
- return chunkBQYTXH6N_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
2729
+ return chunkV6DHHKQU_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
2730
2730
  }
2731
2731
  case "mediaReference": {
2732
- return chunkBQYTXH6N_cjs.createMediaFromReferenceInternal(client, responseValue);
2732
+ return chunkV6DHHKQU_cjs.createMediaFromReferenceInternal(client, responseValue);
2733
2733
  }
2734
2734
  case "object": {
2735
2735
  const def = definitions.get(responseDataType.object);
@@ -2751,7 +2751,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2751
2751
  throw new Error(`Missing definition for ${responseDataType.objectSet}`);
2752
2752
  }
2753
2753
  if (typeof responseValue === "string") {
2754
- return chunkBQYTXH6N_cjs.createObjectSet(def, client, {
2754
+ return chunkV6DHHKQU_cjs.createObjectSet(def, client, {
2755
2755
  type: "intersect",
2756
2756
  objectSets: [{
2757
2757
  type: "base",
@@ -2762,7 +2762,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2762
2762
  }]
2763
2763
  });
2764
2764
  }
2765
- return chunkBQYTXH6N_cjs.createObjectSet(def, client, responseValue);
2765
+ return chunkV6DHHKQU_cjs.createObjectSet(def, client, responseValue);
2766
2766
  }
2767
2767
  case "struct": {
2768
2768
  for (const [key, subtype] of Object.entries(responseDataType.struct)) {
@@ -2957,7 +2957,7 @@ function createClientInternal(objectSetFactory, transactionRid, flushEdits, scen
2957
2957
  ontologyRid
2958
2958
  }, baseUrl, tokenProvider, {
2959
2959
  ...options,
2960
- logger: options?.logger ?? new chunkBQYTXH6N_cjs.MinimalLogger(),
2960
+ logger: options?.logger ?? new chunkV6DHHKQU_cjs.MinimalLogger(),
2961
2961
  transactionId: transactionRid,
2962
2962
  flushEdits,
2963
2963
  scenarioRid,
@@ -2997,16 +2997,16 @@ function createClientFromContext(clientCtx) {
2997
2997
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
2998
2998
  return {
2999
2999
  fetchOneByRid: async (objectType, rid, options) => {
3000
- return await chunkBQYTXH6N_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
3000
+ return await chunkV6DHHKQU_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
3001
3001
  }
3002
3002
  };
3003
3003
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
3004
3004
  return {
3005
3005
  fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
3006
- return await chunkBQYTXH6N_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
3006
+ return await chunkV6DHHKQU_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
3007
3007
  },
3008
3008
  fetchPageByRidNoType: async (rids, options) => {
3009
- return await chunkBQYTXH6N_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
3009
+ return await chunkV6DHHKQU_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
3010
3010
  }
3011
3011
  };
3012
3012
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet.name:
@@ -3050,7 +3050,7 @@ function createClientFromContext(clientCtx) {
3050
3050
  [symbolClientContext2]: {
3051
3051
  value: clientCtx
3052
3052
  },
3053
- [chunkBQYTXH6N_cjs.additionalContext]: {
3053
+ [chunkV6DHHKQU_cjs.additionalContext]: {
3054
3054
  value: clientCtx
3055
3055
  },
3056
3056
  fetchMetadata: {
@@ -3059,10 +3059,10 @@ function createClientFromContext(clientCtx) {
3059
3059
  });
3060
3060
  return client;
3061
3061
  }
3062
- var createClient = createClientInternal.bind(void 0, chunkBQYTXH6N_cjs.createObjectSet, void 0, void 0, void 0, void 0);
3063
- var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkBQYTXH6N_cjs.createObjectSet, transactionRid, flushEdits, void 0, void 0, ...args);
3064
- var createClientWithSubscriptionConnection = (createSubscriptionConnection, ...args) => createClientInternal(chunkBQYTXH6N_cjs.createObjectSet, void 0, void 0, void 0, createSubscriptionConnection, ...args);
3065
- var createClientWithScenario = (scenarioRid, ...args) => createClientInternal(chunkBQYTXH6N_cjs.createObjectSet, void 0, void 0, scenarioRid, void 0, ...args);
3062
+ var createClient = createClientInternal.bind(void 0, chunkV6DHHKQU_cjs.createObjectSet, void 0, void 0, void 0, void 0);
3063
+ var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkV6DHHKQU_cjs.createObjectSet, transactionRid, flushEdits, void 0, void 0, ...args);
3064
+ var createClientWithSubscriptionConnection = (createSubscriptionConnection, ...args) => createClientInternal(chunkV6DHHKQU_cjs.createObjectSet, void 0, void 0, void 0, createSubscriptionConnection, ...args);
3065
+ var createClientWithScenario = (scenarioRid, ...args) => createClientInternal(chunkV6DHHKQU_cjs.createObjectSet, void 0, void 0, scenarioRid, void 0, ...args);
3066
3066
  function createWithRid(rids) {
3067
3067
  const withRid = {
3068
3068
  type: "static",
@@ -3093,5 +3093,5 @@ exports.createOsdkObject = createOsdkObject;
3093
3093
  exports.extractPrimaryKeyFromObjectSpecifier = extractPrimaryKeyFromObjectSpecifier;
3094
3094
  exports.getDefType = getDefType;
3095
3095
  exports.isObjectSpecifiersObject = isObjectSpecifiersObject;
3096
- //# sourceMappingURL=chunk-L3AZJZFW.cjs.map
3097
- //# sourceMappingURL=chunk-L3AZJZFW.cjs.map
3096
+ //# sourceMappingURL=chunk-7ZOMXJRJ.cjs.map
3097
+ //# sourceMappingURL=chunk-7ZOMXJRJ.cjs.map