@osdk/client 2.95.0 → 2.96.0-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb

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 (31) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/browser/Client.js +1 -1
  3. package/build/browser/Client.js.map +1 -1
  4. package/build/browser/util/UserAgent.js +2 -2
  5. package/build/browser/util/UserAgent.js.map +1 -1
  6. package/build/cjs/{applyStreamingQuery-KCJOS7TV.cjs → applyStreamingQuery-EKQJ2HOP.cjs} +8 -8
  7. package/build/cjs/{applyStreamingQuery-KCJOS7TV.cjs.map → applyStreamingQuery-EKQJ2HOP.cjs.map} +1 -1
  8. package/build/cjs/{chunk-JBCRSB2X.cjs → chunk-FHJSKIMZ.cjs} +58 -58
  9. package/build/cjs/chunk-FHJSKIMZ.cjs.map +1 -0
  10. package/build/cjs/{chunk-QDEI35QO.cjs → chunk-HVITOOBR.cjs} +16 -16
  11. package/build/cjs/{chunk-QDEI35QO.cjs.map → chunk-HVITOOBR.cjs.map} +1 -1
  12. package/build/cjs/{chunk-35RDHB5T.cjs → chunk-JV6FM4K2.cjs} +8 -8
  13. package/build/cjs/{chunk-35RDHB5T.cjs.map → chunk-JV6FM4K2.cjs.map} +1 -1
  14. package/build/cjs/{chunk-B2NX6A3J.cjs → chunk-OQXF4VWE.cjs} +2 -2
  15. package/build/cjs/{chunk-B2NX6A3J.cjs.map → chunk-OQXF4VWE.cjs.map} +1 -1
  16. package/build/cjs/{chunk-EV74MG67.cjs → chunk-RWQOEVL6.cjs} +85 -85
  17. package/build/cjs/{chunk-EV74MG67.cjs.map → chunk-RWQOEVL6.cjs.map} +1 -1
  18. package/build/cjs/{chunk-ROZG5FTY.cjs → chunk-WT3PVLWG.cjs} +5 -5
  19. package/build/cjs/{chunk-ROZG5FTY.cjs.map → chunk-WT3PVLWG.cjs.map} +1 -1
  20. package/build/cjs/index.cjs +12 -12
  21. package/build/cjs/public/experimental.cjs +10 -10
  22. package/build/cjs/public/internal.cjs +10 -10
  23. package/build/cjs/public/observable.cjs +6 -6
  24. package/build/cjs/public/unstable-do-not-use.cjs +17 -17
  25. package/build/esm/Client.js +1 -1
  26. package/build/esm/Client.js.map +1 -1
  27. package/build/esm/util/UserAgent.js +2 -2
  28. package/build/esm/util/UserAgent.js.map +1 -1
  29. package/build/types/Client.d.ts +1 -1
  30. package/package.json +7 -7
  31. package/build/cjs/chunk-JBCRSB2X.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @osdk/client
2
2
 
3
+ ## 2.96.0-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb
4
+
5
+ ### Patch Changes
6
+
7
+ - @osdk/api@2.96.0-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb
8
+ - @osdk/client.unstable@2.96.0-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb
9
+ - @osdk/generator-converters@2.96.0-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb
10
+ - @osdk/shared.test@2.65.1-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb
11
+
3
12
  ## 2.95.0
4
13
 
5
14
  ### Minor Changes
@@ -21,7 +21,7 @@
21
21
  export const additionalContext = Symbol("additionalContext");
22
22
 
23
23
  // BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.
