@osdk/client 2.6.1 → 2.6.3

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkBRUBBJUT_cjs = require('./chunk-BRUBBJUT.cjs');
4
- require('./chunk-EHMN4DL4.cjs');
3
+ var chunkQ5AK4DPP_cjs = require('./chunk-Q5AK4DPP.cjs');
4
+ require('./chunk-IISNXQAC.cjs');
5
5
  var chunk6SCDLAU2_cjs = require('./chunk-6SCDLAU2.cjs');
6
6
  var api = require('@osdk/api');
7
7
  var shared_net_errors = require('@osdk/shared.net.errors');
@@ -18,7 +18,7 @@ chunk6SCDLAU2_cjs.init_cjs_shims();
18
18
  // src/createPlatformClient.ts
19
19
  chunk6SCDLAU2_cjs.init_cjs_shims();
20
20
  function createPlatformClient(baseUrl, tokenProvider, options = void 0, fetchFn = fetch) {
21
- return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkBRUBBJUT_cjs.USER_AGENT, fetchFn);
21
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkQ5AK4DPP_cjs.USER_AGENT, fetchFn);
22
22
  }
23
23
 
24
24
  // src/util/datetimeConverters.ts
@@ -45,23 +45,23 @@ var extractDateFromIsoString = (dateTime) => {
45
45
 
46
46
  Object.defineProperty(exports, "ActionValidationError", {
47
47
  enumerable: true,
48
- get: function () { return chunkBRUBBJUT_cjs.ActionValidationError; }
48
+ get: function () { return chunkQ5AK4DPP_cjs.ActionValidationError; }
49
49
  });
50
50
  Object.defineProperty(exports, "createAttachmentUpload", {
51
51
  enumerable: true,
52
- get: function () { return chunkBRUBBJUT_cjs.createAttachmentUpload; }
52
+ get: function () { return chunkQ5AK4DPP_cjs.createAttachmentUpload; }
53
53
  });
54
54
  Object.defineProperty(exports, "createClient", {
55
55
  enumerable: true,
56
- get: function () { return chunkBRUBBJUT_cjs.createClient; }
56
+ get: function () { return chunkQ5AK4DPP_cjs.createClient; }
57
57
  });
58
58
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
59
59
  enumerable: true,
60
- get: function () { return chunkBRUBBJUT_cjs.createObjectSpecifierFromPrimaryKey; }
60
+ get: function () { return chunkQ5AK4DPP_cjs.createObjectSpecifierFromPrimaryKey; }
61
61
  });
62
62
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
63
63
  enumerable: true,
64
- get: function () { return chunkBRUBBJUT_cjs.extractPrimaryKeyFromObjectSpecifier; }
64
+ get: function () { return chunkQ5AK4DPP_cjs.extractPrimaryKeyFromObjectSpecifier; }
65
65
  });
66
66
  Object.defineProperty(exports, "isOk", {
67
67
  enumerable: true,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkEHMN4DL4_cjs = require('../chunk-EHMN4DL4.cjs');
3
+ var chunkIISNXQAC_cjs = require('../chunk-IISNXQAC.cjs');
4
4
  var chunk6SCDLAU2_cjs = require('../chunk-6SCDLAU2.cjs');
5
5
 
6
6
  // src/public/internal.ts
@@ -9,8 +9,8 @@ chunk6SCDLAU2_cjs.init_cjs_shims();
9
9
  // src/public-utils/createAndFetchTempObjectSetRid.ts
10
10
  chunk6SCDLAU2_cjs.init_cjs_shims();
11
11
  async function createAndFetchTempObjectSetRid(client, objectSet) {
12
- const response = await chunkEHMN4DL4_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkEHMN4DL4_cjs.additionalContext].ontologyRid, {
13
- objectSet: chunkEHMN4DL4_cjs.getWireObjectSet(objectSet)
12
+ const response = await chunkIISNXQAC_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkIISNXQAC_cjs.additionalContext].ontologyRid, {
13
+ objectSet: chunkIISNXQAC_cjs.getWireObjectSet(objectSet)
14
14
  });
15
15
  return response.objectSetRid;
16
16
  }
