@osdk/client 0.22.0-beta.4 → 2.0.0-beta.6

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,42 @@
1
1
  # @osdk/client
2
2
 
3
+ ## 2.0.0-beta.6
4
+
5
+ ### Minor Changes
6
+
7
+ - 76a7adb: Use OntologyMetadataService.bulkLoadOntologyEntities in place of deprecated loadOntologyEntities
8
+ - a2c7b37: Internal refactor for TimeSeriesProperty
9
+ - 0ce2858: Improves casting between Foo.ObjectSet and ObjectSet<Foo>
10
+ - 5d6d5ab: Autofill Content-Length and Content-Type headers in API's that accept Blobs
11
+ - 96ea876: Add namespaces for objects,actions,queries so that you can enumerate them.
12
+ - 5d6d5ab: SLS dependencies are optional
13
+ - a9923f3: Adds exactDistinct to aggregations
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [3affe49]
18
+ - Updated dependencies [76a7adb]
19
+ - Updated dependencies [a2c7b37]
20
+ - Updated dependencies [0ce2858]
21
+ - Updated dependencies [a9923f3]
22
+ - @osdk/api@2.0.0-beta.6
23
+ - @osdk/client.unstable@2.0.0-beta.6
24
+ - @osdk/client.api@2.0.0-beta.6
25
+ - @osdk/generator-converters@2.0.0-beta.6
26
+
27
+ ## 0.22.0-beta.5
28
+
29
+ ### Minor Changes
30
+
31
+ - dc25fb4: Fixes edge cases in inferred return types especially when changing object types
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [dc25fb4]
36
+ - @osdk/client.api@0.22.0-beta.5
37
+ - @osdk/api@1.10.0-beta.1
38
+ - @osdk/generator-converters@0.8.0-beta.1
39
+
3
40
  ## 0.22.0-beta.4
4
41
 
5
42
  ### Patch Changes
@@ -2,7 +2,7 @@ import { symbolClientContext } from '@osdk/shared.client';
2
2
  import { PalantirApiError, UnknownError } from '@osdk/shared.net.errors';
3
3
  import { createFetchHeaderMutator } from '@osdk/shared.net.fetch';
4
4
  import invariant from 'tiny-invariant';
5
- import { DistanceUnitMapping, TimeseriesDurationMapping, DurationMapping } from '@osdk/client.api';
5
+ import { DistanceUnitMapping, TimeSeriesProperty, DurationMapping, TimeseriesDurationMapping } from '@osdk/client.api';
6
6
  import { createSharedClientContext } from '@osdk/shared.client.impl';
