phenoml 6.3.0 → 6.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.
Files changed (68) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/agent/client/Client.d.ts +8 -1
  3. package/dist/cjs/api/resources/agent/client/Client.js +82 -1
  4. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +2 -0
  5. package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.d.ts +31 -0
  6. package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.js +3 -0
  7. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/agent/types/AgentChatStreamEvent.d.ts +36 -0
  9. package/dist/cjs/api/resources/agent/types/AgentChatStreamEvent.js +16 -0
  10. package/dist/cjs/api/resources/agent/types/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/agent/types/index.js +1 -0
  12. package/dist/cjs/api/resources/construe/client/Client.d.ts +2 -2
  13. package/dist/cjs/api/resources/construe/client/Client.js +6 -6
  14. package/dist/cjs/api/resources/fhir/client/Client.d.ts +49 -49
  15. package/dist/cjs/api/resources/fhir/client/Client.js +69 -69
  16. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +10 -10
  17. package/dist/cjs/api/resources/fhirProvider/client/Client.js +25 -25
  18. package/dist/cjs/api/resources/fhirProvider/types/Provider.d.ts +1 -0
  19. package/dist/cjs/api/resources/fhirProvider/types/Provider.js +1 -0
  20. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +4 -4
  21. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +10 -10
  22. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +8 -8
  23. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +20 -20
  24. package/dist/cjs/core/fetcher/Fetcher.js +12 -6
  25. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
  26. package/dist/cjs/core/index.d.ts +1 -0
  27. package/dist/cjs/core/index.js +1 -0
  28. package/dist/cjs/core/stream/Stream.d.ts +47 -0
  29. package/dist/cjs/core/stream/Stream.js +175 -0
  30. package/dist/cjs/core/stream/index.d.ts +1 -0
  31. package/dist/cjs/core/stream/index.js +5 -0
  32. package/dist/cjs/version.d.ts +1 -1
  33. package/dist/cjs/version.js +1 -1
  34. package/dist/esm/Client.mjs +2 -2
  35. package/dist/esm/api/resources/agent/client/Client.d.mts +8 -1
  36. package/dist/esm/api/resources/agent/client/Client.mjs +82 -1
  37. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +2 -0
  38. package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.d.mts +31 -0
  39. package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.mjs +2 -0
  40. package/dist/esm/api/resources/agent/client/requests/index.d.mts +1 -0
  41. package/dist/esm/api/resources/agent/types/AgentChatStreamEvent.d.mts +36 -0
  42. package/dist/esm/api/resources/agent/types/AgentChatStreamEvent.mjs +13 -0
  43. package/dist/esm/api/resources/agent/types/index.d.mts +1 -0
  44. package/dist/esm/api/resources/agent/types/index.mjs +1 -0
  45. package/dist/esm/api/resources/construe/client/Client.d.mts +2 -2
  46. package/dist/esm/api/resources/construe/client/Client.mjs +6 -6
  47. package/dist/esm/api/resources/fhir/client/Client.d.mts +49 -49
  48. package/dist/esm/api/resources/fhir/client/Client.mjs +69 -69
  49. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +10 -10
  50. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +25 -25
  51. package/dist/esm/api/resources/fhirProvider/types/Provider.d.mts +1 -0
  52. package/dist/esm/api/resources/fhirProvider/types/Provider.mjs +1 -0
  53. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +4 -4
  54. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +10 -10
  55. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +8 -8
  56. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +20 -20
  57. package/dist/esm/core/fetcher/Fetcher.mjs +12 -6
  58. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
  59. package/dist/esm/core/index.d.mts +1 -0
  60. package/dist/esm/core/index.mjs +1 -0
  61. package/dist/esm/core/stream/Stream.d.mts +47 -0
  62. package/dist/esm/core/stream/Stream.mjs +170 -0
  63. package/dist/esm/core/stream/index.d.mts +1 -0
  64. package/dist/esm/core/stream/index.mjs +1 -0
  65. package/dist/esm/version.d.mts +1 -1
  66. package/dist/esm/version.mjs +1 -1
  67. package/package.json +1 -1
  68. package/reference.md +115 -42
