phenoml 6.1.0 → 6.2.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.
- package/dist/cjs/BaseClient.d.ts +2 -0
- package/dist/cjs/Client.js +3 -3
- package/dist/cjs/api/resources/agent/client/Client.js +8 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +7 -0
- package/dist/cjs/api/resources/cohort/client/Client.js +1 -0
- package/dist/cjs/api/resources/construe/client/Client.js +10 -0
- package/dist/cjs/api/resources/fhir/client/Client.js +6 -0
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +7 -0
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +5 -0
- package/dist/cjs/api/resources/summary/client/Client.js +6 -0
- package/dist/cjs/api/resources/tools/client/Client.js +4 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +4 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +4 -0
- package/dist/cjs/api/resources/workflows/client/Client.js +6 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -0
- package/dist/cjs/core/fetcher/Fetcher.js +177 -1
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +2 -1
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +2 -0
- package/dist/esm/Client.mjs +3 -3
- package/dist/esm/api/resources/agent/client/Client.mjs +8 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +7 -0
- package/dist/esm/api/resources/cohort/client/Client.mjs +1 -0
- package/dist/esm/api/resources/construe/client/Client.mjs +10 -0
- package/dist/esm/api/resources/fhir/client/Client.mjs +6 -0
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +7 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +5 -0
- package/dist/esm/api/resources/summary/client/Client.mjs +6 -0
- package/dist/esm/api/resources/tools/client/Client.mjs +4 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +4 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +4 -0
- package/dist/esm/api/resources/workflows/client/Client.mjs +6 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +2 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +177 -1
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -1
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface BaseClientOptions {
|
|
|
14
14
|
/** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
|
|
15
15
|
fetch?: typeof fetch;
|
|
16
16
|
fetcher?: core.FetchFunction;
|
|
17
|
+
/** Configure logging for the client. */
|
|
18
|
+
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
17
19
|
}
|
|
18
20
|
export interface BaseRequestOptions {
|
|
19
21
|
/** The maximum time to wait for a response in seconds. */
|
package/dist/cjs/Client.js
CHANGED
|
@@ -49,11 +49,11 @@ const headers_js_1 = require("./core/headers.js");
|
|
|
49
49
|
const core = __importStar(require("./core/index.js"));
|
|
50
50
|
class phenomlClient {
|
|
51
51
|
constructor(_options) {
|
|
52
|
-
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
52
|
+
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "phenoml",
|
|
55
|
-
"X-Fern-SDK-Version": "6.
|
|
56
|
-
"User-Agent": "phenoml/
|
|
55
|
+
"X-Fern-SDK-Version": "6.2.0",
|
|
56
|
+
"User-Agent": "phenoml/auto",
|
|
57
57
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
58
58
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
59
59
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -106,6 +106,7 @@ class Agent {
|
|
|
106
106
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
107
107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
108
108
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
109
|
+
logging: this._options.logging,
|
|
109
110
|
});
|
|
110
111
|
if (_response.ok) {
|
|
111
112
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -181,6 +182,7 @@ class Agent {
|
|
|
181
182
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
182
183
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
183
184
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
185
|
+
logging: this._options.logging,
|
|
184
186
|
});
|
|
185
187
|
if (_response.ok) {
|
|
186
188
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -248,6 +250,7 @@ class Agent {
|
|
|
248
250
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
249
251
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
250
252
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
253
|
+
logging: this._options.logging,
|
|
251
254
|
});
|
|
252
255
|
if (_response.ok) {
|
|
253
256
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -326,6 +329,7 @@ class Agent {
|
|
|
326
329
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
327
330
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
328
331
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
332
|
+
logging: this._options.logging,
|
|
329
333
|
});
|
|
330
334
|
if (_response.ok) {
|
|
331
335
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -397,6 +401,7 @@ class Agent {
|
|
|
397
401
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
398
402
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
399
403
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
404
|
+
logging: this._options.logging,
|
|
400
405
|
});
|
|
401
406
|
if (_response.ok) {
|
|
402
407
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -482,6 +487,7 @@ class Agent {
|
|
|
482
487
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
483
488
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
484
489
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
490
|
+
logging: this._options.logging,
|
|
485
491
|
});
|
|
486
492
|
if (_response.ok) {
|
|
487
493
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -566,6 +572,7 @@ class Agent {
|
|
|
566
572
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
567
573
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
568
574
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
575
|
+
logging: this._options.logging,
|
|
569
576
|
});
|
|
570
577
|
if (_response.ok) {
|
|
571
578
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -651,6 +658,7 @@ class Agent {
|
|
|
651
658
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
652
659
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
653
660
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
661
|
+
logging: this._options.logging,
|
|
654
662
|
});
|
|
655
663
|
if (_response.ok) {
|
|
656
664
|
return {
|
|
@@ -89,6 +89,7 @@ class Prompts {
|
|
|
89
89
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
90
90
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
91
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
92
|
+
logging: this._options.logging,
|
|
92
93
|
});
|
|
93
94
|
if (_response.ok) {
|
|
94
95
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -156,6 +157,7 @@ class Prompts {
|
|
|
156
157
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
157
158
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
158
159
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
160
|
+
logging: this._options.logging,
|
|
159
161
|
});
|
|
160
162
|
if (_response.ok) {
|
|
161
163
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -223,6 +225,7 @@ class Prompts {
|
|
|
223
225
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
224
226
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
225
227
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
228
|
+
logging: this._options.logging,
|
|
226
229
|
});
|
|
227
230
|
if (_response.ok) {
|
|
228
231
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -297,6 +300,7 @@ class Prompts {
|
|
|
297
300
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
298
301
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
299
302
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
303
|
+
logging: this._options.logging,
|
|
300
304
|
});
|
|
301
305
|
if (_response.ok) {
|
|
302
306
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -368,6 +372,7 @@ class Prompts {
|
|
|
368
372
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
369
373
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
370
374
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
375
|
+
logging: this._options.logging,
|
|
371
376
|
});
|
|
372
377
|
if (_response.ok) {
|
|
373
378
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -453,6 +458,7 @@ class Prompts {
|
|
|
453
458
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
454
459
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
455
460
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
461
|
+
logging: this._options.logging,
|
|
456
462
|
});
|
|
457
463
|
if (_response.ok) {
|
|
458
464
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -522,6 +528,7 @@ class Prompts {
|
|
|
522
528
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
523
529
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
524
530
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
531
|
+
logging: this._options.logging,
|
|
525
532
|
});
|
|
526
533
|
if (_response.ok) {
|
|
527
534
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -87,6 +87,7 @@ class Cohort {
|
|
|
87
87
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
88
88
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
89
89
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
90
|
+
logging: this._options.logging,
|
|
90
91
|
});
|
|
91
92
|
if (_response.ok) {
|
|
92
93
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -95,6 +95,7 @@ class Construe {
|
|
|
95
95
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
96
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
97
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
98
|
+
logging: this._options.logging,
|
|
98
99
|
});
|
|
99
100
|
if (_response.ok) {
|
|
100
101
|
return {
|
|
@@ -180,6 +181,7 @@ class Construe {
|
|
|
180
181
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
181
182
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
182
183
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
184
|
+
logging: this._options.logging,
|
|
183
185
|
});
|
|
184
186
|
if (_response.ok) {
|
|
185
187
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -250,6 +252,7 @@ class Construe {
|
|
|
250
252
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
251
253
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
252
254
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
255
|
+
logging: this._options.logging,
|
|
253
256
|
});
|
|
254
257
|
if (_response.ok) {
|
|
255
258
|
return {
|
|
@@ -326,6 +329,7 @@ class Construe {
|
|
|
326
329
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
327
330
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
328
331
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
332
|
+
logging: this._options.logging,
|
|
329
333
|
});
|
|
330
334
|
if (_response.ok) {
|
|
331
335
|
return {
|
|
@@ -408,6 +412,7 @@ class Construe {
|
|
|
408
412
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
409
413
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
410
414
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
415
|
+
logging: this._options.logging,
|
|
411
416
|
});
|
|
412
417
|
if (_response.ok) {
|
|
413
418
|
return {
|
|
@@ -495,6 +500,7 @@ class Construe {
|
|
|
495
500
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
496
501
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
497
502
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
503
|
+
logging: this._options.logging,
|
|
498
504
|
});
|
|
499
505
|
if (_response.ok) {
|
|
500
506
|
return {
|
|
@@ -591,6 +597,7 @@ class Construe {
|
|
|
591
597
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
592
598
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
593
599
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
600
|
+
logging: this._options.logging,
|
|
594
601
|
});
|
|
595
602
|
if (_response.ok) {
|
|
596
603
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -671,6 +678,7 @@ class Construe {
|
|
|
671
678
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
672
679
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
673
680
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
681
|
+
logging: this._options.logging,
|
|
674
682
|
});
|
|
675
683
|
if (_response.ok) {
|
|
676
684
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -772,6 +780,7 @@ class Construe {
|
|
|
772
780
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
773
781
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
774
782
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
783
|
+
logging: this._options.logging,
|
|
775
784
|
});
|
|
776
785
|
if (_response.ok) {
|
|
777
786
|
return {
|
|
@@ -882,6 +891,7 @@ class Construe {
|
|
|
882
891
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
883
892
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
884
893
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
894
|
+
logging: this._options.logging,
|
|
885
895
|
});
|
|
886
896
|
if (_response.ok) {
|
|
887
897
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -107,6 +107,7 @@ class Fhir {
|
|
|
107
107
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
108
108
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
109
109
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
110
|
+
logging: this._options.logging,
|
|
110
111
|
});
|
|
111
112
|
if (_response.ok) {
|
|
112
113
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -212,6 +213,7 @@ class Fhir {
|
|
|
212
213
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
213
214
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
214
215
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
216
|
+
logging: this._options.logging,
|
|
215
217
|
});
|
|
216
218
|
if (_response.ok) {
|
|
217
219
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -317,6 +319,7 @@ class Fhir {
|
|
|
317
319
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
318
320
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
319
321
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
322
|
+
logging: this._options.logging,
|
|
320
323
|
});
|
|
321
324
|
if (_response.ok) {
|
|
322
325
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -405,6 +408,7 @@ class Fhir {
|
|
|
405
408
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
406
409
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
407
410
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
411
|
+
logging: this._options.logging,
|
|
408
412
|
});
|
|
409
413
|
if (_response.ok) {
|
|
410
414
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -559,6 +563,7 @@ class Fhir {
|
|
|
559
563
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
560
564
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
561
565
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
566
|
+
logging: this._options.logging,
|
|
562
567
|
});
|
|
563
568
|
if (_response.ok) {
|
|
564
569
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -680,6 +685,7 @@ class Fhir {
|
|
|
680
685
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
681
686
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
682
687
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
688
|
+
logging: this._options.logging,
|
|
683
689
|
});
|
|
684
690
|
if (_response.ok) {
|
|
685
691
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -93,6 +93,7 @@ class FhirProvider {
|
|
|
93
93
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
94
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
95
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
96
|
+
logging: this._options.logging,
|
|
96
97
|
});
|
|
97
98
|
if (_response.ok) {
|
|
98
99
|
return {
|
|
@@ -165,6 +166,7 @@ class FhirProvider {
|
|
|
165
166
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
166
167
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
167
168
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
169
|
+
logging: this._options.logging,
|
|
168
170
|
});
|
|
169
171
|
if (_response.ok) {
|
|
170
172
|
return {
|
|
@@ -235,6 +237,7 @@ class FhirProvider {
|
|
|
235
237
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
236
238
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
237
239
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
240
|
+
logging: this._options.logging,
|
|
238
241
|
});
|
|
239
242
|
if (_response.ok) {
|
|
240
243
|
return {
|
|
@@ -307,6 +310,7 @@ class FhirProvider {
|
|
|
307
310
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
308
311
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
309
312
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
313
|
+
logging: this._options.logging,
|
|
310
314
|
});
|
|
311
315
|
if (_response.ok) {
|
|
312
316
|
return {
|
|
@@ -389,6 +393,7 @@ class FhirProvider {
|
|
|
389
393
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
390
394
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
391
395
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
396
|
+
logging: this._options.logging,
|
|
392
397
|
});
|
|
393
398
|
if (_response.ok) {
|
|
394
399
|
return {
|
|
@@ -476,6 +481,7 @@ class FhirProvider {
|
|
|
476
481
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
477
482
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
478
483
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
484
|
+
logging: this._options.logging,
|
|
479
485
|
});
|
|
480
486
|
if (_response.ok) {
|
|
481
487
|
return {
|
|
@@ -560,6 +566,7 @@ class FhirProvider {
|
|
|
560
566
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
561
567
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
562
568
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
569
|
+
logging: this._options.logging,
|
|
563
570
|
});
|
|
564
571
|
if (_response.ok) {
|
|
565
572
|
return {
|
|
@@ -89,6 +89,7 @@ class Lang2Fhir {
|
|
|
89
89
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
90
90
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
91
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
92
|
+
logging: this._options.logging,
|
|
92
93
|
});
|
|
93
94
|
if (_response.ok) {
|
|
94
95
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -162,6 +163,7 @@ class Lang2Fhir {
|
|
|
162
163
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
163
164
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
164
165
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
166
|
+
logging: this._options.logging,
|
|
165
167
|
});
|
|
166
168
|
if (_response.ok) {
|
|
167
169
|
return {
|
|
@@ -244,6 +246,7 @@ class Lang2Fhir {
|
|
|
244
246
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
245
247
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
246
248
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
249
|
+
logging: this._options.logging,
|
|
247
250
|
});
|
|
248
251
|
if (_response.ok) {
|
|
249
252
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -327,6 +330,7 @@ class Lang2Fhir {
|
|
|
327
330
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
328
331
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
329
332
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
333
|
+
logging: this._options.logging,
|
|
330
334
|
});
|
|
331
335
|
if (_response.ok) {
|
|
332
336
|
return {
|
|
@@ -405,6 +409,7 @@ class Lang2Fhir {
|
|
|
405
409
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
406
410
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
407
411
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
412
|
+
logging: this._options.logging,
|
|
408
413
|
});
|
|
409
414
|
if (_response.ok) {
|
|
410
415
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -80,6 +80,7 @@ class Summary {
|
|
|
80
80
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
81
81
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
82
82
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
83
|
+
logging: this._options.logging,
|
|
83
84
|
});
|
|
84
85
|
if (_response.ok) {
|
|
85
86
|
return {
|
|
@@ -155,6 +156,7 @@ class Summary {
|
|
|
155
156
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
156
157
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
157
158
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
159
|
+
logging: this._options.logging,
|
|
158
160
|
});
|
|
159
161
|
if (_response.ok) {
|
|
160
162
|
return {
|
|
@@ -225,6 +227,7 @@ class Summary {
|
|
|
225
227
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
226
228
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
227
229
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
230
|
+
logging: this._options.logging,
|
|
228
231
|
});
|
|
229
232
|
if (_response.ok) {
|
|
230
233
|
return {
|
|
@@ -307,6 +310,7 @@ class Summary {
|
|
|
307
310
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
308
311
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
309
312
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
313
|
+
logging: this._options.logging,
|
|
310
314
|
});
|
|
311
315
|
if (_response.ok) {
|
|
312
316
|
return {
|
|
@@ -381,6 +385,7 @@ class Summary {
|
|
|
381
385
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
382
386
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
383
387
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
388
|
+
logging: this._options.logging,
|
|
384
389
|
});
|
|
385
390
|
if (_response.ok) {
|
|
386
391
|
return {
|
|
@@ -464,6 +469,7 @@ class Summary {
|
|
|
464
469
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
465
470
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
466
471
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
472
|
+
logging: this._options.logging,
|
|
467
473
|
});
|
|
468
474
|
if (_response.ok) {
|
|
469
475
|
return {
|
|
@@ -113,6 +113,7 @@ class Tools {
|
|
|
113
113
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
114
114
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
115
115
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
116
|
+
logging: this._options.logging,
|
|
116
117
|
});
|
|
117
118
|
if (_response.ok) {
|
|
118
119
|
return {
|
|
@@ -205,6 +206,7 @@ class Tools {
|
|
|
205
206
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
206
207
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
207
208
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
209
|
+
logging: this._options.logging,
|
|
208
210
|
});
|
|
209
211
|
if (_response.ok) {
|
|
210
212
|
return {
|
|
@@ -292,6 +294,7 @@ class Tools {
|
|
|
292
294
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
293
295
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
294
296
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
297
|
+
logging: this._options.logging,
|
|
295
298
|
});
|
|
296
299
|
if (_response.ok) {
|
|
297
300
|
return {
|
|
@@ -379,6 +382,7 @@ class Tools {
|
|
|
379
382
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
380
383
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
381
384
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
385
|
+
logging: this._options.logging,
|
|
382
386
|
});
|
|
383
387
|
if (_response.ok) {
|
|
384
388
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -94,6 +94,7 @@ class McpServer {
|
|
|
94
94
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
95
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
96
96
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
97
|
+
logging: this._options.logging,
|
|
97
98
|
});
|
|
98
99
|
if (_response.ok) {
|
|
99
100
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -161,6 +162,7 @@ class McpServer {
|
|
|
161
162
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
162
163
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
163
164
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
165
|
+
logging: this._options.logging,
|
|
164
166
|
});
|
|
165
167
|
if (_response.ok) {
|
|
166
168
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -227,6 +229,7 @@ class McpServer {
|
|
|
227
229
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
228
230
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
229
231
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
232
|
+
logging: this._options.logging,
|
|
230
233
|
});
|
|
231
234
|
if (_response.ok) {
|
|
232
235
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -293,6 +296,7 @@ class McpServer {
|
|
|
293
296
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
294
297
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
295
298
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
299
|
+
logging: this._options.logging,
|
|
296
300
|
});
|
|
297
301
|
if (_response.ok) {
|
|
298
302
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -82,6 +82,7 @@ class Tools {
|
|
|
82
82
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
83
83
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
84
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
85
|
+
logging: this._options.logging,
|
|
85
86
|
});
|
|
86
87
|
if (_response.ok) {
|
|
87
88
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -148,6 +149,7 @@ class Tools {
|
|
|
148
149
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
149
150
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
150
151
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
152
|
+
logging: this._options.logging,
|
|
151
153
|
});
|
|
152
154
|
if (_response.ok) {
|
|
153
155
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -214,6 +216,7 @@ class Tools {
|
|
|
214
216
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
215
217
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
216
218
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
219
|
+
logging: this._options.logging,
|
|
217
220
|
});
|
|
218
221
|
if (_response.ok) {
|
|
219
222
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -289,6 +292,7 @@ class Tools {
|
|
|
289
292
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
290
293
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
291
294
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
295
|
+
logging: this._options.logging,
|
|
292
296
|
});
|
|
293
297
|
if (_response.ok) {
|
|
294
298
|
return {
|
|
@@ -100,6 +100,7 @@ class Workflows {
|
|
|
100
100
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
101
101
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
102
102
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
103
|
+
logging: this._options.logging,
|
|
103
104
|
});
|
|
104
105
|
if (_response.ok) {
|
|
105
106
|
return {
|
|
@@ -188,6 +189,7 @@ class Workflows {
|
|
|
188
189
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
189
190
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
190
191
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
192
|
+
logging: this._options.logging,
|
|
191
193
|
});
|
|
192
194
|
if (_response.ok) {
|
|
193
195
|
return {
|
|
@@ -268,6 +270,7 @@ class Workflows {
|
|
|
268
270
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
269
271
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
270
272
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
273
|
+
logging: this._options.logging,
|
|
271
274
|
});
|
|
272
275
|
if (_response.ok) {
|
|
273
276
|
return {
|
|
@@ -360,6 +363,7 @@ class Workflows {
|
|
|
360
363
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
361
364
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
362
365
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
366
|
+
logging: this._options.logging,
|
|
363
367
|
});
|
|
364
368
|
if (_response.ok) {
|
|
365
369
|
return {
|
|
@@ -434,6 +438,7 @@ class Workflows {
|
|
|
434
438
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
435
439
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
436
440
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
441
|
+
logging: this._options.logging,
|
|
437
442
|
});
|
|
438
443
|
if (_response.ok) {
|
|
439
444
|
return {
|
|
@@ -518,6 +523,7 @@ class Workflows {
|
|
|
518
523
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
519
524
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
520
525
|
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
526
|
+
logging: this._options.logging,
|
|
521
527
|
});
|
|
522
528
|
if (_response.ok) {
|
|
523
529
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./logging/exports.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./logging/exports.js"), exports);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type LogConfig, type Logger } from "../logging/logger.js";
|
|
1
2
|
import type { APIResponse } from "./APIResponse.js";
|
|
2
3
|
import type { EndpointMetadata } from "./EndpointMetadata.js";
|
|
3
4
|
import { EndpointSupplier } from "./EndpointSupplier.js";
|
|
@@ -19,6 +20,7 @@ export declare namespace Fetcher {
|
|
|
19
20
|
duplex?: "half";
|
|
20
21
|
endpointMetadata?: EndpointMetadata;
|
|
21
22
|
fetchFn?: typeof fetch;
|
|
23
|
+
logging?: LogConfig | Logger;
|
|
22
24
|
}
|
|
23
25
|
type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
|
|
24
26
|
interface FailedStatusCodeError {
|