24
- const MaxOsdkVersion = "2.95.0";
24
+ const MaxOsdkVersion = "2.96.0";
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 AgentDefinition,\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\n\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { AgentSignatureFromDef } from \"./agents/types.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> =\n Q extends VersionBound<infer V>\n ? SatisfiesSemver<V, MaxOsdkVersion> extends true\n ? Q\n : Q & {\n [ErrorMessage]: `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n /**\n * Returns the operation surface for the given ontology definition. The shape of the\n * returned value is dispatched on what kind of definition is passed:\n * - object type → the object set type for that ontology object (typically a generated extension of {@link ObjectSet})\n * - interface → a {@link MinimalObjectSet} for the interface\n * - action → a callable with `applyAction` / `batchApplyAction`\n * - query → a callable with `executeFunction`\n * - experiment → the unstable feature surface for that experiment\n *\n * @param o - The object type definition to wrap.\n * @example\n * ```ts\n * const employees = await client(Employee).fetchPage({ $pageSize: 30 });\n * const employee = await client(Employee).fetchOne(12345);\n * ```\n * @returns an object set scoped to all objects of this type.\n */\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The interface definition to wrap.\n * @example\n * ```ts\n * const page = await client(MyInterface).fetchPage({ $pageSize: 30 });\n * ```\n * @returns a minimal object set over all objects implementing the interface.\n */\n <Q extends InterfaceDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The action definition to invoke.\n * @example\n * ```ts\n * const result = await client(createEmployee).applyAction(\n * { name: \"Jane\", department: \"Engineering\" },\n * { $returnEdits: true },\n * );\n * ```\n * @returns a callable for applying (or batch-applying) the action.\n */\n <Q extends ActionDefinition<any>>(o: Q): ActionSignatureFromDef<Q>;\n\n /**\n * @param o - The query definition to invoke.\n * @example\n * ```ts\n * const result = await client(getEmployeeCount).executeFunction({ department: \"Engineering\" });\n * ```\n * @returns a callable for executing the query function.\n */\n <Q extends QueryDefinition<any>>(o: Q): QuerySignatureFromDef<Q>;\n\n /** @beta */\n <Q extends AgentDefinition<unknown>>(o: Q): AgentSignatureFromDef<Q>;\n\n /**\n * @param experiment - The experiment marker that gates an unstable feature.\n * @example\n * ```ts\n * const employee = await client(__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid)\n * .fetchOneByRid(Employee, \"ri.phonograph2-objects.main.object.1234\");\n * ```\n * @returns the experiment-specific function surface.\n */\n <\n Q extends\n | Experiment<\"2.0.8\">\n | Experiment<\"2.1.0\">\n | Experiment<\"2.59.0\">\n | Experiment<\"2.2.0\">\n | Experiment<\"2.8.0\">\n | Experiment<\"2.19.0\">,\n >(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n /**\n * Fetches runtime metadata for the given ontology definition. The returned shape\n * is dispatched on the kind of definition passed: {@link ObjectMetadata},\n * {@link InterfaceMetadata}, {@link ActionMetadata}, or {@link QueryMetadata}.\n * @param o - The object type, interface, action, or query definition to look up.\n * @example\n * ```ts\n * const meta = await client.fetchMetadata(Employee);\n * console.log(meta.displayName, meta.description);\n * ```\n * @returns a promise resolving to the metadata for the given definition.\n */\n fetchMetadata<\n Q extends\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>,\n >(\n o: Q,\n ): Promise<\n Q extends ObjectTypeDefinition\n ? ObjectMetadata\n : Q extends InterfaceDefinition\n ? InterfaceMetadata\n : Q extends ActionDefinition<any>\n ? ActionMetadata\n : Q extends QueryDefinition<any>\n ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.95.0\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA6BA;;AAqIA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,QAAQ;AAC/B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionDefinition,\n ActionMetadata,\n CompileTimeMetadata,\n InterfaceDefinition,\n InterfaceMetadata,\n ObjectMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n VersionBound,\n} from \"@osdk/api\";\nimport type {\n AgentDefinition,\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\n\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { AgentSignatureFromDef } from \"./agents/types.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> =\n Q extends VersionBound<infer V>\n ? SatisfiesSemver<V, MaxOsdkVersion> extends true\n ? Q\n : Q & {\n [ErrorMessage]: `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n /**\n * Returns the operation surface for the given ontology definition. The shape of the\n * returned value is dispatched on what kind of definition is passed:\n * - object type → the object set type for that ontology object (typically a generated extension of {@link ObjectSet})\n * - interface → a {@link MinimalObjectSet} for the interface\n * - action → a callable with `applyAction` / `batchApplyAction`\n * - query → a callable with `executeFunction`\n * - experiment → the unstable feature surface for that experiment\n *\n * @param o - The object type definition to wrap.\n * @example\n * ```ts\n * const employees = await client(Employee).fetchPage({ $pageSize: 30 });\n * const employee = await client(Employee).fetchOne(12345);\n * ```\n * @returns an object set scoped to all objects of this type.\n */\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The interface definition to wrap.\n * @example\n * ```ts\n * const page = await client(MyInterface).fetchPage({ $pageSize: 30 });\n * ```\n * @returns a minimal object set over all objects implementing the interface.\n */\n <Q extends InterfaceDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The action definition to invoke.\n * @example\n * ```ts\n * const result = await client(createEmployee).applyAction(\n * { name: \"Jane\", department: \"Engineering\" },\n * { $returnEdits: true },\n * );\n * ```\n * @returns a callable for applying (or batch-applying) the action.\n */\n <Q extends ActionDefinition<any>>(o: Q): ActionSignatureFromDef<Q>;\n\n /**\n * @param o - The query definition to invoke.\n * @example\n * ```ts\n * const result = await client(getEmployeeCount).executeFunction({ department: \"Engineering\" });\n * ```\n * @returns a callable for executing the query function.\n */\n <Q extends QueryDefinition<any>>(o: Q): QuerySignatureFromDef<Q>;\n\n /** @beta */\n <Q extends AgentDefinition<unknown>>(o: Q): AgentSignatureFromDef<Q>;\n\n /**\n * @param experiment - The experiment marker that gates an unstable feature.\n * @example\n * ```ts\n * const employee = await client(__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid)\n * .fetchOneByRid(Employee, \"ri.phonograph2-objects.main.object.1234\");\n * ```\n * @returns the experiment-specific function surface.\n */\n <\n Q extends\n | Experiment<\"2.0.8\">\n | Experiment<\"2.1.0\">\n | Experiment<\"2.59.0\">\n | Experiment<\"2.2.0\">\n | Experiment<\"2.8.0\">\n | Experiment<\"2.19.0\">,\n >(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n /**\n * Fetches runtime metadata for the given ontology definition. The returned shape\n * is dispatched on the kind of definition passed: {@link ObjectMetadata},\n * {@link InterfaceMetadata}, {@link ActionMetadata}, or {@link QueryMetadata}.\n * @param o - The object type, interface, action, or query definition to look up.\n * @example\n * ```ts\n * const meta = await client.fetchMetadata(Employee);\n * console.log(meta.displayName, meta.description);\n * ```\n * @returns a promise resolving to the metadata for the given definition.\n */\n fetchMetadata<\n Q extends\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>,\n >(\n o: Q,\n ): Promise<\n Q extends ObjectTypeDefinition\n ? ObjectMetadata\n : Q extends InterfaceDefinition\n ? InterfaceMetadata\n : Q extends ActionDefinition<any>\n ? ActionMetadata\n : Q extends QueryDefinition<any>\n ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.96.0\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA6BA;;AAqIA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,QAAQ;AAC/B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.95.0"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.95.0"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.96.0-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.96.0-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb"}`;
19
19
  //# sourceMappingURL=UserAgent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_USER_AGENT"],"sources":["UserAgent.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\nexport const OBSERVABLE_USER_AGENT: string = `osdk-observable-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,yBAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GAAG,oCAAuD","ignoreList":[]}
