phenoml 0.0.6 → 0.0.7
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/Client.js +2 -2
- package/dist/cjs/api/index.d.ts +0 -1
- package/dist/cjs/api/index.js +0 -1
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +117 -15
- package/dist/cjs/api/resources/workflows/client/Client.js +392 -45
- package/dist/cjs/api/resources/workflows/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/client/index.js +15 -0
- package/dist/cjs/api/resources/workflows/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/index.js +0 -1
- package/dist/cjs/api/resources/workflows/{resources/workflows/types → types}/WorkflowsGetResponse.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/{resources/workflows/types → types}/WorkflowsUpdateResponse.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/workflows/types/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/index.d.mts +0 -1
- package/dist/esm/api/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/client/Client.d.mts +117 -15
- package/dist/esm/api/resources/workflows/client/Client.mjs +392 -45
- package/dist/esm/api/resources/workflows/client/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/client/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/{resources/workflows/types → types}/WorkflowsGetResponse.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/{resources/workflows/types → types}/WorkflowsUpdateResponse.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/index.d.mts +3 -0
- package/dist/esm/api/resources/workflows/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +12 -506
- package/dist/cjs/api/resources/workflows/resources/index.d.ts +0 -4
- package/dist/cjs/api/resources/workflows/resources/index.js +0 -43
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.d.ts +0 -50
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.js +0 -268
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/resources/mcpServer/index.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/resources/mcpServer/index.js +0 -18
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.js +0 -37
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.ts +0 -49
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.js +0 -265
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.js +0 -2
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.js +0 -17
- package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.d.ts +0 -145
- package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.js +0 -569
- package/dist/cjs/api/resources/workflows/resources/workflows/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/resources/workflows/client/index.js +0 -17
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/workflows/resources/workflows/index.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/resources/workflows/index.js +0 -18
- package/dist/cjs/api/resources/workflows/resources/workflows/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/workflows/resources/workflows/types/index.js +0 -19
- package/dist/cjs/api/types/CohortResponse.d.ts +0 -1
- package/dist/cjs/api/types/CohortResponse.js +0 -3
- package/dist/cjs/api/types/Lang2FhirAndCreateResponse.d.ts +0 -1
- package/dist/cjs/api/types/Lang2FhirAndCreateResponse.js +0 -3
- package/dist/cjs/api/types/Lang2FhirAndSearchResponse.d.ts +0 -1
- package/dist/cjs/api/types/Lang2FhirAndSearchResponse.js +0 -3
- package/dist/cjs/api/types/McpServerResponse.d.ts +0 -1
- package/dist/cjs/api/types/McpServerResponse.js +0 -3
- package/dist/cjs/api/types/McpServerToolCallResponse.d.ts +0 -1
- package/dist/cjs/api/types/McpServerToolCallResponse.js +0 -3
- package/dist/cjs/api/types/McpServerToolResponse.d.ts +0 -1
- package/dist/cjs/api/types/McpServerToolResponse.js +0 -3
- package/dist/cjs/api/types/SearchConcept.d.ts +0 -1
- package/dist/cjs/api/types/SearchConcept.js +0 -3
- package/dist/cjs/api/types/index.d.ts +0 -7
- package/dist/cjs/api/types/index.js +0 -23
- package/dist/esm/api/resources/workflows/resources/index.d.mts +0 -4
- package/dist/esm/api/resources/workflows/resources/index.mjs +0 -4
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.d.mts +0 -50
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.mjs +0 -231
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/index.d.mts +0 -2
- package/dist/esm/api/resources/workflows/resources/mcpServer/index.mjs +0 -2
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.mts +0 -49
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.mjs +0 -228
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/resources/workflows/client/Client.d.mts +0 -145
- package/dist/esm/api/resources/workflows/resources/workflows/client/Client.mjs +0 -532
- package/dist/esm/api/resources/workflows/resources/workflows/client/index.d.mts +0 -2
- package/dist/esm/api/resources/workflows/resources/workflows/client/index.mjs +0 -2
- package/dist/esm/api/resources/workflows/resources/workflows/index.d.mts +0 -2
- package/dist/esm/api/resources/workflows/resources/workflows/index.mjs +0 -2
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/resources/workflows/types/index.d.mts +0 -3
- package/dist/esm/api/resources/workflows/resources/workflows/types/index.mjs +0 -3
- package/dist/esm/api/types/CohortResponse.d.mts +0 -1
- package/dist/esm/api/types/CohortResponse.mjs +0 -2
- package/dist/esm/api/types/Lang2FhirAndCreateResponse.d.mts +0 -1
- package/dist/esm/api/types/Lang2FhirAndCreateResponse.mjs +0 -2
- package/dist/esm/api/types/Lang2FhirAndSearchResponse.d.mts +0 -1
- package/dist/esm/api/types/Lang2FhirAndSearchResponse.mjs +0 -2
- package/dist/esm/api/types/McpServerResponse.d.mts +0 -1
- package/dist/esm/api/types/McpServerResponse.mjs +0 -2
- package/dist/esm/api/types/McpServerToolCallResponse.d.mts +0 -1
- package/dist/esm/api/types/McpServerToolCallResponse.mjs +0 -2
- package/dist/esm/api/types/McpServerToolResponse.d.mts +0 -1
- package/dist/esm/api/types/McpServerToolResponse.mjs +0 -2
- package/dist/esm/api/types/SearchConcept.d.mts +0 -1
- package/dist/esm/api/types/SearchConcept.mjs +0 -2
- package/dist/esm/api/types/index.d.mts +0 -7
- package/dist/esm/api/types/index.mjs +0 -7
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/CreateWorkflowRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/CreateWorkflowRequest.js +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/ExecuteWorkflowRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/ExecuteWorkflowRequest.js +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/UpdateWorkflowRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/UpdateWorkflowRequest.js +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsGetRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsGetRequest.js +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsListRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsListRequest.js +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/mcpServer/client → client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/types → types}/WorkflowsDeleteResponse.d.ts +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/types → types}/WorkflowsDeleteResponse.js +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/types → types}/WorkflowsGetResponse.js +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/types → types}/WorkflowsUpdateResponse.js +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/CreateWorkflowRequest.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/CreateWorkflowRequest.mjs +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/ExecuteWorkflowRequest.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/ExecuteWorkflowRequest.mjs +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/UpdateWorkflowRequest.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/UpdateWorkflowRequest.mjs +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsGetRequest.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsGetRequest.mjs +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsListRequest.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsListRequest.mjs +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/types → types}/WorkflowsDeleteResponse.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/types → types}/WorkflowsDeleteResponse.mjs +0 -0
package/dist/esm/api/index.d.mts
CHANGED
package/dist/esm/api/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import { McpServer } from "../resources/mcpServer/client/Client.mjs";
|
|
3
|
+
import * as phenoml from "../../../index.mjs";
|
|
5
4
|
export declare namespace Workflows {
|
|
6
5
|
interface Options extends BaseClientOptions {
|
|
7
6
|
}
|
|
@@ -10,34 +9,137 @@ export declare namespace Workflows {
|
|
|
10
9
|
}
|
|
11
10
|
export declare class Workflows {
|
|
12
11
|
protected readonly _options: Workflows.Options;
|
|
13
|
-
protected _workflows: Workflows_ | undefined;
|
|
14
|
-
protected _mcpServer: McpServer | undefined;
|
|
15
12
|
constructor(_options?: Workflows.Options);
|
|
16
|
-
get workflows(): Workflows_;
|
|
17
|
-
get mcpServer(): McpServer;
|
|
18
13
|
/**
|
|
14
|
+
* Retrieves all workflow definitions for the authenticated user
|
|
15
|
+
*
|
|
16
|
+
* @param {phenoml.workflows.WorkflowsListRequest} request
|
|
17
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
20
|
+
* @throws {@link phenoml.workflows.ForbiddenError}
|
|
21
|
+
* @throws {@link phenoml.workflows.InternalServerError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await client.workflows.list({
|
|
25
|
+
* verbose: true
|
|
26
|
+
* })
|
|
27
|
+
*/
|
|
28
|
+
list(request?: phenoml.workflows.WorkflowsListRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<phenoml.workflows.ListWorkflowsResponse>;
|
|
29
|
+
private __list;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new workflow definition with graph generation from workflow instructions
|
|
32
|
+
*
|
|
33
|
+
* @param {phenoml.workflows.CreateWorkflowRequest} request
|
|
19
34
|
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
35
|
*
|
|
36
|
+
* @throws {@link phenoml.workflows.BadRequestError}
|
|
37
|
+
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
38
|
+
* @throws {@link phenoml.workflows.ForbiddenError}
|
|
39
|
+
* @throws {@link phenoml.workflows.InternalServerError}
|
|
40
|
+
*
|
|
21
41
|
* @example
|
|
22
|
-
* await client.workflows.
|
|
42
|
+
* await client.workflows.create({
|
|
43
|
+
* verbose: true,
|
|
44
|
+
* name: "Patient Data Mapping Workflow",
|
|
45
|
+
* workflow_instructions: "Given diagnosis data, find the patient and create condition record",
|
|
46
|
+
* sample_data: {
|
|
47
|
+
* "patient_last_name": "Rippin",
|
|
48
|
+
* "patient_first_name": "Clay",
|
|
49
|
+
* "diagnosis_code": "I10"
|
|
50
|
+
* },
|
|
51
|
+
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
52
|
+
* })
|
|
23
53
|
*/
|
|
24
|
-
|
|
25
|
-
private
|
|
54
|
+
create(request: phenoml.workflows.CreateWorkflowRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<phenoml.workflows.CreateWorkflowResponse>;
|
|
55
|
+
private __create;
|
|
26
56
|
/**
|
|
57
|
+
* Retrieves a workflow definition by its ID
|
|
58
|
+
*
|
|
59
|
+
* @param {string} id - ID of the workflow to retrieve
|
|
60
|
+
* @param {phenoml.workflows.WorkflowsGetRequest} request
|
|
27
61
|
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
62
|
*
|
|
63
|
+
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
64
|
+
* @throws {@link phenoml.workflows.ForbiddenError}
|
|
65
|
+
* @throws {@link phenoml.workflows.NotFoundError}
|
|
66
|
+
* @throws {@link phenoml.workflows.InternalServerError}
|
|
67
|
+
*
|
|
29
68
|
* @example
|
|
30
|
-
* await client.workflows.
|
|
69
|
+
* await client.workflows.get("id", {
|
|
70
|
+
* verbose: true
|
|
71
|
+
* })
|
|
31
72
|
*/
|
|
32
|
-
|
|
33
|
-
private
|
|
73
|
+
get(id: string, request?: phenoml.workflows.WorkflowsGetRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<phenoml.workflows.WorkflowsGetResponse>;
|
|
74
|
+
private __get;
|
|
34
75
|
/**
|
|
76
|
+
* Updates an existing workflow definition
|
|
77
|
+
*
|
|
78
|
+
* @param {string} id - ID of the workflow to update
|
|
79
|
+
* @param {phenoml.workflows.UpdateWorkflowRequest} request
|
|
35
80
|
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
81
|
*
|
|
82
|
+
* @throws {@link phenoml.workflows.BadRequestError}
|
|
83
|
+
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
84
|
+
* @throws {@link phenoml.workflows.ForbiddenError}
|
|
85
|
+
* @throws {@link phenoml.workflows.NotFoundError}
|
|
86
|
+
* @throws {@link phenoml.workflows.InternalServerError}
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await client.workflows.update("id", {
|
|
90
|
+
* verbose: true,
|
|
91
|
+
* name: "Updated Patient Data Mapping Workflow",
|
|
92
|
+
* workflow_instructions: "Given diagnosis data, find the patient and create condition record",
|
|
93
|
+
* sample_data: {
|
|
94
|
+
* "patient_last_name": "Smith",
|
|
95
|
+
* "patient_first_name": "John",
|
|
96
|
+
* "diagnosis_code": "E11"
|
|
97
|
+
* },
|
|
98
|
+
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
99
|
+
* })
|
|
100
|
+
*/
|
|
101
|
+
update(id: string, request: phenoml.workflows.UpdateWorkflowRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<phenoml.workflows.WorkflowsUpdateResponse>;
|
|
102
|
+
private __update;
|
|
103
|
+
/**
|
|
104
|
+
* Deletes a workflow definition by its ID
|
|
105
|
+
*
|
|
106
|
+
* @param {string} id - ID of the workflow to delete
|
|
107
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
110
|
+
* @throws {@link phenoml.workflows.ForbiddenError}
|
|
111
|
+
* @throws {@link phenoml.workflows.NotFoundError}
|
|
112
|
+
* @throws {@link phenoml.workflows.InternalServerError}
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* await client.workflows.delete("id")
|
|
116
|
+
*/
|
|
117
|
+
delete(id: string, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<phenoml.workflows.WorkflowsDeleteResponse>;
|
|
118
|
+
private __delete;
|
|
119
|
+
/**
|
|
120
|
+
* Executes a workflow with provided input data and returns results
|
|
121
|
+
*
|
|
122
|
+
* @param {string} id - ID of the workflow to execute
|
|
123
|
+
* @param {phenoml.workflows.ExecuteWorkflowRequest} request
|
|
124
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link phenoml.workflows.BadRequestError}
|
|
127
|
+
* @throws {@link phenoml.workflows.UnauthorizedError}
|
|
128
|
+
* @throws {@link phenoml.workflows.ForbiddenError}
|
|
129
|
+
* @throws {@link phenoml.workflows.NotFoundError}
|
|
130
|
+
* @throws {@link phenoml.workflows.InternalServerError}
|
|
131
|
+
*
|
|
37
132
|
* @example
|
|
38
|
-
* await client.workflows.
|
|
133
|
+
* await client.workflows.execute("id", {
|
|
134
|
+
* input_data: {
|
|
135
|
+
* "patient_last_name": "Johnson",
|
|
136
|
+
* "patient_first_name": "Mary",
|
|
137
|
+
* "diagnosis_code": "M79.3",
|
|
138
|
+
* "encounter_date": "2024-01-15"
|
|
139
|
+
* }
|
|
140
|
+
* })
|
|
39
141
|
*/
|
|
40
|
-
|
|
41
|
-
private
|
|
142
|
+
execute(id: string, request: phenoml.workflows.ExecuteWorkflowRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<phenoml.workflows.ExecuteWorkflowResponse>;
|
|
143
|
+
private __execute;
|
|
42
144
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
43
145
|
}
|