phenoml 12.0.0 → 12.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.
Files changed (23) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +18 -2
  3. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +9 -1
  4. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateMultiRequest.d.ts +10 -0
  5. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateMultiRequest.js +9 -0
  6. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.d.ts +10 -0
  7. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.js +9 -0
  8. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +2 -2
  9. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.js +5 -1
  10. package/dist/cjs/version.d.ts +1 -1
  11. package/dist/cjs/version.js +1 -1
  12. package/dist/esm/BaseClient.mjs +2 -2
  13. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +18 -2
  14. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +9 -1
  15. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateMultiRequest.d.mts +10 -0
  16. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateMultiRequest.mjs +8 -1
  17. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.d.mts +10 -0
  18. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.mjs +8 -1
  19. package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +2 -2
  20. package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +2 -0
  21. package/dist/esm/version.d.mts +1 -1
  22. package/dist/esm/version.mjs +1 -1
  23. package/package.json +1 -1
@@ -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": "12.0.0",
47
- "User-Agent": "phenoml/12.0.0",
46
+ "X-Fern-SDK-Version": "12.1.0",
47
+ "User-Agent": "phenoml/12.1.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);
@@ -46,8 +46,16 @@ export interface ExtractRequestConfig {
46
46
  min_context_relevance?: number | undefined;
47
47
  /**
48
48
  * How much effort to spend ensuring consistent results across repeated requests.
49
- * Higher levels apply stricter filtering to remove borderline codes that may
49
+ * Higher levels apply stricter filtering to remove borderline results that may
50
50
  * vary between calls, improving determinism at the cost of additional latency.
51
+ *
52
+ * When validation_method is set to a value other than "none", consistency is
53
+ * applied to the validation step: codes must be unanimously validated across
54
+ * multiple rounds to be included.
55
+ *
56
+ * When validation_method is "none" and min_context_relevance is set above 0,
57
+ * consistency is applied to the relevance ranking step instead: chunks must
58
+ * pass the relevance threshold in every round to be included.
51
59
  */
52
60
  consistency_effort?: ExtractRequestConfig.ConsistencyEffort | undefined;
53
61
  }