1
+ {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_USER_AGENT"],"sources":["UserAgent.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\nexport const OBSERVABLE_USER_AGENT: string = `osdk-observable-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,uEAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GAAG,kFAAuD","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkQDEI35QO_cjs = require('./chunk-QDEI35QO.cjs');
4
- var chunkB2NX6A3J_cjs = require('./chunk-B2NX6A3J.cjs');
3
+ var chunkHVITOOBR_cjs = require('./chunk-HVITOOBR.cjs');
4
+ var chunkOQXF4VWE_cjs = require('./chunk-OQXF4VWE.cjs');
5
5
  var chunkB4UCZI2Z_cjs = require('./chunk-B4UCZI2Z.cjs');
6
6
  require('./chunk-Q7SFCCGT.cjs');
7
7
 
@@ -17,19 +17,19 @@ async function* applyStreamingQuery(client, query, params) {
17
17
  if (client.flushEdits != null) {
18
18
  await client.flushEdits();
19
19
  }
20
- const response = await streamingExecute(chunkB2NX6A3J_cjs.addUserAgentHeader(client, query), query.apiName, {
20
+ const response = await streamingExecute(chunkOQXF4VWE_cjs.addUserAgentHeader(client, query), query.apiName, {
21
21
  ontology: await client.ontologyRid,
22
- parameters: params ? await chunkQDEI35QO_cjs.remapQueryParams(params, client, qd.parameters) : {},
22
+ parameters: params ? await chunkHVITOOBR_cjs.remapQueryParams(params, client, qd.parameters) : {},
23
23
  version: query.isFixedVersion ? query.version : void 0,
24
24
  branch: client.branch
25
25
  }, {
26
26
  transactionId: client.transactionId,
27
27
  preview: true
28
28
  });
29
- const definitions = await chunkQDEI35QO_cjs.getRequiredDefinitions(qd.output, client);
29
+ const definitions = await chunkHVITOOBR_cjs.getRequiredDefinitions(qd.output, client);
30
30
  for await (const event of response) {
31
31
  if (event.type !== "data") continue;
32
- const remapped = await chunkQDEI35QO_cjs.remapQueryResponse(client, qd.output, event.value, definitions);
32
+ const remapped = await chunkHVITOOBR_cjs.remapQueryResponse(client, qd.output, event.value, definitions);
33
33
  if (qd.output.type === "array" && Array.isArray(remapped)) {
34
34
  for (const item of remapped) {
35
35
  yield item;
@@ -41,5 +41,5 @@ async function* applyStreamingQuery(client, query, params) {
41
41
  }
42
42
 
43
43
  exports.applyStreamingQuery = applyStreamingQuery;
44
- //# sourceMappingURL=applyStreamingQuery-KCJOS7TV.cjs.map
45
- //# sourceMappingURL=applyStreamingQuery-KCJOS7TV.cjs.map
44
+ //# sourceMappingURL=applyStreamingQuery-EKQJ2HOP.cjs.map
45
+ //# sourceMappingURL=applyStreamingQuery-EKQJ2HOP.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../node_modules/.pnpm/@osdk+foundry.functions@2.87.0/node_modules/@osdk/foundry.functions/build/esm/v2/public/Query.js","../../src/queries/applyStreamingQuery.ts"],"names":["foundryPlatformFetch","addUserAgentHeader","remapQueryParams","getRequiredDefinitions","remapQueryResponse"],"mappings":";;;;;;;;AAgFA,IAAM,oBAAoB,CAAC,CAAA,EAAG,4CAAA,EAA8C,CAAA,IAAI,mBAAmB,CAAA;AA2B5F,SAAS,gBAAA,CAAiB,SAAS,IAAA,EAAM;AAC9C,EAAA,OAAOA,sCAAA,CAAsB,IAAA,EAAM,iBAAA,EAAmB,GAAG,IAAI,CAAA;AAC/D;;;AC1FA,gBAAuB,mBAAA,CAAoB,MAAA,EAAQ,KAAA,EAAO,MAAA,EAAQ;AAChE,EAAA,MAAM,EAAA,GAAK,MAAM,MAAA,CAAO,gBAAA,CAAiB,kBAAA,CAAmB,KAAA,CAAM,OAAA,EAAS,KAAA,CAAM,cAAA,GAAiB,KAAA,CAAM,OAAA,GAAU,MAAS,CAAA;AAC3H,EAAA,IAAI,MAAA,CAAO,cAAc,IAAA,EAAM;AAC7B,IAAA,MAAM,OAAO,UAAA,EAAW;AAAA,EAC1B;AACA,EAAA,MAAM,QAAA,GAAW,MAAgB,gBAAA,CAAiBC,oCAAA,CAAmB,QAAQ,KAAK,CAAA,EAAG,MAAM,OAAA,EAAS;AAAA,IAClG,QAAA,EAAU,MAAM,MAAA,CAAO,WAAA;AAAA,IACvB,UAAA,EAAY,SAAS,MAAMC,kCAAA,CAAiB,QAAQ,MAAA,EAAQ,EAAA,CAAG,UAAU,CAAA,GAAI,EAAC;AAAA,IAC9E,OAAA,EAAS,KAAA,CAAM,cAAA,GAAiB,KAAA,CAAM,OAAA,GAAU,MAAA;AAAA,IAChD,QAAQ,MAAA,CAAO;AAAA,GACjB,EAAG;AAAA,IACD,eAAe,MAAA,CAAO,aAAA;AAAA,IACtB,OAAA,EAAS;AAAA,GACV,CAAA;AACD,EAAA,MAAM,WAAA,GAAc,MAAMC,wCAAA,CAAuB,EAAA,CAAG,QAAQ,MAAM,CAAA;AAClE,EAAA,WAAA,MAAiB,SAAS,QAAA,EAAU;AAClC,IAAA,IAAI,KAAA,CAAM,SAAS,MAAA,EAAQ;AAC3B,IAAA,MAAM,QAAA,GAAW,MAAMC,oCAAA,CAAmB,MAAA,EAAQ,GAAG,MAAA,EAAQ,KAAA,CAAM,OAAO,WAAW,CAAA;AACrF,IAAA,IAAI,GAAG,MAAA,CAAO,IAAA,KAAS,WAAW,KAAA,CAAM,OAAA,CAAQ,QAAQ,CAAA,EAAG;AACzD,MAAA,KAAA,MAAW,QAAQ,QAAA,EAAU;AAC3B,QAAA,MAAM,IAAA;AAAA,MACR;AAAA,IACF,CAAA,MAAO;AACL,MAAA,MAAM,QAAA;AAAA,IACR;AAAA,EACF;AACF","file":"applyStreamingQuery-KCJOS7TV.cjs","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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _get = [0, \"/v2/functions/queries/{0}\", 2];\n/**\n * Gets a specific query type with the given API name. By default, this returns the highest semantic\n * version of the query, excluding pre-release versions. To resolve the most recently published version\n * instead, including pre-release versions, set `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * @beta\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getByRid = [0, \"/v2/functions/queries/getByRid\", 2];\n/**\n * Gets a specific query type with the given RID. By default, this gets the latest version of the query.\n *\n * @beta\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/getByRid\n */\nexport function getByRid($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRid, ...args);\n}\nconst _getByRidBatch = [1, \"/v2/functions/queries/getByRidBatch\", 3];\n/**\n * Gets a list of query types by RID in bulk. By default, this gets the latest version of each query.\n *\n * Queries are filtered from the response if they don't exist or the requesting token lacks the required\n * permissions.\n *\n * The maximum batch size for this endpoint is 100.\n *\n * @beta\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/getByRidBatch\n */\nexport function getByRidBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRidBatch, ...args);\n}\nconst _execute = [1, \"/v2/functions/queries/{0}/execute\", 7];\n/**\n * Executes a Query and returns the result as a single JSON object. By default, this executes\n * the highest semantic version of the query, excluding pre-release versions. To resolve the\n * most recently published version instead, including pre-release versions, set\n * `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * This endpoint executes global (non-ontology-scoped) query functions. For ontology-scoped\n * functions, use the equivalent endpoint under\n * `/v2/ontologies/{ontology}/queries/{queryApiName}/execute`. For streaming or incremental\n * result delivery, use `streamingExecute`.\n *\n * @beta\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\nconst _streamingExecute = [1, \"/v2/functions/queries/{0}/streamingExecute\", 7,, \"text/event-stream\"];\n/**\n * Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.\n * By default, this executes the highest semantic version of the query, excluding pre-release\n * versions. To resolve the most recently published version instead, including pre-release\n * versions, set `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded\n * `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more\n * result values, or an error (`type: error`) emitted before stream termination if execution\n * fails. Non-streaming functions emit a single data event containing the entire result;\n * streaming functions emit a data event per batch as results become available.\n *\n * Per the Server-Sent Events specification, each event is terminated by a blank line:\n *\n * ```\n * data: {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-001\",\"price\":29.99}]}\n *\n * data: {\"type\":\"error\",\"errorCode\":\"INVALID_ARGUMENT\",\"errorName\":\"QueryRuntimeError\",\"errorInstanceId\":\"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c\",\"errorDescription\":\"Division by zero\",\"parameters\":{}}\n *\n * ```\n *\n * @beta\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/streamingExecute\n */\nexport function streamingExecute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamingExecute, ...args);\n}\nconst _streamingExecuteEvents = [1, \"/v2/functions/queries/{0}/streamingExecuteEvents\", 7,, \"text/event-stream\"];\n/**\n * Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.\n * By default, this executes the highest semantic version of the query, excluding pre-release\n * versions. To resolve the most recently published version instead, including pre-release\n * versions, set `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded\n * `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more\n * result values, or an error (`type: error`) emitted before stream termination if execution\n * fails. Non-streaming functions emit a single data event containing the entire result;\n * streaming functions emit a data event per batch as results become available.\n *\n * Per the Server-Sent Events specification, each event is terminated by a blank line:\n *\n * ```\n * data: {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-001\",\"price\":29.99}]}\n *\n * data: {\"type\":\"error\",\"errorCode\":\"INVALID_ARGUMENT\",\"errorName\":\"QueryRuntimeError\",\"errorInstanceId\":\"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c\",\"errorDescription\":\"Division by zero\",\"parameters\":{}}\n *\n * ```\n *\n * @alpha\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/streamingExecuteEvents\n */\nexport function streamingExecuteEvents($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamingExecuteEvents, ...args);\n}\nconst _executeAsync = [1, \"/v2/functions/queries/{0}/executeAsync\", 7];\n/**\n * Submits a Query for asynchronous execution. Returns either an execution ID\n * for polling, or the complete result if execution finished immediately.\n *\n * Use the Execution resource's getResult endpoint to poll for the\n * result of a submitted execution.\n *\n * Supports maps represented as arrays of key/value entries, including nested maps.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/executeAsync\n */\nexport function executeAsync($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeAsync, ...args);\n}","/*\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 * as Functions from \"@osdk/foundry.functions/Query\";\nimport { addUserAgentHeader } from \"../util/addUserAgentHeader.js\";\nimport { getRequiredDefinitions, remapQueryParams, remapQueryResponse } from \"./applyQuery.js\";\nexport async function* applyStreamingQuery(client, query, params) {\n const qd = await client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : undefined);\n if (client.flushEdits != null) {\n await client.flushEdits();\n }\n const response = await Functions.streamingExecute(addUserAgentHeader(client, query), query.apiName, {\n ontology: await client.ontologyRid,\n parameters: params ? await remapQueryParams(params, client, qd.parameters) : {},\n version: query.isFixedVersion ? query.version : undefined,\n branch: client.branch\n }, {\n transactionId: client.transactionId,\n preview: true\n });\n const definitions = await getRequiredDefinitions(qd.output, client);\n for await (const event of response) {\n if (event.type !== \"data\") continue;\n const remapped = await remapQueryResponse(client, qd.output, event.value, definitions);\n if (qd.output.type === \"array\" && Array.isArray(remapped)) {\n for (const item of remapped) {\n yield item;\n }\n } else {\n yield remapped;\n }\n }\n}"]}
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/@osdk+foundry.functions@2.87.0/node_modules/@osdk/foundry.functions/build/esm/v2/public/Query.js","../../src/queries/applyStreamingQuery.ts"],"names":["foundryPlatformFetch","addUserAgentHeader","remapQueryParams","getRequiredDefinitions","remapQueryResponse"],"mappings":";;;;;;;;AAgFA,IAAM,oBAAoB,CAAC,CAAA,EAAG,4CAAA,EAA8C,CAAA,IAAI,mBAAmB,CAAA;AA2B5F,SAAS,gBAAA,CAAiB,SAAS,IAAA,EAAM;AAC9C,EAAA,OAAOA,sCAAA,CAAsB,IAAA,EAAM,iBAAA,EAAmB,GAAG,IAAI,CAAA;AAC/D;;;AC1FA,gBAAuB,mBAAA,CAAoB,MAAA,EAAQ,KAAA,EAAO,MAAA,EAAQ;AAChE,EAAA,MAAM,EAAA,GAAK,MAAM,MAAA,CAAO,gBAAA,CAAiB,kBAAA,CAAmB,KAAA,CAAM,OAAA,EAAS,KAAA,CAAM,cAAA,GAAiB,KAAA,CAAM,OAAA,GAAU,MAAS,CAAA;AAC3H,EAAA,IAAI,MAAA,CAAO,cAAc,IAAA,EAAM;AAC7B,IAAA,MAAM,OAAO,UAAA,EAAW;AAAA,EAC1B;AACA,EAAA,MAAM,QAAA,GAAW,MAAgB,gBAAA,CAAiBC,oCAAA,CAAmB,QAAQ,KAAK,CAAA,EAAG,MAAM,OAAA,EAAS;AAAA,IAClG,QAAA,EAAU,MAAM,MAAA,CAAO,WAAA;AAAA,IACvB,UAAA,EAAY,SAAS,MAAMC,kCAAA,CAAiB,QAAQ,MAAA,EAAQ,EAAA,CAAG,UAAU,CAAA,GAAI,EAAC;AAAA,IAC9E,OAAA,EAAS,KAAA,CAAM,cAAA,GAAiB,KAAA,CAAM,OAAA,GAAU,MAAA;AAAA,IAChD,QAAQ,MAAA,CAAO;AAAA,GACjB,EAAG;AAAA,IACD,eAAe,MAAA,CAAO,aAAA;AAAA,IACtB,OAAA,EAAS;AAAA,GACV,CAAA;AACD,EAAA,MAAM,WAAA,GAAc,MAAMC,wCAAA,CAAuB,EAAA,CAAG,QAAQ,MAAM,CAAA;AAClE,EAAA,WAAA,MAAiB,SAAS,QAAA,EAAU;AAClC,IAAA,IAAI,KAAA,CAAM,SAAS,MAAA,EAAQ;AAC3B,IAAA,MAAM,QAAA,GAAW,MAAMC,oCAAA,CAAmB,MAAA,EAAQ,GAAG,MAAA,EAAQ,KAAA,CAAM,OAAO,WAAW,CAAA;AACrF,IAAA,IAAI,GAAG,MAAA,CAAO,IAAA,KAAS,WAAW,KAAA,CAAM,OAAA,CAAQ,QAAQ,CAAA,EAAG;AACzD,MAAA,KAAA,MAAW,QAAQ,QAAA,EAAU;AAC3B,QAAA,MAAM,IAAA;AAAA,MACR;AAAA,IACF,CAAA,MAAO;AACL,MAAA,MAAM,QAAA;AAAA,IACR;AAAA,EACF;AACF","file":"applyStreamingQuery-EKQJ2HOP.cjs","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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _get = [0, \"/v2/functions/queries/{0}\", 2];\n/**\n * Gets a specific query type with the given API name. By default, this returns the highest semantic\n * version of the query, excluding pre-release versions. To resolve the most recently published version\n * instead, including pre-release versions, set `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * @beta\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getByRid = [0, \"/v2/functions/queries/getByRid\", 2];\n/**\n * Gets a specific query type with the given RID. By default, this gets the latest version of the query.\n *\n * @beta\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/getByRid\n */\nexport function getByRid($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRid, ...args);\n}\nconst _getByRidBatch = [1, \"/v2/functions/queries/getByRidBatch\", 3];\n/**\n * Gets a list of query types by RID in bulk. By default, this gets the latest version of each query.\n *\n * Queries are filtered from the response if they don't exist or the requesting token lacks the required\n * permissions.\n *\n * The maximum batch size for this endpoint is 100.\n *\n * @beta\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/getByRidBatch\n */\nexport function getByRidBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRidBatch, ...args);\n}\nconst _execute = [1, \"/v2/functions/queries/{0}/execute\", 7];\n/**\n * Executes a Query and returns the result as a single JSON object. By default, this executes\n * the highest semantic version of the query, excluding pre-release versions. To resolve the\n * most recently published version instead, including pre-release versions, set\n * `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * This endpoint executes global (non-ontology-scoped) query functions. For ontology-scoped\n * functions, use the equivalent endpoint under\n * `/v2/ontologies/{ontology}/queries/{queryApiName}/execute`. For streaming or incremental\n * result delivery, use `streamingExecute`.\n *\n * @beta\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\nconst _streamingExecute = [1, \"/v2/functions/queries/{0}/streamingExecute\", 7,, \"text/event-stream\"];\n/**\n * Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.\n * By default, this executes the highest semantic version of the query, excluding pre-release\n * versions. To resolve the most recently published version instead, including pre-release\n * versions, set `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded\n * `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more\n * result values, or an error (`type: error`) emitted before stream termination if execution\n * fails. Non-streaming functions emit a single data event containing the entire result;\n * streaming functions emit a data event per batch as results become available.\n *\n * Per the Server-Sent Events specification, each event is terminated by a blank line:\n *\n * ```\n * data: {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-001\",\"price\":29.99}]}\n *\n * data: {\"type\":\"error\",\"errorCode\":\"INVALID_ARGUMENT\",\"errorName\":\"QueryRuntimeError\",\"errorInstanceId\":\"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c\",\"errorDescription\":\"Division by zero\",\"parameters\":{}}\n *\n * ```\n *\n * @beta\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/streamingExecute\n */\nexport function streamingExecute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamingExecute, ...args);\n}\nconst _streamingExecuteEvents = [1, \"/v2/functions/queries/{0}/streamingExecuteEvents\", 7,, \"text/event-stream\"];\n/**\n * Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.\n * By default, this executes the highest semantic version of the query, excluding pre-release\n * versions. To resolve the most recently published version instead, including pre-release\n * versions, set `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded\n * `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more\n * result values, or an error (`type: error`) emitted before stream termination if execution\n * fails. Non-streaming functions emit a single data event containing the entire result;\n * streaming functions emit a data event per batch as results become available.\n *\n * Per the Server-Sent Events specification, each event is terminated by a blank line:\n *\n * ```\n * data: {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-001\",\"price\":29.99}]}\n *\n * data: {\"type\":\"error\",\"errorCode\":\"INVALID_ARGUMENT\",\"errorName\":\"QueryRuntimeError\",\"errorInstanceId\":\"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c\",\"errorDescription\":\"Division by zero\",\"parameters\":{}}\n *\n * ```\n *\n * @alpha\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/streamingExecuteEvents\n */\nexport function streamingExecuteEvents($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamingExecuteEvents, ...args);\n}\nconst _executeAsync = [1, \"/v2/functions/queries/{0}/executeAsync\", 7];\n/**\n * Submits a Query for asynchronous execution. Returns either an execution ID\n * for polling, or the complete result if execution finished immediately.\n *\n * Use the Execution resource's getResult endpoint to poll for the\n * result of a submitted execution.\n *\n * Supports maps represented as arrays of key/value entries, including nested maps.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/executeAsync\n */\nexport function executeAsync($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeAsync, ...args);\n}","/*\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 * as Functions from \"@osdk/foundry.functions/Query\";\nimport { addUserAgentHeader } from \"../util/addUserAgentHeader.js\";\nimport { getRequiredDefinitions, remapQueryParams, remapQueryResponse } from \"./applyQuery.js\";\nexport async function* applyStreamingQuery(client, query, params) {\n const qd = await client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : undefined);\n if (client.flushEdits != null) {\n await client.flushEdits();\n }\n const response = await Functions.streamingExecute(addUserAgentHeader(client, query), query.apiName, {\n ontology: await client.ontologyRid,\n parameters: params ? await remapQueryParams(params, client, qd.parameters) : {},\n version: query.isFixedVersion ? query.version : undefined,\n branch: client.branch\n }, {\n transactionId: client.transactionId,\n preview: true\n });\n const definitions = await getRequiredDefinitions(qd.output, client);\n for await (const event of response) {\n if (event.type !== \"data\") continue;\n const remapped = await remapQueryResponse(client, qd.output, event.value, definitions);\n if (qd.output.type === \"array\" && Array.isArray(remapped)) {\n for (const item of remapped) {\n yield item;\n }\n } else {\n yield remapped;\n }\n }\n}"]}
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkROZG5FTY_cjs = require('./chunk-ROZG5FTY.cjs');
3
+ var chunkWT3PVLWG_cjs = require('./chunk-WT3PVLWG.cjs');
4
4
  var chunk4BTP5PFS_cjs = require('./chunk-4BTP5PFS.cjs');
