diff --git a/changelog.md b/changelog.md
index 89d3b41..106c6f5 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,16 @@
+## 6.0.0 - 2026-02-10
+* refactor: simplify upload request structure and remove user_id fields
+* Refactor the code upload request interface to use a single unified structure instead
+* of separate CSV and JSON variants. Remove user_id fields from multiple template types
+* to simplify the data model and improve API consistency.
+* Key changes:
+* Consolidate UploadRequest from discriminated union to single interface with format field
+* Remove user_id fields from ChatMessageTemplate, ChatSessionTemplate, and other templates
+* Move UploadRequest from types to client/requests directory
+* Update documentation and test fixtures to reflect simplified structure
+* Maintain backward compatibility for upload functionality
+* 🌿 Generated with Fern
+
## 5.3.0 - 2026-02-09
* feat: add custom code system export endpoint
* 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.
diff --git a/package.json b/package.json
index 93e9914..32aacda 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "phenoml",
- "version": "5.3.0",
+ "version": "6.0.0",
"private": false,
"repository": "github:PhenoML/phenoml-ts-sdk",
"type": "commonjs",
diff --git a/reference.md b/reference.md
index 9402327..7cf1981 100644
--- a/reference.md
+++ b/reference.md
@@ -1171,12 +1171,9 @@ subsequently use the code system for construe/extract and lang2fhir/create (comi
```typescript
await client.construe.uploadCodeSystem({
- format: "csv",
name: "CUSTOM_CODES",
version: "1.0",
- file: "file",
- code_col: "code",
- desc_col: "description"
+ format: "csv"
});
```
@@ -1193,7 +1190,7 @@ await client.construe.uploadCodeSystem({
-
-**request:** `phenoml.UploadRequest`
+**request:** `phenoml.construe.UploadRequest`
diff --git a/src/Client.ts b/src/Client.ts
index ad4f761..4aa8d30 100644
--- a/src/Client.ts
+++ b/src/Client.ts
@@ -40,8 +40,8 @@ export class phenomlClient {
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "phenoml",
- "X-Fern-SDK-Version": "5.3.0",
- "User-Agent": "phenoml/5.3.0",
+ "X-Fern-SDK-Version": "6.0.0",
+ "User-Agent": "phenoml/6.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
diff --git a/src/api/resources/agent/types/ChatMessageTemplate.ts b/src/api/resources/agent/types/ChatMessageTemplate.ts
index baa71f3..d17fb7b 100644
--- a/src/api/resources/agent/types/ChatMessageTemplate.ts
+++ b/src/api/resources/agent/types/ChatMessageTemplate.ts
@@ -19,8 +19,6 @@ export interface ChatMessageTemplate {
created?: string;
/** Message updated time */
updated?: string;
- /** User ID */
- user_id?: string;
/** Function name */
function_name?: string;
/** Function arguments */
diff --git a/src/api/resources/agent/types/ChatSessionTemplate.ts b/src/api/resources/agent/types/ChatSessionTemplate.ts
index b3681a5..bf11cca 100644
--- a/src/api/resources/agent/types/ChatSessionTemplate.ts
+++ b/src/api/resources/agent/types/ChatSessionTemplate.ts
@@ -3,8 +3,6 @@
export interface ChatSessionTemplate {
/** Chat session ID */
id?: string;
- /** User ID */
- user_id?: string;
/** Chat session ID */
session_id?: string;
/** Chat session status */
diff --git a/src/api/resources/construe/client/Client.ts b/src/api/resources/construe/client/Client.ts
index 3a4b1f4..bc854e2 100644
--- a/src/api/resources/construe/client/Client.ts
+++ b/src/api/resources/construe/client/Client.ts
@@ -37,12 +37,9 @@ export class Construe {
*
* @example
* await client.construe.uploadCodeSystem({
- * format: "csv",
* name: "CUSTOM_CODES",
* version: "1.0",
- * file: "file",
- * code_col: "code",
- * desc_col: "description"
+ * format: "csv"
* })
*/
public uploadCodeSystem(
diff --git a/src/api/resources/construe/types/UploadRequestJson.ts b/src/api/resources/construe/client/requests/UploadRequest.ts
similarity index 56%
rename from src/api/resources/construe/types/UploadRequestJson.ts
rename to src/api/resources/construe/client/requests/UploadRequest.ts
index 3454235..b1a0007 100644
--- a/src/api/resources/construe/types/UploadRequestJson.ts
+++ b/src/api/resources/construe/client/requests/UploadRequest.ts
@@ -1,12 +1,16 @@
// This file was auto-generated by Fern from our API Definition.
-import type * as phenoml from "../../../index.js";
+import type * as phenoml from "../../../../index.js";
/**
- * Upload codes in JSON format. Either 'file' or 'codes' must be provided.
- * If both are provided, 'codes' takes precedence.
+ * @example
+ * {
+ * name: "CUSTOM_CODES",
+ * version: "1.0",
+ * format: "csv"
+ * }
*/
-export interface UploadRequestJson {
+export interface UploadRequest {
/**
* Name of the code system. Names are case-insensitive and stored uppercase.
* Builtin system names (e.g. ICD-10-CM, SNOMED_CT_US_LITE, LOINC, CPT, etc.) are
@@ -17,13 +21,22 @@ export interface UploadRequestJson {
version: string;
/** Optional revision number */
revision?: number;
+ /** Upload format */
+ format: UploadRequest.Format;
/**
- * The file contents as a base64-encoded JSON array string.
- * Prefer using 'codes' instead to pass the array directly without base64 encoding.
+ * The file contents as a base64-encoded string.
+ * For CSV format, this is the CSV file contents.
+ * For JSON format, this is a base64-encoded JSON array; prefer using 'codes' instead.
*/
file?: string;
+ /** Column name containing codes (required for CSV format) */
+ code_col?: string;
+ /** Column name containing descriptions (required for CSV format) */
+ desc_col?: string;
+ /** Optional column name containing long definitions (for CSV format) */
+ defn_col?: string;
/**
- * The codes to upload as a JSON array.
+ * The codes to upload as a JSON array (JSON format only).
* This is the preferred way to upload JSON codes, as it avoids unnecessary base64 encoding.
* If both 'codes' and 'file' are provided, 'codes' takes precedence.
*/
@@ -41,3 +54,12 @@ export interface UploadRequestJson {
*/
async?: boolean;
}
+
+export namespace UploadRequest {
+ /** Upload format */
+ export const Format = {
+ Csv: "csv",
+ Json: "json",
+ } as const;
+ export type Format = (typeof Format)[keyof typeof Format];
+}
diff --git a/src/api/resources/construe/client/requests/index.ts b/src/api/resources/construe/client/requests/index.ts
index d05e6f7..9d3efe0 100644
--- a/src/api/resources/construe/client/requests/index.ts
+++ b/src/api/resources/construe/client/requests/index.ts
@@ -6,3 +6,4 @@ export type { GetConstrueCodesCodesystemSearchSemanticRequest } from "./GetConst
export type { GetConstrueCodesCodesystemSearchTextRequest } from "./GetConstrueCodesCodesystemSearchTextRequest.js";
export type { GetConstrueCodesSystemsCodesystemExportRequest } from "./GetConstrueCodesSystemsCodesystemExportRequest.js";
export type { GetConstrueCodesSystemsCodesystemRequest } from "./GetConstrueCodesSystemsCodesystemRequest.js";
+export type { UploadRequest } from "./UploadRequest.js";
diff --git a/src/api/resources/construe/types/UploadRequest.ts b/src/api/resources/construe/types/UploadRequest.ts
deleted file mode 100644
index 8737f39..0000000
--- a/src/api/resources/construe/types/UploadRequest.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-import type * as phenoml from "../../../index.js";
-
-export type UploadRequest = phenoml.construe.UploadRequest.Csv | phenoml.construe.UploadRequest.Json;
-
-export namespace UploadRequest {
- export interface Csv extends phenoml.construe.UploadRequestCsv {
- format: "csv";
- }
-
- export interface Json extends phenoml.construe.UploadRequestJson {
- format: "json";
- }
-}
diff --git a/src/api/resources/construe/types/UploadRequestCsv.ts b/src/api/resources/construe/types/UploadRequestCsv.ts
deleted file mode 100644
index 2e1f820..0000000
--- a/src/api/resources/construe/types/UploadRequestCsv.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-export interface UploadRequestCsv {
- /**
- * Name of the code system. Names are case-insensitive and stored uppercase.
- * Builtin system names (e.g. ICD-10-CM, SNOMED_CT_US_LITE, LOINC, CPT, etc.) are
- * reserved and cannot be used for custom uploads; attempts return HTTP 403 Forbidden.
- */
- name: string;
- /** Version of the code system */
- version: string;
- /** Optional revision number */
- revision?: number;
- /** The CSV file contents as a base64-encoded string. */
- file: string;
- /** Column name containing codes */
- code_col: string;
- /** Column name containing descriptions */
- desc_col: string;
- /** Optional column name containing long definitions */
- defn_col?: string;
- /**
- * If true, replaces an existing code system with the same name and version.
- * Builtin systems cannot be replaced; attempts to do so return HTTP 403 Forbidden.
- * When false (default), uploading a duplicate returns 409 Conflict.
- */
- replace?: boolean;
- /**
- * If true, returns 202 Accepted immediately after validation and starts processing
- * in the background. Poll GET /construe/codes/systems/{name}?version={version} to
- * check when status transitions from "processing" to "ready" or "failed".
- */
- async?: boolean;
-}
diff --git a/src/api/resources/construe/types/index.ts b/src/api/resources/construe/types/index.ts
index dccb488..84bb311 100644
--- a/src/api/resources/construe/types/index.ts
+++ b/src/api/resources/construe/types/index.ts
@@ -17,6 +17,3 @@ export * from "./SemanticSearchResponse.js";
export * from "./SemanticSearchResult.js";
export * from "./TextSearchResponse.js";
export * from "./TextSearchResult.js";
-export * from "./UploadRequest.js";
-export * from "./UploadRequestCsv.js";
-export * from "./UploadRequestJson.js";
diff --git a/src/api/resources/fhirProvider/types/FhirProviderTemplate.ts b/src/api/resources/fhirProvider/types/FhirProviderTemplate.ts
index 90e7852..f3ee356 100644
--- a/src/api/resources/fhirProvider/types/FhirProviderTemplate.ts
+++ b/src/api/resources/fhirProvider/types/FhirProviderTemplate.ts
@@ -5,8 +5,6 @@ import type * as phenoml from "../../../index.js";
export interface FhirProviderTemplate {
/** Unique identifier for the FHIR provider */
id?: string;
- /** ID of the user who owns this FHIR provider */
- user_id?: string;
/** Display name for the FHIR provider */
name?: string;
/** Optional description of the FHIR provider */
diff --git a/src/api/resources/summary/types/SummaryTemplate.ts b/src/api/resources/summary/types/SummaryTemplate.ts
index 9ab07e2..2d8340f 100644
--- a/src/api/resources/summary/types/SummaryTemplate.ts
+++ b/src/api/resources/summary/types/SummaryTemplate.ts
@@ -2,7 +2,6 @@
export interface SummaryTemplate {
id?: string;
- user_id?: string;
name?: string;
description?: string;
/** Template with {{resource.field}} placeholders */
diff --git a/src/api/resources/tools/types/McpServerResponse.ts b/src/api/resources/tools/types/McpServerResponse.ts
index 4937f5c..e5c46ea 100644
--- a/src/api/resources/tools/types/McpServerResponse.ts
+++ b/src/api/resources/tools/types/McpServerResponse.ts
@@ -16,8 +16,6 @@ export namespace McpServerResponse {
export interface Data {
/** ID of the MCP server */
id?: string;
- /** ID of the user who created the MCP server */
- user_id?: string;
/** Name of the MCP server */
name?: string;
/** Description of the MCP server */
diff --git a/src/api/resources/tools/types/McpServerToolResponse.ts b/src/api/resources/tools/types/McpServerToolResponse.ts
index 7251477..9701f7b 100644
--- a/src/api/resources/tools/types/McpServerToolResponse.ts
+++ b/src/api/resources/tools/types/McpServerToolResponse.ts
@@ -16,8 +16,6 @@ export namespace McpServerToolResponse {
export interface Data {
/** ID of the MCP server tool */
id?: string;
- /** ID of the user who created the MCP server tool */
- user_id?: string;
/** Name of the MCP server tool */
name?: string;
/** Description of the MCP server tool */
diff --git a/src/api/resources/workflows/types/WorkflowDefinition.ts b/src/api/resources/workflows/types/WorkflowDefinition.ts
index 99fa14f..b5e71fe 100644
--- a/src/api/resources/workflows/types/WorkflowDefinition.ts
+++ b/src/api/resources/workflows/types/WorkflowDefinition.ts
@@ -5,8 +5,6 @@ import type * as phenoml from "../../../index.js";
export interface WorkflowDefinition {
/** Unique identifier for the workflow */
id?: string;
- /** ID of the user who created the workflow */
- user_id?: string;
/** Human-readable name for the workflow */
name?: string;
/** Natural language instructions that define the workflow logic */
diff --git a/src/api/resources/workflows/types/WorkflowResponse.ts b/src/api/resources/workflows/types/WorkflowResponse.ts
index b865698..e4c5f71 100644
--- a/src/api/resources/workflows/types/WorkflowResponse.ts
+++ b/src/api/resources/workflows/types/WorkflowResponse.ts
@@ -8,8 +8,6 @@ import type * as phenoml from "../../../index.js";
export interface WorkflowResponse {
/** Unique identifier for the workflow */
id?: string;
- /** ID of the user who created the workflow */
- user_id?: string;
/** Human-readable name for the workflow */
name?: string;
/** Natural language instructions that define the workflow logic */
diff --git a/src/version.ts b/src/version.ts
index 2b9b1a2..7ba3a93 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1 +1 @@
-export const SDK_VERSION = "5.3.0";
+export const SDK_VERSION = "6.0.0";
diff --git a/tests/wire/agent/main.test.ts b/tests/wire/agent/main.test.ts
index f65928a..8d42ec7 100644
--- a/tests/wire/agent/main.test.ts
+++ b/tests/wire/agent/main.test.ts
@@ -892,7 +892,6 @@ describe("Agent", () => {
content: "Hello, how are you?",
created: "2021-01-01T00:00:00Z",
updated: "2021-01-01T00:00:00Z",
- user_id: "user_123",
function_name: "get_patient_info",
function_args: { patient_id: "123" },
function_result: { name: "John Doe" },
@@ -925,7 +924,6 @@ describe("Agent", () => {
content: "Hello, how are you?",
created: "2021-01-01T00:00:00Z",
updated: "2021-01-01T00:00:00Z",
- user_id: "user_123",
function_name: "get_patient_info",
function_args: {
patient_id: "123",
diff --git a/tests/wire/construe/main.test.ts b/tests/wire/construe/main.test.ts
index 541a9b6..0c0c352 100644
--- a/tests/wire/construe/main.test.ts
+++ b/tests/wire/construe/main.test.ts
@@ -8,14 +8,7 @@ describe("Construe", () => {
test("uploadCodeSystem (1)", async () => {
const server = mockServerPool.createServer();
const client = new phenomlClient({ token: "test", environment: server.baseUrl });
- const rawRequestBody = {
- format: "csv",
- name: "CUSTOM_CODES",
- version: "1.0",
- file: "file",
- code_col: "code",
- desc_col: "description",
- };
+ const rawRequestBody = { name: "CUSTOM_CODES", version: "1.0", format: "csv" };
const rawResponseBody = { status: "success" };
server
.mockEndpoint()
@@ -27,12 +20,9 @@ describe("Construe", () => {
.build();
const response = await client.construe.uploadCodeSystem({
- format: "csv",
name: "CUSTOM_CODES",
version: "1.0",
- file: "file",
- code_col: "code",
- desc_col: "description",
+ format: "csv",
});
expect(response).toEqual({
status: "success",
@@ -42,14 +32,7 @@ describe("Construe", () => {
test("uploadCodeSystem (2)", async () => {
const server = mockServerPool.createServer();
const client = new phenomlClient({ token: "test", environment: server.baseUrl });
- const rawRequestBody = {
- format: "csv",
- name: "name",
- version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
- };
+ const rawRequestBody = { name: "name", version: "version", format: "csv" };
const rawResponseBody = { key: "value" };
server
.mockEndpoint()
@@ -62,12 +45,9 @@ describe("Construe", () => {
await expect(async () => {
return await client.construe.uploadCodeSystem({
- format: "csv",
name: "name",
version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
+ format: "csv",
});
}).rejects.toThrow(phenoml.construe.BadRequestError);
});
@@ -75,14 +55,7 @@ describe("Construe", () => {
test("uploadCodeSystem (3)", async () => {
const server = mockServerPool.createServer();
const client = new phenomlClient({ token: "test", environment: server.baseUrl });
- const rawRequestBody = {
- format: "csv",
- name: "name",
- version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
- };
+ const rawRequestBody = { name: "name", version: "version", format: "csv" };
const rawResponseBody = { key: "value" };
server
.mockEndpoint()
@@ -95,12 +68,9 @@ describe("Construe", () => {
await expect(async () => {
return await client.construe.uploadCodeSystem({
- format: "csv",
name: "name",
version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
+ format: "csv",
});
}).rejects.toThrow(phenoml.construe.UnauthorizedError);
});
@@ -108,14 +78,7 @@ describe("Construe", () => {
test("uploadCodeSystem (4)", async () => {
const server = mockServerPool.createServer();
const client = new phenomlClient({ token: "test", environment: server.baseUrl });
- const rawRequestBody = {
- format: "csv",
- name: "name",
- version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
- };
+ const rawRequestBody = { name: "name", version: "version", format: "csv" };
const rawResponseBody = { key: "value" };
server
.mockEndpoint()
@@ -128,12 +91,9 @@ describe("Construe", () => {
await expect(async () => {
return await client.construe.uploadCodeSystem({
- format: "csv",
name: "name",
version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
+ format: "csv",
});
}).rejects.toThrow(phenoml.construe.ForbiddenError);
});
@@ -141,14 +101,7 @@ describe("Construe", () => {
test("uploadCodeSystem (5)", async () => {
const server = mockServerPool.createServer();
const client = new phenomlClient({ token: "test", environment: server.baseUrl });
- const rawRequestBody = {
- format: "csv",
- name: "name",
- version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
- };
+ const rawRequestBody = { name: "name", version: "version", format: "csv" };
const rawResponseBody = { key: "value" };
server
.mockEndpoint()
@@ -161,12 +114,9 @@ describe("Construe", () => {
await expect(async () => {
return await client.construe.uploadCodeSystem({
- format: "csv",
name: "name",
version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
+ format: "csv",
});
}).rejects.toThrow(phenoml.construe.ConflictError);
});
@@ -174,14 +124,7 @@ describe("Construe", () => {
test("uploadCodeSystem (6)", async () => {
const server = mockServerPool.createServer();
const client = new phenomlClient({ token: "test", environment: server.baseUrl });
- const rawRequestBody = {
- format: "csv",
- name: "name",
- version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
- };
+ const rawRequestBody = { name: "name", version: "version", format: "csv" };
const rawResponseBody = { key: "value" };
server
.mockEndpoint()
@@ -194,12 +137,9 @@ describe("Construe", () => {
await expect(async () => {
return await client.construe.uploadCodeSystem({
- format: "csv",
name: "name",
version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
+ format: "csv",
});
}).rejects.toThrow(phenoml.construe.FailedDependencyError);
});
@@ -207,14 +147,7 @@ describe("Construe", () => {
test("uploadCodeSystem (7)", async () => {
const server = mockServerPool.createServer();
const client = new phenomlClient({ token: "test", environment: server.baseUrl });
- const rawRequestBody = {
- format: "csv",
- name: "name",
- version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
- };
+ const rawRequestBody = { name: "name", version: "version", format: "csv" };
const rawResponseBody = { key: "value" };
server
.mockEndpoint()
@@ -227,12 +160,9 @@ describe("Construe", () => {
await expect(async () => {
return await client.construe.uploadCodeSystem({
- format: "csv",
name: "name",
version: "version",
- file: "file",
- code_col: "code_col",
- desc_col: "desc_col",
+ format: "csv",
});
}).rejects.toThrow(phenoml.construe.InternalServerError);
});
diff --git a/tests/wire/fhir_provider/main.test.ts b/tests/wire/fhir_provider/main.test.ts
index 0c41f70..6789518 100644
--- a/tests/wire/fhir_provider/main.test.ts
+++ b/tests/wire/fhir_provider/main.test.ts
@@ -19,7 +19,6 @@ describe("FhirProvider", () => {
message: "Fhir provider created successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -60,7 +59,6 @@ describe("FhirProvider", () => {
message: "Fhir provider created successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -209,7 +207,6 @@ describe("FhirProvider", () => {
fhir_providers: [
{
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -246,7 +243,6 @@ describe("FhirProvider", () => {
fhir_providers: [
{
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -315,7 +311,6 @@ describe("FhirProvider", () => {
message: "Fhir provider created successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -350,7 +345,6 @@ describe("FhirProvider", () => {
message: "Fhir provider created successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -528,7 +522,6 @@ describe("FhirProvider", () => {
message: "Fhir provider created successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -566,7 +559,6 @@ describe("FhirProvider", () => {
message: "Fhir provider created successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -703,7 +695,6 @@ describe("FhirProvider", () => {
message: "Fhir provider created successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -741,7 +732,6 @@ describe("FhirProvider", () => {
message: "Fhir provider created successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -878,7 +868,6 @@ describe("FhirProvider", () => {
message: "Auth configuration removed successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
@@ -916,7 +905,6 @@ describe("FhirProvider", () => {
message: "Auth configuration removed successfully",
data: {
id: "1716d214-de93-43a4-aa6b-a878d864e2ad",
- user_id: "user-123",
name: "Epic Sandbox",
description: "Epic sandbox environment for testing",
provider: "athenahealth",
diff --git a/tests/wire/summary/main.test.ts b/tests/wire/summary/main.test.ts
index bf5037d..018072e 100644
--- a/tests/wire/summary/main.test.ts
+++ b/tests/wire/summary/main.test.ts
@@ -14,7 +14,6 @@ describe("Summary", () => {
templates: [
{
id: "id",
- user_id: "user_id",
name: "name",
description: "description",
template: "template",
@@ -40,7 +39,6 @@ describe("Summary", () => {
templates: [
{
id: "id",
- user_id: "user_id",
name: "name",
description: "description",
template: "template",
@@ -107,7 +105,6 @@ describe("Summary", () => {
template_id: "template_id",
template: {
id: "id",
- user_id: "user_id",
name: "name",
description: "description",
template: "template",
@@ -139,7 +136,6 @@ describe("Summary", () => {
template_id: "template_id",
template: {
id: "id",
- user_id: "user_id",
name: "name",
description: "description",
template: "template",
@@ -249,7 +245,6 @@ describe("Summary", () => {
success: true,
template: {
id: "id",
- user_id: "user_id",
name: "name",
description: "description",
template: "template",
@@ -273,7 +268,6 @@ describe("Summary", () => {
success: true,
template: {
id: "id",
- user_id: "user_id",
name: "name",
description: "description",
template: "template",
@@ -374,7 +368,6 @@ describe("Summary", () => {
message: "message",
template: {
id: "id",
- user_id: "user_id",
name: "name",
description: "description",
template: "template",
@@ -405,7 +398,6 @@ describe("Summary", () => {
message: "message",
template: {
id: "id",
- user_id: "user_id",
name: "name",
description: "description",
template: "template",
diff --git a/tests/wire/tools/mcpServer.test.ts b/tests/wire/tools/mcpServer.test.ts
index 5f37877..0afc97b 100644
--- a/tests/wire/tools/mcpServer.test.ts
+++ b/tests/wire/tools/mcpServer.test.ts
@@ -14,7 +14,6 @@ describe("McpServer", () => {
message: "MCP server created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server",
description: "My MCP Server is a server that provides MCP services",
mcp_server_url: "https://mcp.example.com",
@@ -39,7 +38,6 @@ describe("McpServer", () => {
message: "MCP server created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server",
description: "My MCP Server is a server that provides MCP services",
mcp_server_url: "https://mcp.example.com",
@@ -145,7 +143,6 @@ describe("McpServer", () => {
message: "MCP server created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server",
description: "My MCP Server is a server that provides MCP services",
mcp_server_url: "https://mcp.example.com",
@@ -166,7 +163,6 @@ describe("McpServer", () => {
message: "MCP server created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server",
description: "My MCP Server is a server that provides MCP services",
mcp_server_url: "https://mcp.example.com",
@@ -238,7 +234,6 @@ describe("McpServer", () => {
message: "MCP server created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server",
description: "My MCP Server is a server that provides MCP services",
mcp_server_url: "https://mcp.example.com",
@@ -259,7 +254,6 @@ describe("McpServer", () => {
message: "MCP server created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server",
description: "My MCP Server is a server that provides MCP services",
mcp_server_url: "https://mcp.example.com",
@@ -331,7 +325,6 @@ describe("McpServer", () => {
message: "MCP server created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server",
description: "My MCP Server is a server that provides MCP services",
mcp_server_url: "https://mcp.example.com",
@@ -352,7 +345,6 @@ describe("McpServer", () => {
message: "MCP server created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server",
description: "My MCP Server is a server that provides MCP services",
mcp_server_url: "https://mcp.example.com",
diff --git a/tests/wire/tools/mcpServer/tools.test.ts b/tests/wire/tools/mcpServer/tools.test.ts
index 43e2279..31ee554 100644
--- a/tests/wire/tools/mcpServer/tools.test.ts
+++ b/tests/wire/tools/mcpServer/tools.test.ts
@@ -14,7 +14,6 @@ describe("Tools", () => {
message: "MCP server tool created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server Tool",
description: "My MCP Server Tool is a tool that provides MCP services",
input_schema: { name: "string", age: "number" },
@@ -37,7 +36,6 @@ describe("Tools", () => {
message: "MCP server tool created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server Tool",
description: "My MCP Server Tool is a tool that provides MCP services",
input_schema: {
@@ -114,7 +112,6 @@ describe("Tools", () => {
message: "MCP server tool created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server Tool",
description: "My MCP Server Tool is a tool that provides MCP services",
input_schema: { name: "string", age: "number" },
@@ -137,7 +134,6 @@ describe("Tools", () => {
message: "MCP server tool created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server Tool",
description: "My MCP Server Tool is a tool that provides MCP services",
input_schema: {
@@ -214,7 +210,6 @@ describe("Tools", () => {
message: "MCP server tool created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server Tool",
description: "My MCP Server Tool is a tool that provides MCP services",
input_schema: { name: "string", age: "number" },
@@ -237,7 +232,6 @@ describe("Tools", () => {
message: "MCP server tool created successfully",
data: {
id: "123",
- user_id: "123",
name: "My MCP Server Tool",
description: "My MCP Server Tool is a tool that provides MCP services",
input_schema: {
diff --git a/tests/wire/workflows/main.test.ts b/tests/wire/workflows/main.test.ts
index 04fdc59..be13ec9 100644
--- a/tests/wire/workflows/main.test.ts
+++ b/tests/wire/workflows/main.test.ts
@@ -15,7 +15,6 @@ describe("Workflows", () => {
workflows: [
{
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -32,7 +31,6 @@ describe("Workflows", () => {
workflow_details: [
{
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -58,7 +56,6 @@ describe("Workflows", () => {
workflows: [
{
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -78,7 +75,6 @@ describe("Workflows", () => {
workflow_details: [
{
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -149,7 +145,6 @@ describe("Workflows", () => {
workflow_id: "550e8400-e29b-41d4-a716-446655440001",
workflow: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -174,7 +169,6 @@ describe("Workflows", () => {
},
workflow_details: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -226,7 +220,6 @@ describe("Workflows", () => {
workflow_id: "550e8400-e29b-41d4-a716-446655440001",
workflow: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -254,7 +247,6 @@ describe("Workflows", () => {
},
workflow_details: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -425,7 +417,6 @@ describe("Workflows", () => {
success: true,
workflow: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -450,7 +441,6 @@ describe("Workflows", () => {
},
workflow_details: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -485,7 +475,6 @@ describe("Workflows", () => {
success: true,
workflow: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -513,7 +502,6 @@ describe("Workflows", () => {
},
workflow_details: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -606,7 +594,6 @@ describe("Workflows", () => {
message: "Workflow updated successfully",
workflow: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -631,7 +618,6 @@ describe("Workflows", () => {
},
workflow_details: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -682,7 +668,6 @@ describe("Workflows", () => {
message: "Workflow updated successfully",
workflow: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {
@@ -710,7 +695,6 @@ describe("Workflows", () => {
},
workflow_details: {
id: "550e8400-e29b-41d4-a716-446655440001",
- user_id: "29m7ffyr88m0mv8",
name: "Patient Data Mapping Workflow",
workflow_instructions: "Given diagnosis data, find the patient and create condition record",
sample_data: {