phenoml 13.0.0 → 13.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 (75) hide show
  1. package/dist/cjs/BaseClient.d.ts +3 -0
  2. package/dist/cjs/BaseClient.js +17 -2
  3. package/dist/cjs/api/resources/agent/client/Client.js +17 -9
  4. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +7 -7
  5. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/cohort/client/Client.js +1 -1
  7. package/dist/cjs/api/resources/construe/client/Client.js +39 -11
  8. package/dist/cjs/api/resources/fhir/client/Client.js +10 -6
  9. package/dist/cjs/api/resources/fhirProvider/client/Client.js +7 -7
  10. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +6 -6
  11. package/dist/cjs/api/resources/summary/client/Client.js +6 -6
  12. package/dist/cjs/api/resources/tools/client/Client.js +4 -4
  13. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +4 -4
  14. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +4 -4
  15. package/dist/cjs/api/resources/workflows/client/Client.js +22 -6
  16. package/dist/cjs/core/auth/AuthProvider.d.ts +1 -0
  17. package/dist/cjs/core/auth/AuthProvider.js +7 -0
  18. package/dist/cjs/core/auth/BasicAuth.d.ts +2 -2
  19. package/dist/cjs/core/auth/BasicAuth.js +7 -1
  20. package/dist/cjs/core/auth/index.d.ts +1 -1
  21. package/dist/cjs/core/auth/index.js +3 -1
  22. package/dist/cjs/core/fetcher/Fetcher.d.ts +8 -0
  23. package/dist/cjs/core/fetcher/Fetcher.js +13 -8
  24. package/dist/cjs/core/fetcher/requestWithRetries.js +4 -1
  25. package/dist/cjs/core/url/QueryStringBuilder.d.ts +47 -0
  26. package/dist/cjs/core/url/QueryStringBuilder.js +83 -0
  27. package/dist/cjs/core/url/index.d.ts +1 -0
  28. package/dist/cjs/core/url/index.js +3 -1
  29. package/dist/cjs/core/url/qs.d.ts +2 -1
  30. package/dist/cjs/core/url/qs.js +24 -12
  31. package/dist/cjs/errors/handleNonStatusCodeError.js +4 -1
  32. package/dist/cjs/errors/phenomlError.d.ts +3 -1
  33. package/dist/cjs/errors/phenomlError.js +4 -1
  34. package/dist/cjs/errors/phenomlTimeoutError.d.ts +4 -1
  35. package/dist/cjs/errors/phenomlTimeoutError.js +4 -1
  36. package/dist/cjs/version.d.ts +1 -1
  37. package/dist/cjs/version.js +1 -1
  38. package/dist/esm/BaseClient.d.mts +3 -0
  39. package/dist/esm/BaseClient.mjs +17 -2
  40. package/dist/esm/api/resources/agent/client/Client.mjs +17 -9
  41. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +7 -7
  42. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +1 -1
  43. package/dist/esm/api/resources/cohort/client/Client.mjs +1 -1
  44. package/dist/esm/api/resources/construe/client/Client.mjs +39 -11
  45. package/dist/esm/api/resources/fhir/client/Client.mjs +10 -6
  46. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +7 -7
  47. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +6 -6
  48. package/dist/esm/api/resources/summary/client/Client.mjs +6 -6
  49. package/dist/esm/api/resources/tools/client/Client.mjs +4 -4
  50. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +4 -4
  51. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +4 -4
  52. package/dist/esm/api/resources/workflows/client/Client.mjs +22 -6
  53. package/dist/esm/core/auth/AuthProvider.d.mts +1 -0
  54. package/dist/esm/core/auth/AuthProvider.mjs +6 -1
  55. package/dist/esm/core/auth/BasicAuth.d.mts +2 -2
  56. package/dist/esm/core/auth/BasicAuth.mjs +7 -1
  57. package/dist/esm/core/auth/index.d.mts +1 -1
  58. package/dist/esm/core/auth/index.mjs +1 -0
  59. package/dist/esm/core/fetcher/Fetcher.d.mts +8 -0
  60. package/dist/esm/core/fetcher/Fetcher.mjs +13 -8
  61. package/dist/esm/core/fetcher/requestWithRetries.mjs +4 -1
  62. package/dist/esm/core/url/QueryStringBuilder.d.mts +47 -0
  63. package/dist/esm/core/url/QueryStringBuilder.mjs +80 -0
  64. package/dist/esm/core/url/index.d.mts +1 -0
  65. package/dist/esm/core/url/index.mjs +1 -0
  66. package/dist/esm/core/url/qs.d.mts +2 -1
  67. package/dist/esm/core/url/qs.mjs +24 -12
  68. package/dist/esm/errors/handleNonStatusCodeError.mjs +4 -1
  69. package/dist/esm/errors/phenomlError.d.mts +3 -1
  70. package/dist/esm/errors/phenomlError.mjs +4 -1
  71. package/dist/esm/errors/phenomlTimeoutError.d.mts +4 -1
  72. package/dist/esm/errors/phenomlTimeoutError.mjs +4 -1
  73. package/dist/esm/version.d.mts +1 -1
  74. package/dist/esm/version.mjs +1 -1
  75. package/package.json +2 -2
