@osdk/client 2.35.0 → 2.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/build/browser/Client.js +1 -1
- package/build/browser/Client.js.map +1 -1
- package/build/browser/scenarios/ScenarioClient.js +5 -3
- package/build/browser/scenarios/ScenarioClient.js.map +1 -1
- package/build/browser/scenarios/createScenario.js +3 -5
- package/build/browser/scenarios/createScenario.js.map +1 -1
- package/build/browser/scenarios/withScenario.js +2 -1
- package/build/browser/scenarios/withScenario.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/cjs/{applyStreamingQuery-IWZCZA6J.cjs → applyStreamingQuery-RK2N6TJ5.cjs} +9 -9
- package/build/cjs/{applyStreamingQuery-IWZCZA6J.cjs.map → applyStreamingQuery-RK2N6TJ5.cjs.map} +1 -1
- package/build/cjs/{chunk-A4LQCGPA.cjs → chunk-53ODHT6J.cjs} +47 -47
- package/build/cjs/{chunk-A4LQCGPA.cjs.map → chunk-53ODHT6J.cjs.map} +1 -1
- package/build/cjs/{chunk-CWBZEZQC.cjs → chunk-QUF62D2S.cjs} +76 -76
- package/build/cjs/{chunk-CWBZEZQC.cjs.map → chunk-QUF62D2S.cjs.map} +1 -1
- package/build/cjs/{chunk-LWT7AZZD.cjs → chunk-VD4QAB27.cjs} +13 -13
- package/build/cjs/{chunk-LWT7AZZD.cjs.map → chunk-VD4QAB27.cjs.map} +1 -1
- package/build/cjs/{chunk-ZLUXOM2B.cjs → chunk-ZSQBDK7L.cjs} +2 -2
- package/build/cjs/{chunk-ZLUXOM2B.cjs.map → chunk-ZSQBDK7L.cjs.map} +1 -1
- package/build/cjs/index.cjs +11 -11
- package/build/cjs/public/experimental.cjs +6 -6
- package/build/cjs/public/internal.cjs +7 -7
- package/build/cjs/public/observable.cjs +5 -5
- package/build/cjs/public/unstable-do-not-use.cjs +14 -17
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.d.cts +5 -3
- package/build/esm/Client.js +1 -1
- package/build/esm/Client.js.map +1 -1
- package/build/esm/scenarios/ScenarioClient.js +5 -3
- package/build/esm/scenarios/ScenarioClient.js.map +1 -1
- package/build/esm/scenarios/createScenario.js +3 -5
- package/build/esm/scenarios/createScenario.js.map +1 -1
- package/build/esm/scenarios/withScenario.js +2 -1
- package/build/esm/scenarios/withScenario.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/types/Client.d.ts +1 -1
- package/build/types/scenarios/createScenario.d.ts +3 -2
- package/build/types/scenarios/createScenario.d.ts.map +1 -1
- package/build/types/scenarios/withScenario.d.ts +2 -1
- package/build/types/scenarios/withScenario.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -21,7 +21,8 @@ import { buildScenarioClient } from "./ScenarioClient.js";
|
|
|
21
21
|
* subsequent operations (`fetchPage`, `applyAction`, `executeFunction`, etc.) to the given `scenarioRid`.
|
|
22
22
|
*
|
|
23
23
|
* @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)
|
|
24
|
-
* from. Throws at runtime if the client is already scoped to a scenario
|
|
24
|
+
* from. Throws at runtime if the client is already scoped to a scenario. If the client has an active transaction,
|
|
25
|
+
* the transaction is ignored (a warning is logged) and the client is scoped to the scenario.
|
|
25
26
|
* @param scenarioRid - The RID of the scenario to attach to.
|
|
26
27
|
* @returns a {@link EXPERIMENTAL_ScenarioClient} bound to `scenarioRid`.
|
|
27
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withScenario.js","names":["buildScenarioClient","withScenario","client","scenarioRid"],"sources":["withScenario.ts"],"sourcesContent":["/*\n * Copyright 2026 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 { Client } from \"../Client.js\";\nimport {\n buildScenarioClient,\n type EXPERIMENTAL_ScenarioClient,\n} from \"./ScenarioClient.js\";\n\n/**\n * Attach to an existing ontology scenario. Synchronous — no network call is made. The returned client scopes all\n * subsequent operations (`fetchPage`, `applyAction`, `executeFunction`, etc.) to the given `scenarioRid`.\n *\n * @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)\n * from. Throws at runtime if the client is already scoped to a scenario
|
|
1
|
+
{"version":3,"file":"withScenario.js","names":["buildScenarioClient","withScenario","client","scenarioRid"],"sources":["withScenario.ts"],"sourcesContent":["/*\n * Copyright 2026 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 { Client } from \"../Client.js\";\nimport {\n buildScenarioClient,\n type EXPERIMENTAL_ScenarioClient,\n} from \"./ScenarioClient.js\";\n\n/**\n * Attach to an existing ontology scenario. Synchronous — no network call is made. The returned client scopes all\n * subsequent operations (`fetchPage`, `applyAction`, `executeFunction`, etc.) to the given `scenarioRid`.\n *\n * @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)\n * from. Throws at runtime if the client is already scoped to a scenario. If the client has an active transaction,\n * the transaction is ignored (a warning is logged) and the client is scoped to the scenario.\n * @param scenarioRid - The RID of the scenario to attach to.\n * @returns a {@link EXPERIMENTAL_ScenarioClient} bound to `scenarioRid`.\n *\n * @beta This is an experimental, unstable feature subject to change.\n *\n * @example\n * ```ts\n * import { withScenario } from \"@osdk/client/unstable-do-not-use\";\n *\n * const scenario = withScenario(client, \"ri.actions..scenario.abc\");\n * const page = await scenario(Doctor).fetchPage();\n * await scenario(Schedule).applyAction({ doctor: page.data[0], shift: \"AM\" });\n * ```\n */\nexport function withScenario(\n client: Client,\n scenarioRid: string,\n): EXPERIMENTAL_ScenarioClient {\n return buildScenarioClient(client, scenarioRid);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SACEA,mBAAmB,QAEd,qBAAqB;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAC1BC,MAAc,EACdC,WAAmB,EACU;EAC7B,OAAOH,mBAAmB,CAACE,MAAM,EAAEC,WAAW,CAAC;AACjD","ignoreList":[]}
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export const USER_AGENT = `osdk-client/${"2.
|
|
18
|
-
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.
|
|
17
|
+
export const USER_AGENT = `osdk-client/${"2.36.0"}`;
|
|
18
|
+
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.36.0"}`;
|
|
19
19
|
//# sourceMappingURL=UserAgent.js.map
|
package/build/types/Client.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export interface Client extends SharedClient, OldSharedClient {
|
|
|
81
81
|
*/
|
|
82
82
|
fetchMetadata<Q extends (ObjectTypeDefinition | InterfaceDefinition | ActionDefinition<any> | QueryDefinition<any>)>(o: Q): Promise<Q extends ObjectTypeDefinition ? ObjectMetadata : Q extends InterfaceDefinition ? InterfaceMetadata : Q extends ActionDefinition<any> ? ActionMetadata : Q extends QueryDefinition<any> ? QueryMetadata : never>;
|
|
83
83
|
}
|
|
84
|
-
declare const MaxOsdkVersion = "2.
|
|
84
|
+
declare const MaxOsdkVersion = "2.36.0";
|
|
85
85
|
export type MaxOsdkVersion = typeof MaxOsdkVersion;
|
|
86
86
|
declare const ErrorMessage: unique symbol;
|
|
87
87
|
export {};
|
|
@@ -4,8 +4,9 @@ import { type EXPERIMENTAL_ScenarioClient } from "./ScenarioClient.js";
|
|
|
4
4
|
* Mint a fresh ontology scenario and return a client scoped to it.
|
|
5
5
|
*
|
|
6
6
|
* @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)
|
|
7
|
-
* from. Throws at runtime if the client is already scoped to a scenario
|
|
8
|
-
*
|
|
7
|
+
* from. Throws at runtime if the client is already scoped to a scenario. If the client has an active transaction,
|
|
8
|
+
* the transaction is ignored (a warning is logged) and the client is scoped to the new scenario. When the base
|
|
9
|
+
* client has a branch set, the newly minted scenario uses that branch as its base.
|
|
9
10
|
* @returns a {@link EXPERIMENTAL_ScenarioClient} bound to the freshly minted scenario RID.
|
|
10
11
|
*
|
|
11
12
|
* @beta This is an experimental, unstable feature subject to change.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAiBA,cAAiC,cAAc,cAAe;AAE9D,cAEO,mCACA,qBAAsB
|
|
1
|
+
{"mappings":"AAiBA,cAAiC,cAAc,cAAe;AAE9D,cAEO,mCACA,qBAAsB;;;;;;;;;;;;;;;;;;;;AAqB7B,OAAO,iBAAe,eACpBA,QAAQ,SACP,QAAQ","names":["client: Client"],"sources":["../../../src/scenarios/createScenario.ts"],"version":3,"file":"createScenario.d.ts"}
|
|
@@ -5,7 +5,8 @@ import { type EXPERIMENTAL_ScenarioClient } from "./ScenarioClient.js";
|
|
|
5
5
|
* subsequent operations (`fetchPage`, `applyAction`, `executeFunction`, etc.) to the given `scenarioRid`.
|
|
6
6
|
*
|
|
7
7
|
* @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)
|
|
8
|
-
* from. Throws at runtime if the client is already scoped to a scenario
|
|
8
|
+
* from. Throws at runtime if the client is already scoped to a scenario. If the client has an active transaction,
|
|
9
|
+
* the transaction is ignored (a warning is logged) and the client is scoped to the scenario.
|
|
9
10
|
* @param scenarioRid - The RID of the scenario to attach to.
|
|
10
11
|
* @returns a {@link EXPERIMENTAL_ScenarioClient} bound to `scenarioRid`.
|
|
11
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,cAAc,cAAe;AAC3C,cAEO,mCACA,qBAAsB
|
|
1
|
+
{"mappings":"AAgBA,cAAc,cAAc,cAAe;AAC3C,cAEO,mCACA,qBAAsB;;;;;;;;;;;;;;;;;;;;;;AAuB7B,OAAO,iBAAS,aACdA,QAAQ,QACRC,sBACC","names":["client: Client","scenarioRid: string"],"sources":["../../../src/scenarios/withScenario.ts"],"version":3,"file":"withScenario.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.36.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
"tiny-invariant": "^1.3.3",
|
|
82
82
|
"type-fest": "^4.41.0",
|
|
83
83
|
"ws": "^8.20.1",
|
|
84
|
-
"@osdk/api": "~2.
|
|
85
|
-
"@osdk/
|
|
84
|
+
"@osdk/api": "~2.36.0",
|
|
85
|
+
"@osdk/client.unstable": "2.36.0",
|
|
86
86
|
"@osdk/shared.client.impl": "~1.12.0",
|
|
87
|
-
"@osdk/
|
|
87
|
+
"@osdk/shared.net.fetch": "~1.10.0",
|
|
88
88
|
"@osdk/shared.net.errors": "~2.10.0",
|
|
89
|
-
"@osdk/
|
|
89
|
+
"@osdk/generator-converters": "2.36.0"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@osdk/shared.test": "^2.26.0"
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
"ts-expect": "^1.3.0",
|
|
116
116
|
"typescript": "~5.5.4",
|
|
117
117
|
"zod": "^3.25.76",
|
|
118
|
+
"@osdk/client.test.ontology": "2.36.0",
|
|
118
119
|
"@osdk/monorepo.api-extractor": "~0.7.0",
|
|
119
|
-
"@osdk/client.test.ontology": "2.35.0",
|
|
120
120
|
"@osdk/shared.test.intellisense": "~0.4.0",
|
|
121
121
|
"@osdk/monorepo.tsconfig": "~0.7.0"
|
|
122
122
|
},
|