Skip to content

Commit 8b7e95a

Browse files
refactor: remove user_id field from API response interfaces
This change removes the user_id field from multiple API response type definitions across the codebase to simplify the data model and improve API consistency. The user_id field was previously included in various template and response objects but is no longer needed in the public API. Key changes: - Remove user_id field from ChatMessageTemplate and ChatSessionTemplate interfaces - Remove user_id field from FhirProviderTemplate, SummaryTemplate, and WorkflowDefinition interfaces - Remove user_id field from McpServerResponse and McpServerToolResponse data interfaces - Update all corresponding test cases to match the new interface definitions 🌿 Generated with Fern
1 parent 669e17c commit 8b7e95a

File tree

18 files changed

+14
-71
lines changed

18 files changed

+14
-71
lines changed

changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 6.0.0 - 2026-02-09
2+
* refactor: remove user_id field from API response interfaces
3+
* This change removes the user_id field from multiple API response type definitions across the codebase to simplify the data model and improve API consistency. The user_id field was previously included in various template and response objects but is no longer needed in the public API.
4+
* Key changes:
5+
* Remove user_id field from ChatMessageTemplate and ChatSessionTemplate interfaces
6+
* Remove user_id field from FhirProviderTemplate, SummaryTemplate, and WorkflowDefinition interfaces
7+
* Remove user_id field from McpServerResponse and McpServerToolResponse data interfaces
8+
* Update all corresponding test cases to match the new interface definitions
9+
* 🌿 Generated with Fern
10+
111
## 5.3.0 - 2026-02-09
212
* feat: add custom code system export endpoint
313
* Add new exportCustomCodeSystem method to the construe client that allows exporting custom (non-builtin) code systems as JSON files. This feature enables users to backup and transfer code systems between instances.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "phenoml",
3-
"version": "5.3.0",
3+
"version": "6.0.0",
44
"private": false,
55
"repository": "github:PhenoML/phenoml-ts-sdk",
66
"type": "commonjs",

src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export class phenomlClient {
4040
{
4141
"X-Fern-Language": "JavaScript",
4242
"X-Fern-SDK-Name": "phenoml",
43-
"X-Fern-SDK-Version": "5.3.0",
44-
"User-Agent": "phenoml/5.3.0",
43+
"X-Fern-SDK-Version": "6.0.0",
44+
"User-Agent": "phenoml/6.0.0",
4545
"X-Fern-Runtime": core.RUNTIME.type,
4646
"X-Fern-Runtime-Version": core.RUNTIME.version,
4747
},

src/api/resources/agent/types/ChatMessageTemplate.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export interface ChatMessageTemplate {
1919
created?: string;
2020
/** Message updated time */
2121
updated?: string;
22-
/** User ID */
23-
user_id?: string;
2422
/** Function name */
2523
function_name?: string;
2624
/** Function arguments */

src/api/resources/agent/types/ChatSessionTemplate.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
export interface ChatSessionTemplate {
44
/** Chat session ID */
55
id?: string;
6-
/** User ID */
7-
user_id?: string;
86
/** Chat session ID */
97
session_id?: string;
108
/** Chat session status */

src/api/resources/fhirProvider/types/FhirProviderTemplate.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import type * as phenoml from "../../../index.js";
55
export interface FhirProviderTemplate {
66
/** Unique identifier for the FHIR provider */
77
id?: string;
8-
/** ID of the user who owns this FHIR provider */
9-
user_id?: string;
108
/** Display name for the FHIR provider */
119
name?: string;
1210
/** Optional description of the FHIR provider */

src/api/resources/summary/types/SummaryTemplate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
export interface SummaryTemplate {
44
id?: string;
5-
user_id?: string;
65
name?: string;
76
description?: string;
87
/** Template with {{resource.field}} placeholders */

src/api/resources/tools/types/McpServerResponse.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export namespace McpServerResponse {
1616
export interface Data {
1717
/** ID of the MCP server */
1818
id?: string;
19-
/** ID of the user who created the MCP server */
20-
user_id?: string;
2119
/** Name of the MCP server */
2220
name?: string;
2321
/** Description of the MCP server */

src/api/resources/tools/types/McpServerToolResponse.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export namespace McpServerToolResponse {
1616
export interface Data {
1717
/** ID of the MCP server tool */
1818
id?: string;
19-
/** ID of the user who created the MCP server tool */
20-
user_id?: string;
2119
/** Name of the MCP server tool */
2220
name?: string;
2321
/** Description of the MCP server tool */

src/api/resources/workflows/types/WorkflowDefinition.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import type * as phenoml from "../../../index.js";
55
export interface WorkflowDefinition {
66
/** Unique identifier for the workflow */
77
id?: string;
8-
/** ID of the user who created the workflow */
9-
user_id?: string;
108
/** Human-readable name for the workflow */
119
name?: string;
1210
/** Natural language instructions that define the workflow logic */

0 commit comments

Comments
 (0)