@@ -3,10 +3,12 @@ export declare class phenomlError extends Error {
3
3
  readonly statusCode?: number;
4
4
  readonly body?: unknown;
5
5
  readonly rawResponse?: core.RawResponse;
6
- constructor({ message, statusCode, body, rawResponse, }: {
6
+ readonly cause?: unknown;
7
+ constructor({ message, statusCode, body, rawResponse, cause, }: {
7
8
  message?: string;
8
9
  statusCode?: number;
9
10
  body?: unknown;
10
11
  rawResponse?: core.RawResponse;
12
+ cause?: unknown;
11
13
  });
12
14
  }
@@ -1,7 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import { toJson } from "../core/json.mjs";
3
3
  export class phenomlError extends Error {
4
- constructor({ message, statusCode, body, rawResponse, }) {
4
+ constructor({ message, statusCode, body, rawResponse, cause, }) {
5
5
  super(buildMessage({ message, statusCode, body }));
6
6
  Object.setPrototypeOf(this, new.target.prototype);
7
7
  if (Error.captureStackTrace) {
@@ -11,6 +11,9 @@ export class phenomlError extends Error {
11
11
  this.statusCode = statusCode;
12
12
  this.body = body;
13
13
  this.rawResponse = rawResponse;
14
+ if (cause != null) {
15
+ this.cause = cause;
16
+ }
14
17
  }
15
18
  }
16
19
  function buildMessage({ message, statusCode, body, }) {
@@ -1,3 +1,6 @@
1
1
  export declare class phenomlTimeoutError extends Error {
2
- constructor(message: string);
2
+ readonly cause?: unknown;
3
+ constructor(message: string, opts?: {
4
+ cause?: unknown;
5
+ });
3
6
  }
@@ -1,11 +1,14 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  export class phenomlTimeoutError extends Error {
3
- constructor(message) {
3
+ constructor(message, opts) {
4
4
  super(message);
5
5
  Object.setPrototypeOf(this, new.target.prototype);
6
6
  if (Error.captureStackTrace) {
7
7
  Error.captureStackTrace(this, this.constructor);
8
8
  }
9
9
  this.name = this.constructor.name;
10
+ if ((opts === null || opts === void 0 ? void 0 : opts.cause) != null) {
11
+ this.cause = opts.cause;
12
+ }
10
13
  }
11
14
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "13.0.0";
1
+ export declare const SDK_VERSION = "13.1.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "13.0.0";
1
+ export const SDK_VERSION = "13.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phenoml",
3
- "version": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -204,7 +204,7 @@
204
204
  "ts-loader": "^9.5.4",
205
205
  "vitest": "^4.1.1",
206
206
  "msw": "2.11.2",
207
- "@types/node": "^18.19.70",
207
+ "@types/node": "^20.0.0",
208
208
  "typescript": "~5.9.3",
209
209
  "@biomejs/biome": "2.4.10"
210
210
  },