@@ -75,8 +83,16 @@ export declare namespace ExtractRequestConfig {
75
83
  type ValidationMethod = (typeof ValidationMethod)[keyof typeof ValidationMethod];
76
84
  /**
77
85
  * How much effort to spend ensuring consistent results across repeated requests.
78
- * Higher levels apply stricter filtering to remove borderline codes that may
86
+ * Higher levels apply stricter filtering to remove borderline results that may
79
87
  * vary between calls, improving determinism at the cost of additional latency.
88
+ *
89
+ * When validation_method is set to a value other than "none", consistency is
90
+ * applied to the validation step: codes must be unanimously validated across
91
+ * multiple rounds to be included.
92
+ *
93
+ * When validation_method is "none" and min_context_relevance is set above 0,
94
+ * consistency is applied to the relevance ranking step instead: chunks must
95
+ * pass the relevance threshold in every round to be included.
80
96
  */
81
97
  const ConsistencyEffort: {
82
98
  readonly None: "none";
@@ -25,8 +25,16 @@ var ExtractRequestConfig;
25
25
  };
26
26
  /**
27
27
  * How much effort to spend ensuring consistent results across repeated requests.
28
- * Higher levels apply stricter filtering to remove borderline codes that may
28
+ * Higher levels apply stricter filtering to remove borderline results that may
29
29
  * vary between calls, improving determinism at the cost of additional latency.
30
+ *
31
+ * When validation_method is set to a value other than "none", consistency is
32
+ * applied to the validation step: codes must be unanimously validated across
33
+ * multiple rounds to be included.
34
+ *
35
+ * When validation_method is "none" and min_context_relevance is set above 0,
36
+ * consistency is applied to the relevance ranking step instead: chunks must
37
+ * pass the relevance threshold in every round to be included.
30
38
  */
31
39
  ExtractRequestConfig.ConsistencyEffort = {
32
40
  None: "none",
@@ -11,4 +11,14 @@ export interface CreateMultiRequest {
11
11
  version?: string;
12
12
  /** Optional FHIR provider name for provider-specific profiles */
13
13
  provider?: string;
14
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
15
+ detection_effort?: CreateMultiRequest.DetectionEffort;
16
+ }
17
+ export declare namespace CreateMultiRequest {
18
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
19
+ const DetectionEffort: {
20
+ readonly Standard: "standard";
21
+ readonly Deep: "deep";
22
+ };
23
+ type DetectionEffort = (typeof DetectionEffort)[keyof typeof DetectionEffort];
14
24
  }
@@ -1,3 +1,12 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CreateMultiRequest = void 0;
5
+ var CreateMultiRequest;
6
+ (function (CreateMultiRequest) {
7
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
8
+ CreateMultiRequest.DetectionEffort = {
9
+ Standard: "standard",
10
+ Deep: "deep",
11
+ };
12
+ })(CreateMultiRequest || (exports.CreateMultiRequest = CreateMultiRequest = {}));
@@ -16,4 +16,14 @@ export interface DocumentMultiRequest {
16
16
  content: string;
17
17
  /** Optional FHIR provider name for provider-specific profiles */
18
18
  provider?: string;
19
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
20
+ detection_effort?: DocumentMultiRequest.DetectionEffort;
21
+ }
22
+ export declare namespace DocumentMultiRequest {
23
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
24
+ const DetectionEffort: {
25
+ readonly Standard: "standard";
26
+ readonly Deep: "deep";
27
+ };
28
+ type DetectionEffort = (typeof DetectionEffort)[keyof typeof DetectionEffort];
19
29
  }
@@ -1,3 +1,12 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DocumentMultiRequest = void 0;
5
+ var DocumentMultiRequest;
6
+ (function (DocumentMultiRequest) {
7
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
8
+ DocumentMultiRequest.DetectionEffort = {
9
+ Standard: "standard",
10
+ Deep: "deep",
11
+ };
12
+ })(DocumentMultiRequest || (exports.DocumentMultiRequest = DocumentMultiRequest = {}));
@@ -1,6 +1,6 @@
1
- export type { CreateMultiRequest } from "./CreateMultiRequest.js";
1
+ export { CreateMultiRequest } from "./CreateMultiRequest.js";
2
2
  export { CreateRequest } from "./CreateRequest.js";
3
- export type { DocumentMultiRequest } from "./DocumentMultiRequest.js";
3
+ export { DocumentMultiRequest } from "./DocumentMultiRequest.js";
4
4
  export type { DocumentRequest } from "./DocumentRequest.js";
5
5
  export type { ProfileUploadRequest } from "./ProfileUploadRequest.js";
6
6
  export type { SearchRequest } from "./SearchRequest.js";
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateRequest = void 0;
3
+ exports.DocumentMultiRequest = exports.CreateRequest = exports.CreateMultiRequest = void 0;
4
+ var CreateMultiRequest_js_1 = require("./CreateMultiRequest.js");
5
+ Object.defineProperty(exports, "CreateMultiRequest", { enumerable: true, get: function () { return CreateMultiRequest_js_1.CreateMultiRequest; } });
4
6
  var CreateRequest_js_1 = require("./CreateRequest.js");
5
7
  Object.defineProperty(exports, "CreateRequest", { enumerable: true, get: function () { return CreateRequest_js_1.CreateRequest; } });
8
+ var DocumentMultiRequest_js_1 = require("./DocumentMultiRequest.js");
9
+ Object.defineProperty(exports, "DocumentMultiRequest", { enumerable: true, get: function () { return DocumentMultiRequest_js_1.DocumentMultiRequest; } });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "12.0.0";
1
+ export declare const SDK_VERSION = "12.1.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 = "12.0.0";
4
+ exports.SDK_VERSION = "12.1.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": "12.0.0",
10
- "User-Agent": "phenoml/12.0.0",
9
+ "X-Fern-SDK-Version": "12.1.0",
10
+ "User-Agent": "phenoml/12.1.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);
@@ -46,8 +46,16 @@ export interface ExtractRequestConfig {
46
46
  min_context_relevance?: number | undefined;
47
47
  /**
48
48
  * How much effort to spend ensuring consistent results across repeated requests.
49
- * Higher levels apply stricter filtering to remove borderline codes that may
49
+ * Higher levels apply stricter filtering to remove borderline results that may
50
50
  * vary between calls, improving determinism at the cost of additional latency.
51
+ *
52
+ * When validation_method is set to a value other than "none", consistency is
53
+ * applied to the validation step: codes must be unanimously validated across
54
+ * multiple rounds to be included.
55
+ *
56
+ * When validation_method is "none" and min_context_relevance is set above 0,
57
+ * consistency is applied to the relevance ranking step instead: chunks must
58
+ * pass the relevance threshold in every round to be included.
51
59
  */
52
60
  consistency_effort?: ExtractRequestConfig.ConsistencyEffort | undefined;
53
61
  }
@@ -75,8 +83,16 @@ export declare namespace ExtractRequestConfig {
75
83
  type ValidationMethod = (typeof ValidationMethod)[keyof typeof ValidationMethod];
76
84
  /**
77
85
  * How much effort to spend ensuring consistent results across repeated requests.
78
- * Higher levels apply stricter filtering to remove borderline codes that may
86
+ * Higher levels apply stricter filtering to remove borderline results that may
79
87
  * vary between calls, improving determinism at the cost of additional latency.
88
+ *
89
+ * When validation_method is set to a value other than "none", consistency is
90
+ * applied to the validation step: codes must be unanimously validated across
91
+ * multiple rounds to be included.
92
+ *
93
+ * When validation_method is "none" and min_context_relevance is set above 0,
94
+ * consistency is applied to the relevance ranking step instead: chunks must
95
+ * pass the relevance threshold in every round to be included.
80
96
  */
81
97
  const ConsistencyEffort: {
82
98
  readonly None: "none";
@@ -22,8 +22,16 @@ export var ExtractRequestConfig;
22
22
  };
23
23
  /**
24
24
  * How much effort to spend ensuring consistent results across repeated requests.
25
- * Higher levels apply stricter filtering to remove borderline codes that may
25
+ * Higher levels apply stricter filtering to remove borderline results that may
26
26
  * vary between calls, improving determinism at the cost of additional latency.
27
+ *
28
+ * When validation_method is set to a value other than "none", consistency is
29
+ * applied to the validation step: codes must be unanimously validated across
30
+ * multiple rounds to be included.
31
+ *
32
+ * When validation_method is "none" and min_context_relevance is set above 0,
33
+ * consistency is applied to the relevance ranking step instead: chunks must
34
+ * pass the relevance threshold in every round to be included.
27
35
  */
28
36
  ExtractRequestConfig.ConsistencyEffort = {
29
37
  None: "none",
@@ -11,4 +11,14 @@ export interface CreateMultiRequest {
11
11
  version?: string;
12
12
  /** Optional FHIR provider name for provider-specific profiles */
13
13
  provider?: string;
14
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
15
+ detection_effort?: CreateMultiRequest.DetectionEffort;
16
+ }
17
+ export declare namespace CreateMultiRequest {
18
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
19
+ const DetectionEffort: {
20
+ readonly Standard: "standard";
21
+ readonly Deep: "deep";
22
+ };
23
+ type DetectionEffort = (typeof DetectionEffort)[keyof typeof DetectionEffort];
14
24
  }
@@ -1,2 +1,9 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var CreateMultiRequest;
3
+ (function (CreateMultiRequest) {
4
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
5
+ CreateMultiRequest.DetectionEffort = {
6
+ Standard: "standard",
7
+ Deep: "deep",
8
+ };
9
+ })(CreateMultiRequest || (CreateMultiRequest = {}));
@@ -16,4 +16,14 @@ export interface DocumentMultiRequest {
16
16
  content: string;
17
17
  /** Optional FHIR provider name for provider-specific profiles */
18
18
  provider?: string;
19
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
20
+ detection_effort?: DocumentMultiRequest.DetectionEffort;
21
+ }
22
+ export declare namespace DocumentMultiRequest {
23
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
24
+ const DetectionEffort: {
25
+ readonly Standard: "standard";
26
+ readonly Deep: "deep";
27
+ };
28
+ type DetectionEffort = (typeof DetectionEffort)[keyof typeof DetectionEffort];
19
29
  }
@@ -1,2 +1,9 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var DocumentMultiRequest;
3
+ (function (DocumentMultiRequest) {
4
+ /** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
5
+ DocumentMultiRequest.DetectionEffort = {
6
+ Standard: "standard",
7
+ Deep: "deep",
8
+ };
9
+ })(DocumentMultiRequest || (DocumentMultiRequest = {}));
@@ -1,6 +1,6 @@
1
- export type { CreateMultiRequest } from "./CreateMultiRequest.mjs";
1
+ export { CreateMultiRequest } from "./CreateMultiRequest.mjs";
2
2
  export { CreateRequest } from "./CreateRequest.mjs";
3
- export type { DocumentMultiRequest } from "./DocumentMultiRequest.mjs";
3
+ export { DocumentMultiRequest } from "./DocumentMultiRequest.mjs";
4
4
  export type { DocumentRequest } from "./DocumentRequest.mjs";
5
5
  export type { ProfileUploadRequest } from "./ProfileUploadRequest.mjs";
6
6
  export type { SearchRequest } from "./SearchRequest.mjs";
@@ -1 +1,3 @@
1
+ export { CreateMultiRequest } from "./CreateMultiRequest.mjs";
1
2
  export { CreateRequest } from "./CreateRequest.mjs";
3
+ export { DocumentMultiRequest } from "./DocumentMultiRequest.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "12.0.0";
1
+ export declare const SDK_VERSION = "12.1.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "12.0.0";
1
+ export const SDK_VERSION = "12.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phenoml",
3
- "version": "12.0.0",
3
+ "version": "12.1.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",