phenoml 5.3.0 → 6.1.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/dist/cjs/BaseClient.d.ts +2 -0
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/agent/client/Client.js +16 -8
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +14 -7
- package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +0 -2
- package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +0 -2
- package/dist/cjs/api/resources/cohort/client/Client.js +2 -1
- package/dist/cjs/api/resources/construe/client/Client.d.ts +7 -8
- package/dist/cjs/api/resources/construe/client/Client.js +33 -22
- package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +55 -0
- package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +12 -0
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.d.ts +5 -0
- package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.js +50 -0
- package/dist/cjs/api/resources/construe/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/errors/index.js +1 -0
- package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +2 -0
- package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +1 -3
- package/dist/cjs/api/resources/construe/types/GetCodeSystemDetailResponse.d.ts +4 -4
- package/dist/cjs/api/resources/construe/types/GetCodeSystemDetailResponse.js +2 -2
- package/dist/cjs/api/resources/construe/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/construe/types/index.js +0 -3
- package/dist/cjs/api/resources/fhir/client/Client.js +12 -6
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +14 -7
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +0 -2
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +10 -5
- package/dist/cjs/api/resources/summary/client/Client.js +12 -6
- package/dist/cjs/api/resources/summary/types/SummaryTemplate.d.ts +0 -1
- package/dist/cjs/api/resources/tools/client/Client.js +8 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +8 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +8 -4
- package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +0 -2
- package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/client/Client.js +12 -6
- package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +0 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -1
- package/dist/cjs/core/fetcher/Fetcher.js +4 -4
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
- package/dist/cjs/core/headers.js +6 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +2 -0
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/agent/client/Client.mjs +16 -8
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +14 -7
- package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +0 -2
- package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +0 -2
- package/dist/esm/api/resources/cohort/client/Client.mjs +2 -1
- package/dist/esm/api/resources/construe/client/Client.d.mts +7 -8
- package/dist/esm/api/resources/construe/client/Client.mjs +33 -22
- package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +55 -0
- package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +9 -0
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.d.mts +5 -0
- package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.mjs +13 -0
- package/dist/esm/api/resources/construe/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/errors/index.mjs +1 -0
- package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +2 -0
- package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +1 -3
- package/dist/esm/api/resources/construe/types/GetCodeSystemDetailResponse.d.mts +4 -4
- package/dist/esm/api/resources/construe/types/GetCodeSystemDetailResponse.mjs +2 -2
- package/dist/esm/api/resources/construe/types/index.d.mts +0 -3
- package/dist/esm/api/resources/construe/types/index.mjs +0 -3
- package/dist/esm/api/resources/fhir/client/Client.mjs +12 -6
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +14 -7
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +0 -2
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +10 -5
- package/dist/esm/api/resources/summary/client/Client.mjs +12 -6
- package/dist/esm/api/resources/summary/types/SummaryTemplate.d.mts +0 -1
- package/dist/esm/api/resources/tools/client/Client.mjs +8 -4
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +8 -4
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +8 -4
- package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +0 -2
- package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +0 -2
- package/dist/esm/api/resources/workflows/client/Client.mjs +12 -6
- package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +0 -2
- package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +0 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +2 -1
- package/dist/esm/core/fetcher/Fetcher.mjs +4 -4
- package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
- package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
- package/dist/esm/core/headers.mjs +6 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +6 -8
- package/dist/cjs/api/resources/construe/types/UploadRequest.d.ts +0 -10
- package/dist/cjs/api/resources/construe/types/UploadRequest.js +0 -3
- package/dist/cjs/api/resources/construe/types/UploadRequestCsv.d.ts +0 -32
- package/dist/cjs/api/resources/construe/types/UploadRequestCsv.js +0 -3
- package/dist/cjs/api/resources/construe/types/UploadRequestJson.d.ts +0 -40
- package/dist/cjs/api/resources/construe/types/UploadRequestJson.js +0 -3
- package/dist/esm/api/resources/construe/types/UploadRequest.d.mts +0 -10
- package/dist/esm/api/resources/construe/types/UploadRequest.mjs +0 -2
- package/dist/esm/api/resources/construe/types/UploadRequestCsv.d.mts +0 -32
- package/dist/esm/api/resources/construe/types/UploadRequestCsv.mjs +0 -2
- package/dist/esm/api/resources/construe/types/UploadRequestJson.d.mts +0 -40
- package/dist/esm/api/resources/construe/types/UploadRequestJson.mjs +0 -2
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface UploadRequestCsv {
|
|
2
|
-
/**
|
|
3
|
-
* Name of the code system. Names are case-insensitive and stored uppercase.
|
|
4
|
-
* Builtin system names (e.g. ICD-10-CM, SNOMED_CT_US_LITE, LOINC, CPT, etc.) are
|
|
5
|
-
* reserved and cannot be used for custom uploads; attempts return HTTP 403 Forbidden.
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/** Version of the code system */
|
|
9
|
-
version: string;
|
|
10
|
-
/** Optional revision number */
|
|
11
|
-
revision?: number;
|
|
12
|
-
/** The CSV file contents as a base64-encoded string. */
|
|
13
|
-
file: string;
|
|
14
|
-
/** Column name containing codes */
|
|
15
|
-
code_col: string;
|
|
16
|
-
/** Column name containing descriptions */
|
|
17
|
-
desc_col: string;
|
|
18
|
-
/** Optional column name containing long definitions */
|
|
19
|
-
defn_col?: string;
|
|
20
|
-
/**
|
|
21
|
-
* If true, replaces an existing code system with the same name and version.
|
|
22
|
-
* Builtin systems cannot be replaced; attempts to do so return HTTP 403 Forbidden.
|
|
23
|
-
* When false (default), uploading a duplicate returns 409 Conflict.
|
|
24
|
-
*/
|
|
25
|
-
replace?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* If true, returns 202 Accepted immediately after validation and starts processing
|
|
28
|
-
* in the background. Poll GET /construe/codes/systems/{name}?version={version} to
|
|
29
|
-
* check when status transitions from "processing" to "ready" or "failed".
|
|
30
|
-
*/
|
|
31
|
-
async?: boolean;
|
|
32
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type * as phenoml from "../../../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Upload codes in JSON format. Either 'file' or 'codes' must be provided.
|
|
4
|
-
* If both are provided, 'codes' takes precedence.
|
|
5
|
-
*/
|
|
6
|
-
export interface UploadRequestJson {
|
|
7
|
-
/**
|
|
8
|
-
* Name of the code system. Names are case-insensitive and stored uppercase.
|
|
9
|
-
* Builtin system names (e.g. ICD-10-CM, SNOMED_CT_US_LITE, LOINC, CPT, etc.) are
|
|
10
|
-
* reserved and cannot be used for custom uploads; attempts return HTTP 403 Forbidden.
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
/** Version of the code system */
|
|
14
|
-
version: string;
|
|
15
|
-
/** Optional revision number */
|
|
16
|
-
revision?: number;
|
|
17
|
-
/**
|
|
18
|
-
* The file contents as a base64-encoded JSON array string.
|
|
19
|
-
* Prefer using 'codes' instead to pass the array directly without base64 encoding.
|
|
20
|
-
*/
|
|
21
|
-
file?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The codes to upload as a JSON array.
|
|
24
|
-
* This is the preferred way to upload JSON codes, as it avoids unnecessary base64 encoding.
|
|
25
|
-
* If both 'codes' and 'file' are provided, 'codes' takes precedence.
|
|
26
|
-
*/
|
|
27
|
-
codes?: phenoml.construe.CodeResponse[];
|
|
28
|
-
/**
|
|
29
|
-
* If true, replaces an existing code system with the same name and version.
|
|
30
|
-
* Builtin systems cannot be replaced; attempts to do so return HTTP 403 Forbidden.
|
|
31
|
-
* When false (default), uploading a duplicate returns 409 Conflict.
|
|
32
|
-
*/
|
|
33
|
-
replace?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* If true, returns 202 Accepted immediately after validation and starts processing
|
|
36
|
-
* in the background. Poll GET /construe/codes/systems/{name}?version={version} to
|
|
37
|
-
* check when status transitions from "processing" to "ready" or "failed".
|
|
38
|
-
*/
|
|
39
|
-
async?: boolean;
|
|
40
|
-
}
|