@@ -18,7 +18,7 @@ async function createAndFetchTempObjectSetRid(client, objectSet) {
18
18
  // src/public-utils/hydrateObjectSetFromObjectRids.ts
19
19
  chunk6SCDLAU2_cjs.init_cjs_shims();
20
20
  function hydrateObjectSetFromObjectRids(client, definition, rids) {
21
- return chunkEHMN4DL4_cjs.createObjectSet(definition, client[chunkEHMN4DL4_cjs.additionalContext], {
21
+ return chunkIISNXQAC_cjs.createObjectSet(definition, client[chunkIISNXQAC_cjs.additionalContext], {
22
22
  type: "intersect",
23
23
  objectSets: [definition.type === "interface" ? {
24
24
  type: "interfaceBase",
@@ -39,7 +39,7 @@ function asMutableArray(array) {
39
39
  // src/public-utils/hydrateObjectSetFromRid.ts
40
40
  chunk6SCDLAU2_cjs.init_cjs_shims();
41
41
  function hydrateObjectSetFromRid(client, definition, rid) {
42
- return chunkEHMN4DL4_cjs.createObjectSet(definition, client[chunkEHMN4DL4_cjs.additionalContext], {
42
+ return chunkIISNXQAC_cjs.createObjectSet(definition, client[chunkIISNXQAC_cjs.additionalContext], {
43
43
  type: "intersect",
44
44
  objectSets: [definition.type === "interface" ? {
45
45
  type: "interfaceBase",
@@ -81,7 +81,7 @@ var levelStyles = {
81
81
  color: "orange"
82
82
  })
83
83
  };
84
- var BrowserLogger = class _BrowserLogger extends chunkEHMN4DL4_cjs.BaseLogger {
84
+ var BrowserLogger = class _BrowserLogger extends chunkIISNXQAC_cjs.BaseLogger {
85
85
  constructor(bindings = {}, options = {}) {
86
86
  super(bindings, {
87
87
  ...options,
@@ -107,11 +107,11 @@ var BrowserLogger = class _BrowserLogger extends chunkEHMN4DL4_cjs.BaseLogger {
107
107
 
108
108
  Object.defineProperty(exports, "MinimalLogger", {
109
109
  enumerable: true,
110
- get: function () { return chunkEHMN4DL4_cjs.MinimalLogger; }
110
+ get: function () { return chunkIISNXQAC_cjs.MinimalLogger; }
111
111
  });
112
112
  Object.defineProperty(exports, "hydrateAttachmentFromRid", {
113
113
  enumerable: true,
114
- get: function () { return chunkEHMN4DL4_cjs.hydrateAttachmentFromRid; }
114
+ get: function () { return chunkIISNXQAC_cjs.hydrateAttachmentFromRid; }
115
115
  });
116
116
  exports.BrowserLogger = BrowserLogger;
117
117
  exports.createAndFetchTempObjectSetRid = createAndFetchTempObjectSetRid;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkBRUBBJUT_cjs = require('../chunk-BRUBBJUT.cjs');
4
- var chunkEHMN4DL4_cjs = require('../chunk-EHMN4DL4.cjs');
3
+ var chunkQ5AK4DPP_cjs = require('../chunk-Q5AK4DPP.cjs');
4
+ var chunkIISNXQAC_cjs = require('../chunk-IISNXQAC.cjs');
5
5
  var chunk6SCDLAU2_cjs = require('../chunk-6SCDLAU2.cjs');
6
6
  var trie = require('@wry/trie');
7
7
  var deepEqual = require('fast-deep-equal');
@@ -153,7 +153,7 @@ var WhereClauseCanonicalizer = class {
153
153
  var whereCanonicalizer = new WhereClauseCanonicalizer();
154
154
  var orderByCanonicalizer = new OrderByCanonicalizer();
155
155
  function computeObjectSetCacheKey(objectSet, options) {
156
- const keyParts = ["objectSet", chunkEHMN4DL4_cjs.getWireObjectSet(objectSet)];
156
+ const keyParts = ["objectSet", chunkIISNXQAC_cjs.getWireObjectSet(objectSet)];
157
157
  if (!options) {
158
158
  return JSON.stringify(keyParts);
159
159
  }
@@ -165,13 +165,13 @@ function computeObjectSetCacheKey(objectSet, options) {
165
165
  keyParts.push("props", propKeys);
166
166
  }
167
167
  if (options.union && options.union.length > 0) {
168
- keyParts.push("union", options.union.map((os) => chunkEHMN4DL4_cjs.getWireObjectSet(os)));
168
+ keyParts.push("union", options.union.map((os) => chunkIISNXQAC_cjs.getWireObjectSet(os)));
169
169
  }
170
170
  if (options.intersect && options.intersect.length > 0) {
171
- keyParts.push("intersect", options.intersect.map((os) => chunkEHMN4DL4_cjs.getWireObjectSet(os)));
171
+ keyParts.push("intersect", options.intersect.map((os) => chunkIISNXQAC_cjs.getWireObjectSet(os)));
172
172
  }
173
173
  if (options.subtract && options.subtract.length > 0) {
174
- keyParts.push("subtract", options.subtract.map((os) => chunkEHMN4DL4_cjs.getWireObjectSet(os)));
174
+ keyParts.push("subtract", options.subtract.map((os) => chunkIISNXQAC_cjs.getWireObjectSet(os)));
175
175
  }
176
176
  if (options.pivotTo) {
177
177
  keyParts.push("pivotTo", options.pivotTo);
@@ -351,7 +351,7 @@ var OptimisticJob = class {
351
351
  return this;
352
352
  },
353
353
  createObject(type, pk, properties) {
354
- const create = store.client[chunkEHMN4DL4_cjs.additionalContext].objectFactory2(store.client[chunkEHMN4DL4_cjs.additionalContext], [{
354
+ const create = store.client[chunkIISNXQAC_cjs.additionalContext].objectFactory2(store.client[chunkIISNXQAC_cjs.additionalContext], [{
355
355
  $primaryKey: pk,
356
356
  $apiName: type.apiName,
357
357
  $objectType: type.apiName,
@@ -569,7 +569,7 @@ var Query = class {
569
569
  this.store = store;
570
570
  this.cacheKeys = store.cacheKeys;
571
571
  this.#subject = observable;
572
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkEHMN4DL4_cjs.additionalContext].logger : store.client[chunkEHMN4DL4_cjs.additionalContext].logger?.child({}, {
572
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkIISNXQAC_cjs.additionalContext].logger : store.client[chunkIISNXQAC_cjs.additionalContext].logger?.child({}, {
573
573
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
574
574
  }));
575
575
  }
@@ -727,7 +727,7 @@ var Query = class {
727
727
  // src/observable/internal/aggregation/AggregationQuery.ts
728
728
  var AggregationQuery = class extends Query {
729
729
  constructor(store, subject, cacheKey, opts) {
730
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHMN4DL4_cjs.additionalContext].logger?.child({}, {
730
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkIISNXQAC_cjs.additionalContext].logger?.child({}, {
731
731
  msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
732
732
  }) : void 0);
733
733
  this.apiName = cacheKey.otherKeys[API_NAME_IDX];
@@ -1978,7 +1978,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
1978
1978
  batch.changes.modified.add(this.cacheKey);
1979
1979
  }
1980
1980
  constructor(store, subject, cacheKey, opts) {
1981
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHMN4DL4_cjs.additionalContext].logger?.child({}, {
1981
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkIISNXQAC_cjs.additionalContext].logger?.child({}, {
1982
1982
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1983
1983
  }) : void 0);
1984
1984
  [this.#sourceApiName, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -1995,7 +1995,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
1995
1995
  type: "object",
1996
1996
  apiName: this.#sourceApiName
1997
1997
  };
1998
- const sourceMetadata = await client[chunkEHMN4DL4_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
1998
+ const sourceMetadata = await client[chunkIISNXQAC_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
1999
1999
  const sourceQuery = client(sourceObjectDef).where({
2000
2000
  [sourceMetadata.primaryKeyApiName]: this.#sourcePk
2001
2001
  });
@@ -2059,7 +2059,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2059
2059
  return this.revalidate(true);
2060
2060
  } else {
2061
2061
  return (async () => {
2062
- const sourceMetadata = await this.store.client[chunkEHMN4DL4_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2062
+ const sourceMetadata = await this.store.client[chunkIISNXQAC_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2063
2063
  const linkDef = sourceMetadata.links?.[this.#linkName];
2064
2064
  if (!linkDef || linkDef.targetType !== objectType) return;
2065
2065
  const promise = this.revalidate(true);
@@ -2211,7 +2211,7 @@ var ListQuery = class extends BaseListQuery {
2211
2211
  batch.changes.registerList(this.cacheKey);
2212
2212
  }
2213
2213
  constructor(store, subject, apiName, cacheKey, opts) {
2214
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHMN4DL4_cjs.additionalContext].logger?.child({}, {
2214
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkIISNXQAC_cjs.additionalContext].logger?.child({}, {
2215
2215
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2216
2216
  }) : void 0);
2217
2217
  this.apiName = apiName;
@@ -2491,7 +2491,7 @@ var InterfaceListQuery = class extends ListQuery {
2491
2491
  }
2492
2492
  extractRelevantObjects(changes) {
2493
2493
  const matchesApiName = ([, object]) => {
2494
- return this.apiName in object[chunkBRUBBJUT_cjs.ObjectDefRef].interfaceMap;
2494
+ return this.apiName in object[chunkQ5AK4DPP_cjs.ObjectDefRef].interfaceMap;
2495
2495
  };
2496
2496
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
2497
2497
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -2512,7 +2512,7 @@ var InterfaceListQuery = class extends ListQuery {
2512
2512
  async function reloadDataAsFullObjects(client, data) {
2513
2513
  const groups = groupBy__default.default(data, (x) => x.$objectType);
2514
2514
  const objectTypeToPrimaryKeyToObject = Object.fromEntries(await Promise.all(Object.entries(groups).map(async ([apiName, objects]) => {
2515
- const objectDef = objects[0][chunkBRUBBJUT_cjs.UnderlyingOsdkObject][chunkBRUBBJUT_cjs.ObjectDefRef];
2515
+ const objectDef = objects[0][chunkQ5AK4DPP_cjs.UnderlyingOsdkObject][chunkQ5AK4DPP_cjs.ObjectDefRef];
2516
2516
  const where = {
2517
2517
  [objectDef.primaryKeyApiName]: {
2518
2518
  $in: objects.map((x) => x.$primaryKey)
@@ -2865,7 +2865,7 @@ var BulkObjectLoader = class {
2865
2865
  #maxEntries;
2866
2866
  constructor(client, maxWait = 25, maxEntries = 100) {
2867
2867
  this.#client = client;
2868
- this.#logger = client[chunkEHMN4DL4_cjs.additionalContext].logger;
2868
+ this.#logger = client[chunkIISNXQAC_cjs.additionalContext].logger;
2869
2869
  this.#maxWait = maxWait;
2870
2870
  this.#maxEntries = maxEntries;
2871
2871
  }
@@ -2933,7 +2933,7 @@ var ObjectQuery = class extends Query {
2933
2933
  #apiName;
2934
2934
  #pk;
2935
2935
  constructor(store, subject, type, pk, cacheKey, opts) {
2936
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHMN4DL4_cjs.additionalContext].logger?.child({}, {
2936
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkIISNXQAC_cjs.additionalContext].logger?.child({}, {
2937
2937
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2938
2938
  }) : void 0);
2939
2939
  this.#apiName = type;
@@ -3081,7 +3081,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3081
3081
  #composedObjectSet;
3082
3082
  #objectTypes;
3083
3083
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
3084
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHMN4DL4_cjs.additionalContext].logger?.child({}, {
3084
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkIISNXQAC_cjs.additionalContext].logger?.child({}, {
3085
3085
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3086
3086
  }) : void 0);
3087
3087
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -3130,7 +3130,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3130
3130
  }
3131
3131
  if (opts.union) {
3132
3132
  for (const os of opts.union) {
3133
- const wire = chunkEHMN4DL4_cjs.getWireObjectSet(os);
3133
+ const wire = chunkIISNXQAC_cjs.getWireObjectSet(os);
3134
3134
  if (wire.type) {
3135
3135
  types.add(wire.type);
3136
3136
  }
@@ -3138,7 +3138,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3138
3138
  }
3139
3139
  if (opts.intersect) {
3140
3140
  for (const os of opts.intersect) {
3141
- const wire = chunkEHMN4DL4_cjs.getWireObjectSet(os);
3141
+ const wire = chunkIISNXQAC_cjs.getWireObjectSet(os);
3142
3142
  if (wire.type) {
3143
3143
  types.add(wire.type);
3144
3144
  }
@@ -3146,7 +3146,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3146
3146
  }
3147
3147
  if (opts.subtract) {
3148
3148
  for (const os of opts.subtract) {
3149
- const wire = chunkEHMN4DL4_cjs.getWireObjectSet(os);
3149
+ const wire = chunkIISNXQAC_cjs.getWireObjectSet(os);
3150
3150
  if (wire.type) {
3151
3151
  types.add(wire.type);
3152
3152
  }
@@ -3227,7 +3227,7 @@ var ObjectSetHelper = class extends AbstractHelper {
3227
3227
  const {
3228
3228
  baseObjectSet
3229
3229
  } = options;
3230
- const baseObjectSetWire = JSON.stringify(chunkEHMN4DL4_cjs.getWireObjectSet(baseObjectSet));
3230
+ const baseObjectSetWire = JSON.stringify(chunkIISNXQAC_cjs.getWireObjectSet(baseObjectSet));
3231
3231
  const operations = this.buildCanonicalizedOperations(options);
3232
3232
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
3233
3233
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -3243,13 +3243,13 @@ var ObjectSetHelper = class extends AbstractHelper {
3243
3243
  operations.withProperties = Object.keys(options.withProperties).sort();
3244
3244
  }
3245
3245
  if (options.union && options.union.length > 0) {
3246
- operations.union = options.union.map((os) => JSON.stringify(chunkEHMN4DL4_cjs.getWireObjectSet(os)));
3246
+ operations.union = options.union.map((os) => JSON.stringify(chunkIISNXQAC_cjs.getWireObjectSet(os)));
3247
3247
  }
3248
3248
  if (options.intersect && options.intersect.length > 0) {
3249
- operations.intersect = options.intersect.map((os) => JSON.stringify(chunkEHMN4DL4_cjs.getWireObjectSet(os)));
3249
+ operations.intersect = options.intersect.map((os) => JSON.stringify(chunkIISNXQAC_cjs.getWireObjectSet(os)));
3250
3250
  }
3251
3251
  if (options.subtract && options.subtract.length > 0) {
3252
- operations.subtract = options.subtract.map((os) => JSON.stringify(chunkEHMN4DL4_cjs.getWireObjectSet(os)));
3252
+ operations.subtract = options.subtract.map((os) => JSON.stringify(chunkIISNXQAC_cjs.getWireObjectSet(os)));
3253
3253
  }
3254
3254
  if (options.pivotTo) {
3255
3255
  operations.pivotTo = options.pivotTo;
@@ -3321,7 +3321,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
3321
3321
  apiName: "__rdp_canonicalizer_holder__"
3322
3322
  };
3323
3323
  for (const [key, rdpFunction] of Object.entries(rdp)) {
3324
- const builder = chunkEHMN4DL4_cjs.createWithPropertiesObjectSet(
3324
+ const builder = chunkIISNXQAC_cjs.createWithPropertiesObjectSet(
3325
3325
  objectTypeHolder,
3326
3326
  {
3327
3327
  type: "methodInput"
@@ -3372,7 +3372,7 @@ var Store = class {
3372
3372
  subjects = this.layers.subjects;
3373
3373
  // these are hopefully temporary
3374
3374
  constructor(client) {
3375
- this.logger = client[chunkEHMN4DL4_cjs.additionalContext].logger?.child({}, {
3375
+ this.logger = client[chunkIISNXQAC_cjs.additionalContext].logger?.child({}, {
3376
3376
  msgPrefix: "Store"
3377
3377
  });
3378
3378
  this.client = client;
@@ -3638,10 +3638,10 @@ var Store = class {
3638
3638
 
3639
3639
  // src/observable/ObservableClient.ts
3640
3640
  function createObservableClient(client) {
3641
- const tweakedClient = chunkBRUBBJUT_cjs.createClientFromContext({
3642
- ...client[chunkEHMN4DL4_cjs.additionalContext],
3643
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkEHMN4DL4_cjs.additionalContext].fetch, (headers) => {
3644
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkBRUBBJUT_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
3641
+ const tweakedClient = chunkQ5AK4DPP_cjs.createClientFromContext({
3642
+ ...client[chunkIISNXQAC_cjs.additionalContext],
3643
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkIISNXQAC_cjs.additionalContext].fetch, (headers) => {
3644
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkQ5AK4DPP_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
3645
3645
  return headers;
3646
3646
  })
3647
3647
  });
@@ -3685,11 +3685,11 @@ function getOsdkConfig(ontologyRid) {
3685
3685
 
3686
3686
  Object.defineProperty(exports, "createClientWithTransaction", {
3687
3687
  enumerable: true,
3688
- get: function () { return chunkBRUBBJUT_cjs.createClientWithTransaction; }
3688
+ get: function () { return chunkQ5AK4DPP_cjs.createClientWithTransaction; }
3689
3689
  });
3690
3690
  Object.defineProperty(exports, "augment", {
3691
3691
  enumerable: true,
3692
- get: function () { return chunkEHMN4DL4_cjs.augment; }
3692
+ get: function () { return chunkIISNXQAC_cjs.augment; }
3693
3693
  });
3694
3694
  exports.computeObjectSetCacheKey = computeObjectSetCacheKey;
3695
3695
  exports.createObservableClient = createObservableClient;
@@ -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.6.1";
24
+ const MaxOsdkVersion = "2.6.3";
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\";\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> = Q extends VersionBound<infer V> ? (\n SatisfiesSemver<V, MaxOsdkVersion> extends true ? Q\n : Q & {\n [ErrorMessage]:\n `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n )\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends (InterfaceDefinition)>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends ActionDefinition<any>>(\n o: Q,\n ): ActionSignatureFromDef<Q>;\n\n <Q extends QueryDefinition<any>>(\n o: Q,\n ): QuerySignatureFromDef<Q>;\n\n <Q extends Experiment<\"2.0.8\"> | Experiment<\"2.1.0\"> | Experiment<\"2.2.0\">>(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n fetchMetadata<\n Q extends (\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>\n ),\n >(o: Q): Promise<\n Q extends ObjectTypeDefinition ? ObjectMetadata\n : Q extends InterfaceDefinition ? InterfaceMetadata\n : Q extends ActionDefinition<any> ? ActionMetadata\n : Q extends QueryDefinition<any> ? 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.6.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;;AA0BA;;AAsDA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,OAAO;AAC9B;;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\";\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> = Q extends VersionBound<infer V> ? (\n SatisfiesSemver<V, MaxOsdkVersion> extends true ? Q\n : Q & {\n [ErrorMessage]:\n `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n )\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends (InterfaceDefinition)>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends ActionDefinition<any>>(\n o: Q,\n ): ActionSignatureFromDef<Q>;\n\n <Q extends QueryDefinition<any>>(\n o: Q,\n ): QuerySignatureFromDef<Q>;\n\n <Q extends Experiment<\"2.0.8\"> | Experiment<\"2.1.0\"> | Experiment<\"2.2.0\">>(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n fetchMetadata<\n Q extends (\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>\n ),\n >(o: Q): Promise<\n Q extends ObjectTypeDefinition ? ObjectMetadata\n : Q extends InterfaceDefinition ? InterfaceMetadata\n : Q extends ActionDefinition<any> ? ActionMetadata\n : Q extends QueryDefinition<any> ? 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.6.3\";\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;;AA0BA;;AAsDA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,OAAO;AAC9B;;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.6.1"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.6.1"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.6.3"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.6.3"}`;
19
19
  //# sourceMappingURL=UserAgent.js.map
@@ -16,7 +16,7 @@ export interface Client extends SharedClient, OldSharedClient {
16
16
  <Q extends Experiment<"2.0.8"> | Experiment<"2.1.0"> | Experiment<"2.2.0">>(experiment: Q): ExperimentFns<Q>;
17
17
  fetchMetadata<Q extends (ObjectTypeDefinition | InterfaceDefinition | ActionDefinition<any> | QueryDefinition<any>)>(o: Q): Promise<Q extends ObjectTypeDefinition ? ObjectMetadata : Q extends InterfaceDefinition ? InterfaceMetadata : Q extends ActionDefinition<any> ? ActionMetadata : Q extends QueryDefinition<any> ? QueryMetadata : never>;
18
18
  }
19
- declare const MaxOsdkVersion = "2.6.1";
19
+ declare const MaxOsdkVersion = "2.6.3";
20
20
  export type MaxOsdkVersion = typeof MaxOsdkVersion;
21
21
  declare const ErrorMessage: unique symbol;
22
22
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/client",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -75,11 +75,11 @@
75
75
  "tiny-invariant": "^1.3.3",
76
76
  "type-fest": "^4.41.0",
77
77
  "ws": "^8.18.3",
78
- "@osdk/api": "~2.6.1",
79
- "@osdk/client.unstable": "2.6.1",
80
- "@osdk/generator-converters": "2.6.1",
78
+ "@osdk/api": "~2.6.3",
79
+ "@osdk/generator-converters": "2.6.3",
81
80
  "@osdk/shared.client.impl": "~1.6.0",
82
81
  "@osdk/shared.net.errors": "~2.6.0",
82
+ "@osdk/client.unstable": "2.6.3",
83
83
  "@osdk/shared.net.fetch": "~1.6.0"
84
84
  },
85
85
  "devDependencies": {
@@ -101,10 +101,10 @@
101
101
  "ts-expect": "^1.3.0",
102
102
  "typescript": "~5.5.4",
103
103
  "zod": "^3.25.76",
104
- "@osdk/client.test.ontology": "~2.6.1",
105
- "@osdk/monorepo.api-extractor": "~0.5.0",
104
+ "@osdk/client.test.ontology": "~2.6.3",
106
105
  "@osdk/monorepo.tsconfig": "~0.5.0",
107
- "@osdk/shared.test": "~2.6.1"
106
+ "@osdk/shared.test": "~2.6.1",
107
+ "@osdk/monorepo.api-extractor": "~0.5.0"
108
108
  },
109
109
  "publishConfig": {
110
110
  "access": "public"