phenoml 11.2.0 → 11.4.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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "phenoml",
46
- "X-Fern-SDK-Version": "11.2.0",
47
- "User-Agent": "phenoml/11.2.0",
46
+ "X-Fern-SDK-Version": "11.4.0",
47
+ "User-Agent": "phenoml/11.4.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -6,8 +6,8 @@
6
6
  * }
7
7
  */
8
8
  export interface AuthGenerateTokenRequest {
9
- /** The user's username or email */
9
+ /** The API credential client ID */
10
10
  username: string;
11
- /** The user's password */
11
+ /** The API credential client secret */
12
12
  password: string;
13
13
  }
@@ -28,9 +28,28 @@ export interface ExtractRequestConfig {
28
28
  * Citations show the exact text spans (with character offsets) that led to each code.
29
29
  * Only available when using chunking_method: "sentences".
30
30
  * The "none" method returns full text as one chunk (not useful for citations).
31
- * LLM-based chunking (paragraphs, topics) does not support citations.
31
+ * LLM-based chunking (paragraphs, topics, soap_note) does not support citations.
32
32
  */
33
33
  include_citations?: boolean | undefined;
34
+ /**
35
+ * Optional context describing the goal of the extraction.
36
+ * Required when min_context_relevance is greater than 0.
37
+ */
38
+ extraction_context?: string | undefined;
39
+ /**
40
+ * Minimum relevance score (0.0–1.0) a chunk must reach to proceed to code extraction.
41
+ * Chunks are scored by an LLM against the extraction_context goal. Chunks below this
42
+ * threshold are dropped, reducing noise and extraction cost.
43
+ * Set to 0 (the default) to disable relevance filtering and extract from all chunks.
44
+ * Requires the "extraction_context" field when set above 0.
45
+ */
46
+ min_context_relevance?: number | undefined;
47
+ /**
48
+ * How much effort to spend ensuring consistent results across repeated requests.
49
+ * Higher levels apply stricter filtering to remove borderline codes that may
50
+ * vary between calls, improving determinism at the cost of additional latency.
51
+ */
52
+ consistency_effort?: ExtractRequestConfig.ConsistencyEffort | undefined;
34
53
  }
35
54
  export declare namespace ExtractRequestConfig {
36
55
  /** Method for splitting input text into chunks before code extraction */
@@ -39,6 +58,7 @@ export declare namespace ExtractRequestConfig {
39
58
  readonly Sentences: "sentences";
40
59
  readonly Paragraphs: "paragraphs";
41
60
  readonly Topics: "topics";
61
+ readonly SoapNote: "soap_note";
42
62
  };
43
63
  type ChunkingMethod = (typeof ChunkingMethod)[keyof typeof ChunkingMethod];
44
64
  /**
@@ -53,4 +73,16 @@ export declare namespace ExtractRequestConfig {
53
73
  readonly MedicationSearch: "medication_search";
54
74
  };
55
75
  type ValidationMethod = (typeof ValidationMethod)[keyof typeof ValidationMethod];
76
+ /**
77
+ * How much effort to spend ensuring consistent results across repeated requests.
78
+ * Higher levels apply stricter filtering to remove borderline codes that may
79
+ * vary between calls, improving determinism at the cost of additional latency.
80
+ */
81
+ const ConsistencyEffort: {
82
+ readonly None: "none";
83
+ readonly Low: "low";
84
+ readonly Medium: "medium";
85
+ readonly High: "high";
86
+ };
87
+ type ConsistencyEffort = (typeof ConsistencyEffort)[keyof typeof ConsistencyEffort];
56
88
  }
@@ -10,6 +10,7 @@ var ExtractRequestConfig;
10
10
  Sentences: "sentences",
11
11
  Paragraphs: "paragraphs",
12
12
  Topics: "topics",
13
+ SoapNote: "soap_note",
13
14
  };
14
15
  /**
15
16
  * Method for validating extracted codes:
@@ -22,4 +23,15 @@ var ExtractRequestConfig;
22
23
  Simple: "simple",
23
24
  MedicationSearch: "medication_search",
24
25
  };
26
+ /**
27
+ * How much effort to spend ensuring consistent results across repeated requests.
28
+ * Higher levels apply stricter filtering to remove borderline codes that may
29
+ * vary between calls, improving determinism at the cost of additional latency.
30
+ */
31
+ ExtractRequestConfig.ConsistencyEffort = {
32
+ None: "none",
33
+ Low: "low",
34
+ Medium: "medium",
35
+ High: "high",
36
+ };
25
37
  })(ExtractRequestConfig || (exports.ExtractRequestConfig = ExtractRequestConfig = {}));
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "11.2.0";
1
+ export declare const SDK_VERSION = "11.4.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "11.2.0";
4
+ exports.SDK_VERSION = "11.4.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "phenoml",
9
- "X-Fern-SDK-Version": "11.2.0",
10
- "User-Agent": "phenoml/11.2.0",
9
+ "X-Fern-SDK-Version": "11.4.0",
10
+ "User-Agent": "phenoml/11.4.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -6,8 +6,8 @@
6
6
  * }
