From f3022ae1d2c5b5807956e855b5bda7179a8cbc90 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 6 Sep 2025 03:30:30 +0000 Subject: [PATCH 1/4] chore: ci build action --- scripts/utils/upload-artifact.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh index f834879f..f7af20f0 100755 --- a/scripts/utils/upload-artifact.sh +++ b/scripts/utils/upload-artifact.sh @@ -12,7 +12,7 @@ if [[ "$SIGNED_URL" == "null" ]]; then exit 1 fi -UPLOAD_RESPONSE=$(tar -cz "${BUILD_PATH:-dist}" | curl -v -X PUT \ +UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \ -H "Content-Type: application/gzip" \ --data-binary @- "$SIGNED_URL" 2>&1) From ad82989db94aec8bd1e3e7d5e5129077d22e72d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Sep 2025 02:48:17 +0000 Subject: [PATCH 2/4] fix: coerce nullable values to undefined --- src/core.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.ts b/src/core.ts index 64120794..24614f7c 100644 --- a/src/core.ts +++ b/src/core.ts @@ -1087,21 +1087,21 @@ export const coerceBoolean = (value: unknown): boolean => { }; export const maybeCoerceInteger = (value: unknown): number | undefined => { - if (value === undefined) { + if (value == null) { return undefined; } return coerceInteger(value); }; export const maybeCoerceFloat = (value: unknown): number | undefined => { - if (value === undefined) { + if (value == null) { return undefined; } return coerceFloat(value); }; export const maybeCoerceBoolean = (value: unknown): boolean | undefined => { - if (value === undefined) { + if (value == null) { return undefined; } return coerceBoolean(value); From 0f199f58a01448f9bf67ce49659e2b66cdce5ae8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Sep 2025 11:50:47 +0000 Subject: [PATCH 3/4] feat(api): api update --- .stats.yml | 2 +- src/resources/inference-pipelines/data.ts | 10 ++++++++++ tests/api-resources/inference-pipelines/data.test.ts | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 2b09528b..0b70a4d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,3 +1,3 @@ configured_endpoints: 18 -openapi_spec_hash: 20f058101a252f7500803d66aff58eb3 +openapi_spec_hash: 153617b7252b1b12f21043b2a1246f8b config_hash: 30422a4611d93ca69e4f1aff60b9ddb5 diff --git a/src/resources/inference-pipelines/data.ts b/src/resources/inference-pipelines/data.ts index e0110afa..6c3f0d1f 100644 --- a/src/resources/inference-pipelines/data.ts +++ b/src/resources/inference-pipelines/data.ts @@ -118,11 +118,21 @@ export namespace DataStreamParams { */ questionColumnName?: string; + /** + * Name of the column with the session id. + */ + sessionIdColumnName?: string | null; + /** * Name of the column with the timestamps. Timestamps must be in UNIX sec format. * If not provided, the upload timestamp is used. */ timestampColumnName?: string; + + /** + * Name of the column with the user id. + */ + userIdColumnName?: string | null; } export namespace LlmData { diff --git a/tests/api-resources/inference-pipelines/data.test.ts b/tests/api-resources/inference-pipelines/data.test.ts index 37a42a58..c6aa8b8d 100644 --- a/tests/api-resources/inference-pipelines/data.test.ts +++ b/tests/api-resources/inference-pipelines/data.test.ts @@ -37,7 +37,9 @@ describe('resource data', () => { numOfTokenColumnName: 'tokens', prompt: [{ content: '{{ user_query }}', role: 'user' }], questionColumnName: 'question', + sessionIdColumnName: 'session_id', timestampColumnName: 'timestamp', + userIdColumnName: 'user_id', }, rows: [{ user_query: 'bar', output: 'bar', tokens: 'bar', cost: 'bar', timestamp: 'bar' }], }); From 361e77a556b01ea936e5b174d57efda96e9a493d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Sep 2025 11:51:23 +0000 Subject: [PATCH 4/4] release: 0.17.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 18 ++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- src/version.ts | 2 +- 5 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 70a5955b..7b51ca08 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.16.3" + ".": "0.17.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 28196192..6760819b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 0.17.0 (2025-09-09) + +Full Changelog: [v0.16.3...v0.17.0](https://github.com/openlayer-ai/openlayer-ts/compare/v0.16.3...v0.17.0) + +### Features + +* **api:** api update ([0f199f5](https://github.com/openlayer-ai/openlayer-ts/commit/0f199f58a01448f9bf67ce49659e2b66cdce5ae8)) + + +### Bug Fixes + +* coerce nullable values to undefined ([ad82989](https://github.com/openlayer-ai/openlayer-ts/commit/ad82989db94aec8bd1e3e7d5e5129077d22e72d3)) + + +### Chores + +* ci build action ([f3022ae](https://github.com/openlayer-ai/openlayer-ts/commit/f3022ae1d2c5b5807956e855b5bda7179a8cbc90)) + ## 0.16.3 (2025-09-04) Full Changelog: [v0.16.2...v0.16.3](https://github.com/openlayer-ai/openlayer-ts/compare/v0.16.2...v0.16.3) diff --git a/package-lock.json b/package-lock.json index 7b4cef85..e33ff0f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "openlayer", - "version": "0.16.3", + "version": "0.17.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "openlayer", - "version": "0.16.3", + "version": "0.17.0", "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-bedrock-agent-runtime": "^3.862.0", diff --git a/package.json b/package.json index 317a9157..ca37b0ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openlayer", - "version": "0.16.3", + "version": "0.17.0", "description": "The official TypeScript library for the Openlayer API", "author": "Openlayer ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 581ad1d4..0251da7d 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.16.3'; // x-release-please-version +export const VERSION = '0.17.0'; // x-release-please-version