@osdk/client 2.4.0-beta.1 → 2.4.0-beta.11

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 (124) hide show
  1. package/CHANGELOG.md +138 -0
  2. package/build/browser/Client.js +1 -1
  3. package/build/browser/Client.js.map +1 -1
  4. package/build/browser/MinimalClientContext.js.map +1 -1
  5. package/build/browser/createClient.js +5 -5
  6. package/build/browser/createClient.js.map +1 -1
  7. package/build/browser/createMinimalClient.js +1 -0
  8. package/build/browser/createMinimalClient.js.map +1 -1
  9. package/build/browser/fetchMetadata.test.js +14 -0
  10. package/build/browser/fetchMetadata.test.js.map +1 -1
  11. package/build/browser/index.js.map +1 -1
  12. package/build/browser/intellisense.test.js +1 -1
  13. package/build/browser/intellisense.test.js.map +1 -1
  14. package/build/browser/internal/conversions/modernToLegacyGroupByClause.js +2 -1
  15. package/build/browser/internal/conversions/modernToLegacyGroupByClause.js.map +1 -1
  16. package/build/browser/object/aggregate.test.js +85 -0
  17. package/build/browser/object/aggregate.test.js.map +1 -1
  18. package/build/browser/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  19. package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
  20. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js +7 -0
  21. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  22. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +9 -0
  23. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  24. package/build/browser/object/convertWireToOsdkObjects.test.js +241 -1
  25. package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
  26. package/build/browser/objectSet/ObjectSet.test.js +20 -0
  27. package/build/browser/objectSet/ObjectSet.test.js.map +1 -1
  28. package/build/browser/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
  29. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js +1 -1
  30. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -1
  31. package/build/browser/objectSet/createObjectSet.js +22 -0
  32. package/build/browser/objectSet/createObjectSet.js.map +1 -1
  33. package/build/browser/observable/ObservableClient.js.map +1 -1
  34. package/build/browser/observable/internal/ObservableClientImpl.js +1 -0
  35. package/build/browser/observable/internal/ObservableClientImpl.js.map +1 -1
  36. package/build/browser/observable/internal/Store.js +7 -0
  37. package/build/browser/observable/internal/Store.js.map +1 -1
  38. package/build/browser/ontology/StandardOntologyProvider.js +3 -2
  39. package/build/browser/ontology/StandardOntologyProvider.js.map +1 -1
  40. package/build/browser/public/unstable-do-not-use.js +1 -0
  41. package/build/browser/public/unstable-do-not-use.js.map +1 -1
  42. package/build/browser/public-utils/hydrateObjectSetFromRid.js +4 -1
  43. package/build/browser/public-utils/hydrateObjectSetFromRid.js.map +1 -1
  44. package/build/browser/util/UserAgent.js +2 -2
  45. package/build/browser/util/UserAgent.js.map +1 -1
  46. package/build/browser/util/deepFreeze.js +26 -0
  47. package/build/browser/util/deepFreeze.js.map +1 -0
  48. package/build/cjs/{chunk-YGJRXE4F.cjs → chunk-E5BQ7757.cjs} +53 -16
  49. package/build/cjs/chunk-E5BQ7757.cjs.map +1 -0
  50. package/build/cjs/{chunk-Z6X7WQDP.cjs → chunk-NKDL5OWO.cjs} +84 -53
  51. package/build/cjs/chunk-NKDL5OWO.cjs.map +1 -0
  52. package/build/cjs/createClient-DJq2ecGM.d.cts +9 -0
  53. package/build/cjs/index.cjs +6 -6
  54. package/build/cjs/index.d.cts +5 -8
  55. package/build/cjs/public/internal.cjs +12 -9
  56. package/build/cjs/public/internal.cjs.map +1 -1
  57. package/build/cjs/public/unstable-do-not-use.cjs +27 -15
  58. package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
  59. package/build/cjs/public/unstable-do-not-use.d.cts +3 -1
  60. package/build/esm/Client.js +1 -1
  61. package/build/esm/Client.js.map +1 -1
  62. package/build/esm/MinimalClientContext.js.map +1 -1
  63. package/build/esm/createClient.js +5 -5
  64. package/build/esm/createClient.js.map +1 -1
  65. package/build/esm/createMinimalClient.js +1 -0
  66. package/build/esm/createMinimalClient.js.map +1 -1
  67. package/build/esm/fetchMetadata.test.js +14 -0
  68. package/build/esm/fetchMetadata.test.js.map +1 -1
  69. package/build/esm/index.js.map +1 -1
  70. package/build/esm/intellisense.test.js +1 -1
  71. package/build/esm/intellisense.test.js.map +1 -1
  72. package/build/esm/internal/conversions/modernToLegacyGroupByClause.js +2 -1
  73. package/build/esm/internal/conversions/modernToLegacyGroupByClause.js.map +1 -1
  74. package/build/esm/object/aggregate.test.js +85 -0
  75. package/build/esm/object/aggregate.test.js.map +1 -1
  76. package/build/esm/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  77. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
  78. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +7 -0
  79. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  80. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +9 -0
  81. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  82. package/build/esm/object/convertWireToOsdkObjects.test.js +241 -1
  83. package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
  84. package/build/esm/objectSet/ObjectSet.test.js +20 -0
  85. package/build/esm/objectSet/ObjectSet.test.js.map +1 -1
  86. package/build/esm/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
  87. package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js +1 -1
  88. package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -1
  89. package/build/esm/objectSet/createObjectSet.js +22 -0
  90. package/build/esm/objectSet/createObjectSet.js.map +1 -1
  91. package/build/esm/observable/ObservableClient.js.map +1 -1
  92. package/build/esm/observable/internal/ObservableClientImpl.js +1 -0
  93. package/build/esm/observable/internal/ObservableClientImpl.js.map +1 -1
  94. package/build/esm/observable/internal/Store.js +7 -0
  95. package/build/esm/observable/internal/Store.js.map +1 -1
  96. package/build/esm/ontology/StandardOntologyProvider.js +3 -2
  97. package/build/esm/ontology/StandardOntologyProvider.js.map +1 -1
  98. package/build/esm/public/unstable-do-not-use.js +1 -0
  99. package/build/esm/public/unstable-do-not-use.js.map +1 -1
  100. package/build/esm/public-utils/hydrateObjectSetFromRid.js +4 -1
  101. package/build/esm/public-utils/hydrateObjectSetFromRid.js.map +1 -1
  102. package/build/esm/util/UserAgent.js +2 -2
  103. package/build/esm/util/UserAgent.js.map +1 -1
  104. package/build/esm/util/deepFreeze.js +26 -0
  105. package/build/esm/util/deepFreeze.js.map +1 -0
  106. package/build/types/Client.d.ts +1 -1
  107. package/build/types/MinimalClientContext.d.ts +1 -0
  108. package/build/types/MinimalClientContext.d.ts.map +1 -1
  109. package/build/types/createClient.d.ts +1 -0
  110. package/build/types/createClient.d.ts.map +1 -1
  111. package/build/types/index.d.ts +1 -1
  112. package/build/types/index.d.ts.map +1 -1
  113. package/build/types/observable/ObservableClient.d.ts +2 -1
  114. package/build/types/observable/ObservableClient.d.ts.map +1 -1
  115. package/build/types/observable/internal/Store.d.ts +2 -1
  116. package/build/types/observable/internal/Store.d.ts.map +1 -1
  117. package/build/types/ontology/StandardOntologyProvider.d.ts.map +1 -1
  118. package/build/types/public/unstable-do-not-use.d.ts +1 -0
  119. package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
  120. package/build/types/util/deepFreeze.d.ts +1 -0
  121. package/build/types/util/deepFreeze.d.ts.map +1 -0
  122. package/package.json +10 -10
  123. package/build/cjs/chunk-YGJRXE4F.cjs.map +0 -1
  124. package/build/cjs/chunk-Z6X7WQDP.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StandardOntologyProvider.js","names":["createAsyncClientCache","loadActionMetadata","loadFullObjectMetadata","loadInterfaceMetadata","loadQueryMetadata","InterfaceDefinitions","createStandardOntologyProviderFactory","client","makeGetter","fn","cache","key","apiName","get","ret","getObjectDefinition","objectDef","interfaceDefs","Object","fromEntries","Promise","all","implements","map","i","getInterfaceDefinition","def","handler","undefined","fullObjectDef","getActionDefinition","r","getQueryDefinition","queryCache","version"],"sources":["StandardOntologyProvider.ts"],"sourcesContent":["/*\n * Copyright 2024 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 ActionMetadata,\n InterfaceMetadata,\n ObjectOrInterfaceDefinition,\n QueryMetadata,\n} from \"@osdk/api\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\nimport { createAsyncClientCache } from \"../object/Cache.js\";\nimport { loadActionMetadata } from \"./loadActionMetadata.js\";\nimport { loadFullObjectMetadata } from \"./loadFullObjectMetadata.js\";\nimport { loadInterfaceMetadata } from \"./loadInterfaceMetadata.js\";\nimport { loadQueryMetadata } from \"./loadQueryMetadata.js\";\nimport {\n type FetchedObjectTypeDefinition,\n InterfaceDefinitions,\n type OntologyProviderFactory,\n} from \"./OntologyProvider.js\";\n\nexport interface OntologyCachingOptions {\n}\n\nexport const createStandardOntologyProviderFactory: (\n opts: OntologyCachingOptions,\n) => OntologyProviderFactory = (client) => {\n return (client) => {\n async function loadObject(\n client: MinimalClient,\n key: string,\n ): Promise<FetchedObjectTypeDefinition> {\n const objectDef = await loadFullObjectMetadata(client, key);\n\n // ensure we have all of the interfaces loaded\n const interfaceDefs = Object.fromEntries<\n { def: InterfaceMetadata; handler: undefined }\n >(\n (await Promise.all<InterfaceMetadata>(\n objectDef.implements?.map((i) => ret.getInterfaceDefinition(i)) ?? [],\n )).map(i => [i.apiName, { def: i, handler: undefined }]),\n );\n\n const fullObjectDef = {\n ...objectDef,\n [InterfaceDefinitions]: interfaceDefs,\n };\n\n return fullObjectDef;\n }\n\n async function loadInterface(\n client: MinimalClient,\n key: string,\n ) {\n return loadInterfaceMetadata(client, key);\n }\n\n async function loadQuery(\n client: MinimalClient,\n key: string,\n ) {\n return loadQueryMetadata(client, key);\n }\n\n async function loadAction(\n client: MinimalClient,\n key: string,\n ) {\n const r = await loadActionMetadata(client, key);\n return r;\n }\n\n function makeGetter<\n N extends\n | ObjectOrInterfaceDefinition\n | QueryMetadata\n | ActionMetadata,\n >(\n fn: (\n client: MinimalClient,\n key: string,\n skipCache?: boolean,\n ) => Promise<N>,\n ) {\n const cache = createAsyncClientCache<string, N>((client, key) =>\n fn(client, key, false)\n );\n return async (apiName: string) => {\n return await cache.get(client, apiName);\n };\n }\n\n function makeQueryGetter(\n client: MinimalClient,\n fn: (\n client: MinimalClient,\n key: string,\n skipCache?: boolean,\n ) => Promise<QueryMetadata>,\n ) {\n const queryCache = createAsyncClientCache<string, QueryMetadata>(\n (client, key) => {\n return fn(client, key);\n },\n );\n return async (apiName: string, version?: string) => {\n const key = version ? `${apiName}:${version}` : apiName;\n return await queryCache.get(client, key);\n };\n }\n\n const ret = {\n getObjectDefinition: makeGetter(loadObject),\n getInterfaceDefinition: makeGetter(loadInterface),\n getActionDefinition: makeGetter(loadAction),\n getQueryDefinition: makeQueryGetter(client, loadQuery),\n };\n return ret;\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA,SAASA,sBAAsB,QAAQ,oBAAoB;AAC3D,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,sBAAsB,QAAQ,6BAA6B;AACpE,SAASC,qBAAqB,QAAQ,4BAA4B;AAClE,SAASC,iBAAiB,QAAQ,wBAAwB;AAC1D,SAEEC,oBAAoB,QAEf,uBAAuB;AAK9B,OAAO,MAAMC,qCAEe,GAAGA,CAAA,KAAY;EACzC,OAAQC,MAAM,IAAK;IA8CjB,SAASC,UAAUA,CAMjBC,EAIe,EACf;MACA,MAAMC,KAAK,GAAGV,sBAAsB,CAAY,CAACO,MAAM,EAAEI,GAAG,KAC1DF,EAAE,CAACF,MAAM,EAAEI,GAAG,EAAE,KAAK,CACvB,CAAC;MACD,OAAO,MAAOC,OAAe,IAAK;QAChC,OAAO,MAAMF,KAAK,CAACG,GAAG,CAACN,MAAM,EAAEK,OAAO,CAAC;MACzC,CAAC;IACH;IAqBA,MAAME,GAAG,GAAG;MACVC,mBAAmB,EAAEP,UAAU,CArFjC,gBACED,MAAqB,EACrBI,GAAW,EAC2B;QACtC,MAAMK,SAAS,GAAG,MAAMd,sBAAsB,CAACK,MAAM,EAAEI,GAAG,CAAC;;QAE3D;QACA,MAAMM,aAAa,GAAGC,MAAM,CAACC,WAAW,CAGtC,CAAC,MAAMC,OAAO,CAACC,GAAG,CAChBL,SAAS,CAACM,UAAU,EAAEC,GAAG,CAAEC,CAAC,IAAKV,GAAG,CAACW,sBAAsB,CAACD,CAAC,CAAC,CAAC,IAAI,EACrE,CAAC,EAAED,GAAG,CAACC,CAAC,IAAI,CAACA,CAAC,CAACZ,OAAO,EAAE;UAAEc,GAAG,EAAEF,CAAC;UAAEG,OAAO,EAAEC;QAAU,CAAC,CAAC,CACzD,CAAC;QAED,MAAMC,aAAa,GAAG;UACpB,GAAGb,SAAS;UACZ,CAACX,oBAAoB,GAAGY;QAC1B,CAAC;QAED,OAAOY,aAAa;MACtB,CAgE4C,CAAC;MAC3CJ,sBAAsB,EAAEjB,UAAU,CA/DpC,gBACED,MAAqB,EACrBI,GAAW,EACX;QACA,OAAOR,qBAAqB,CAACI,MAAM,EAAEI,GAAG,CAAC;MAC3C,CA0DkD,CAAC;MACjDmB,mBAAmB,EAAEtB,UAAU,CAlDjC,gBACED,MAAqB,EACrBI,GAAW,EACX;QACA,MAAMoB,CAAC,GAAG,MAAM9B,kBAAkB,CAACM,MAAM,EAAEI,GAAG,CAAC;QAC/C,OAAOoB,CAAC;MACV,CA4C4C,CAAC;MAC3CC,kBAAkB,EAvBpB,UACEzB,MAAqB,EACrBE,EAI2B,EAC3B;QACA,MAAMwB,UAAU,GAAGjC,sBAAsB,CACvC,CAACO,MAAM,EAAEI,GAAG,KAAK;UACf,OAAOF,EAAE,CAACF,MAAM,EAAEI,GAAG,CAAC;QACxB,CACF,CAAC;QACD,OAAO,OAAOC,OAAe,EAAEsB,OAAgB,KAAK;UAClD,MAAMvB,GAAG,GAAGuB,OAAO,GAAG,GAAGtB,OAAO,IAAIsB,OAAO,EAAE,GAAGtB,OAAO;UACvD,OAAO,MAAMqB,UAAU,CAACpB,GAAG,CAACN,MAAM,EAAEI,GAAG,CAAC;QAC1C,CAAC;MACH,CAAC,CAMqCJ,MAAM,EA1D5C,gBACEA,MAAqB,EACrBI,GAAW,EACX;QACA,OAAOP,iBAAiB,CAACG,MAAM,EAAEI,GAAG,CAAC;MACvC,CAqDuD;IACvD,CAAC;IACD,OAAOG,GAAG;EACZ,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"StandardOntologyProvider.js","names":["createAsyncClientCache","deepFreeze","loadActionMetadata","loadFullObjectMetadata","loadInterfaceMetadata","loadQueryMetadata","InterfaceDefinitions","createStandardOntologyProviderFactory","client","makeGetter","fn","cache","key","apiName","get","ret","getObjectDefinition","objectDef","interfaceDefs","Object","fromEntries","Promise","all","implements","map","i","getInterfaceDefinition","def","handler","undefined","fullObjectDef","getActionDefinition","r","getQueryDefinition","queryCache","version"],"sources":["StandardOntologyProvider.ts"],"sourcesContent":["/*\n * Copyright 2024 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 ActionMetadata,\n InterfaceMetadata,\n ObjectOrInterfaceDefinition,\n QueryMetadata,\n} from \"@osdk/api\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\nimport { createAsyncClientCache } from \"../object/Cache.js\";\nimport { deepFreeze } from \"../util/deepFreeze.js\";\nimport { loadActionMetadata } from \"./loadActionMetadata.js\";\nimport { loadFullObjectMetadata } from \"./loadFullObjectMetadata.js\";\nimport { loadInterfaceMetadata } from \"./loadInterfaceMetadata.js\";\nimport { loadQueryMetadata } from \"./loadQueryMetadata.js\";\nimport {\n type FetchedObjectTypeDefinition,\n InterfaceDefinitions,\n type OntologyProviderFactory,\n} from \"./OntologyProvider.js\";\n\nexport interface OntologyCachingOptions {\n}\n\nexport const createStandardOntologyProviderFactory: (\n opts: OntologyCachingOptions,\n) => OntologyProviderFactory = (client) => {\n return (client) => {\n async function loadObject(\n client: MinimalClient,\n key: string,\n ): Promise<FetchedObjectTypeDefinition> {\n const objectDef = await loadFullObjectMetadata(client, key);\n\n // ensure we have all of the interfaces loaded\n const interfaceDefs = Object.fromEntries<\n { def: InterfaceMetadata; handler: undefined }\n >(\n (await Promise.all<InterfaceMetadata>(\n objectDef.implements?.map((i) => ret.getInterfaceDefinition(i)) ?? [],\n )).map(i => [i.apiName, { def: i, handler: undefined }]),\n );\n\n const fullObjectDef = {\n ...objectDef,\n [InterfaceDefinitions]: interfaceDefs,\n };\n\n return deepFreeze(fullObjectDef);\n }\n\n async function loadInterface(\n client: MinimalClient,\n key: string,\n ) {\n return deepFreeze(await loadInterfaceMetadata(client, key));\n }\n\n async function loadQuery(\n client: MinimalClient,\n key: string,\n ) {\n return loadQueryMetadata(client, key);\n }\n\n async function loadAction(\n client: MinimalClient,\n key: string,\n ) {\n const r = await loadActionMetadata(client, key);\n return r;\n }\n\n function makeGetter<\n N extends\n | ObjectOrInterfaceDefinition\n | QueryMetadata\n | ActionMetadata,\n >(\n fn: (\n client: MinimalClient,\n key: string,\n skipCache?: boolean,\n ) => Promise<N>,\n ) {\n const cache = createAsyncClientCache<string, N>((client, key) =>\n fn(client, key, false)\n );\n return async (apiName: string) => {\n return await cache.get(client, apiName);\n };\n }\n\n function makeQueryGetter(\n client: MinimalClient,\n fn: (\n client: MinimalClient,\n key: string,\n skipCache?: boolean,\n ) => Promise<QueryMetadata>,\n ) {\n const queryCache = createAsyncClientCache<string, QueryMetadata>(\n (client, key) => {\n return fn(client, key);\n },\n );\n return async (apiName: string, version?: string) => {\n const key = version ? `${apiName}:${version}` : apiName;\n return await queryCache.get(client, key);\n };\n }\n\n const ret = {\n getObjectDefinition: makeGetter(loadObject),\n getInterfaceDefinition: makeGetter(loadInterface),\n getActionDefinition: makeGetter(loadAction),\n getQueryDefinition: makeQueryGetter(client, loadQuery),\n };\n return ret;\n };\n};\n"],"mappings":"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","ignoreList":[]}
@@ -20,4 +20,5 @@ export { augment } from "../object/fetchPage.js";
20
20
 
21
21
  export { createObservableClient } from "../observable/ObservableClient.js";
22
22
  export { getMetaTagContent, getOsdkConfig } from "../public-utils/osdkConfig.js";
23
+ export { createClientWithTransaction } from "../createClient.js";
23
24
  //# sourceMappingURL=unstable-do-not-use.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"unstable-do-not-use.js","names":["augment","createObservableClient","getMetaTagContent","getOsdkConfig"],"sources":["unstable-do-not-use.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 { augment } from \"../object/fetchPage.js\";\n\n// THIS IS NOT THE FINAL NAME DO NOT SHIP LIKE THIS\nexport type { ActionSignatureFromDef } from \"../actions/applyAction.js\";\nexport { createObservableClient } from \"../observable/ObservableClient.js\";\nexport type {\n ObservableClient,\n ObserveObjectArgs,\n ObserveObjectsArgs,\n Observer,\n Unsubscribable,\n} from \"../observable/ObservableClient.js\";\nexport type { OsdkConfig } from \"../public-utils/osdkConfig.js\";\nexport {\n getMetaTagContent,\n getOsdkConfig,\n} from \"../public-utils/osdkConfig.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,wBAAwB;;AAEhD;;AAEA,SAASC,sBAAsB,QAAQ,mCAAmC;AAS1E,SACEC,iBAAiB,EACjBC,aAAa,QACR,+BAA+B","ignoreList":[]}
1
+ {"version":3,"file":"unstable-do-not-use.js","names":["augment","createObservableClient","getMetaTagContent","getOsdkConfig","createClientWithTransaction"],"sources":["unstable-do-not-use.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 { augment } from \"../object/fetchPage.js\";\n\n// THIS IS NOT THE FINAL NAME DO NOT SHIP LIKE THIS\nexport type { ActionSignatureFromDef } from \"../actions/applyAction.js\";\nexport { createObservableClient } from \"../observable/ObservableClient.js\";\nexport type {\n ObservableClient,\n ObserveObjectArgs,\n ObserveObjectsArgs,\n Observer,\n Unsubscribable,\n} from \"../observable/ObservableClient.js\";\nexport type { OsdkConfig } from \"../public-utils/osdkConfig.js\";\nexport {\n getMetaTagContent,\n getOsdkConfig,\n} from \"../public-utils/osdkConfig.js\";\n\nexport { createClientWithTransaction } from \"../createClient.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,wBAAwB;;AAEhD;;AAEA,SAASC,sBAAsB,QAAQ,mCAAmC;AAS1E,SACEC,iBAAiB,EACjBC,aAAa,QACR,+BAA+B;AAEtC,SAASC,2BAA2B,QAAQ,oBAAoB","ignoreList":[]}
@@ -27,7 +27,10 @@ import { createObjectSet } from "../objectSet/createObjectSet.js";
27
27
  export function hydrateObjectSetFromRid(client, definition, rid) {
28
28
  return createObjectSet(definition, client[additionalContext], {
29
29
  type: "intersect",
30
- objectSets: [{
30
+ objectSets: [definition.type === "interface" ? {
31
+ type: "interfaceBase",
32
+ interfaceType: definition.apiName
33
+ } : {
31
34
  type: "base",
32
35
  objectType: definition.apiName
33
36
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"hydrateObjectSetFromRid.js","names":["additionalContext","createObjectSet","hydrateObjectSetFromRid","client","definition","rid","type","objectSets","objectType","apiName","reference"],"sources":["hydrateObjectSetFromRid.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { ObjectOrInterfaceDefinition, ObjectSet } from \"@osdk/api\";\nimport type { Client } from \"../Client.js\";\nimport { additionalContext } from \"../Client.js\";\nimport { createObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Creates an OSDK object set from an object set RID.\n * @param client - An OSDK client.\n * @param definition - An OSDK object or interface definition.\n * @param rid - The RID of an object set.\n * @returns An OSDK object set.\n */\nexport function hydrateObjectSetFromRid<T extends ObjectOrInterfaceDefinition>(\n client: Client,\n definition: T,\n rid: string,\n): ObjectSet<T> {\n return createObjectSet(\n definition,\n client[additionalContext],\n {\n type: \"intersect\",\n objectSets: [\n {\n type: \"base\",\n objectType: definition.apiName,\n },\n {\n type: \"reference\",\n reference: rid,\n },\n ],\n },\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,iBAAiB,QAAQ,cAAc;AAChD,SAASC,eAAe,QAAQ,iCAAiC;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CACrCC,MAAc,EACdC,UAAa,EACbC,GAAW,EACG;EACd,OAAOJ,eAAe,CACpBG,UAAU,EACVD,MAAM,CAACH,iBAAiB,CAAC,EACzB;IACEM,IAAI,EAAE,WAAW;IACjBC,UAAU,EAAE,CACV;MACED,IAAI,EAAE,MAAM;MACZE,UAAU,EAAEJ,UAAU,CAACK;IACzB,CAAC,EACD;MACEH,IAAI,EAAE,WAAW;MACjBI,SAAS,EAAEL;IACb,CAAC;EAEL,CACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"file":"hydrateObjectSetFromRid.js","names":["additionalContext","createObjectSet","hydrateObjectSetFromRid","client","definition","rid","type","objectSets","interfaceType","apiName","objectType","reference"],"sources":["hydrateObjectSetFromRid.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { ObjectOrInterfaceDefinition, ObjectSet } from \"@osdk/api\";\nimport type { Client } from \"../Client.js\";\nimport { additionalContext } from \"../Client.js\";\nimport { createObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Creates an OSDK object set from an object set RID.\n * @param client - An OSDK client.\n * @param definition - An OSDK object or interface definition.\n * @param rid - The RID of an object set.\n * @returns An OSDK object set.\n */\nexport function hydrateObjectSetFromRid<T extends ObjectOrInterfaceDefinition>(\n client: Client,\n definition: T,\n rid: string,\n): ObjectSet<T> {\n return createObjectSet(\n definition,\n client[additionalContext],\n {\n type: \"intersect\",\n objectSets: [\n definition.type === \"interface\"\n ? { type: \"interfaceBase\", interfaceType: definition.apiName }\n : {\n type: \"base\",\n objectType: definition.apiName,\n },\n {\n type: \"reference\",\n reference: rid,\n },\n ],\n },\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,iBAAiB,QAAQ,cAAc;AAChD,SAASC,eAAe,QAAQ,iCAAiC;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CACrCC,MAAc,EACdC,UAAa,EACbC,GAAW,EACG;EACd,OAAOJ,eAAe,CACpBG,UAAU,EACVD,MAAM,CAACH,iBAAiB,CAAC,EACzB;IACEM,IAAI,EAAE,WAAW;IACjBC,UAAU,EAAE,CACVH,UAAU,CAACE,IAAI,KAAK,WAAW,GAC3B;MAAEA,IAAI,EAAE,eAAe;MAAEE,aAAa,EAAEJ,UAAU,CAACK;IAAQ,CAAC,GAC5D;MACAH,IAAI,EAAE,MAAM;MACZI,UAAU,EAAEN,UAAU,CAACK;IACzB,CAAC,EACH;MACEH,IAAI,EAAE,WAAW;MACjBK,SAAS,EAAEN;IACb,CAAC;EAEL,CACF,CAAC;AACH","ignoreList":[]}
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.4.0-beta.1"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.4.0-beta.1"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.4.0-beta.11"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.4.0-beta.11"}`;
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 =\n `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,+BAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GACxC,0CAAuD","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 =\n `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,gCAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GACxC,2CAAuD","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export function deepFreeze(obj) {
18
+ Object.getOwnPropertyNames(obj).forEach(name => {
19
+ const prop = obj[name];
20
+ if (typeof prop === "object" && prop != null && !Object.isFrozen(prop)) {
21
+ deepFreeze(prop);
22
+ }
23
+ });
24
+ return Object.freeze(obj);
25
+ }
26
+ //# sourceMappingURL=deepFreeze.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepFreeze.js","names":["deepFreeze","obj","Object","getOwnPropertyNames","forEach","name","prop","isFrozen","freeze"],"sources":["deepFreeze.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 function deepFreeze<T>(obj: T): T {\n Object.getOwnPropertyNames(obj).forEach(name => {\n const prop = (obj as any)[name];\n if (typeof prop === \"object\" && prop != null && !Object.isFrozen(prop)) {\n deepFreeze(prop);\n }\n });\n return Object.freeze(obj);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAASA,UAAUA,CAAIC,GAAM,EAAK;EACvCC,MAAM,CAACC,mBAAmB,CAACF,GAAG,CAAC,CAACG,OAAO,CAACC,IAAI,IAAI;IAC9C,MAAMC,IAAI,GAAIL,GAAG,CAASI,IAAI,CAAC;IAC/B,IAAI,OAAOC,IAAI,KAAK,QAAQ,IAAIA,IAAI,IAAI,IAAI,IAAI,CAACJ,MAAM,CAACK,QAAQ,CAACD,IAAI,CAAC,EAAE;MACtEN,UAAU,CAACM,IAAI,CAAC;IAClB;EACF,CAAC,CAAC;EACF,OAAOJ,MAAM,CAACM,MAAM,CAACP,GAAG,CAAC;AAC3B","ignoreList":[]}
@@ -17,7 +17,7 @@ var __export = (target, all) => {
17
17
  __defProp(target, name, { get: all[name], enumerable: true });
18
18
  };
19
19
 
20
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
20
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
21
21
  var Action_exports = {};
22
22
  __export(Action_exports, {
23
23
  apply: () => apply,
@@ -56,7 +56,11 @@ async function apiFetch(clientCtx, method, endpointPath, data, queryArguments, h
56
56
  headersInit.set("Content-Type", requestMediaType ?? "application/json");
57
57
  headersInit.set("Accept", responseMediaType ?? "application/json");
58
58
  Object.entries(headers || {}).forEach(([key, value]) => {
59
- if (value != null) {
59
+ if (key === "Content-Type" && typeof value === "string") {
60
+ headersInit.set("Content-Type", value);
61
+ } else if (key === "Accept" && typeof value === "string") {
62
+ headersInit.set("Accept", value);
63
+ } else if (value != null) {
60
64
  headersInit.append(key, value.toString());
61
65
  }
62
66
  });
@@ -90,7 +94,7 @@ function parseUrl(baseUrl, endpointPath) {
90
94
  return new URL(`api${endpointPath}`, baseUrl);
91
95
  }
92
96
 
93
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
97
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
94
98
  var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
95
99
  function apply($ctx, ...args) {
96
100
  return foundryPlatformFetch($ctx, _apply, ...args);
@@ -104,7 +108,7 @@ function applyBatch($ctx, ...args) {
104
108
  return foundryPlatformFetch($ctx, _applyBatch, ...args);
105
109
  }
106
110
 
107
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
111
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
108
112
  var ActionTypeV2_exports = {};
109
113
  __export(ActionTypeV2_exports, {
110
114
  get: () => get,
@@ -124,7 +128,7 @@ function getByRid($ctx, ...args) {
124
128
  return foundryPlatformFetch($ctx, _getByRid, ...args);
125
129
  }
126
130
 
127
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
131
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
128
132
  var Attachment_exports = {};
129
133
  __export(Attachment_exports, {
130
134
  get: () => get2,
@@ -149,7 +153,7 @@ function get2($ctx, ...args) {
149
153
  return foundryPlatformFetch($ctx, _get2, ...args);
150
154
  }
151
155
 
152
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
156
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
153
157
  var MediaReferenceProperty_exports = {};
154
158
  __export(MediaReferenceProperty_exports, {
155
159
  getMediaContent: () => getMediaContent,
@@ -174,7 +178,7 @@ function uploadMedia($ctx, ...args) {
174
178
  return foundryPlatformFetch($ctx, _uploadMedia, ...args);
175
179
  }
176
180
 
177
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
181
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
178
182
  var ObjectTypeV2_exports = {};
179
183
  __export(ObjectTypeV2_exports, {
180
184
  get: () => get3,
@@ -204,12 +208,14 @@ function getOutgoingLinkType($ctx, ...args) {
204
208
  return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
205
209
  }
206
210
 
207
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
211
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
208
212
  var OntologyInterface_exports = {};
209
213
  __export(OntologyInterface_exports, {
210
214
  aggregate: () => aggregate,
211
215
  get: () => get4,
216
+ getOutgoingInterfaceLinkType: () => getOutgoingInterfaceLinkType,
212
217
  list: () => list3,
218
+ listOutgoingInterfaceLinkTypes: () => listOutgoingInterfaceLinkTypes,
213
219
  search: () => search
214
220
  });
215
221
  var _list3 = [0, "/v2/ontologies/{0}/interfaceTypes", 2];
@@ -228,8 +234,16 @@ var _aggregate = [1, "/v2/ontologies/{0}/interfaces/{1}/aggregate", 3];
228
234
  function aggregate($ctx, ...args) {
229
235
  return foundryPlatformFetch($ctx, _aggregate, ...args);
230
236
  }
237
+ var _listOutgoingInterfaceLinkTypes = [0, "/v2/ontologies/{0}/interfaceTypes/{1}/outgoingLinkTypes", 2];
238
+ function listOutgoingInterfaceLinkTypes($ctx, ...args) {
239
+ return foundryPlatformFetch($ctx, _listOutgoingInterfaceLinkTypes, ...args);
240
+ }
241
+ var _getOutgoingInterfaceLinkType = [0, "/v2/ontologies/{0}/interfaceTypes/{1}/outgoingLinkTypes/{2}", 2];
242
+ function getOutgoingInterfaceLinkType($ctx, ...args) {
243
+ return foundryPlatformFetch($ctx, _getOutgoingInterfaceLinkType, ...args);
244
+ }
231
245
 
232
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
246
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
233
247
  var OntologyObjectSet_exports = {};
234
248
  __export(OntologyObjectSet_exports, {
235
249
  aggregate: () => aggregate2,
@@ -264,7 +278,7 @@ function aggregate2($ctx, ...args) {
264
278
  return foundryPlatformFetch($ctx, _aggregate2, ...args);
265
279
  }
266
280
 
267
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
281
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
268
282
  var Query_exports = {};
269
283
  __export(Query_exports, {
270
284
  execute: () => execute
@@ -274,7 +288,7 @@ function execute($ctx, ...args) {
274
288
  return foundryPlatformFetch($ctx, _execute, ...args);
275
289
  }
276
290
 
277
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
291
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
278
292
  var QueryType_exports = {};
279
293
  __export(QueryType_exports, {
280
294
  get: () => get6,
@@ -289,7 +303,7 @@ function get6($ctx, ...args) {
289
303
  return foundryPlatformFetch($ctx, _get6, ...args);
290
304
  }
291
305
 
292
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
306
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
293
307
  var TimeSeriesPropertyV2_exports = {};
294
308
  __export(TimeSeriesPropertyV2_exports, {
295
309
  getFirstPoint: () => getFirstPoint,
@@ -309,7 +323,7 @@ function streamPoints($ctx, ...args) {
309
323
  return foundryPlatformFetch($ctx, _streamPoints, ...args);
310
324
  }
311
325
 
312
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
326
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.25.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
313
327
  var TimeSeriesValueBankProperty_exports = {};
314
328
  __export(TimeSeriesValueBankProperty_exports, {
315
329
  getLatestValue: () => getLatestValue,
@@ -1141,7 +1155,8 @@ function modernToLegacyGroupByClause(groupByClause) {
1141
1155
  type: "exact",
1142
1156
  field,
1143
1157
  maxGroupCount: type.$exact?.$limit ?? void 0,
1144
- defaultValue: type.$exact.$defaultValue ?? void 0
1158
+ defaultValue: type.$exact.$defaultValue ?? void 0,
1159
+ includeNullValues: type.$exact.$includeNullValue === true ? true : void 0
1145
1160
  }];
1146
1161
  } else if ("$fixedWidth" in type) {
1147
1162
  return [{
@@ -1699,6 +1714,25 @@ function createObjectSet(objectType, clientCtx, objectSet = resolveBaseObjectSet
1699
1714
  objectSets: [objectSet, ...objectSets.map((os) => objectSetDefinitions.get(os))]
1700
1715
  });
1701
1716
  },
1717
+ nearestNeighbors: (query, numNeighbors, property) => {
1718
+ const nearestNeighborsQuery = isTextQuery(query) ? {
1719
+ "type": "text",
1720
+ "value": query
1721
+ } : {
1722
+ "type": "vector",
1723
+ "value": query
1724
+ };
1725
+ return clientCtx.objectSetFactory(objectType, clientCtx, {
1726
+ type: "nearestNeighbors",
1727
+ objectSet,
1728
+ propertyIdentifier: {
1729
+ type: "property",
1730
+ apiName: property
1731
+ },
1732
+ numNeighbors,
1733
+ query: nearestNeighborsQuery
1734
+ });
1735
+ },
1702
1736
  asyncIter: async function* (args) {
1703
1737
  let $nextPageToken = void 0;
1704
1738
  do {
@@ -1775,6 +1809,9 @@ async function createWithPk(clientCtx, objectType, objectSet, primaryKey) {
1775
1809
  };
1776
1810
  return withPk;
1777
1811
  }
1812
+ function isTextQuery(query) {
1813
+ return typeof query === "string";
1814
+ }
1778
1815
 
1779
1816
  exports.ActionTypeV2_exports = ActionTypeV2_exports;
1780
1817
  exports.Action_exports = Action_exports;
@@ -1804,5 +1841,5 @@ exports.hydrateAttachmentFromRidInternal = hydrateAttachmentFromRidInternal;
1804
1841
  exports.isObjectSet = isObjectSet;
1805
1842
  exports.isWireObjectSet = isWireObjectSet;
1806
1843
  exports.symbolClientContext = symbolClientContext;
1807
- //# sourceMappingURL=chunk-YGJRXE4F.cjs.map
1808
- //# sourceMappingURL=chunk-YGJRXE4F.cjs.map
1844
+ //# sourceMappingURL=chunk-E5BQ7757.cjs.map
1845
+ //# sourceMappingURL=chunk-E5BQ7757.cjs.map