7
7
  */
8
8
  export interface AuthGenerateTokenRequest {
9
- /** The user's username or email */
9
+ /** The API credential client ID */
10
10
  username: string;
11
- /** The user's password */
11
+ /** The API credential client secret */
12
12
  password: string;
13
13
  }
@@ -28,9 +28,28 @@ export interface ExtractRequestConfig {
28
28
  * Citations show the exact text spans (with character offsets) that led to each code.
29
29
  * Only available when using chunking_method: "sentences".
30
30
  * The "none" method returns full text as one chunk (not useful for citations).
31
- * LLM-based chunking (paragraphs, topics) does not support citations.
31
+ * LLM-based chunking (paragraphs, topics, soap_note) does not support citations.
32
32
  */
33
33
  include_citations?: boolean | undefined;
34
+ /**
35
+ * Optional context describing the goal of the extraction.
36
+ * Required when min_context_relevance is greater than 0.
37
+ */
38
+ extraction_context?: string | undefined;
39
+ /**
40
+ * Minimum relevance score (0.0–1.0) a chunk must reach to proceed to code extraction.
41
+ * Chunks are scored by an LLM against the extraction_context goal. Chunks below this
42
+ * threshold are dropped, reducing noise and extraction cost.
43
+ * Set to 0 (the default) to disable relevance filtering and extract from all chunks.
44
+ * Requires the "extraction_context" field when set above 0.
45
+ */
46
+ min_context_relevance?: number | undefined;
47
+ /**
48
+ * How much effort to spend ensuring consistent results across repeated requests.
49
+ * Higher levels apply stricter filtering to remove borderline codes that may
50
+ * vary between calls, improving determinism at the cost of additional latency.
51
+ */
52
+ consistency_effort?: ExtractRequestConfig.ConsistencyEffort | undefined;
34
53
  }
35
54
  export declare namespace ExtractRequestConfig {
36
55
  /** Method for splitting input text into chunks before code extraction */
@@ -39,6 +58,7 @@ export declare namespace ExtractRequestConfig {
39
58
  readonly Sentences: "sentences";
40
59
  readonly Paragraphs: "paragraphs";
41
60
  readonly Topics: "topics";
61
+ readonly SoapNote: "soap_note";
42
62
  };
43
63
  type ChunkingMethod = (typeof ChunkingMethod)[keyof typeof ChunkingMethod];
44
64
  /**
@@ -53,4 +73,16 @@ export declare namespace ExtractRequestConfig {
53
73
  readonly MedicationSearch: "medication_search";
54
74
  };
55
75
  type ValidationMethod = (typeof ValidationMethod)[keyof typeof ValidationMethod];
76
+ /**
77
+ * How much effort to spend ensuring consistent results across repeated requests.
78
+ * Higher levels apply stricter filtering to remove borderline codes that may
79
+ * vary between calls, improving determinism at the cost of additional latency.
80
+ */
81
+ const ConsistencyEffort: {
82
+ readonly None: "none";
83
+ readonly Low: "low";
84
+ readonly Medium: "medium";
85
+ readonly High: "high";
86
+ };
87
+ type ConsistencyEffort = (typeof ConsistencyEffort)[keyof typeof ConsistencyEffort];
56
88
  }
@@ -7,6 +7,7 @@ export var ExtractRequestConfig;
7
7
  Sentences: "sentences",
8
8
  Paragraphs: "paragraphs",
9
9
  Topics: "topics",
10
+ SoapNote: "soap_note",
10
11
  };
11
12
  /**
12
13
  * Method for validating extracted codes:
@@ -19,4 +20,15 @@ export var ExtractRequestConfig;
19
20
  Simple: "simple",
20
21
  MedicationSearch: "medication_search",
21
22
  };
23
+ /**
24
+ * How much effort to spend ensuring consistent results across repeated requests.
25
+ * Higher levels apply stricter filtering to remove borderline codes that may
26
+ * vary between calls, improving determinism at the cost of additional latency.
27
+ */
28
+ ExtractRequestConfig.ConsistencyEffort = {
29
+ None: "none",
30
+ Low: "low",
31
+ Medium: "medium",
32
+ High: "high",
33
+ };
22
34
  })(ExtractRequestConfig || (ExtractRequestConfig = {}));
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "11.2.0";
1
+ export declare const SDK_VERSION = "11.4.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "11.2.0";
1
+ export const SDK_VERSION = "11.4.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phenoml",
3
- "version": "11.2.0",
3
+ "version": "11.4.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",