@medplum/core 4.0.2 → 4.0.4
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/index.cjs +7 -7
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +124 -92
- package/dist/esm/index.d.ts +124 -92
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -66,26 +66,28 @@ export declare function accepted(location: string): OperationOutcome;
|
|
|
66
66
|
*
|
|
67
67
|
* Codes taken from http://hl7.org/fhir/codesystem-restful-interaction.html
|
|
68
68
|
*/
|
|
69
|
-
export declare
|
|
70
|
-
READ
|
|
71
|
-
VREAD
|
|
72
|
-
UPDATE
|
|
73
|
-
PATCH
|
|
74
|
-
DELETE
|
|
75
|
-
HISTORY
|
|
76
|
-
HISTORY_INSTANCE
|
|
77
|
-
HISTORY_TYPE
|
|
78
|
-
HISTORY_SYSTEM
|
|
79
|
-
CREATE
|
|
80
|
-
SEARCH
|
|
81
|
-
SEARCH_TYPE
|
|
82
|
-
SEARCH_SYSTEM
|
|
83
|
-
SEARCH_COMPARTMENT
|
|
84
|
-
CAPABILITIES
|
|
85
|
-
TRANSACTION
|
|
86
|
-
BATCH
|
|
87
|
-
OPERATION
|
|
88
|
-
}
|
|
69
|
+
export declare const AccessPolicyInteraction: {
|
|
70
|
+
readonly READ: "read";
|
|
71
|
+
readonly VREAD: "vread";
|
|
72
|
+
readonly UPDATE: "update";
|
|
73
|
+
readonly PATCH: "patch";
|
|
74
|
+
readonly DELETE: "delete";
|
|
75
|
+
readonly HISTORY: "history";
|
|
76
|
+
readonly HISTORY_INSTANCE: "history-instance";
|
|
77
|
+
readonly HISTORY_TYPE: "history-type";
|
|
78
|
+
readonly HISTORY_SYSTEM: "history-system";
|
|
79
|
+
readonly CREATE: "create";
|
|
80
|
+
readonly SEARCH: "search";
|
|
81
|
+
readonly SEARCH_TYPE: "search-type";
|
|
82
|
+
readonly SEARCH_SYSTEM: "search-system";
|
|
83
|
+
readonly SEARCH_COMPARTMENT: "search-compartment";
|
|
84
|
+
readonly CAPABILITIES: "capabilities";
|
|
85
|
+
readonly TRANSACTION: "transaction";
|
|
86
|
+
readonly BATCH: "batch";
|
|
87
|
+
readonly OPERATION: "operation";
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export declare type AccessPolicyInteraction = (typeof AccessPolicyInteraction)[keyof typeof AccessPolicyInteraction];
|
|
89
91
|
|
|
90
92
|
/**
|
|
91
93
|
* Adds the supplied profileUrl to the resource.meta.profile if it is not already
|
|
@@ -861,6 +863,13 @@ declare interface ErrorEvent_2 extends globalThis.Event {
|
|
|
861
863
|
}
|
|
862
864
|
export { ErrorEvent_2 as ErrorEvent }
|
|
863
865
|
|
|
866
|
+
/**
|
|
867
|
+
* Returns the escaped HTML string of the input string.
|
|
868
|
+
* @param unsafe - The unsafe HTML string to escape.
|
|
869
|
+
* @returns The escaped HTML string.
|
|
870
|
+
*/
|
|
871
|
+
export declare function escapeHtml(unsafe: string): string;
|
|
872
|
+
|
|
864
873
|
/**
|
|
865
874
|
* Evaluates a FHIRPath expression against a resource or other object.
|
|
866
875
|
* @param expression - The FHIRPath expression to parse.
|
|
@@ -2490,6 +2499,13 @@ export declare function isTextObject(value: unknown): value is {
|
|
|
2490
2499
|
text: string;
|
|
2491
2500
|
};
|
|
2492
2501
|
|
|
2502
|
+
/**
|
|
2503
|
+
* Returns true if the value is a TypedValue.
|
|
2504
|
+
* @param value - The unknown value to check.
|
|
2505
|
+
* @returns True if the value is a TypedValue.
|
|
2506
|
+
*/
|
|
2507
|
+
export declare function isTypedValue(value: unknown): value is TypedValue;
|
|
2508
|
+
|
|
2493
2509
|
export declare function isUnauthenticated(outcome: OperationOutcome): boolean;
|
|
2494
2510
|
|
|
2495
2511
|
/**
|
|
@@ -2648,10 +2664,10 @@ export declare function loadDataType(sd: StructureDefinition): void;
|
|
|
2648
2664
|
export declare class Logger {
|
|
2649
2665
|
readonly write: (msg: string) => void;
|
|
2650
2666
|
readonly metadata: Record<string, any>;
|
|
2651
|
-
|
|
2652
|
-
readonly options?: LoggerOptions | undefined;
|
|
2667
|
+
readonly options?: LoggerOptions;
|
|
2653
2668
|
readonly prefix?: string;
|
|
2654
|
-
|
|
2669
|
+
level: LogLevel;
|
|
2670
|
+
constructor(write: (msg: string) => void, metadata?: Record<string, any>, level?: LogLevel, options?: LoggerOptions);
|
|
2655
2671
|
clone(override?: LoggerConfigOverride): Logger;
|
|
2656
2672
|
private getLoggerConfig;
|
|
2657
2673
|
error(msg: string, data?: Record<string, any> | Error): void;
|
|
@@ -2703,13 +2719,17 @@ export declare interface LoginState {
|
|
|
2703
2719
|
*
|
|
2704
2720
|
* The zero value means no server logs will be emitted.
|
|
2705
2721
|
*/
|
|
2706
|
-
export declare
|
|
2707
|
-
NONE
|
|
2708
|
-
ERROR
|
|
2709
|
-
WARN
|
|
2710
|
-
INFO
|
|
2711
|
-
DEBUG
|
|
2712
|
-
}
|
|
2722
|
+
export declare const LogLevel: {
|
|
2723
|
+
NONE: number;
|
|
2724
|
+
ERROR: number;
|
|
2725
|
+
WARN: number;
|
|
2726
|
+
INFO: number;
|
|
2727
|
+
DEBUG: number;
|
|
2728
|
+
};
|
|
2729
|
+
|
|
2730
|
+
export declare type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
2731
|
+
|
|
2732
|
+
export declare const LogLevelNames: string[];
|
|
2713
2733
|
|
|
2714
2734
|
export declare const LOINC = "http://loinc.org";
|
|
2715
2735
|
|
|
@@ -5007,10 +5027,12 @@ export declare const notModified: OperationOutcome;
|
|
|
5007
5027
|
* OAuth 2.0 Client Authentication Methods
|
|
5008
5028
|
* See: https://datatracker.ietf.org/doc/html/rfc7523#section-2.2
|
|
5009
5029
|
*/
|
|
5010
|
-
export declare
|
|
5030
|
+
export declare const OAuthClientAssertionType: {
|
|
5011
5031
|
/** Using JWTs for Client Authentication */
|
|
5012
|
-
JwtBearer
|
|
5013
|
-
}
|
|
5032
|
+
readonly JwtBearer: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer";
|
|
5033
|
+
};
|
|
5034
|
+
|
|
5035
|
+
export declare type OAuthClientAssertionType = (typeof OAuthClientAssertionType)[keyof typeof OAuthClientAssertionType];
|
|
5014
5036
|
|
|
5015
5037
|
/**
|
|
5016
5038
|
* OAuth 2.0 Grant Type Identifiers
|
|
@@ -5018,42 +5040,48 @@ export declare enum OAuthClientAssertionType {
|
|
|
5018
5040
|
* JWT bearer extension: https://datatracker.ietf.org/doc/html/rfc7523
|
|
5019
5041
|
* Token exchange extension: https://datatracker.ietf.org/doc/html/rfc8693
|
|
5020
5042
|
*/
|
|
5021
|
-
export declare
|
|
5022
|
-
ClientCredentials
|
|
5023
|
-
AuthorizationCode
|
|
5024
|
-
RefreshToken
|
|
5025
|
-
JwtBearer
|
|
5026
|
-
TokenExchange
|
|
5027
|
-
}
|
|
5043
|
+
export declare const OAuthGrantType: {
|
|
5044
|
+
readonly ClientCredentials: "client_credentials";
|
|
5045
|
+
readonly AuthorizationCode: "authorization_code";
|
|
5046
|
+
readonly RefreshToken: "refresh_token";
|
|
5047
|
+
readonly JwtBearer: "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
5048
|
+
readonly TokenExchange: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
5049
|
+
};
|
|
5050
|
+
|
|
5051
|
+
export declare type OAuthGrantType = (typeof OAuthGrantType)[keyof typeof OAuthGrantType];
|
|
5028
5052
|
|
|
5029
5053
|
/**
|
|
5030
5054
|
* OAuth 2.0 Client Authentication Methods
|
|
5031
5055
|
* See: https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication
|
|
5032
5056
|
*/
|
|
5033
|
-
export declare
|
|
5034
|
-
ClientSecretBasic
|
|
5035
|
-
ClientSecretPost
|
|
5036
|
-
ClientSecretJwt
|
|
5037
|
-
PrivateKeyJwt
|
|
5038
|
-
None
|
|
5039
|
-
}
|
|
5057
|
+
export declare const OAuthTokenAuthMethod: {
|
|
5058
|
+
readonly ClientSecretBasic: "client_secret_basic";
|
|
5059
|
+
readonly ClientSecretPost: "client_secret_post";
|
|
5060
|
+
readonly ClientSecretJwt: "client_secret_jwt";
|
|
5061
|
+
readonly PrivateKeyJwt: "private_key_jwt";
|
|
5062
|
+
readonly None: "none";
|
|
5063
|
+
};
|
|
5064
|
+
|
|
5065
|
+
export declare type OAuthTokenAuthMethod = (typeof OAuthTokenAuthMethod)[keyof typeof OAuthTokenAuthMethod];
|
|
5040
5066
|
|
|
5041
5067
|
/**
|
|
5042
5068
|
* OAuth 2.0 Token Type Identifiers
|
|
5043
5069
|
* See: https://datatracker.ietf.org/doc/html/rfc8693#name-token-type-identifiers
|
|
5044
5070
|
*/
|
|
5045
|
-
export declare
|
|
5071
|
+
export declare const OAuthTokenType: {
|
|
5046
5072
|
/** Indicates that the token is an OAuth 2.0 access token issued by the given authorization server. */
|
|
5047
|
-
AccessToken
|
|
5073
|
+
readonly AccessToken: "urn:ietf:params:oauth:token-type:access_token";
|
|
5048
5074
|
/** Indicates that the token is an OAuth 2.0 refresh token issued by the given authorization server. */
|
|
5049
|
-
RefreshToken
|
|
5075
|
+
readonly RefreshToken: "urn:ietf:params:oauth:token-type:refresh_token";
|
|
5050
5076
|
/** Indicates that the token is an ID Token as defined in Section 2 of [OpenID.Core]. */
|
|
5051
|
-
IdToken
|
|
5077
|
+
readonly IdToken: "urn:ietf:params:oauth:token-type:id_token";
|
|
5052
5078
|
/** Indicates that the token is a base64url-encoded SAML 1.1 [OASIS.saml-core-1.1] assertion. */
|
|
5053
|
-
Saml1Token
|
|
5079
|
+
readonly Saml1Token: "urn:ietf:params:oauth:token-type:saml1";
|
|
5054
5080
|
/** Indicates that the token is a base64url-encoded SAML 2.0 [OASIS.saml-core-2.0-os] assertion. */
|
|
5055
|
-
Saml2Token
|
|
5056
|
-
}
|
|
5081
|
+
readonly Saml2Token: "urn:ietf:params:oauth:token-type:saml2";
|
|
5082
|
+
};
|
|
5083
|
+
|
|
5084
|
+
export declare type OAuthTokenType = (typeof OAuthTokenType)[keyof typeof OAuthTokenType];
|
|
5057
5085
|
|
|
5058
5086
|
export declare class OperationOutcomeError extends Error {
|
|
5059
5087
|
readonly outcome: OperationOutcome;
|
|
@@ -5079,31 +5107,33 @@ export declare function operationOutcomeToString(outcome: OperationOutcome): str
|
|
|
5079
5107
|
* These operators represent "modifiers" and "prefixes" in FHIR search.
|
|
5080
5108
|
* See: https://www.hl7.org/fhir/search.html
|
|
5081
5109
|
*/
|
|
5082
|
-
export declare
|
|
5083
|
-
EQUALS
|
|
5084
|
-
NOT_EQUALS
|
|
5085
|
-
GREATER_THAN
|
|
5086
|
-
LESS_THAN
|
|
5087
|
-
GREATER_THAN_OR_EQUALS
|
|
5088
|
-
LESS_THAN_OR_EQUALS
|
|
5089
|
-
STARTS_AFTER
|
|
5090
|
-
ENDS_BEFORE
|
|
5091
|
-
APPROXIMATELY
|
|
5092
|
-
CONTAINS
|
|
5093
|
-
STARTS_WITH
|
|
5094
|
-
EXACT
|
|
5095
|
-
TEXT
|
|
5096
|
-
NOT
|
|
5097
|
-
ABOVE
|
|
5098
|
-
BELOW
|
|
5099
|
-
IN
|
|
5100
|
-
NOT_IN
|
|
5101
|
-
OF_TYPE
|
|
5102
|
-
MISSING
|
|
5103
|
-
PRESENT
|
|
5104
|
-
IDENTIFIER
|
|
5105
|
-
ITERATE
|
|
5106
|
-
}
|
|
5110
|
+
export declare const Operator: {
|
|
5111
|
+
readonly EQUALS: "eq";
|
|
5112
|
+
readonly NOT_EQUALS: "ne";
|
|
5113
|
+
readonly GREATER_THAN: "gt";
|
|
5114
|
+
readonly LESS_THAN: "lt";
|
|
5115
|
+
readonly GREATER_THAN_OR_EQUALS: "ge";
|
|
5116
|
+
readonly LESS_THAN_OR_EQUALS: "le";
|
|
5117
|
+
readonly STARTS_AFTER: "sa";
|
|
5118
|
+
readonly ENDS_BEFORE: "eb";
|
|
5119
|
+
readonly APPROXIMATELY: "ap";
|
|
5120
|
+
readonly CONTAINS: "contains";
|
|
5121
|
+
readonly STARTS_WITH: "sw";
|
|
5122
|
+
readonly EXACT: "exact";
|
|
5123
|
+
readonly TEXT: "text";
|
|
5124
|
+
readonly NOT: "not";
|
|
5125
|
+
readonly ABOVE: "above";
|
|
5126
|
+
readonly BELOW: "below";
|
|
5127
|
+
readonly IN: "in";
|
|
5128
|
+
readonly NOT_IN: "not-in";
|
|
5129
|
+
readonly OF_TYPE: "of-type";
|
|
5130
|
+
readonly MISSING: "missing";
|
|
5131
|
+
readonly PRESENT: "present";
|
|
5132
|
+
readonly IDENTIFIER: "identifier";
|
|
5133
|
+
readonly ITERATE: "iterate";
|
|
5134
|
+
};
|
|
5135
|
+
|
|
5136
|
+
export declare type Operator = (typeof Operator)[keyof typeof Operator];
|
|
5107
5137
|
|
|
5108
5138
|
/**
|
|
5109
5139
|
* Operator precedence
|
|
@@ -5716,18 +5746,20 @@ export declare interface SearchParameterDetails {
|
|
|
5716
5746
|
readonly array?: boolean;
|
|
5717
5747
|
}
|
|
5718
5748
|
|
|
5719
|
-
export declare
|
|
5720
|
-
BOOLEAN
|
|
5721
|
-
NUMBER
|
|
5722
|
-
QUANTITY
|
|
5723
|
-
TEXT
|
|
5724
|
-
REFERENCE
|
|
5725
|
-
CANONICAL
|
|
5726
|
-
DATE
|
|
5727
|
-
DATETIME
|
|
5728
|
-
PERIOD
|
|
5729
|
-
UUID
|
|
5730
|
-
}
|
|
5749
|
+
export declare const SearchParameterType: {
|
|
5750
|
+
readonly BOOLEAN: "BOOLEAN";
|
|
5751
|
+
readonly NUMBER: "NUMBER";
|
|
5752
|
+
readonly QUANTITY: "QUANTITY";
|
|
5753
|
+
readonly TEXT: "TEXT";
|
|
5754
|
+
readonly REFERENCE: "REFERENCE";
|
|
5755
|
+
readonly CANONICAL: "CANONICAL";
|
|
5756
|
+
readonly DATE: "DATE";
|
|
5757
|
+
readonly DATETIME: "DATETIME";
|
|
5758
|
+
readonly PERIOD: "PERIOD";
|
|
5759
|
+
readonly UUID: "UUID";
|
|
5760
|
+
};
|
|
5761
|
+
|
|
5762
|
+
export declare type SearchParameterType = (typeof SearchParameterType)[keyof typeof SearchParameterType];
|
|
5731
5763
|
|
|
5732
5764
|
export declare interface SearchRequest<T extends Resource = Resource> {
|
|
5733
5765
|
readonly resourceType: T['resourceType'];
|
|
@@ -6088,7 +6120,7 @@ export declare class Tokenizer {
|
|
|
6088
6120
|
private consumeMultiLineComment;
|
|
6089
6121
|
private consumeSingleLineComment;
|
|
6090
6122
|
private consumeString;
|
|
6091
|
-
private
|
|
6123
|
+
private consumeQuotedSymbol;
|
|
6092
6124
|
private consumeDateTime;
|
|
6093
6125
|
private consumeNumber;
|
|
6094
6126
|
private consumeSymbol;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -66,26 +66,28 @@ export declare function accepted(location: string): OperationOutcome;
|
|
|
66
66
|
*
|
|
67
67
|
* Codes taken from http://hl7.org/fhir/codesystem-restful-interaction.html
|
|
68
68
|
*/
|
|
69
|
-
export declare
|
|
70
|
-
READ
|
|
71
|
-
VREAD
|
|
72
|
-
UPDATE
|
|
73
|
-
PATCH
|
|
74
|
-
DELETE
|
|
75
|
-
HISTORY
|
|
76
|
-
HISTORY_INSTANCE
|
|
77
|
-
HISTORY_TYPE
|
|
78
|
-
HISTORY_SYSTEM
|
|
79
|
-
CREATE
|
|
80
|
-
SEARCH
|
|
81
|
-
SEARCH_TYPE
|
|
82
|
-
SEARCH_SYSTEM
|
|
83
|
-
SEARCH_COMPARTMENT
|
|
84
|
-
CAPABILITIES
|
|
85
|
-
TRANSACTION
|
|
86
|
-
BATCH
|
|
87
|
-
OPERATION
|
|
88
|
-
}
|
|
69
|
+
export declare const AccessPolicyInteraction: {
|
|
70
|
+
readonly READ: "read";
|
|
71
|
+
readonly VREAD: "vread";
|
|
72
|
+
readonly UPDATE: "update";
|
|
73
|
+
readonly PATCH: "patch";
|
|
74
|
+
readonly DELETE: "delete";
|
|
75
|
+
readonly HISTORY: "history";
|
|
76
|
+
readonly HISTORY_INSTANCE: "history-instance";
|
|
77
|
+
readonly HISTORY_TYPE: "history-type";
|
|
78
|
+
readonly HISTORY_SYSTEM: "history-system";
|
|
79
|
+
readonly CREATE: "create";
|
|
80
|
+
readonly SEARCH: "search";
|
|
81
|
+
readonly SEARCH_TYPE: "search-type";
|
|
82
|
+
readonly SEARCH_SYSTEM: "search-system";
|
|
83
|
+
readonly SEARCH_COMPARTMENT: "search-compartment";
|
|
84
|
+
readonly CAPABILITIES: "capabilities";
|
|
85
|
+
readonly TRANSACTION: "transaction";
|
|
86
|
+
readonly BATCH: "batch";
|
|
87
|
+
readonly OPERATION: "operation";
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export declare type AccessPolicyInteraction = (typeof AccessPolicyInteraction)[keyof typeof AccessPolicyInteraction];
|
|
89
91
|
|
|
90
92
|
/**
|
|
91
93
|
* Adds the supplied profileUrl to the resource.meta.profile if it is not already
|
|
@@ -861,6 +863,13 @@ declare interface ErrorEvent_2 extends globalThis.Event {
|
|
|
861
863
|
}
|
|
862
864
|
export { ErrorEvent_2 as ErrorEvent }
|
|
863
865
|
|
|
866
|
+
/**
|
|
867
|
+
* Returns the escaped HTML string of the input string.
|
|
868
|
+
* @param unsafe - The unsafe HTML string to escape.
|
|
869
|
+
* @returns The escaped HTML string.
|
|
870
|
+
*/
|
|
871
|
+
export declare function escapeHtml(unsafe: string): string;
|
|
872
|
+
|
|
864
873
|
/**
|
|
865
874
|
* Evaluates a FHIRPath expression against a resource or other object.
|
|
866
875
|
* @param expression - The FHIRPath expression to parse.
|
|
@@ -2490,6 +2499,13 @@ export declare function isTextObject(value: unknown): value is {
|
|
|
2490
2499
|
text: string;
|
|
2491
2500
|
};
|
|
2492
2501
|
|
|
2502
|
+
/**
|
|
2503
|
+
* Returns true if the value is a TypedValue.
|
|
2504
|
+
* @param value - The unknown value to check.
|
|
2505
|
+
* @returns True if the value is a TypedValue.
|
|
2506
|
+
*/
|
|
2507
|
+
export declare function isTypedValue(value: unknown): value is TypedValue;
|
|
2508
|
+
|
|
2493
2509
|
export declare function isUnauthenticated(outcome: OperationOutcome): boolean;
|
|
2494
2510
|
|
|
2495
2511
|
/**
|
|
@@ -2648,10 +2664,10 @@ export declare function loadDataType(sd: StructureDefinition): void;
|
|
|
2648
2664
|
export declare class Logger {
|
|
2649
2665
|
readonly write: (msg: string) => void;
|
|
2650
2666
|
readonly metadata: Record<string, any>;
|
|
2651
|
-
|
|
2652
|
-
readonly options?: LoggerOptions | undefined;
|
|
2667
|
+
readonly options?: LoggerOptions;
|
|
2653
2668
|
readonly prefix?: string;
|
|
2654
|
-
|
|
2669
|
+
level: LogLevel;
|
|
2670
|
+
constructor(write: (msg: string) => void, metadata?: Record<string, any>, level?: LogLevel, options?: LoggerOptions);
|
|
2655
2671
|
clone(override?: LoggerConfigOverride): Logger;
|
|
2656
2672
|
private getLoggerConfig;
|
|
2657
2673
|
error(msg: string, data?: Record<string, any> | Error): void;
|
|
@@ -2703,13 +2719,17 @@ export declare interface LoginState {
|
|
|
2703
2719
|
*
|
|
2704
2720
|
* The zero value means no server logs will be emitted.
|
|
2705
2721
|
*/
|
|
2706
|
-
export declare
|
|
2707
|
-
NONE
|
|
2708
|
-
ERROR
|
|
2709
|
-
WARN
|
|
2710
|
-
INFO
|
|
2711
|
-
DEBUG
|
|
2712
|
-
}
|
|
2722
|
+
export declare const LogLevel: {
|
|
2723
|
+
NONE: number;
|
|
2724
|
+
ERROR: number;
|
|
2725
|
+
WARN: number;
|
|
2726
|
+
INFO: number;
|
|
2727
|
+
DEBUG: number;
|
|
2728
|
+
};
|
|
2729
|
+
|
|
2730
|
+
export declare type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
2731
|
+
|
|
2732
|
+
export declare const LogLevelNames: string[];
|
|
2713
2733
|
|
|
2714
2734
|
export declare const LOINC = "http://loinc.org";
|
|
2715
2735
|
|
|
@@ -5007,10 +5027,12 @@ export declare const notModified: OperationOutcome;
|
|
|
5007
5027
|
* OAuth 2.0 Client Authentication Methods
|
|
5008
5028
|
* See: https://datatracker.ietf.org/doc/html/rfc7523#section-2.2
|
|
5009
5029
|
*/
|
|
5010
|
-
export declare
|
|
5030
|
+
export declare const OAuthClientAssertionType: {
|
|
5011
5031
|
/** Using JWTs for Client Authentication */
|
|
5012
|
-
JwtBearer
|
|
5013
|
-
}
|
|
5032
|
+
readonly JwtBearer: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer";
|
|
5033
|
+
};
|
|
5034
|
+
|
|
5035
|
+
export declare type OAuthClientAssertionType = (typeof OAuthClientAssertionType)[keyof typeof OAuthClientAssertionType];
|
|
5014
5036
|
|
|
5015
5037
|
/**
|
|
5016
5038
|
* OAuth 2.0 Grant Type Identifiers
|
|
@@ -5018,42 +5040,48 @@ export declare enum OAuthClientAssertionType {
|
|
|
5018
5040
|
* JWT bearer extension: https://datatracker.ietf.org/doc/html/rfc7523
|
|
5019
5041
|
* Token exchange extension: https://datatracker.ietf.org/doc/html/rfc8693
|
|
5020
5042
|
*/
|
|
5021
|
-
export declare
|
|
5022
|
-
ClientCredentials
|
|
5023
|
-
AuthorizationCode
|
|
5024
|
-
RefreshToken
|
|
5025
|
-
JwtBearer
|
|
5026
|
-
TokenExchange
|
|
5027
|
-
}
|
|
5043
|
+
export declare const OAuthGrantType: {
|
|
5044
|
+
readonly ClientCredentials: "client_credentials";
|
|
5045
|
+
readonly AuthorizationCode: "authorization_code";
|
|
5046
|
+
readonly RefreshToken: "refresh_token";
|
|
5047
|
+
readonly JwtBearer: "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
5048
|
+
readonly TokenExchange: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
5049
|
+
};
|
|
5050
|
+
|
|
5051
|
+
export declare type OAuthGrantType = (typeof OAuthGrantType)[keyof typeof OAuthGrantType];
|
|
5028
5052
|
|
|
5029
5053
|
/**
|
|
5030
5054
|
* OAuth 2.0 Client Authentication Methods
|
|
5031
5055
|
* See: https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication
|
|
5032
5056
|
*/
|
|
5033
|
-
export declare
|
|
5034
|
-
ClientSecretBasic
|
|
5035
|
-
ClientSecretPost
|
|
5036
|
-
ClientSecretJwt
|
|
5037
|
-
PrivateKeyJwt
|
|
5038
|
-
None
|
|
5039
|
-
}
|
|
5057
|
+
export declare const OAuthTokenAuthMethod: {
|
|
5058
|
+
readonly ClientSecretBasic: "client_secret_basic";
|
|
5059
|
+
readonly ClientSecretPost: "client_secret_post";
|
|
5060
|
+
readonly ClientSecretJwt: "client_secret_jwt";
|
|
5061
|
+
readonly PrivateKeyJwt: "private_key_jwt";
|
|
5062
|
+
readonly None: "none";
|
|
5063
|
+
};
|
|
5064
|
+
|
|
5065
|
+
export declare type OAuthTokenAuthMethod = (typeof OAuthTokenAuthMethod)[keyof typeof OAuthTokenAuthMethod];
|
|
5040
5066
|
|
|
5041
5067
|
/**
|
|
5042
5068
|
* OAuth 2.0 Token Type Identifiers
|
|
5043
5069
|
* See: https://datatracker.ietf.org/doc/html/rfc8693#name-token-type-identifiers
|
|
5044
5070
|
*/
|
|
5045
|
-
export declare
|
|
5071
|
+
export declare const OAuthTokenType: {
|
|
5046
5072
|
/** Indicates that the token is an OAuth 2.0 access token issued by the given authorization server. */
|
|
5047
|
-
AccessToken
|
|
5073
|
+
readonly AccessToken: "urn:ietf:params:oauth:token-type:access_token";
|
|
5048
5074
|
/** Indicates that the token is an OAuth 2.0 refresh token issued by the given authorization server. */
|
|
5049
|
-
RefreshToken
|
|
5075
|
+
readonly RefreshToken: "urn:ietf:params:oauth:token-type:refresh_token";
|
|
5050
5076
|
/** Indicates that the token is an ID Token as defined in Section 2 of [OpenID.Core]. */
|
|
5051
|
-
IdToken
|
|
5077
|
+
readonly IdToken: "urn:ietf:params:oauth:token-type:id_token";
|
|
5052
5078
|
/** Indicates that the token is a base64url-encoded SAML 1.1 [OASIS.saml-core-1.1] assertion. */
|
|
5053
|
-
Saml1Token
|
|
5079
|
+
readonly Saml1Token: "urn:ietf:params:oauth:token-type:saml1";
|
|
5054
5080
|
/** Indicates that the token is a base64url-encoded SAML 2.0 [OASIS.saml-core-2.0-os] assertion. */
|
|
5055
|
-
Saml2Token
|
|
5056
|
-
}
|
|
5081
|
+
readonly Saml2Token: "urn:ietf:params:oauth:token-type:saml2";
|
|
5082
|
+
};
|
|
5083
|
+
|
|
5084
|
+
export declare type OAuthTokenType = (typeof OAuthTokenType)[keyof typeof OAuthTokenType];
|
|
5057
5085
|
|
|
5058
5086
|
export declare class OperationOutcomeError extends Error {
|
|
5059
5087
|
readonly outcome: OperationOutcome;
|
|
@@ -5079,31 +5107,33 @@ export declare function operationOutcomeToString(outcome: OperationOutcome): str
|
|
|
5079
5107
|
* These operators represent "modifiers" and "prefixes" in FHIR search.
|
|
5080
5108
|
* See: https://www.hl7.org/fhir/search.html
|
|
5081
5109
|
*/
|
|
5082
|
-
export declare
|
|
5083
|
-
EQUALS
|
|
5084
|
-
NOT_EQUALS
|
|
5085
|
-
GREATER_THAN
|
|
5086
|
-
LESS_THAN
|
|
5087
|
-
GREATER_THAN_OR_EQUALS
|
|
5088
|
-
LESS_THAN_OR_EQUALS
|
|
5089
|
-
STARTS_AFTER
|
|
5090
|
-
ENDS_BEFORE
|
|
5091
|
-
APPROXIMATELY
|
|
5092
|
-
CONTAINS
|
|
5093
|
-
STARTS_WITH
|
|
5094
|
-
EXACT
|
|
5095
|
-
TEXT
|
|
5096
|
-
NOT
|
|
5097
|
-
ABOVE
|
|
5098
|
-
BELOW
|
|
5099
|
-
IN
|
|
5100
|
-
NOT_IN
|
|
5101
|
-
OF_TYPE
|
|
5102
|
-
MISSING
|
|
5103
|
-
PRESENT
|
|
5104
|
-
IDENTIFIER
|
|
5105
|
-
ITERATE
|
|
5106
|
-
}
|
|
5110
|
+
export declare const Operator: {
|
|
5111
|
+
readonly EQUALS: "eq";
|
|
5112
|
+
readonly NOT_EQUALS: "ne";
|
|
5113
|
+
readonly GREATER_THAN: "gt";
|
|
5114
|
+
readonly LESS_THAN: "lt";
|
|
5115
|
+
readonly GREATER_THAN_OR_EQUALS: "ge";
|
|
5116
|
+
readonly LESS_THAN_OR_EQUALS: "le";
|
|
5117
|
+
readonly STARTS_AFTER: "sa";
|
|
5118
|
+
readonly ENDS_BEFORE: "eb";
|
|
5119
|
+
readonly APPROXIMATELY: "ap";
|
|
5120
|
+
readonly CONTAINS: "contains";
|
|
5121
|
+
readonly STARTS_WITH: "sw";
|
|
5122
|
+
readonly EXACT: "exact";
|
|
5123
|
+
readonly TEXT: "text";
|
|
5124
|
+
readonly NOT: "not";
|
|
5125
|
+
readonly ABOVE: "above";
|
|
5126
|
+
readonly BELOW: "below";
|
|
5127
|
+
readonly IN: "in";
|
|
5128
|
+
readonly NOT_IN: "not-in";
|
|
5129
|
+
readonly OF_TYPE: "of-type";
|
|
5130
|
+
readonly MISSING: "missing";
|
|
5131
|
+
readonly PRESENT: "present";
|
|
5132
|
+
readonly IDENTIFIER: "identifier";
|
|
5133
|
+
readonly ITERATE: "iterate";
|
|
5134
|
+
};
|
|
5135
|
+
|
|
5136
|
+
export declare type Operator = (typeof Operator)[keyof typeof Operator];
|
|
5107
5137
|
|
|
5108
5138
|
/**
|
|
5109
5139
|
* Operator precedence
|
|
@@ -5716,18 +5746,20 @@ export declare interface SearchParameterDetails {
|
|
|
5716
5746
|
readonly array?: boolean;
|
|
5717
5747
|
}
|
|
5718
5748
|
|
|
5719
|
-
export declare
|
|
5720
|
-
BOOLEAN
|
|
5721
|
-
NUMBER
|
|
5722
|
-
QUANTITY
|
|
5723
|
-
TEXT
|
|
5724
|
-
REFERENCE
|
|
5725
|
-
CANONICAL
|
|
5726
|
-
DATE
|
|
5727
|
-
DATETIME
|
|
5728
|
-
PERIOD
|
|
5729
|
-
UUID
|
|
5730
|
-
}
|
|
5749
|
+
export declare const SearchParameterType: {
|
|
5750
|
+
readonly BOOLEAN: "BOOLEAN";
|
|
5751
|
+
readonly NUMBER: "NUMBER";
|
|
5752
|
+
readonly QUANTITY: "QUANTITY";
|
|
5753
|
+
readonly TEXT: "TEXT";
|
|
5754
|
+
readonly REFERENCE: "REFERENCE";
|
|
5755
|
+
readonly CANONICAL: "CANONICAL";
|
|
5756
|
+
readonly DATE: "DATE";
|
|
5757
|
+
readonly DATETIME: "DATETIME";
|
|
5758
|
+
readonly PERIOD: "PERIOD";
|
|
5759
|
+
readonly UUID: "UUID";
|
|
5760
|
+
};
|
|
5761
|
+
|
|
5762
|
+
export declare type SearchParameterType = (typeof SearchParameterType)[keyof typeof SearchParameterType];
|
|
5731
5763
|
|
|
5732
5764
|
export declare interface SearchRequest<T extends Resource = Resource> {
|
|
5733
5765
|
readonly resourceType: T['resourceType'];
|
|
@@ -6088,7 +6120,7 @@ export declare class Tokenizer {
|
|
|
6088
6120
|
private consumeMultiLineComment;
|
|
6089
6121
|
private consumeSingleLineComment;
|
|
6090
6122
|
private consumeString;
|
|
6091
|
-
private
|
|
6123
|
+
private consumeQuotedSymbol;
|
|
6092
6124
|
private consumeDateTime;
|
|
6093
6125
|
private consumeNumber;
|
|
6094
6126
|
private consumeSymbol;
|