@icure/cardinal-sdk 2.1.2 → 2.1.3
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/cardinal-sdk-ts.mjs +38650 -38648
- package/cardinal-sdk.mjs +41096 -41064
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlinx-coroutines-core.mjs +1 -1
- package/options/AuthenticationMethod.d.mts +24 -10
- package/options/AuthenticationMethod.mjs +12 -10
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -48,12 +48,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
48
|
};
|
|
49
49
|
}(Math.log, Math.LN2);
|
|
50
50
|
}
|
|
51
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
52
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
53
|
-
position = position || 0;
|
|
54
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
55
|
-
}});
|
|
56
|
-
}
|
|
57
51
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
58
52
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
59
53
|
var subjectString = this.toString();
|
|
@@ -65,6 +59,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
65
59
|
return lastIndex !== -1 && lastIndex === position;
|
|
66
60
|
}});
|
|
67
61
|
}
|
|
62
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
63
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
64
|
+
position = position || 0;
|
|
65
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
66
|
+
}});
|
|
67
|
+
}
|
|
68
68
|
//endregion
|
|
69
69
|
//region block: imports
|
|
70
70
|
var imul_0 = Math.imul;
|
|
@@ -294,7 +294,7 @@ initMetadataForClass(ContextScope, 'ContextScope', VOID, VOID, [CoroutineScope])
|
|
|
294
294
|
initMetadataForClass(Symbol, 'Symbol');
|
|
295
295
|
initMetadataForInterface(SelectInstance, 'SelectInstance');
|
|
296
296
|
initMetadataForClass(ClauseData, 'ClauseData', VOID, VOID, VOID, [1]);
|
|
297
|
-
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler,
|
|
297
|
+
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
|
|
298
298
|
initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
|
|
299
299
|
initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
|
|
300
300
|
initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [0]);
|
|
@@ -84,7 +84,12 @@ export declare namespace AuthenticationMethod {
|
|
|
84
84
|
/**
|
|
85
85
|
* During login consider only configurations that can provide at least this authentication class
|
|
86
86
|
*/
|
|
87
|
-
readonly minimumAuthenticationClass
|
|
87
|
+
readonly minimumAuthenticationClass: AuthenticationClass | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* (INTERNAL USE ONLY) only use the project id specified in the initialize method to choose the configuration of
|
|
90
|
+
* the external token, but not the group where to log in. This is probably not the option you are looking for.
|
|
91
|
+
*/
|
|
92
|
+
readonly doNotUseProjectIdForGroupSelection: boolean | undefined;
|
|
88
93
|
constructor(
|
|
89
94
|
/**
|
|
90
95
|
* The id of the configuration that specifies how the token should be validated and how it should be used to find
|
|
@@ -96,11 +101,10 @@ export declare namespace AuthenticationMethod {
|
|
|
96
101
|
/**
|
|
97
102
|
* A token used to perform the external authentication
|
|
98
103
|
*/
|
|
99
|
-
token: string,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
minimumAuthenticationClass?: AuthenticationClass | undefined);
|
|
104
|
+
token: string, props?: {
|
|
105
|
+
minimumAuthenticationClass?: AuthenticationClass;
|
|
106
|
+
doNotUseProjectIdForGroupSelection?: boolean;
|
|
107
|
+
});
|
|
104
108
|
}
|
|
105
109
|
class JwtCredentials {
|
|
106
110
|
/**
|
|
@@ -193,7 +197,10 @@ export declare namespace SecretProviderAuthenticationOptions {
|
|
|
193
197
|
class ExternalAuthenticationToken {
|
|
194
198
|
readonly token: string;
|
|
195
199
|
readonly configId: string;
|
|
196
|
-
|
|
200
|
+
readonly doNotUseProjectIdForGroupSelection: boolean | undefined;
|
|
201
|
+
constructor(token: string, configId: string, props?: {
|
|
202
|
+
doNotUseProjectIdForGroupSelection?: boolean;
|
|
203
|
+
});
|
|
197
204
|
}
|
|
198
205
|
}
|
|
199
206
|
type InitialSecret = InitialSecret.Password | InitialSecret.LongLivedToken | InitialSecret.ExternalAuthenticationToken;
|
|
@@ -272,7 +279,8 @@ export declare namespace AuthSecretDetails {
|
|
|
272
279
|
class ConfiguredExternalAuthenticationDetails {
|
|
273
280
|
readonly configId: string;
|
|
274
281
|
readonly secret: string;
|
|
275
|
-
readonly minimumAuthenticationClass
|
|
282
|
+
readonly minimumAuthenticationClass: AuthenticationClass | undefined;
|
|
283
|
+
readonly doNotUseProjectIdForGroupSelection: boolean | undefined;
|
|
276
284
|
/**
|
|
277
285
|
* Login using a token or other secret provided by another authentication service configured for your project.
|
|
278
286
|
*
|
|
@@ -282,10 +290,16 @@ export declare namespace AuthSecretDetails {
|
|
|
282
290
|
*
|
|
283
291
|
* @param configId id of the configuration to use for authentication.
|
|
284
292
|
* @param secret the token or another secret that will be used for authentication.
|
|
285
|
-
* @param
|
|
293
|
+
* @param props
|
|
294
|
+
* - minimumAuthenticationClass only consider configurations that can provide at least this authentication class. The actual
|
|
286
295
|
* authentication class obtained for the token may be higher.
|
|
296
|
+
* - doNotUseProjectIdForGroupSelection (INTERNAL USE ONLY) only use the project id specified in the initialize method to choose the configuration of
|
|
297
|
+
* the external token, but not the group where to log in. This is probably not the option you are looking for.
|
|
287
298
|
*/
|
|
288
|
-
constructor(configId: string, secret: string,
|
|
299
|
+
constructor(configId: string, secret: string, props?: {
|
|
300
|
+
minimumAuthenticationClass?: AuthenticationClass;
|
|
301
|
+
doNotUseProjectIdForGroupSelection?: boolean;
|
|
302
|
+
});
|
|
289
303
|
}
|
|
290
304
|
}
|
|
291
305
|
export type AuthSecretDetails = AuthSecretDetails.PasswordDetails | AuthSecretDetails.TwoFactorAuthTokenDetails | AuthSecretDetails.ShortLivedTokenDetails | AuthSecretDetails.LongLivedTokenDetails | AuthSecretDetails.ConfiguredExternalAuthenticationDetails;
|
|
@@ -65,14 +65,11 @@ export var AuthenticationMethod;
|
|
|
65
65
|
/**
|
|
66
66
|
* A token used to perform the external authentication
|
|
67
67
|
*/
|
|
68
|
-
token,
|
|
69
|
-
/**
|
|
70
|
-
* During login consider only configurations that can provide at least this authentication class
|
|
71
|
-
*/
|
|
72
|
-
minimumAuthenticationClass) {
|
|
68
|
+
token, props = {}) {
|
|
73
69
|
this.configId = configId;
|
|
74
70
|
this.token = token;
|
|
75
|
-
this.minimumAuthenticationClass = minimumAuthenticationClass;
|
|
71
|
+
this.minimumAuthenticationClass = props.minimumAuthenticationClass;
|
|
72
|
+
this.doNotUseProjectIdForGroupSelection = props.doNotUseProjectIdForGroupSelection;
|
|
76
73
|
}
|
|
77
74
|
}
|
|
78
75
|
UsingCredentials.ExternalAuthenticationToken = ExternalAuthenticationToken;
|
|
@@ -135,9 +132,10 @@ export var SecretProviderAuthenticationOptions;
|
|
|
135
132
|
}
|
|
136
133
|
InitialSecret.LongLivedToken = LongLivedToken;
|
|
137
134
|
class ExternalAuthenticationToken {
|
|
138
|
-
constructor(token, configId) {
|
|
135
|
+
constructor(token, configId, props = {}) {
|
|
139
136
|
this.token = token;
|
|
140
137
|
this.configId = configId;
|
|
138
|
+
this.doNotUseProjectIdForGroupSelection = props.doNotUseProjectIdForGroupSelection;
|
|
141
139
|
}
|
|
142
140
|
}
|
|
143
141
|
InitialSecret.ExternalAuthenticationToken = ExternalAuthenticationToken;
|
|
@@ -193,13 +191,17 @@ export var AuthSecretDetails;
|
|
|
193
191
|
*
|
|
194
192
|
* @param configId id of the configuration to use for authentication.
|
|
195
193
|
* @param secret the token or another secret that will be used for authentication.
|
|
196
|
-
* @param
|
|
194
|
+
* @param props
|
|
195
|
+
* - minimumAuthenticationClass only consider configurations that can provide at least this authentication class. The actual
|
|
197
196
|
* authentication class obtained for the token may be higher.
|
|
197
|
+
* - doNotUseProjectIdForGroupSelection (INTERNAL USE ONLY) only use the project id specified in the initialize method to choose the configuration of
|
|
198
|
+
* the external token, but not the group where to log in. This is probably not the option you are looking for.
|
|
198
199
|
*/
|
|
199
|
-
constructor(configId, secret,
|
|
200
|
+
constructor(configId, secret, props = {}) {
|
|
200
201
|
this.configId = configId;
|
|
201
202
|
this.secret = secret;
|
|
202
|
-
this.minimumAuthenticationClass = minimumAuthenticationClass;
|
|
203
|
+
this.minimumAuthenticationClass = props.minimumAuthenticationClass;
|
|
204
|
+
this.doNotUseProjectIdForGroupSelection = props.doNotUseProjectIdForGroupSelection;
|
|
203
205
|
}
|
|
204
206
|
}
|
|
205
207
|
AuthSecretDetails.ConfiguredExternalAuthenticationDetails = ConfiguredExternalAuthenticationDetails;
|