5
- var chunkQDEI35QO_cjs = require('./chunk-QDEI35QO.cjs');
6
- var chunkB2NX6A3J_cjs = require('./chunk-B2NX6A3J.cjs');
5
+ var chunkHVITOOBR_cjs = require('./chunk-HVITOOBR.cjs');
6
+ var chunkOQXF4VWE_cjs = require('./chunk-OQXF4VWE.cjs');
7
7
  var chunkB4UCZI2Z_cjs = require('./chunk-B4UCZI2Z.cjs');
8
8
  var chunkIWUIN6JJ_cjs = require('./chunk-IWUIN6JJ.cjs');
9
9
  var chunkQ7SFCCGT_cjs = require('./chunk-Q7SFCCGT.cjs');
@@ -166,7 +166,7 @@ function isScenarioClient(value) {
166
166
  return value != null && (typeof value === "object" || typeof value === "function") && typeof value.getScenarioReference === "function";
167
167
  }
168
168
  function buildScenarioClient(parent, scenarioRid) {
169
- const ctx = parent[chunkB2NX6A3J_cjs.additionalContext];
169
+ const ctx = parent[chunkOQXF4VWE_cjs.additionalContext];
170
170
  if (ctx.transactionId != null) {
171
171
  console.warn("withScenario / createScenario: the supplied client has an active transaction. Ignoring the transaction and scoping to the scenario instead.");
172
172
  }
@@ -180,7 +180,7 @@ function buildScenarioClient(parent, scenarioRid) {
180
180
  scenarioRid,
181
181
  clientCacheKey: {}
182
182
  });
