@@ -19,11 +19,6 @@ import DefaultRESTClientBuilder from "./DefaultRESTClientBuilder";
19
19
import IRESTClientBuilder from "./IRESTClientBuilder" ;
20
20
import ClientResponse from "./ClientResponse" ;
21
21
22
- export interface ObjectMap < K extends string | number , T > {
23
- // @ts -ignore
24
- [ key : K ] : T
25
- }
26
-
27
22
export class FusionAuthClient {
28
23
public clientBuilder : IRESTClientBuilder = new DefaultRESTClientBuilder ( ) ;
29
24
public credentials : RequestCredentials ;
@@ -3471,7 +3466,7 @@ export interface Application {
3471
3466
active ?: boolean ;
3472
3467
authenticationTokenConfiguration ?: AuthenticationTokenConfiguration ;
3473
3468
cleanSpeakConfiguration ?: CleanSpeakConfiguration ;
3474
- data ?: ObjectMap < string , any > ;
3469
+ data ?: Record < string , any > ;
3475
3470
id ?: UUID ;
3476
3471
jwtConfiguration ?: JWTConfiguration ;
3477
3472
lambdaConfiguration ?: LambdaConfiguration ;
@@ -3557,7 +3552,7 @@ export interface Attachment {
3557
3552
* @author Brian Pontarelli
3558
3553
*/
3559
3554
export interface AuditLog {
3560
- data ?: ObjectMap < string , any > ;
3555
+ data ?: Record < string , any > ;
3561
3556
id ?: number ;
3562
3557
insertInstant ?: number ;
3563
3558
insertUser ?: string ;
@@ -3645,8 +3640,8 @@ export interface BaseExportRequest {
3645
3640
3646
3641
// Do not require a setter for 'type', it is defined by the concrete class and is not mutable
3647
3642
export interface BaseIdentityProvider < D extends BaseIdentityProviderApplicationConfiguration > extends Enableable {
3648
- applicationConfiguration ?: ObjectMap < UUID , D > ;
3649
- data ?: ObjectMap < string , any > ;
3643
+ applicationConfiguration ?: Record < UUID , D > ;
3644
+ data ?: Record < string , any > ;
3650
3645
debug ?: boolean ;
3651
3646
id ?: UUID ;
3652
3647
name ?: string ;
@@ -3658,7 +3653,7 @@ export interface BaseIdentityProvider<D extends BaseIdentityProviderApplicationC
3658
3653
*/
3659
3654
export interface BaseIdentityProviderApplicationConfiguration extends Enableable {
3660
3655
createRegistration ?: boolean ;
3661
- data ?: ObjectMap < string , any > ;
3656
+ data ?: Record < string , any > ;
3662
3657
}
3663
3658
3664
3659
/**
@@ -3753,7 +3748,7 @@ export interface ChangePasswordRequest {
3753
3748
*/
3754
3749
export interface ChangePasswordResponse {
3755
3750
oneTimePassword ?: string ;
3756
- state ?: ObjectMap < string , any > ;
3751
+ state ?: Record < string , any > ;
3757
3752
}
3758
3753
3759
3754
/**
@@ -3782,7 +3777,7 @@ export enum ClientAuthenticationMethod {
3782
3777
export interface Consent {
3783
3778
consentEmailTemplateId ?: UUID ;
3784
3779
countryMinimumAgeForSelfConsent ?: LocalizedIntegers ;
3785
- data ?: ObjectMap < string , any > ;
3780
+ data ?: Record < string , any > ;
3786
3781
defaultMinimumAgeForSelfConsent ?: number ;
3787
3782
emailPlus ?: EmailPlus ;
3788
3783
id ?: UUID ;
@@ -3992,8 +3987,8 @@ export interface EmailTemplate {
3992
3987
}
3993
3988
3994
3989
export interface EmailTemplateErrors {
3995
- parseErrors ?: ObjectMap < string , string > ;
3996
- renderErrors ?: ObjectMap < string , string > ;
3990
+ parseErrors ?: Record < string , string > ;
3991
+ renderErrors ?: Record < string , string > ;
3997
3992
}
3998
3993
3999
3994
/**
@@ -4040,15 +4035,15 @@ export interface Error {
4040
4035
* @author Brian Pontarelli
4041
4036
*/
4042
4037
export interface Errors {
4043
- fieldErrors ?: ObjectMap < string , Array < Error > > ;
4038
+ fieldErrors ?: Record < string , Array < Error > > ;
4044
4039
generalErrors ?: Array < Error > ;
4045
4040
}
4046
4041
4047
4042
/**
4048
4043
* @author Brian Pontarelli
4049
4044
*/
4050
4045
export interface EventConfiguration {
4051
- events ?: ObjectMap < EventType , EventConfigurationData > ;
4046
+ events ?: Record < EventType , EventConfigurationData > ;
4052
4047
}
4053
4048
4054
4049
export interface EventConfigurationData extends Enableable {
@@ -4203,7 +4198,7 @@ export interface ExternalJWTApplicationConfiguration extends BaseIdentityProvide
4203
4198
* @author Daniel DeGroff and Brian Pontarelli
4204
4199
*/
4205
4200
export interface ExternalJWTIdentityProvider extends BaseIdentityProvider < ExternalJWTApplicationConfiguration > {
4206
- claimMap ?: ObjectMap < string , string > ;
4201
+ claimMap ?: Record < string , string > ;
4207
4202
defaultKeyId ?: UUID ;
4208
4203
domains ?: Array < string > ;
4209
4204
headerKeyParameter ?: string ;
@@ -4288,7 +4283,7 @@ export interface FamilyEmailRequest {
4288
4283
* @author Brian Pontarelli
4289
4284
*/
4290
4285
export interface FamilyMember {
4291
- data ?: ObjectMap < string , any > ;
4286
+ data ?: Record < string , any > ;
4292
4287
insertInstant ?: number ;
4293
4288
owner ?: boolean ;
4294
4289
role ?: FamilyRole ;
@@ -4330,7 +4325,7 @@ export interface ForgotPasswordRequest {
4330
4325
email ?: string ;
4331
4326
loginId ?: string ;
4332
4327
sendForgotPasswordEmail ?: boolean ;
4333
- state ?: ObjectMap < string , any > ;
4328
+ state ?: Record < string , any > ;
4334
4329
username ?: string ;
4335
4330
}
4336
4331
@@ -4388,10 +4383,10 @@ export enum GrantType {
4388
4383
* @author Tyler Scott
4389
4384
*/
4390
4385
export interface Group {
4391
- data ?: ObjectMap < string , any > ;
4386
+ data ?: Record < string , any > ;
4392
4387
id ?: UUID ;
4393
4388
name ?: string ;
4394
- roles ?: ObjectMap < UUID , Array < ApplicationRole > > ;
4389
+ roles ?: Record < UUID , Array < ApplicationRole > > ;
4395
4390
tenantId ?: UUID ;
4396
4391
}
4397
4392
@@ -4401,7 +4396,7 @@ export interface Group {
4401
4396
* @author Daniel DeGroff
4402
4397
*/
4403
4398
export interface GroupMember {
4404
- data ?: ObjectMap < string , any > ;
4399
+ data ?: Record < string , any > ;
4405
4400
groupId ?: UUID ;
4406
4401
id ?: UUID ;
4407
4402
insertInstant ?: number ;
@@ -4440,7 +4435,7 @@ export interface HistoryItem {
4440
4435
*
4441
4436
* @author Brian Pontarelli
4442
4437
*/
4443
- export interface HTTPHeaders extends ObjectMap < string , string > {
4438
+ export interface HTTPHeaders extends Record < string , string > {
4444
4439
}
4445
4440
4446
4441
/**
@@ -4485,7 +4480,7 @@ export interface IdentityProviderDetails {
4485
4480
* @author Brian Pontarelli
4486
4481
*/
4487
4482
export interface IdentityProviderLoginRequest extends BaseLoginRequest {
4488
- data ?: ObjectMap < string , string > ;
4483
+ data ?: Record < string , string > ;
4489
4484
encodedJWT ?: string ;
4490
4485
identityProviderId ?: UUID ;
4491
4486
}
@@ -4525,7 +4520,7 @@ export interface IdentityProviderResponse {
4525
4520
export interface IdentityProviderStartLoginRequest extends BaseLoginRequest {
4526
4521
identityProviderId ?: UUID ;
4527
4522
loginId ?: string ;
4528
- state ?: ObjectMap < string , any > ;
4523
+ state ?: Record < string , any > ;
4529
4524
}
4530
4525
4531
4526
/**
@@ -4612,7 +4607,7 @@ export interface IntervalUser {
4612
4607
/**
4613
4608
* @author Daniel DeGroff
4614
4609
*/
4615
- export interface IntrospectResponse extends ObjectMap < string , any > {
4610
+ export interface IntrospectResponse extends Record < string , any > {
4616
4611
}
4617
4612
4618
4613
/**
@@ -4723,7 +4718,7 @@ export interface JWTRefreshEvent extends BaseEvent {
4723
4718
*/
4724
4719
export interface JWTRefreshTokenRevokeEvent extends BaseEvent {
4725
4720
applicationId ?: UUID ;
4726
- applicationTimeToLiveInSeconds ?: ObjectMap < UUID , number > ;
4721
+ applicationTimeToLiveInSeconds ?: Record < UUID , number > ;
4727
4722
user ?: User ;
4728
4723
userId ?: UUID ;
4729
4724
}
@@ -4733,7 +4728,7 @@ export interface JWTRefreshTokenRevokeEvent extends BaseEvent {
4733
4728
*/
4734
4729
export interface KafkaConfiguration extends Enableable {
4735
4730
defaultTopic ?: string ;
4736
- producer ?: ObjectMap < string , string > ;
4731
+ producer ?: Record < string , string > ;
4737
4732
}
4738
4733
4739
4734
/**
@@ -4856,15 +4851,15 @@ export enum LambdaType {
4856
4851
*
4857
4852
* @author Daniel DeGroff
4858
4853
*/
4859
- export interface LocalizedIntegers extends ObjectMap < string , number > {
4854
+ export interface LocalizedIntegers extends Record < string , number > {
4860
4855
}
4861
4856
4862
4857
/**
4863
4858
* Models a set of localized Strings that can be stored as JSON.
4864
4859
*
4865
4860
* @author Brian Pontarelli
4866
4861
*/
4867
- export interface LocalizedStrings extends ObjectMap < string , string > {
4862
+ export interface LocalizedStrings extends Record < string , string > {
4868
4863
}
4869
4864
4870
4865
/**
@@ -4974,7 +4969,7 @@ export interface LoginResponse {
4974
4969
changePasswordId ?: string ;
4975
4970
changePasswordReason ?: ChangePasswordReason ;
4976
4971
refreshToken ?: string ;
4977
- state ?: ObjectMap < string , any > ;
4972
+ state ?: Record < string , any > ;
4978
4973
token ?: string ;
4979
4974
twoFactorId ?: string ;
4980
4975
twoFactorTrustId ?: string ;
@@ -5010,7 +5005,7 @@ export interface MaximumPasswordAge extends Enableable {
5010
5005
*/
5011
5006
export interface MemberDeleteRequest {
5012
5007
memberIds ?: Array < UUID > ;
5013
- members ?: ObjectMap < UUID , Array < UUID > > ;
5008
+ members ?: Record < UUID , Array < UUID > > ;
5014
5009
}
5015
5010
5016
5011
/**
@@ -5019,7 +5014,7 @@ export interface MemberDeleteRequest {
5019
5014
* @author Daniel DeGroff
5020
5015
*/
5021
5016
export interface MemberRequest {
5022
- members ?: ObjectMap < UUID , Array < GroupMember > > ;
5017
+ members ?: Record < UUID , Array < GroupMember > > ;
5023
5018
}
5024
5019
5025
5020
/**
@@ -5028,7 +5023,7 @@ export interface MemberRequest {
5028
5023
* @author Daniel DeGroff
5029
5024
*/
5030
5025
export interface MemberResponse {
5031
- members ?: ObjectMap < UUID , Array < GroupMember > > ;
5026
+ members ?: Record < UUID , Array < GroupMember > > ;
5032
5027
}
5033
5028
5034
5029
export interface MetaData {
@@ -5261,7 +5256,7 @@ export interface PasswordlessSendRequest {
5261
5256
applicationId ?: UUID ;
5262
5257
code ?: string ;
5263
5258
loginId ?: string ;
5264
- state ?: ObjectMap < string , any > ;
5259
+ state ?: Record < string , any > ;
5265
5260
}
5266
5261
5267
5262
/**
@@ -5270,7 +5265,7 @@ export interface PasswordlessSendRequest {
5270
5265
export interface PasswordlessStartRequest {
5271
5266
applicationId ?: UUID ;
5272
5267
loginId ?: string ;
5273
- state ?: ObjectMap < string , any > ;
5268
+ state ?: Record < string , any > ;
5274
5269
}
5275
5270
5276
5271
/**
@@ -5331,7 +5326,7 @@ export interface PreviewResponse {
5331
5326
*/
5332
5327
export interface PublicKeyResponse {
5333
5328
publicKey ?: string ;
5334
- publicKeys ?: ObjectMap < string , string > ;
5329
+ publicKeys ?: Record < string , string > ;
5335
5330
}
5336
5331
5337
5332
/**
@@ -5568,15 +5563,15 @@ export interface SecureIdentity {
5568
5563
export interface SendRequest {
5569
5564
bccAddresses ?: Array < string > ;
5570
5565
ccAddresses ?: Array < string > ;
5571
- requestData ?: ObjectMap < string , any > ;
5566
+ requestData ?: Record < string , any > ;
5572
5567
userIds ?: Array < UUID > ;
5573
5568
}
5574
5569
5575
5570
/**
5576
5571
* @author Daniel DeGroff
5577
5572
*/
5578
5573
export interface SendResponse {
5579
- results ?: ObjectMap < UUID , EmailTemplateErrors > ;
5574
+ results ?: Record < UUID , EmailTemplateErrors > ;
5580
5575
}
5581
5576
5582
5577
/**
@@ -5604,7 +5599,7 @@ export interface SystemConfiguration {
5604
5599
cookieEncryptionIV ?: string ;
5605
5600
cookieEncryptionKey ?: string ;
5606
5601
corsConfiguration ?: CORSConfiguration ;
5607
- data ?: ObjectMap < string , any > ;
5602
+ data ?: Record < string , any > ;
5608
5603
eventLogConfiguration ?: EventLogConfiguration ;
5609
5604
loginRecordConfiguration ?: LoginRecordConfiguration ;
5610
5605
reportTimezone ?: string ;
@@ -5667,7 +5662,7 @@ export interface Templates {
5667
5662
*/
5668
5663
export interface Tenant {
5669
5664
configured ?: boolean ;
5670
- data ?: ObjectMap < string , any > ;
5665
+ data ?: Record < string , any > ;
5671
5666
emailConfiguration ?: EmailConfiguration ;
5672
5667
eventConfiguration ?: EventConfiguration ;
5673
5668
externalIdentifierConfiguration ?: ExternalIdentifierConfiguration ;
@@ -5729,7 +5724,7 @@ export interface TestEvent extends BaseEvent {
5729
5724
* @author Trevor Smith
5730
5725
*/
5731
5726
export interface Theme {
5732
- data ?: ObjectMap < string , any > ;
5727
+ data ?: Record < string , any > ;
5733
5728
defaultMessages ?: string ;
5734
5729
id ?: UUID ;
5735
5730
insertInstant ?: number ;
@@ -5797,7 +5792,7 @@ export interface Totals {
5797
5792
* @author Brian Pontarelli
5798
5793
*/
5799
5794
export interface TotalsReportResponse {
5800
- applicationTotals ?: ObjectMap < UUID , Totals > ;
5795
+ applicationTotals ?: Record < UUID , Totals > ;
5801
5796
globalRegistrations ?: number ;
5802
5797
totalGlobalRegistrations ?: number ;
5803
5798
}
@@ -5900,7 +5895,7 @@ export interface User extends SecureIdentity {
5900
5895
active ?: boolean ;
5901
5896
birthDate ?: string ;
5902
5897
cleanSpeakId ?: UUID ;
5903
- data ?: ObjectMap < string , any > ;
5898
+ data ?: Record < string , any > ;
5904
5899
email ?: string ;
5905
5900
expiry ?: number ;
5906
5901
firstName ?: string ;
@@ -6120,7 +6115,7 @@ export interface UserCommentResponse {
6120
6115
export interface UserConsent {
6121
6116
consent ?: Consent ;
6122
6117
consentId ?: UUID ;
6123
- data ?: ObjectMap < string , any > ;
6118
+ data ?: Record < string , any > ;
6124
6119
giverUserId ?: UUID ;
6125
6120
id ?: UUID ;
6126
6121
insertInstant ?: number ;
@@ -6214,7 +6209,7 @@ export interface UserEmailVerifiedEvent extends BaseEvent {
6214
6209
/**
6215
6210
* @author Daniel DeGroff
6216
6211
*/
6217
- export interface UserinfoResponse extends ObjectMap < string , any > {
6212
+ export interface UserinfoResponse extends Record < string , any > {
6218
6213
}
6219
6214
6220
6215
/**
@@ -6272,14 +6267,14 @@ export interface UserRegistration {
6272
6267
applicationId ?: UUID ;
6273
6268
authenticationToken ?: string ;
6274
6269
cleanSpeakId ?: UUID ;
6275
- data ?: ObjectMap < string , any > ;
6270
+ data ?: Record < string , any > ;
6276
6271
id ?: UUID ;
6277
6272
insertInstant ?: number ;
6278
6273
lastLoginInstant ?: number ;
6279
6274
preferredLanguages ?: Array < string > ;
6280
6275
roles ?: Array < string > ;
6281
6276
timezone ?: string ;
6282
- tokens ?: ObjectMap < string , string > ;
6277
+ tokens ?: Record < string , string > ;
6283
6278
username ?: string ;
6284
6279
usernameStatus ?: ContentStatus ;
6285
6280
verified ?: boolean ;
@@ -6410,9 +6405,9 @@ export interface VerifyRegistrationResponse {
6410
6405
export interface Webhook {
6411
6406
applicationIds ?: Array < UUID > ;
6412
6407
connectTimeout ?: number ;
6413
- data ?: ObjectMap < string , any > ;
6408
+ data ?: Record < string , any > ;
6414
6409
description ?: string ;
6415
- eventsEnabled ?: ObjectMap < EventType , boolean > ;
6410
+ eventsEnabled ?: Record < EventType , boolean > ;
6416
6411
global ?: boolean ;
6417
6412
headers ?: HTTPHeaders ;
6418
6413
httpAuthenticationPassword ?: string ;
0 commit comments