7
7
  import { wireObjectTypeFullMetadataToSdkObjectTypeDefinition, __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from '@osdk/generator-converters';
8
8
 
@@ -199,33 +199,6 @@ function abortTransaction($ctx, ...args) {
199
199
  return foundryPlatformFetch($ctx, _abortTransaction, ...args);
200
200
  }
201
201
 
202
- // ../internal.foundry.models/build/esm/chunk-6HLC4CVC.js
203
- var __defProp3 = Object.defineProperty;
204
- var __export3 = (target, all) => {
205
- for (var name in all) __defProp3(target, name, {
206
- get: all[name],
207
- enumerable: true
208
- });
209
- };
210
- var LanguageModel_exports = {};
211
- __export3(LanguageModel_exports, {
212
- createChatCompletion: () => createChatCompletion,
213
- listLanguageModels: () => listLanguageModels,
214
- streamChatCompletion: () => streamChatCompletion
215
- });
216
- var _createChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions", 1];
217
- function createChatCompletion($ctx, ...args) {
218
- return foundryPlatformFetch($ctx, _createChatCompletion, ...args);
219
- }
220
- var _streamChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions/stream", 1, , "*/*"];
221
- function streamChatCompletion($ctx, ...args) {
222
- return foundryPlatformFetch($ctx, _streamChatCompletion, ...args);
223
- }
224
- var _listLanguageModels = [0, "/v1/models/languageModels", 2];
225
- function listLanguageModels($ctx, ...args) {
226
- return foundryPlatformFetch($ctx, _listLanguageModels, ...args);
227
- }
228
-
229
202
  // ../internal.foundry.ontologies/build/esm/index.js
230
203
  var esm_exports = {};
231
204
  __export(esm_exports, {
@@ -240,9 +213,9 @@ __export(esm_exports, {
240
213
  });
241
214
 
242
215
  // ../internal.foundry.ontologies/build/esm/chunk-PZ5AY32C.js
243
- var __defProp4 = Object.defineProperty;
244
- var __export4 = (target, all) => {
245
- for (var name in all) __defProp4(target, name, {
216
+ var __defProp3 = Object.defineProperty;
217
+ var __export3 = (target, all) => {
218
+ for (var name in all) __defProp3(target, name, {
246
219
  get: all[name],
247
220
  enumerable: true
248
221
  });
@@ -250,7 +223,7 @@ var __export4 = (target, all) => {
250
223
 
251
224
  // ../internal.foundry.ontologies/build/esm/chunk-Y7POOFVF.js
252
225
  var QueryType_exports = {};
253
- __export4(QueryType_exports, {
226
+ __export3(QueryType_exports, {
254
227
  getQueryType: () => getQueryType,
255
228
  listQueryTypes: () => listQueryTypes
256
229
  });
@@ -265,7 +238,7 @@ function getQueryType($ctx, ...args) {
265
238
 
266
239
  // ../internal.foundry.ontologies/build/esm/chunk-MONAXU3N.js
267
240
  var Action_exports = {};
268
- __export4(Action_exports, {
241
+ __export3(Action_exports, {
269
242
  applyAction: () => applyAction,
270
243
  applyActionAsync: () => applyActionAsync,
271
244
  applyActionBatch: () => applyActionBatch,
@@ -295,7 +268,7 @@ function validateAction($ctx, ...args) {
295
268
 
296
269
  // ../internal.foundry.ontologies/build/esm/chunk-5RUWELWF.js
297
270
  var ActionType_exports = {};
298
- __export4(ActionType_exports, {
271
+ __export3(ActionType_exports, {
299
272
  getActionType: () => getActionType,
300
273
  listActionTypes: () => listActionTypes
301
274
  });
@@ -308,16 +281,21 @@ function getActionType($ctx, ...args) {
308
281
  return foundryPlatformFetch($ctx, _getActionType, ...args);
309
282
  }
310
283
 
311
- // ../internal.foundry.ontologies/build/esm/chunk-3GNJUZCN.js
284
+ // ../internal.foundry.ontologies/build/esm/chunk-YCOLCQXU.js
312
285
  var Attachment_exports = {};
313
- __export4(Attachment_exports, {
286
+ __export3(Attachment_exports, {
314
287
  getAttachment: () => getAttachment,
315
288
  getAttachmentContent: () => getAttachmentContent,
316
289
  uploadAttachment: () => uploadAttachment
317
290
  });
318
291
  var _uploadAttachment = [1, "/v1/attachments/upload", 7, "*/*"];
319
292
  function uploadAttachment($ctx, ...args) {
320
- return foundryPlatformFetch($ctx, _uploadAttachment, ...args);
293
+ const headerParams = {
294
+ ...args[2],
295
+ "Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
296
+ "Content-Length": args[0].size.toString()
297
+ };
298
+ return foundryPlatformFetch($ctx, _uploadAttachment, args[0], args[1], headerParams);
321
299
  }
322
300
  var _getAttachmentContent = [0, "/v1/attachments/{0}/content", , , "*/*"];
323
301
  function getAttachmentContent($ctx, ...args) {
@@ -330,7 +308,7 @@ function getAttachment($ctx, ...args) {
330
308
 
331
309
  // ../internal.foundry.ontologies/build/esm/chunk-ATSSLGFA.js
332
310
  var ObjectType_exports = {};
333
- __export4(ObjectType_exports, {
311
+ __export3(ObjectType_exports, {
334
312
  getObjectType: () => getObjectType,
335
313
  getOutgoingLinkType: () => getOutgoingLinkType,
336
314
  listObjectTypes: () => listObjectTypes,
@@ -355,7 +333,7 @@ function getOutgoingLinkType($ctx, ...args) {
355
333
 
356
334
  // ../internal.foundry.ontologies/build/esm/chunk-ABHCL2BI.js
357
335
  var Ontology_exports = {};
358
- __export4(Ontology_exports, {
336
+ __export3(Ontology_exports, {
359
337
  getOntology: () => getOntology,
360
338
  listOntologies: () => listOntologies
361
339
  });
@@ -370,7 +348,7 @@ function getOntology($ctx, ...args) {
370
348
 
371
349
  // ../internal.foundry.ontologies/build/esm/chunk-VBZZKGHE.js
372
350
  var OntologyObject_exports = {};
373
- __export4(OntologyObject_exports, {
351
+ __export3(OntologyObject_exports, {
374
352
  aggregateObjects: () => aggregateObjects,
375
353
  getLinkedObject: () => getLinkedObject,
376
354
  getObject: () => getObject,
@@ -405,7 +383,7 @@ function aggregateObjects($ctx, ...args) {
405
383
 
406
384
  // ../internal.foundry.ontologies/build/esm/chunk-SO7SXCWR.js
407
385
  var Query_exports = {};
408
- __export4(Query_exports, {
386
+ __export3(Query_exports, {
409
387
  executeQuery: () => executeQuery
410
388
  });
411
389
  var _executeQuery = [1, "/v1/ontologies/{0}/queries/{1}/execute", 3];
@@ -432,9 +410,9 @@ __export(esm_exports2, {
432
410
  });
433
411
 
434
412
  // ../internal.foundry.ontologiesv2/build/esm/chunk-PZ5AY32C.js
435
- var __defProp5 = Object.defineProperty;
436
- var __export5 = (target, all) => {
437
- for (var name in all) __defProp5(target, name, {
413
+ var __defProp4 = Object.defineProperty;
414
+ var __export4 = (target, all) => {
415
+ for (var name in all) __defProp4(target, name, {
438
416
  get: all[name],
439
417
  enumerable: true
440
418
  });
@@ -442,7 +420,7 @@ var __export5 = (target, all) => {
442
420
 
443
421
  // ../internal.foundry.ontologiesv2/build/esm/chunk-CTA4DXZF.js
444
422
  var OntologyObjectSet_exports = {};
445
- __export5(OntologyObjectSet_exports, {
423
+ __export4(OntologyObjectSet_exports, {
446
424
  aggregateObjectSetV2: () => aggregateObjectSetV2,
447
425
  createTemporaryObjectSetV2: () => createTemporaryObjectSetV2,
448
426
  getObjectSetV2: () => getObjectSetV2,
@@ -465,12 +443,11 @@ function aggregateObjectSetV2($ctx, ...args) {
465
443
  return foundryPlatformFetch($ctx, _aggregateObjectSetV2, ...args);
466
444
  }
467
445
 
468
- // ../internal.foundry.ontologiesv2/build/esm/chunk-WV7ZDMLQ.js
446
+ // ../internal.foundry.ontologiesv2/build/esm/chunk-U76D6BOW.js
469
447
  var OntologyObjectV2_exports = {};
470
- __export5(OntologyObjectV2_exports, {
448
+ __export4(OntologyObjectV2_exports, {
471
449
  aggregateObjectsV2: () => aggregateObjectsV2,
472
450
  countObjects: () => countObjects,
473
- getObjectTypeFullMetadata: () => getObjectTypeFullMetadata,
474
451
  getObjectV2: () => getObjectV2,
475
452
  listObjectsV2: () => listObjectsV2,
476
453
  searchObjectsV2: () => searchObjectsV2
@@ -495,14 +472,10 @@ var _aggregateObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/aggregate", 3];
495
472
  function aggregateObjectsV2($ctx, ...args) {
496
473
  return foundryPlatformFetch($ctx, _aggregateObjectsV2, ...args);
497
474
  }
498
- var _getObjectTypeFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
499
- function getObjectTypeFullMetadata($ctx, ...args) {
500
- return foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);
501
- }
502
475
 
503
476
  // ../internal.foundry.ontologiesv2/build/esm/chunk-35VM6XLH.js
504
477
  var OntologyV2_exports = {};
505
- __export5(OntologyV2_exports, {
478
+ __export4(OntologyV2_exports, {
506
479
  getOntologyFullMetadata: () => getOntologyFullMetadata,
507
480
  getOntologyV2: () => getOntologyV2,
508
481
  listOntologiesV2: () => listOntologiesV2
@@ -522,7 +495,7 @@ function getOntologyFullMetadata($ctx, ...args) {
522
495
 
523
496
  // ../internal.foundry.ontologiesv2/build/esm/chunk-UFJTKRQC.js
524
497
  var Query_exports2 = {};
525
- __export5(Query_exports2, {
498
+ __export4(Query_exports2, {
526
499
  executeQueryV2: () => executeQueryV2
527
500
  });
528
501
  var _executeQueryV2 = [1, "/v2/ontologies/{0}/queries/{1}/execute", 3];
@@ -532,7 +505,7 @@ function executeQueryV2($ctx, ...args) {
532
505
 
533
506
  // ../internal.foundry.ontologiesv2/build/esm/chunk-GWYI4RKT.js
534
507
  var QueryType_exports2 = {};
535
- __export5(QueryType_exports2, {
508
+ __export4(QueryType_exports2, {
536
509
  getQueryTypeV2: () => getQueryTypeV2,
537
510
  listQueryTypesV2: () => listQueryTypesV2
538
511
  });
@@ -547,7 +520,7 @@ function getQueryTypeV2($ctx, ...args) {
547
520
 
548
521
  // ../internal.foundry.ontologiesv2/build/esm/chunk-KQNF55S5.js
549
522
  var TimeSeriesPropertyV2_exports = {};
550
- __export5(TimeSeriesPropertyV2_exports, {
523
+ __export4(TimeSeriesPropertyV2_exports, {
551
524
  getFirstPoint: () => getFirstPoint,
552
525
  getLastPoint: () => getLastPoint,
553
526
  streamPoints: () => streamPoints
@@ -567,7 +540,7 @@ function streamPoints($ctx, ...args) {
567
540
 
568
541
  // ../internal.foundry.ontologiesv2/build/esm/chunk-ZKWJVNUQ.js
569
542
  var Action_exports2 = {};
570
- __export5(Action_exports2, {
543
+ __export4(Action_exports2, {
571
544
  applyActionAsyncV2: () => applyActionAsyncV2,
572
545
  applyActionBatchV2: () => applyActionBatchV2,
573
546
  applyActionV2: () => applyActionV2
@@ -587,7 +560,7 @@ function applyActionAsyncV2($ctx, ...args) {
587
560
 
588
561
  // ../internal.foundry.ontologiesv2/build/esm/chunk-VCCTOHYG.js
589
562
  var ActionTypeV2_exports = {};
590
- __export5(ActionTypeV2_exports, {
563
+ __export4(ActionTypeV2_exports, {
591
564
  getActionTypeV2: () => getActionTypeV2,
592
565
  listActionTypesV2: () => listActionTypesV2
593
566
  });
@@ -600,16 +573,21 @@ function getActionTypeV2($ctx, ...args) {
600
573
  return foundryPlatformFetch($ctx, _getActionTypeV2, ...args);
601
574
  }
602
575
 
603
- // ../internal.foundry.ontologiesv2/build/esm/chunk-BTOEXA2S.js
576
+ // ../internal.foundry.ontologiesv2/build/esm/chunk-EFVOGNPX.js
604
577
  var Attachment_exports2 = {};
605
- __export5(Attachment_exports2, {
578
+ __export4(Attachment_exports2, {
606
579
  getAttachmentContentV2: () => getAttachmentContentV2,
607
580
  getAttachmentV2: () => getAttachmentV2,
608
581
  uploadAttachmentV2: () => uploadAttachmentV2
609
582
  });
610
583
  var _uploadAttachmentV2 = [1, "/v2/ontologies/attachments/upload", 7, "*/*"];
611
584
  function uploadAttachmentV2($ctx, ...args) {
612
- return foundryPlatformFetch($ctx, _uploadAttachmentV2, ...args);
585
+ const headerParams = {
586
+ ...args[2],
587
+ "Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
588
+ "Content-Length": args[0].size.toString()
589
+ };
590
+ return foundryPlatformFetch($ctx, _uploadAttachmentV2, args[0], args[1], headerParams);
613
591
  }
614
592
  var _getAttachmentContentV2 = [0, "/v2/ontologies/attachments/{0}/content", , , "*/*"];
615
593
  function getAttachmentContentV2($ctx, ...args) {
@@ -622,7 +600,7 @@ function getAttachmentV2($ctx, ...args) {
622
600
 
623
601
  // ../internal.foundry.ontologiesv2/build/esm/chunk-3H3SHEFA.js
624
602
  var AttachmentPropertyV2_exports = {};
625
- __export5(AttachmentPropertyV2_exports, {
603
+ __export4(AttachmentPropertyV2_exports, {
626
604
  getAttachmentPropertyByRidV2: () => getAttachmentPropertyByRidV2,
627
605
  getAttachmentPropertyContentByRidV2: () => getAttachmentPropertyContentByRidV2,
628
606
  getAttachmentPropertyContentV2: () => getAttachmentPropertyContentV2,
@@ -647,7 +625,7 @@ function getAttachmentPropertyContentByRidV2($ctx, ...args) {
647
625
 
648
626
  // ../internal.foundry.ontologiesv2/build/esm/chunk-4TOWICL3.js
649
627
  var LinkedObjectV2_exports = {};
650
- __export5(LinkedObjectV2_exports, {
628
+ __export4(LinkedObjectV2_exports, {
651
629
  getLinkedObjectV2: () => getLinkedObjectV2,
652
630
  listLinkedObjectsV2: () => listLinkedObjectsV2
653
631
  });
@@ -660,9 +638,10 @@ function getLinkedObjectV2($ctx, ...args) {
660
638
  return foundryPlatformFetch($ctx, _getLinkedObjectV2, ...args);
661
639
  }
662
640
 
663
- // ../internal.foundry.ontologiesv2/build/esm/chunk-XFVLFZZG.js
641
+ // ../internal.foundry.ontologiesv2/build/esm/chunk-ZNHKEV4X.js
664
642
  var ObjectTypeV2_exports = {};
665
- __export5(ObjectTypeV2_exports, {
643
+ __export4(ObjectTypeV2_exports, {
644
+ getObjectTypeFullMetadata: () => getObjectTypeFullMetadata,
666
645
  getObjectTypeV2: () => getObjectTypeV2,
667
646
  getOutgoingLinkTypeV2: () => getOutgoingLinkTypeV2,
668
647
  listObjectTypesV2: () => listObjectTypesV2,
@@ -676,6 +655,10 @@ var _getObjectTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}"];
676
655
  function getObjectTypeV2($ctx, ...args) {
677
656
  return foundryPlatformFetch($ctx, _getObjectTypeV2, ...args);
678
657
  }
658
+ var _getObjectTypeFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
659
+ function getObjectTypeFullMetadata($ctx, ...args) {
660
+ return foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);
661
+ }
679
662
  var _listOutgoingLinkTypesV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
680
663
  function listOutgoingLinkTypesV2($ctx, ...args) {
681
664
  return foundryPlatformFetch($ctx, _listOutgoingLinkTypesV2, ...args);
@@ -687,7 +670,7 @@ function getOutgoingLinkTypeV2($ctx, ...args) {
687
670
 
688
671
  // ../internal.foundry.ontologiesv2/build/esm/chunk-OBKC7XBM.js
689
672
  var OntologyInterface_exports = {};
690
- __export5(OntologyInterface_exports, {
673
+ __export4(OntologyInterface_exports, {
691
674
  aggregateObjectsForInterface: () => aggregateObjectsForInterface,
692
675
  getInterfaceType: () => getInterfaceType,
693
676
  listInterfaceTypes: () => listInterfaceTypes,
@@ -820,20 +803,19 @@ async function* iterateReadableStream(readableStream) {
820
803
 
821
804
  // src/createTimeseriesProperty.ts
822
805
  function createTimeseriesProperty(client, objectApiName, primaryKey, propertyName) {
823
- return {
824
- async getFirstPoint() {
825
- return esm_exports2.TimeSeriesPropertiesV2.getFirstPoint(client, await client.ontologyRid, objectApiName, primaryKey, propertyName);
826
- },
827
- async getLastPoint() {
828
- return esm_exports2.TimeSeriesPropertiesV2.getLastPoint(client, await client.ontologyRid, objectApiName, primaryKey, propertyName);
829
- },
830
- async getAllPoints(query) {
831
- return getAllTimeSeriesPoints(client, objectApiName, primaryKey, propertyName, query);
832
- },
833
- asyncIterPoints(query) {
834
- return iterateTimeSeriesPoints(client, objectApiName, primaryKey, propertyName, query);
835
- }
806
+ const getFirstPoint2 = async () => {
807
+ return esm_exports2.TimeSeriesPropertiesV2.getFirstPoint(client, await client.ontologyRid, objectApiName, primaryKey, propertyName);
808
+ };
809
+ const getLastPoint2 = async () => {
810
+ return esm_exports2.TimeSeriesPropertiesV2.getLastPoint(client, await client.ontologyRid, objectApiName, primaryKey, propertyName);
811
+ };
812
+ const getAllPoints = async (query) => {
813
+ return getAllTimeSeriesPoints(client, objectApiName, primaryKey, propertyName, query);
814
+ };
815
+ const asyncIterPoints = (query) => {
816
+ return iterateTimeSeriesPoints(client, objectApiName, primaryKey, propertyName, query);
836
817
  };
818
+ return new TimeSeriesProperty(getFirstPoint2, getLastPoint2, getAllPoints, asyncIterPoints);
837
819
  }
838
820
  async function getAllTimeSeriesPoints(client, objectApiName, primaryKey, propertyName, body) {
839
821
  const allPoints = [];
@@ -1849,9 +1831,6 @@ async function toDataValue(value, client) {
1849
1831
  if (isAttachmentUpload(value)) {
1850
1832
  const attachment = await esm_exports.Attachments.uploadAttachment(client, value, {
1851
1833
  filename: value.name
1852
- }, {
1853
- "Content-Length": value.size.toString(),
1854
- "Content-Type": value.type
1855
1834
  });
1856
1835
  return await toDataValue(attachment.rid, client);
1857
1836
  }
@@ -1926,7 +1905,7 @@ async function remapBatchActionParams(params, client) {
1926
1905
  return remappedParams;
1927
1906
  }
1928
1907
  async function loadFullObjectMetadata(client, objectType) {
1929
- const full = await esm_exports2.OntologyObjectsV2.getObjectTypeFullMetadata(client, await client.ontologyRid, objectType, {
1908
+ const full = await esm_exports2.ObjectTypesV2.getObjectTypeFullMetadata(client, await client.ontologyRid, objectType, {
1930
1909
  preview: true
1931
1910
  });
1932
1911
  const ret = wireObjectTypeFullMetadataToSdkObjectTypeDefinition(full, true);
@@ -1978,7 +1957,7 @@ var createStandardOntologyProviderFactory = (client) => {
1978
1957
  };
1979
1958
 
1980
1959
  // src/util/UserAgent.ts
1981
- var USER_AGENT = `osdk-client/${"0.22.0-beta.4"}`;
1960
+ var USER_AGENT = `osdk-client/${"2.0.0-beta.6"}`;
1982
1961
 
1983
1962
  // src/createMinimalClient.ts
1984
1963
  function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = createObjectSet) {
@@ -2022,9 +2001,6 @@ async function toDataValueQueries(value, client, desiredType) {
2022
2001
  if (isAttachmentUpload(value)) {
2023
2002
  const attachment = await esm_exports.Attachments.uploadAttachment(client, value, {
2024
2003
  filename: value.name
2025
- }, {
2026
- "Content-Length": value.size.toString(),
2027
- "Content-Type": value.type
2028
2004
  });
2029
2005
  return attachment.rid;
2030
2006
  }
@@ -2309,5 +2285,5 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
2309
2285
  var createClient = createClientInternal.bind(void 0, createObjectSet);
2310
2286
 
2311
2287
  export { ActionValidationError, USER_AGENT, augment, convertWireToOsdkObjects, createAttachmentFromRid, createAttachmentUpload, createClient, createClientInternal, createObjectSet, createSimpleAsyncCache, esm_exports2 as esm_exports };
2312
- //# sourceMappingURL=chunk-CAIAIF75.js.map
2313
- //# sourceMappingURL=chunk-CAIAIF75.js.map
2288
+ //# sourceMappingURL=chunk-CCGBSE5A.js.map
2289
+ //# sourceMappingURL=chunk-CCGBSE5A.js.map