183
- const innerCtx = inner[chunkB2NX6A3J_cjs.additionalContext];
183
+ const innerCtx = inner[chunkOQXF4VWE_cjs.additionalContext];
184
184
  async function rebase() {
185
185
  const ontologyRid = await innerCtx.ontologyRid;
186
186
  await OntologyScenario_exports.rebaseScenario(innerCtx, ontologyRid, scenarioRid, {
@@ -369,7 +369,7 @@ async function toDataValue(value, client, parameterType) {
369
369
  }
370
370
  if (Array.isArray(value) || value instanceof Set) {
371
371
  const values = Array.from(value);
372
- if (values.some((dataValue) => chunkQDEI35QO_cjs.isAttachmentUpload(dataValue) || chunkQDEI35QO_cjs.isAttachmentFile(dataValue))) {
372
+ if (values.some((dataValue) => chunkHVITOOBR_cjs.isAttachmentUpload(dataValue) || chunkHVITOOBR_cjs.isAttachmentFile(dataValue))) {
373
373
  const converted = [];
374
374
  for (const value2 of values) {
375
375
  converted.push(await toDataValue(value2, client, parameterType));
@@ -379,43 +379,43 @@ async function toDataValue(value, client, parameterType) {
379
379
  const promiseArray = Array.from(value, async (innerValue) => await toDataValue(innerValue, client, parameterType));
380
380
  return Promise.all(promiseArray);
381
381
  }
382
- if (chunkQDEI35QO_cjs.isAttachmentUpload(value)) {
383
- const attachment = await chunkB2NX6A3J_cjs.upload(client, value.data, {
382
+ if (chunkHVITOOBR_cjs.isAttachmentUpload(value)) {
383
+ const attachment = await chunkOQXF4VWE_cjs.upload(client, value.data, {
384
384
  filename: value.name
385
385
  });
386
386
  return await toDataValue(attachment.rid, client, parameterType);
387
387
  }
388
- if (chunkQDEI35QO_cjs.isAttachmentFile(value)) {
389
- const attachment = await chunkB2NX6A3J_cjs.upload(client, value, {
388
+ if (chunkHVITOOBR_cjs.isAttachmentFile(value)) {
389
+ const attachment = await chunkOQXF4VWE_cjs.upload(client, value, {
390
390
  filename: value.name
391
391
  });
392
392
  return await toDataValue(attachment.rid, client, parameterType);
393
393
  }
394
- if (chunkQDEI35QO_cjs.isMediaUpload(value)) {
394
+ if (chunkHVITOOBR_cjs.isMediaUpload(value)) {
395
395
  const mediaRef = await chunkB4UCZI2Z_cjs.MediaSet_exports.uploadMedia(client, value.data, {
396
396
  filename: value.fileName
397
397
  });
398
398
  return await toDataValue(mediaRef, client, parameterType);
399
399
  }
400
- if (chunkQDEI35QO_cjs.isMedia(value)) {
400
+ if (chunkHVITOOBR_cjs.isMedia(value)) {
401
401
  return value.getMediaReference();
402
402
  }
403
- if (chunkQDEI35QO_cjs.isMediaReference(value)) {
403
+ if (chunkHVITOOBR_cjs.isMediaReference(value)) {
404
404
  return value;
405
405
  }
406
406
  if (isOntologyObjectV2(value)) {
407
407
  return await toDataValue(value.__primaryKey, client, parameterType);
408
408
  }
409
- if (chunkQDEI35QO_cjs.isObjectSpecifiersObject(value)) {
409
+ if (chunkHVITOOBR_cjs.isObjectSpecifiersObject(value)) {
410
410
  return await toDataValue(value.$primaryKey, client, parameterType);
411
411
  }
412
- if (chunkB2NX6A3J_cjs.isWireObjectSet(value)) {
413
- return chunkB2NX6A3J_cjs.normalizeInterfaceLinkSearchArounds(client, value);
412
+ if (chunkOQXF4VWE_cjs.isWireObjectSet(value)) {
413
+ return chunkOQXF4VWE_cjs.normalizeInterfaceLinkSearchArounds(client, value);
414
414
  }
415
- if (chunkB2NX6A3J_cjs.isObjectSet(value)) {
416
- return chunkB2NX6A3J_cjs.normalizeInterfaceLinkSearchArounds(client, chunkB2NX6A3J_cjs.getWireObjectSet(value));
415
+ if (chunkOQXF4VWE_cjs.isObjectSet(value)) {
416
+ return chunkOQXF4VWE_cjs.normalizeInterfaceLinkSearchArounds(client, chunkOQXF4VWE_cjs.getWireObjectSet(value));
417
417
  }
418
- if (chunkQDEI35QO_cjs.isInterfaceActionParam(value)) {
418
+ if (chunkHVITOOBR_cjs.isInterfaceActionParam(value)) {
419
419
  return {
420
420
  objectTypeApiName: value.$objectType,
421
421
  primaryKeyValue: value.$primaryKey
@@ -459,7 +459,7 @@ function isTimeSeriesReference(value) {
459
459
 
460
460
  // src/actions/applyAction.ts
461
461
  async function applyAction(client, action, parameters, options = {}) {
462
- const clientWithHeaders = chunkB2NX6A3J_cjs.addUserAgentHeader(client, action);
462
+ const clientWithHeaders = chunkOQXF4VWE_cjs.addUserAgentHeader(client, action);
463
463
  if (Array.isArray(parameters)) {
464
464
  !(client.transactionId == null) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Batch actions are not supported for staged edit functions or when supplying a transaction ID") : invariant4__default.default(false) : void 0;
465
465
  const response = await applyBatch(clientWithHeaders, await client.ontologyRid, action.unsanitizedApiName ?? action.apiName, {
@@ -710,13 +710,13 @@ async function toDataValueAgents(value, client, desiredType, path = "") {
710
710
  case "nullable":
711
711
  return await toDataValueAgents(value, client, desiredType.wrappedType, path);
712
712
  case "object": {
713
- const primaryKey = chunkQDEI35QO_cjs.isObjectSpecifiersObject(value) ? value.$primaryKey : value;
713
+ const primaryKey = chunkHVITOOBR_cjs.isObjectSpecifiersObject(value) ? value.$primaryKey : value;
714
714
  if (typeof primaryKey !== "string" && typeof primaryKey !== "number") {
715
715
  throw new TypeError(`Invalid agent argument "${path}": expected an OSDK object, object identifier, or string or number primary key.`);
716
716
  }
717
717
  try {
718
718
  await checkOntology(client, desiredType.ontologyApiName, path, "argument");
719
- const objectTypeApiName = chunkQDEI35QO_cjs.isObjectSpecifiersObject(value) ? value.$apiName : desiredType.objectTypeApiName;
719
+ const objectTypeApiName = chunkHVITOOBR_cjs.isObjectSpecifiersObject(value) ? value.$apiName : desiredType.objectTypeApiName;
720
720
  const objectTypeDefinition = await client.ontologyProvider.getObjectDefinition(objectTypeApiName);
721
721
  return {
722
722
  ontologyRid: await client.ontologyRid,
@@ -733,12 +733,12 @@ async function toDataValueAgents(value, client, desiredType, path = "") {
733
733
  if (typeof value === "string") {
734
734
  return value;
735
735
  }
736
- if (!chunkB2NX6A3J_cjs.isWireObjectSet(value) && !chunkB2NX6A3J_cjs.isObjectSet(value)) {
736
+ if (!chunkOQXF4VWE_cjs.isWireObjectSet(value) && !chunkOQXF4VWE_cjs.isObjectSet(value)) {
737
737
  throw new TypeError(`Invalid agent argument "${path}": expected an OSDK ObjectSet, object set definition, or object set RID string.`);
738
738
  }
739
739
  try {
740
740
  await checkOntology(client, desiredType.ontologyApiName, path, "argument");
741
- return await chunkROZG5FTY_cjs.createTemporaryObjectSet(client, value);
741
+ return await chunkWT3PVLWG_cjs.createTemporaryObjectSet(client, value);
742
742
  } catch (cause) {
743
743
  throw wrapConversionError(`Failed to convert agent argument "${path}" to an object set RID`, cause);
744
744
  }
@@ -788,7 +788,7 @@ async function fromDataValueAgents(value, client, desiredType, path = "") {
788
788
  if (typeof primaryKey !== "string" && typeof primaryKey !== "number") {
789
789
  throw new TypeError("Expected a string or number primary key");
790
790
  }
791
- return chunkQDEI35QO_cjs.createQueryObjectResponse(primaryKey, {
791
+ return chunkHVITOOBR_cjs.createQueryObjectResponse(primaryKey, {
792
792
  type: "object",
793
793
  apiName: desiredType.objectTypeApiName
794
794
  });
@@ -802,7 +802,7 @@ async function fromDataValueAgents(value, client, desiredType, path = "") {
802
802
  }
803
803
  try {
804
804
  await checkOntology(client, desiredType.ontologyApiName, path, "value");
805
- return chunkB2NX6A3J_cjs.createObjectSet({
805
+ return chunkOQXF4VWE_cjs.createObjectSet({
806
806
  type: "object",
807
807
  apiName: desiredType.objectTypeApiName
808
808
  }, client, {
@@ -969,7 +969,7 @@ function validateAgentSessionClient(client) {
969
969
  // src/agents/createAgentSession.ts
970
970
  async function createAgentSession(client, agent, args) {
971
971
  validateAgentSessionClient(client);
972
- const clientWithHeaders = chunkB2NX6A3J_cjs.addUserAgentHeader(client, agent);
972
+ const clientWithHeaders = chunkOQXF4VWE_cjs.addUserAgentHeader(client, agent);
973
973
  const ontologyRid = await client.ontologyRid;
974
974
  const agentDefinition = await client.ontologyProvider.getAgentDefinition(agent.apiName, agent.version);
975
975
  const convertedArguments = await toDataValueAgents(args ?? {}, client, {
@@ -993,7 +993,7 @@ async function createAgentSession(client, agent, args) {
993
993
  // src/agents/getAgentSession.ts
994
994
  async function getAgentSession(client, agent, sessionId) {
995
995
  validateAgentSessionClient(client);
996
- const clientWithHeaders = chunkB2NX6A3J_cjs.addUserAgentHeader(client, agent);
996
+ const clientWithHeaders = chunkOQXF4VWE_cjs.addUserAgentHeader(client, agent);
997
997
  const ontologyRid = await client.ontologyRid;
998
998
  const response = await get5(clientWithHeaders, sessionId, {
999
999
  preview: true
@@ -1236,7 +1236,7 @@ var MediaReferencePropertyImpl = class {
1236
1236
  ReadToken: token
1237
1237
  } : void 0);
1238
1238
  return {
1239
- itemMetadata: chunkB2NX6A3J_cjs.validateMediaItemMetadata(raw)
1239
+ itemMetadata: chunkOQXF4VWE_cjs.validateMediaItemMetadata(raw)
1240
1240
  };
1241
1241
  }
1242
1242
  getMediaReference() {
@@ -1665,8 +1665,8 @@ function get$link(holder) {
1665
1665
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
1666
1666
  }).pivotTo(linkName);
1667
1667
  const value = !linkDef.multiplicity ? {
1668
- fetchOne: (options) => chunkB2NX6A3J_cjs.fetchSingle(client, objDef, options ?? {}, chunkB2NX6A3J_cjs.getWireObjectSet(objectSet)),
1669
- fetchOneWithErrors: (options) => chunkB2NX6A3J_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkB2NX6A3J_cjs.getWireObjectSet(objectSet))
1668
+ fetchOne: (options) => chunkOQXF4VWE_cjs.fetchSingle(client, objDef, options ?? {}, chunkOQXF4VWE_cjs.getWireObjectSet(objectSet)),
1669
+ fetchOneWithErrors: (options) => chunkOQXF4VWE_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkOQXF4VWE_cjs.getWireObjectSet(objectSet))
1670
1670
  } : objectSet;
1671
1671
  return [linkName, value];
1672
1672
  })));
@@ -1689,8 +1689,8 @@ function get$linkForInterface(holder) {
1689
1689
  apiName: linkDef.targetTypeApiName
1690
1690
  };
1691
1691
  const value = !linkDef.multiplicity ? {
1692
- fetchOne: (options) => chunkB2NX6A3J_cjs.fetchSingle(client, linkTargetDef, options ?? {}, chunkB2NX6A3J_cjs.getWireObjectSet(objectSet)),
1693
- fetchOneWithErrors: (options) => chunkB2NX6A3J_cjs.fetchSingleWithErrors(client, linkTargetDef, options ?? {}, chunkB2NX6A3J_cjs.getWireObjectSet(objectSet))
1692
+ fetchOne: (options) => chunkOQXF4VWE_cjs.fetchSingle(client, linkTargetDef, options ?? {}, chunkOQXF4VWE_cjs.getWireObjectSet(objectSet)),
1693
+ fetchOneWithErrors: (options) => chunkOQXF4VWE_cjs.fetchSingleWithErrors(client, linkTargetDef, options ?? {}, chunkOQXF4VWE_cjs.getWireObjectSet(objectSet))
1694
1694
  } : objectSet;
1695
1695
  return [linkName, value];
1696
1696
  })));
@@ -1735,7 +1735,7 @@ function isStruct(value) {
1735
1735
  return typeof value === "object" && value != null && !Array.isArray(value);
1736
1736
  }
1737
1737
  function createOsdkInterface(underlying, interfaceDef) {
1738
- const [objApiNamespace] = chunkB2NX6A3J_cjs.extractNamespace(interfaceDef.apiName);
1738
+ const [objApiNamespace] = chunkOQXF4VWE_cjs.extractNamespace(interfaceDef.apiName);
1739
1739
  const objDef = underlying[ObjectDefRef];
1740
1740
  const underlyingProperties = underlying;
1741
1741
  return Object.freeze(Object.defineProperties({}, {
@@ -1799,7 +1799,7 @@ function createOsdkInterface(underlying, interfaceDef) {
1799
1799
  value: interfaceDef
1800
1800
  },
1801
1801
  ...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
1802
- const [apiNamespace, apiName] = chunkB2NX6A3J_cjs.extractNamespace(p);
1802
+ const [apiNamespace, apiName] = chunkOQXF4VWE_cjs.extractNamespace(p);
1803
1803
  const exposedName = apiNamespace === objApiNamespace ? apiName : p;
1804
1804
  const impl = objDef.interfaceImplementations?.[interfaceDef.apiName]?.[p];
1805
1805
  if (impl != null) {
@@ -1848,7 +1848,7 @@ function remapPropertySecuritiesForInterface(underlyingSecurities, objDef, inter
1848
1848
  }
1849
1849
  const interfacePropName = inverseMap[objPropName];
1850
1850
  if (interfacePropName == null) continue;
1851
- const [apiNamespace, apiName] = chunkB2NX6A3J_cjs.extractNamespace(interfacePropName);
1851
+ const [apiNamespace, apiName] = chunkOQXF4VWE_cjs.extractNamespace(interfacePropName);
1852
1852
  const key = apiNamespace === objApiNamespace ? apiName : interfacePropName;
1853
1853
  remapped[key] = underlyingSecurities[objPropName];
1854
1854
  }
@@ -1939,7 +1939,7 @@ var basePropDefs = {
1939
1939
  $objectSpecifier: {
1940
1940
  get() {
1941
1941
  const rawObj = this[UnderlyingOsdkObject];
1942
- return chunkQDEI35QO_cjs.createObjectSpecifierFromPrimaryKey(this[ObjectDefRef], rawObj.$primaryKey);
1942
+ return chunkHVITOOBR_cjs.createObjectSpecifierFromPrimaryKey(this[ObjectDefRef], rawObj.$primaryKey);
1943
1943
  },
1944
1944
  enumerable: true
1945
1945
  },
@@ -2016,9 +2016,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
2016
2016
  switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
2017
2017
  case "attachment":
2018
2018
  if (Array.isArray(rawValue)) {
2019
- return rawValue.map((a) => chunkB2NX6A3J_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
2019
+ return rawValue.map((a) => chunkOQXF4VWE_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
2020
2020
  } else {
2021
- return chunkB2NX6A3J_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
2021
+ return chunkOQXF4VWE_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
2022
2022
  }
2023
2023
  default:
2024
2024
  process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant4__default.default(false) ;
@@ -2034,9 +2034,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
2034
2034
  }
2035
2035
  if (propDef.type === "attachment") {
2036
2036
  if (Array.isArray(rawValue)) {
2037
- return rawValue.map((a) => chunkB2NX6A3J_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
2037
+ return rawValue.map((a) => chunkOQXF4VWE_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
2038
2038
  }
2039
- return chunkB2NX6A3J_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
2039
+ return chunkOQXF4VWE_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
2040
2040
  }
2041
2041
  if (propDef.type === "cipherText") {
2042
2042
  return new CipherTextPropertyImpl({
@@ -2169,7 +2169,7 @@ async function convertWireToOsdkObjects(client, objects, interfaceApiName, deriv
2169
2169
  function getUncastableProperties(objectDef, interfaceApiName, selectedProps, includeAllBaseObjectProperties) {
2170
2170
  const implementations = objectDef.interfaceImplementations?.[interfaceApiName];
2171
2171
  if (implementations == null) return NO_UNCASTABLE_PROPERTIES;
2172
- const [interfaceNamespace] = chunkB2NX6A3J_cjs.extractNamespace(interfaceApiName);
2172
+ const [interfaceNamespace] = chunkOQXF4VWE_cjs.extractNamespace(interfaceApiName);
2173
2173
  const hasSelection = selectedProps != null && selectedProps.length > 0;
2174
2174
  const uncastableProperties = /* @__PURE__ */ new Set();
2175
2175
  for (const [interfacePropertyApiName, implementation] of Object.entries(implementations)) {
@@ -2178,7 +2178,7 @@ function getUncastableProperties(objectDef, interfaceApiName, selectedProps, inc
2178
2178
  continue;
2179
2179
  }
2180
2180
  if (hasSelection) {
2181
- const [namespace, shortName] = chunkB2NX6A3J_cjs.extractNamespace(interfacePropertyApiName);
2181
+ const [namespace, shortName] = chunkOQXF4VWE_cjs.extractNamespace(interfacePropertyApiName);
2182
2182
  const selected = selectedProps.includes(interfacePropertyApiName) || namespace === interfaceNamespace && selectedProps.includes(shortName);
2183
2183
  if (!selected) continue;
2184
2184
  }
@@ -2383,11 +2383,11 @@ var createStandardOntologyProviderFactory = (client) => {
2383
2383
  };
2384
2384
 
2385
2385
  // src/util/UserAgent.ts
2386
- var USER_AGENT = `osdk-client/${"2.95.0"}`;
2387
- var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.95.0"}`;
2386
+ var USER_AGENT = `osdk-client/${"2.96.0-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb"}`;
2387
+ var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.96.0-main-fe6f8e1b32a2b59ef338a8f3f4f5e77a496272bb"}`;
2388
2388
 
2389
2389
  // src/createMinimalClient.ts
2390
- function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkB2NX6A3J_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
2390
+ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkOQXF4VWE_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
2391
2391
  if (process.env.NODE_ENV !== "production") {
2392
2392
  try {
2393
2393
  new URL(baseUrl);
@@ -3076,7 +3076,7 @@ var ActionInvoker = class {
3076
3076
  };
3077
3077
  var QueryInvoker = class {
3078
3078
  constructor(clientCtx, queryDef) {
3079
- this.executeFunction = chunkQDEI35QO_cjs.applyQuery.bind(void 0, clientCtx, queryDef);
3079
+ this.executeFunction = chunkHVITOOBR_cjs.applyQuery.bind(void 0, clientCtx, queryDef);
3080
3080
  }
3081
3081
  };
3082
3082
  var AgentClient = class {
@@ -3101,7 +3101,7 @@ function createClientInternal(objectSetFactory, transactionRid, flushEdits, scen
3101
3101
  ontologyRid
3102
3102
  }, baseUrl, tokenProvider, {
3103
3103
  ...options,
3104
- logger: options?.logger ?? new chunkROZG5FTY_cjs.MinimalLogger(),
3104
+ logger: options?.logger ?? new chunkWT3PVLWG_cjs.MinimalLogger(),
3105
3105
  transactionId: transactionRid,
3106
3106
  flushEdits,
3107
3107
  scenarioRid,
@@ -3127,7 +3127,7 @@ function createClientFromContext(clientCtx) {
3127
3127
  async *executeStreamingFunction(query, params) {
3128
3128
  const {
3129
3129
  applyStreamingQuery
3130
- } = await import('./applyStreamingQuery-KCJOS7TV.cjs');
3130
+ } = await import('./applyStreamingQuery-EKQJ2HOP.cjs');
3131
3131
  yield* applyStreamingQuery(clientCtx, query, params);
3132
3132
  }
3133
3133
  };
@@ -3154,16 +3154,16 @@ function createClientFromContext(clientCtx) {
3154
3154
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
3155
3155
  return {
3156
3156
  fetchOneByRid: async (objectType, rid, options) => {
3157
- return await chunkB2NX6A3J_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
3157
+ return await chunkOQXF4VWE_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
3158
3158
  }
3159
3159
  };
3160
3160
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
3161
3161
  return {
3162
3162
  fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
3163
- return await chunkB2NX6A3J_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
3163
+ return await chunkOQXF4VWE_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
3164
3164
  },
3165
3165
  fetchPageByRidNoType: async (rids, options) => {
3166
- return await chunkB2NX6A3J_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
3166
+ return await chunkOQXF4VWE_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
3167
3167
  }
3168
3168
  };
3169
3169
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet.name:
@@ -3207,7 +3207,7 @@ function createClientFromContext(clientCtx) {
3207
3207
  [symbolClientContext2]: {
3208
3208
  value: clientCtx
3209
3209
  },
3210
- [chunkB2NX6A3J_cjs.additionalContext]: {
3210
+ [chunkOQXF4VWE_cjs.additionalContext]: {
3211
3211
  value: clientCtx
3212
3212
  },
3213
3213
  fetchMetadata: {
@@ -3216,9 +3216,9 @@ function createClientFromContext(clientCtx) {
3216
3216
  });
3217
3217
  return client;
3218
3218
  }
3219
- var createClient = createClientInternal.bind(void 0, chunkB2NX6A3J_cjs.createObjectSet, void 0, void 0, void 0, void 0);
3220
- var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkB2NX6A3J_cjs.createObjectSet, transactionRid, flushEdits, void 0, void 0, ...args);
3221
- var createClientWithSubscriptionConnection = (createSubscriptionConnection, ...args) => createClientInternal(chunkB2NX6A3J_cjs.createObjectSet, void 0, void 0, void 0, createSubscriptionConnection, ...args);
3219
+ var createClient = createClientInternal.bind(void 0, chunkOQXF4VWE_cjs.createObjectSet, void 0, void 0, void 0, void 0);
3220
+ var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkOQXF4VWE_cjs.createObjectSet, transactionRid, flushEdits, void 0, void 0, ...args);
3221
+ var createClientWithSubscriptionConnection = (createSubscriptionConnection, ...args) => createClientInternal(chunkOQXF4VWE_cjs.createObjectSet, void 0, void 0, void 0, createSubscriptionConnection, ...args);
3222
3222
  function createWithRid(rids) {
3223
3223
  const withRid = {
3224
3224
  type: "static",
@@ -3244,5 +3244,5 @@ exports.createClientFromContext = createClientFromContext;
3244
3244
  exports.createClientWithSubscriptionConnection = createClientWithSubscriptionConnection;
3245
3245
  exports.createClientWithTransaction = createClientWithTransaction;
3246
3246
  exports.createOsdkObject = createOsdkObject;
3247
- //# sourceMappingURL=chunk-JBCRSB2X.cjs.map
3248
- //# sourceMappingURL=chunk-JBCRSB2X.cjs.map
3247
+ //# sourceMappingURL=chunk-FHJSKIMZ.cjs.map
3248
+ //# sourceMappingURL=chunk-FHJSKIMZ.cjs.map