@@ -59,14 +59,14 @@ class Fhir {
59
59
  *
60
60
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
61
61
  *
62
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
63
- * - A UUID representing the provider ID
64
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
65
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
66
- * Examples:
67
- * - "Patient" (for resource type operations)
68
- * - "Patient/123" (for specific resource operations)
69
- * - "Patient/123/_history" (for history operations)
62
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
63
+ * - A UUID representing the provider ID
64
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
65
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
66
+ * Examples:
67
+ * - "Patient" (for resource type operations)
68
+ * - "Patient/123" (for specific resource operations)
69
+ * - "Patient/123/_history" (for history operations)
70
70
  * @param {phenoml.fhir.FhirSearchRequest} request
71
71
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
72
72
  *
@@ -82,11 +82,11 @@ class Fhir {
82
82
  * "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
83
83
  * })
84
84
  */
85
- search(fhirProviderId, fhirPath, request = {}, requestOptions) {
86
- return core.HttpResponsePromise.fromPromise(this.__search(fhirProviderId, fhirPath, request, requestOptions));
85
+ search(fhir_provider_id, fhir_path, request = {}, requestOptions) {
86
+ return core.HttpResponsePromise.fromPromise(this.__search(fhir_provider_id, fhir_path, request, requestOptions));
87
87
  }
88
- __search(fhirProviderId_1, fhirPath_1) {
89
- return __awaiter(this, arguments, void 0, function* (fhirProviderId, fhirPath, request = {}, requestOptions) {
88
+ __search(fhir_provider_id_1, fhir_path_1) {
89
+ return __awaiter(this, arguments, void 0, function* (fhir_provider_id, fhir_path, request = {}, requestOptions) {
90
90
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
91
91
  const { query_parameters: queryParameters, "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, } = request;
92
92
  const _queryParams = {};
@@ -99,7 +99,7 @@ class Fhir {
99
99
  "X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
100
100
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
101
101
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
102
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}/fhir/${core.url.encodePathParam(fhirPath)}`),
102
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
103
103
  method: "GET",
104
104
  headers: _headers,
105
105
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -154,14 +154,14 @@ class Fhir {
154
154
  *
155
155
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
156
156
  *
157
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
158
- * - A UUID representing the provider ID
159
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
160
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
161
- * Examples:
162
- * - "Patient" (for resource type operations)
163
- * - "Patient/123" (for specific resource operations)
164
- * - "Patient/123/_history" (for history operations)
157
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
158
+ * - A UUID representing the provider ID
159
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
160
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
161
+ * Examples:
162
+ * - "Patient" (for resource type operations)
163
+ * - "Patient/123" (for specific resource operations)
164
+ * - "Patient/123/_history" (for history operations)
165
165
  * @param {phenoml.fhir.FhirCreateRequest} request
166
166
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
167
167
  *
@@ -189,10 +189,10 @@ class Fhir {
189
189
  * }
190
190
  * })
191
191
  */
192
- create(fhirProviderId, fhirPath, request, requestOptions) {
193
- return core.HttpResponsePromise.fromPromise(this.__create(fhirProviderId, fhirPath, request, requestOptions));
192
+ create(fhir_provider_id, fhir_path, request, requestOptions) {
193
+ return core.HttpResponsePromise.fromPromise(this.__create(fhir_provider_id, fhir_path, request, requestOptions));
194
194
  }
195
- __create(fhirProviderId, fhirPath, request, requestOptions) {
195
+ __create(fhir_provider_id, fhir_path, request, requestOptions) {
196
196
  return __awaiter(this, void 0, void 0, function* () {
197
197
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
198
198
  const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, body: _body, } = request;
@@ -202,7 +202,7 @@ class Fhir {
202
202
  "X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
203
203
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
204
204
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
205
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}/fhir/${core.url.encodePathParam(fhirPath)}`),
205
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
206
206
  method: "POST",
207
207
  headers: _headers,
208
208
  contentType: "application/fhir+json",
@@ -258,14 +258,14 @@ class Fhir {
258
258
  *
259
259
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
260
260
  *
261
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
262
- * - A UUID representing the provider ID
263
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
264
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
265
- * Examples:
266
- * - "Patient" (for resource type operations)
267
- * - "Patient/123" (for specific resource operations)
268
- * - "Patient/123/_history" (for history operations)
261
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
262
+ * - A UUID representing the provider ID
263
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
264
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
265
+ * Examples:
266
+ * - "Patient" (for resource type operations)
267
+ * - "Patient/123" (for specific resource operations)
268
+ * - "Patient/123/_history" (for history operations)
269
269
  * @param {phenoml.fhir.FhirUpsertRequest} request
270
270
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
271
271
  *
@@ -295,10 +295,10 @@ class Fhir {
295
295
  * }
296
296
  * })
297
297
  */
298
- upsert(fhirProviderId, fhirPath, request, requestOptions) {
299
- return core.HttpResponsePromise.fromPromise(this.__upsert(fhirProviderId, fhirPath, request, requestOptions));
298
+ upsert(fhir_provider_id, fhir_path, request, requestOptions) {
299
+ return core.HttpResponsePromise.fromPromise(this.__upsert(fhir_provider_id, fhir_path, request, requestOptions));
300
300
  }
301
- __upsert(fhirProviderId, fhirPath, request, requestOptions) {
301
+ __upsert(fhir_provider_id, fhir_path, request, requestOptions) {
302
302
  return __awaiter(this, void 0, void 0, function* () {
303
303
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
304
304
  const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, body: _body, } = request;
@@ -308,7 +308,7 @@ class Fhir {
308
308
  "X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
309
309
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
310
310
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
311
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}/fhir/${core.url.encodePathParam(fhirPath)}`),
311
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
312
312
  method: "PUT",
313
313
  headers: _headers,
314
314
  contentType: "application/fhir+json",
@@ -364,14 +364,14 @@ class Fhir {
364
364
  *
365
365
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
366
366
  *
367
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
368
- * - A UUID representing the provider ID
369
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
370
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
371
- * Examples:
372
- * - "Patient" (for resource type operations)
373
- * - "Patient/123" (for specific resource operations)
374
- * - "Patient/123/_history" (for history operations)
367
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
368
+ * - A UUID representing the provider ID
369
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
370
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
371
+ * Examples:
372
+ * - "Patient" (for resource type operations)
373
+ * - "Patient/123" (for specific resource operations)
374
+ * - "Patient/123/_history" (for history operations)
375
375
  * @param {phenoml.fhir.FhirDeleteRequest} request
376
376
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
377
377
  *
@@ -387,11 +387,11 @@ class Fhir {
387
387
  * "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
388
388
  * })
389
389
  */
390
- delete(fhirProviderId, fhirPath, request = {}, requestOptions) {
391
- return core.HttpResponsePromise.fromPromise(this.__delete(fhirProviderId, fhirPath, request, requestOptions));
390
+ delete(fhir_provider_id, fhir_path, request = {}, requestOptions) {
391
+ return core.HttpResponsePromise.fromPromise(this.__delete(fhir_provider_id, fhir_path, request, requestOptions));
392
392
  }
393
- __delete(fhirProviderId_1, fhirPath_1) {
394
- return __awaiter(this, arguments, void 0, function* (fhirProviderId, fhirPath, request = {}, requestOptions) {
393
+ __delete(fhir_provider_id_1, fhir_path_1) {
394
+ return __awaiter(this, arguments, void 0, function* (fhir_provider_id, fhir_path, request = {}, requestOptions) {
395
395
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
396
396
  const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider } = request;
397
397
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
@@ -400,7 +400,7 @@ class Fhir {
400
400
  "X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
401
401
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
402
402
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
403
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}/fhir/${core.url.encodePathParam(fhirPath)}`),
403
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
404
404
  method: "DELETE",
405
405
  headers: _headers,
406
406
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -460,14 +460,14 @@ class Fhir {
460
460
  *
461
461
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
462
462
  *
463
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
464
- * - A UUID representing the provider ID
465
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
466
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
467
- * Examples:
468
- * - "Patient" (for resource type operations)
469
- * - "Patient/123" (for specific resource operations)
470
- * - "Patient/123/_history" (for history operations)
463
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
464
+ * - A UUID representing the provider ID
465
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
466
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
467
+ * Examples:
468
+ * - "Patient" (for resource type operations)
469
+ * - "Patient/123" (for specific resource operations)
470
+ * - "Patient/123/_history" (for history operations)
471
471
  * @param {phenoml.fhir.FhirPatchRequest} request
472
472
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
473
473
  *
@@ -539,10 +539,10 @@ class Fhir {
539
539
  * }]
540
540
  * })
541
541
  */
542
- patch(fhirProviderId, fhirPath, request, requestOptions) {
543
- return core.HttpResponsePromise.fromPromise(this.__patch(fhirProviderId, fhirPath, request, requestOptions));
542
+ patch(fhir_provider_id, fhir_path, request, requestOptions) {
543
+ return core.HttpResponsePromise.fromPromise(this.__patch(fhir_provider_id, fhir_path, request, requestOptions));
544
544
  }
545
- __patch(fhirProviderId, fhirPath, request, requestOptions) {
545
+ __patch(fhir_provider_id, fhir_path, request, requestOptions) {
546
546
  return __awaiter(this, void 0, void 0, function* () {
547
547
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
548
548
  const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, body: _body, } = request;
@@ -552,7 +552,7 @@ class Fhir {
552
552
  "X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
553
553
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
554
554
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
555
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}/fhir/${core.url.encodePathParam(fhirPath)}`),
555
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
556
556
  method: "PATCH",
557
557
  headers: _headers,
558
558
  contentType: "application/json-patch+json",
@@ -612,9 +612,9 @@ class Fhir {
612
612
  *
613
613
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
614
614
  *
615
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
616
- * - A UUID representing the provider ID
617
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
615
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
616
+ * - A UUID representing the provider ID
617
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
618
618
  * @param {phenoml.fhir.FhirExecuteBundleRequest} request
619
619
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
620
620
  *
@@ -661,10 +661,10 @@ class Fhir {
661
661
  * }
662
662
  * })
663
663
  */
664
- executeBundle(fhirProviderId, request, requestOptions) {
665
- return core.HttpResponsePromise.fromPromise(this.__executeBundle(fhirProviderId, request, requestOptions));
664
+ executeBundle(fhir_provider_id, request, requestOptions) {
665
+ return core.HttpResponsePromise.fromPromise(this.__executeBundle(fhir_provider_id, request, requestOptions));
666
666
  }
667
- __executeBundle(fhirProviderId, request, requestOptions) {
667
+ __executeBundle(fhir_provider_id, request, requestOptions) {
668
668
  return __awaiter(this, void 0, void 0, function* () {
669
669
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
670
670
  const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, body: _body, } = request;
@@ -674,7 +674,7 @@ class Fhir {
674
674
  "X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
675
675
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
676
676
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
677
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}/fhir`),
677
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir`),
678
678
  method: "POST",
679
679
  headers: _headers,
680
680
  contentType: "application/fhir+json",
@@ -55,7 +55,7 @@ export declare class FhirProvider {
55
55
  * Sandbox providers return FhirProviderSandboxInfo.
56
56
  * On shared instances, only sandbox providers can be accessed.
57
57
  *
58
- * @param {string} fhirProviderId - ID of the FHIR provider to retrieve
58
+ * @param {string} fhir_provider_id - ID of the FHIR provider to retrieve
59
59
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
60
60
  *
61
61
  * @throws {@link phenoml.fhirProvider.UnauthorizedError}
@@ -65,14 +65,14 @@ export declare class FhirProvider {
65
65
  * @example
66
66
  * await client.fhirProvider.get("fhir_provider_id")
67
67
  */
68
- get(fhirProviderId: string, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
68
+ get(fhir_provider_id: string, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
69
69
  private __get;
70
70
  /**
71
71
  * Soft deletes a FHIR provider by setting is_active to false.
72
72
  *
73
73
  * Note: Sandbox providers cannot be deleted.
74
74
  *
75
- * @param {string} fhirProviderId - ID of the FHIR provider to delete
75
+ * @param {string} fhir_provider_id - ID of the FHIR provider to delete
76
76
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
77
77
  *
78
78
  * @throws {@link phenoml.fhirProvider.UnauthorizedError}
@@ -83,7 +83,7 @@ export declare class FhirProvider {
83
83
  * @example
84
84
  * await client.fhirProvider.delete("fhir_provider_id")
85
85
  */
86
- delete(fhirProviderId: string, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderDeleteResponse>;
86
+ delete(fhir_provider_id: string, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderDeleteResponse>;
87
87
  private __delete;
88
88
  /**
89
89
  * Adds a new authentication configuration to an existing FHIR provider.
@@ -91,7 +91,7 @@ export declare class FhirProvider {
91
91
  *
92
92
  * Note: Sandbox providers cannot be modified.
93
93
  *
94
- * @param {string} fhirProviderId - ID of the FHIR provider to add auth config to
94
+ * @param {string} fhir_provider_id - ID of the FHIR provider to add auth config to
95
95
  * @param {phenoml.fhirProvider.FhirProviderAddAuthConfigRequest} request
96
96
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
97
97
  *
@@ -106,7 +106,7 @@ export declare class FhirProvider {
106
106
  * auth_method: "client_secret"
107
107
  * })
108
108
  */
109
- addAuthConfig(fhirProviderId: string, request: phenoml.fhirProvider.FhirProviderAddAuthConfigRequest, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
109
+ addAuthConfig(fhir_provider_id: string, request: phenoml.fhirProvider.FhirProviderAddAuthConfigRequest, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
110
110
  private __addAuthConfig;
111
111
  /**
112
112
  * Sets which authentication configuration should be active for a FHIR provider.
@@ -117,7 +117,7 @@ export declare class FhirProvider {
117
117
  *
118
118
  * Note: Sandbox providers cannot be modified.
119
119
  *
120
- * @param {string} fhirProviderId - ID of the FHIR provider
120
+ * @param {string} fhir_provider_id - ID of the FHIR provider
121
121
  * @param {phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest} request
122
122
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
123
123
  *
@@ -132,7 +132,7 @@ export declare class FhirProvider {
132
132
  * auth_config_id: "auth-config-123"
133
133
  * })
134
134
  */
135
- setActiveAuthConfig(fhirProviderId: string, request: phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
135
+ setActiveAuthConfig(fhir_provider_id: string, request: phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
136
136
  private __setActiveAuthConfig;
137
137
  /**
138
138
  * Removes an authentication configuration from a FHIR provider.
@@ -140,7 +140,7 @@ export declare class FhirProvider {
140
140
  *
141
141
  * Note: Sandbox providers cannot be modified.
142
142
  *
143
- * @param {string} fhirProviderId - ID of the FHIR provider
143
+ * @param {string} fhir_provider_id - ID of the FHIR provider
144
144
  * @param {phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest} request
145
145
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
146
146
  *
@@ -155,7 +155,7 @@ export declare class FhirProvider {
155
155
  * auth_config_id: "auth-config-123"
156
156
  * })
157
157
  */
158
- removeAuthConfig(fhirProviderId: string, request: phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderRemoveAuthConfigResponse>;
158
+ removeAuthConfig(fhir_provider_id: string, request: phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderRemoveAuthConfigResponse>;
159
159
  private __removeAuthConfig;
160
160
  protected _getAuthorizationHeader(): Promise<string>;
161
161
  }
@@ -211,7 +211,7 @@ class FhirProvider {
211
211
  * Sandbox providers return FhirProviderSandboxInfo.
212
212
  * On shared instances, only sandbox providers can be accessed.
213
213
  *
214
- * @param {string} fhirProviderId - ID of the FHIR provider to retrieve
214
+ * @param {string} fhir_provider_id - ID of the FHIR provider to retrieve
215
215
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
216
216
  *
217
217
  * @throws {@link phenoml.fhirProvider.UnauthorizedError}
@@ -221,15 +221,15 @@ class FhirProvider {
221
221
  * @example
222
222
  * await client.fhirProvider.get("fhir_provider_id")
223
223
  */
224
- get(fhirProviderId, requestOptions) {
225
- return core.HttpResponsePromise.fromPromise(this.__get(fhirProviderId, requestOptions));
224
+ get(fhir_provider_id, requestOptions) {
225
+ return core.HttpResponsePromise.fromPromise(this.__get(fhir_provider_id, requestOptions));
226
226
  }
227
- __get(fhirProviderId, requestOptions) {
227
+ __get(fhir_provider_id, requestOptions) {
228
228
  return __awaiter(this, void 0, void 0, function* () {
229
229
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
230
230
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
231
231
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
232
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}`),
232
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}`),
233
233
  method: "GET",
234
234
  headers: _headers,
235
235
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -283,7 +283,7 @@ class FhirProvider {
283
283
  *
284
284
  * Note: Sandbox providers cannot be deleted.
285
285
  *
286
- * @param {string} fhirProviderId - ID of the FHIR provider to delete
286
+ * @param {string} fhir_provider_id - ID of the FHIR provider to delete
287
287
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
288
288
  *
289
289
  * @throws {@link phenoml.fhirProvider.UnauthorizedError}
@@ -294,15 +294,15 @@ class FhirProvider {
294
294
  * @example
295
295
  * await client.fhirProvider.delete("fhir_provider_id")
296
296
  */
297
- delete(fhirProviderId, requestOptions) {
298
- return core.HttpResponsePromise.fromPromise(this.__delete(fhirProviderId, requestOptions));
297
+ delete(fhir_provider_id, requestOptions) {
298
+ return core.HttpResponsePromise.fromPromise(this.__delete(fhir_provider_id, requestOptions));
299
299
  }
300
- __delete(fhirProviderId, requestOptions) {
300
+ __delete(fhir_provider_id, requestOptions) {
301
301
  return __awaiter(this, void 0, void 0, function* () {
302
302
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
303
303
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
304
304
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
305
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}`),
305
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}`),
306
306
  method: "DELETE",
307
307
  headers: _headers,
308
308
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -359,7 +359,7 @@ class FhirProvider {
359
359
  *
360
360
  * Note: Sandbox providers cannot be modified.
361
361
  *
362
- * @param {string} fhirProviderId - ID of the FHIR provider to add auth config to
362
+ * @param {string} fhir_provider_id - ID of the FHIR provider to add auth config to
363
363
  * @param {phenoml.fhirProvider.FhirProviderAddAuthConfigRequest} request
364
364
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
365
365
  *
@@ -374,15 +374,15 @@ class FhirProvider {
374
374
  * auth_method: "client_secret"
375
375
  * })
376
376
  */
377
- addAuthConfig(fhirProviderId, request, requestOptions) {
378
- return core.HttpResponsePromise.fromPromise(this.__addAuthConfig(fhirProviderId, request, requestOptions));
377
+ addAuthConfig(fhir_provider_id, request, requestOptions) {
378
+ return core.HttpResponsePromise.fromPromise(this.__addAuthConfig(fhir_provider_id, request, requestOptions));
379
379
  }
380
- __addAuthConfig(fhirProviderId, request, requestOptions) {
380
+ __addAuthConfig(fhir_provider_id, request, requestOptions) {
381
381
  return __awaiter(this, void 0, void 0, function* () {
382
382
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
383
383
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
384
384
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
385
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}/add-auth-config`),
385
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/add-auth-config`),
386
386
  method: "PATCH",
387
387
  headers: _headers,
388
388
  contentType: "application/json",
@@ -447,7 +447,7 @@ class FhirProvider {
447
447
  *
448
448
  * Note: Sandbox providers cannot be modified.
449
449
  *
450
- * @param {string} fhirProviderId - ID of the FHIR provider
450
+ * @param {string} fhir_provider_id - ID of the FHIR provider
451
451
  * @param {phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest} request
452
452
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
453
453
  *
@@ -462,15 +462,15 @@ class FhirProvider {
462
462
  * auth_config_id: "auth-config-123"
463
463
  * })
464
464
  */
465
- setActiveAuthConfig(fhirProviderId, request, requestOptions) {
466
- return core.HttpResponsePromise.fromPromise(this.__setActiveAuthConfig(fhirProviderId, request, requestOptions));
465
+ setActiveAuthConfig(fhir_provider_id, request, requestOptions) {
466
+ return core.HttpResponsePromise.fromPromise(this.__setActiveAuthConfig(fhir_provider_id, request, requestOptions));
467
467
  }
468
- __setActiveAuthConfig(fhirProviderId, request, requestOptions) {
468
+ __setActiveAuthConfig(fhir_provider_id, request, requestOptions) {
469
469
  return __awaiter(this, void 0, void 0, function* () {
470
470
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
471
471
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
472
472
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
473
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}/set-active-auth-config`),
473
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/set-active-auth-config`),
474
474
  method: "PATCH",
475
475
  headers: _headers,
476
476
  contentType: "application/json",
@@ -532,7 +532,7 @@ class FhirProvider {
532
532
  *
533
533
  * Note: Sandbox providers cannot be modified.
534
534
  *
535
- * @param {string} fhirProviderId - ID of the FHIR provider
535
+ * @param {string} fhir_provider_id - ID of the FHIR provider
536
536
  * @param {phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest} request
537
537
  * @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
538
538
  *
@@ -547,15 +547,15 @@ class FhirProvider {
547
547
  * auth_config_id: "auth-config-123"
548
548
  * })
549
549
  */
550
- removeAuthConfig(fhirProviderId, request, requestOptions) {
551
- return core.HttpResponsePromise.fromPromise(this.__removeAuthConfig(fhirProviderId, request, requestOptions));
550
+ removeAuthConfig(fhir_provider_id, request, requestOptions) {
551
+ return core.HttpResponsePromise.fromPromise(this.__removeAuthConfig(fhir_provider_id, request, requestOptions));
552
552
  }
553
- __removeAuthConfig(fhirProviderId, request, requestOptions) {
553
+ __removeAuthConfig(fhir_provider_id, request, requestOptions) {
554
554
  return __awaiter(this, void 0, void 0, function* () {
555
555
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
556
556
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
557
557
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
558
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhirProviderId)}/remove-auth-config`),
558
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/remove-auth-config`),
559
559
  method: "PATCH",
560
560
  headers: _headers,
561
561
  contentType: "application/json",
@@ -13,6 +13,7 @@ export declare const Provider: {
13
13
  readonly GoogleHealthcare: "google_healthcare";
14
14
  readonly Hapi: "hapi";
15
15
  readonly Medplum: "medplum";
16
+ readonly Phenostore: "phenostore";
16
17
  readonly Sandbox: "sandbox";
17
18
  };
18
19
  export type Provider = (typeof Provider)[keyof typeof Provider];
@@ -17,5 +17,6 @@ exports.Provider = {
17
17
  GoogleHealthcare: "google_healthcare",
18
18
  Hapi: "hapi",
19
19
  Medplum: "medplum",
20
+ Phenostore: "phenostore",
20
21
  Sandbox: "sandbox",
21
22
  };
@@ -49,7 +49,7 @@ export declare class McpServer {
49
49
  /**
50
50
  * Gets a MCP server by ID
51
51
  *
52
- * @param {string} mcpServerId - ID of the MCP server to retrieve
52
+ * @param {string} mcp_server_id - ID of the MCP server to retrieve
53
53
  * @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
54
54
  *
55
55
  * @throws {@link phenoml.tools.UnauthorizedError}
@@ -59,12 +59,12 @@ export declare class McpServer {
59
59
  * @example
60
60
  * await client.tools.mcpServer.get("mcp_server_id")
61
61
  */
62
- get(mcpServerId: string, requestOptions?: McpServer.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
62
+ get(mcp_server_id: string, requestOptions?: McpServer.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
63
63
  private __get;
64
64
  /**
65
65
  * Deletes a MCP server by ID
66
66
  *
67
- * @param {string} mcpServerId - ID of the MCP server to delete
67
+ * @param {string} mcp_server_id - ID of the MCP server to delete
68
68
  * @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
69
69
  *
70
70
  * @throws {@link phenoml.tools.UnauthorizedError}
@@ -74,7 +74,7 @@ export declare class McpServer {
74
74
  * @example
75
75
  * await client.tools.mcpServer.delete("mcp_server_id")
76
76
  */
77
- delete(mcpServerId: string, requestOptions?: McpServer.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
77
+ delete(mcp_server_id: string, requestOptions?: McpServer.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
78
78
  private __delete;
79
79
  protected _getAuthorizationHeader(): Promise<string>;
80
80
  }
@@ -203,7 +203,7 @@ class McpServer {
203
203
  /**
204
204
  * Gets a MCP server by ID
205
205
  *
206
- * @param {string} mcpServerId - ID of the MCP server to retrieve
206
+ * @param {string} mcp_server_id - ID of the MCP server to retrieve
207
207
  * @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
208
208
  *
209
209
  * @throws {@link phenoml.tools.UnauthorizedError}
@@ -213,15 +213,15 @@ class McpServer {
213
213
  * @example
214
214
  * await client.tools.mcpServer.get("mcp_server_id")
215
215
  */
216
- get(mcpServerId, requestOptions) {
217
- return core.HttpResponsePromise.fromPromise(this.__get(mcpServerId, requestOptions));
216
+ get(mcp_server_id, requestOptions) {
217
+ return core.HttpResponsePromise.fromPromise(this.__get(mcp_server_id, requestOptions));
218
218
  }
219
- __get(mcpServerId, requestOptions) {
219
+ __get(mcp_server_id, requestOptions) {
220
220
  return __awaiter(this, void 0, void 0, function* () {
221
221
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
222
222
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
223
223
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
224
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(mcpServerId)}`),
224
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}`),
225
225
  method: "GET",
226
226
  headers: _headers,
227
227
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -270,7 +270,7 @@ class McpServer {
270
270
  /**
271
271
  * Deletes a MCP server by ID
272
272
  *
273
- * @param {string} mcpServerId - ID of the MCP server to delete
273
+ * @param {string} mcp_server_id - ID of the MCP server to delete
274
274
  * @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
275
275
  *
276
276
  * @throws {@link phenoml.tools.UnauthorizedError}
@@ -280,15 +280,15 @@ class McpServer {
280
280
  * @example
281
281
  * await client.tools.mcpServer.delete("mcp_server_id")
282
282
  */
283
- delete(mcpServerId, requestOptions) {
284
- return core.HttpResponsePromise.fromPromise(this.__delete(mcpServerId, requestOptions));
283
+ delete(mcp_server_id, requestOptions) {
284
+ return core.HttpResponsePromise.fromPromise(this.__delete(mcp_server_id, requestOptions));
285
285
  }
286
- __delete(mcpServerId, requestOptions) {
286
+ __delete(mcp_server_id, requestOptions) {
287
287
  return __awaiter(this, void 0, void 0, function* () {
288
288
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
289
289
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
290
290
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
291
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(mcpServerId)}`),
291
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}`),
292
292
  method: "DELETE",
293
293
  headers: _headers,
294
294
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,