@fusionauth/typescript-client 1.43.0 → 1.45.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.
@@ -1883,9 +1883,9 @@ export declare class FusionAuthClient {
1883
1883
  * Call the UserInfo endpoint to retrieve User Claims from the access token issued by FusionAuth.
1884
1884
  *
1885
1885
  * @param {string} encodedJWT The encoded JWT (access token).
1886
- * @returns {Promise<ClientResponse<UserResponse>>}
1886
+ * @returns {Promise<ClientResponse<UserinfoResponse>>}
1887
1887
  */
1888
- retrieveUserInfoFromAccessToken(encodedJWT: string): Promise<ClientResponse<UserResponse>>;
1888
+ retrieveUserInfoFromAccessToken(encodedJWT: string): Promise<ClientResponse<UserinfoResponse>>;
1889
1889
  /**
1890
1890
  * Retrieve a single Identity Provider user (link).
1891
1891
  *
@@ -2057,6 +2057,13 @@ export declare class FusionAuthClient {
2057
2057
  * @returns {Promise<ClientResponse<void>>}
2058
2058
  */
2059
2059
  revokeUserConsent(userConsentId: UUID): Promise<ClientResponse<void>>;
2060
+ /**
2061
+ * Searches applications with the specified criteria and pagination.
2062
+ *
2063
+ * @param {ApplicationSearchRequest} request The search criteria and pagination information.
2064
+ * @returns {Promise<ClientResponse<ApplicationSearchResponse>>}
2065
+ */
2066
+ searchApplications(request: ApplicationSearchRequest): Promise<ClientResponse<ApplicationSearchResponse>>;
2060
2067
  /**
2061
2068
  * Searches the audit logs with the specified criteria and pagination.
2062
2069
  *
@@ -2064,6 +2071,20 @@ export declare class FusionAuthClient {
2064
2071
  * @returns {Promise<ClientResponse<AuditLogSearchResponse>>}
2065
2072
  */
2066
2073
  searchAuditLogs(request: AuditLogSearchRequest): Promise<ClientResponse<AuditLogSearchResponse>>;
2074
+ /**
2075
+ * Searches consents with the specified criteria and pagination.
2076
+ *
2077
+ * @param {ConsentSearchRequest} request The search criteria and pagination information.
2078
+ * @returns {Promise<ClientResponse<ConsentSearchResponse>>}
2079
+ */
2080
+ searchConsents(request: ConsentSearchRequest): Promise<ClientResponse<ConsentSearchResponse>>;
2081
+ /**
2082
+ * Searches email templates with the specified criteria and pagination.
2083
+ *
2084
+ * @param {EmailTemplateSearchRequest} request The search criteria and pagination information.
2085
+ * @returns {Promise<ClientResponse<EmailTemplateSearchResponse>>}
2086
+ */
2087
+ searchEmailTemplates(request: EmailTemplateSearchRequest): Promise<ClientResponse<EmailTemplateSearchResponse>>;
2067
2088
  /**
2068
2089
  * Searches entities with the specified criteria and pagination.
2069
2090
  *
@@ -2120,6 +2141,27 @@ export declare class FusionAuthClient {
2120
2141
  * @returns {Promise<ClientResponse<IPAccessControlListSearchResponse>>}
2121
2142
  */
2122
2143
  searchIPAccessControlLists(request: IPAccessControlListSearchRequest): Promise<ClientResponse<IPAccessControlListSearchResponse>>;
2144
+ /**
2145
+ * Searches identity providers with the specified criteria and pagination.
2146
+ *
2147
+ * @param {IdentityProviderSearchRequest} request The search criteria and pagination information.
2148
+ * @returns {Promise<ClientResponse<IdentityProviderSearchResponse>>}
2149
+ */
2150
+ searchIdentityProviders(request: IdentityProviderSearchRequest): Promise<ClientResponse<IdentityProviderSearchResponse>>;
2151
+ /**
2152
+ * Searches keys with the specified criteria and pagination.
2153
+ *
2154
+ * @param {KeySearchRequest} request The search criteria and pagination information.
2155
+ * @returns {Promise<ClientResponse<KeySearchResponse>>}
2156
+ */
2157
+ searchKeys(request: KeySearchRequest): Promise<ClientResponse<KeySearchResponse>>;
2158
+ /**
2159
+ * Searches lambdas with the specified criteria and pagination.
2160
+ *
2161
+ * @param {LambdaSearchRequest} request The search criteria and pagination information.
2162
+ * @returns {Promise<ClientResponse<LambdaSearchResponse>>}
2163
+ */
2164
+ searchLambdas(request: LambdaSearchRequest): Promise<ClientResponse<LambdaSearchResponse>>;
2123
2165
  /**
2124
2166
  * Searches the login records with the specified criteria and pagination.
2125
2167
  *
@@ -2127,6 +2169,27 @@ export declare class FusionAuthClient {
2127
2169
  * @returns {Promise<ClientResponse<LoginRecordSearchResponse>>}
2128
2170
  */
2129
2171
  searchLoginRecords(request: LoginRecordSearchRequest): Promise<ClientResponse<LoginRecordSearchResponse>>;
2172
+ /**
2173
+ * Searches tenants with the specified criteria and pagination.
2174
+ *
2175
+ * @param {TenantSearchRequest} request The search criteria and pagination information.
2176
+ * @returns {Promise<ClientResponse<TenantSearchResponse>>}
2177
+ */
2178
+ searchTenants(request: TenantSearchRequest): Promise<ClientResponse<TenantSearchResponse>>;
2179
+ /**
2180
+ * Searches themes with the specified criteria and pagination.
2181
+ *
2182
+ * @param {ThemeSearchRequest} request The search criteria and pagination information.
2183
+ * @returns {Promise<ClientResponse<ThemeSearchResponse>>}
2184
+ */
2185
+ searchThemes(request: ThemeSearchRequest): Promise<ClientResponse<ThemeSearchResponse>>;
2186
+ /**
2187
+ * Searches user comments with the specified criteria and pagination.
2188
+ *
2189
+ * @param {UserCommentSearchRequest} request The search criteria and pagination information.
2190
+ * @returns {Promise<ClientResponse<UserCommentSearchResponse>>}
2191
+ */
2192
+ searchUserComments(request: UserCommentSearchRequest): Promise<ClientResponse<UserCommentSearchResponse>>;
2130
2193
  /**
2131
2194
  * Retrieves the users for the given ids. If any id is invalid, it is ignored.
2132
2195
  *
@@ -2161,6 +2224,13 @@ export declare class FusionAuthClient {
2161
2224
  * @deprecated This method has been renamed to searchUsersByQuery, use that method instead.
2162
2225
  */
2163
2226
  searchUsersByQueryString(request: SearchRequest): Promise<ClientResponse<SearchResponse>>;
2227
+ /**
2228
+ * Searches webhooks with the specified criteria and pagination.
2229
+ *
2230
+ * @param {WebhookSearchRequest} request The search criteria and pagination information.
2231
+ * @returns {Promise<ClientResponse<WebhookSearchResponse>>}
2232
+ */
2233
+ searchWebhooks(request: WebhookSearchRequest): Promise<ClientResponse<WebhookSearchResponse>>;
2164
2234
  /**
2165
2235
  * Send an email using an email template id. You can optionally provide <code>requestData</code> to access key value
2166
2236
  * pairs in the email template.
@@ -2803,6 +2873,7 @@ export interface ApplicationExternalIdentifierConfiguration {
2803
2873
  */
2804
2874
  export interface ApplicationFormConfiguration {
2805
2875
  adminRegistrationFormId?: UUID;
2876
+ selfServiceFormConfiguration?: SelfServiceFormConfiguration;
2806
2877
  selfServiceFormId?: UUID;
2807
2878
  }
2808
2879
  /**
@@ -2864,6 +2935,33 @@ export interface ApplicationRole {
2864
2935
  lastUpdateInstant?: number;
2865
2936
  name?: string;
2866
2937
  }
2938
+ /**
2939
+ * Search criteria for Applications
2940
+ *
2941
+ * @author Spencer Witt
2942
+ */
2943
+ export interface ApplicationSearchCriteria extends BaseSearchCriteria {
2944
+ name?: string;
2945
+ state?: ObjectState;
2946
+ tenantId?: UUID;
2947
+ }
2948
+ /**
2949
+ * Search request for Applications
2950
+ *
2951
+ * @author Spencer Witt
2952
+ */
2953
+ export interface ApplicationSearchRequest {
2954
+ search?: ApplicationSearchCriteria;
2955
+ }
2956
+ /**
2957
+ * Application search response
2958
+ *
2959
+ * @author Spencer Witt
2960
+ */
2961
+ export interface ApplicationSearchResponse {
2962
+ applications?: Array<Application>;
2963
+ total?: number;
2964
+ }
2867
2965
  /**
2868
2966
  * @author Daniel DeGroff
2869
2967
  */
@@ -3332,6 +3430,31 @@ export interface ConsentResponse {
3332
3430
  consent?: Consent;
3333
3431
  consents?: Array<Consent>;
3334
3432
  }
3433
+ /**
3434
+ * Search criteria for Consents
3435
+ *
3436
+ * @author Spencer Witt
3437
+ */
3438
+ export interface ConsentSearchCriteria extends BaseSearchCriteria {
3439
+ name?: string;
3440
+ }
3441
+ /**
3442
+ * Search request for Consents
3443
+ *
3444
+ * @author Spencer Witt
3445
+ */
3446
+ export interface ConsentSearchRequest {
3447
+ search?: ConsentSearchCriteria;
3448
+ }
3449
+ /**
3450
+ * Consent search response
3451
+ *
3452
+ * @author Spencer Witt
3453
+ */
3454
+ export interface ConsentSearchResponse {
3455
+ consents?: Array<Consent>;
3456
+ total?: number;
3457
+ }
3335
3458
  /**
3336
3459
  * Models a consent.
3337
3460
  *
@@ -3599,6 +3722,31 @@ export interface EmailTemplateResponse {
3599
3722
  emailTemplate?: EmailTemplate;
3600
3723
  emailTemplates?: Array<EmailTemplate>;
3601
3724
  }
3725
+ /**
3726
+ * Search criteria for Email templates
3727
+ *
3728
+ * @author Mark Manes
3729
+ */
3730
+ export interface EmailTemplateSearchCriteria extends BaseSearchCriteria {
3731
+ name?: string;
3732
+ }
3733
+ /**
3734
+ * Search request for email templates
3735
+ *
3736
+ * @author Mark Manes
3737
+ */
3738
+ export interface EmailTemplateSearchRequest {
3739
+ search?: EmailTemplateSearchCriteria;
3740
+ }
3741
+ /**
3742
+ * Email template search response
3743
+ *
3744
+ * @author Mark Manes
3745
+ */
3746
+ export interface EmailTemplateSearchResponse {
3747
+ emailTemplates?: Array<EmailTemplate>;
3748
+ total?: number;
3749
+ }
3602
3750
  /**
3603
3751
  * @author Daniel DeGroff
3604
3752
  */
@@ -4360,6 +4508,7 @@ export interface GoogleApplicationConfiguration extends BaseIdentityProviderAppl
4360
4508
  client_id?: string;
4361
4509
  client_secret?: string;
4362
4510
  loginMethod?: IdentityProviderLoginMethod;
4511
+ properties?: GoogleIdentityProviderProperties;
4363
4512
  scope?: string;
4364
4513
  }
4365
4514
  /**
@@ -4372,8 +4521,18 @@ export interface GoogleIdentityProvider extends BaseIdentityProvider<GoogleAppli
4372
4521
  client_id?: string;
4373
4522
  client_secret?: string;
4374
4523
  loginMethod?: IdentityProviderLoginMethod;
4524
+ properties?: GoogleIdentityProviderProperties;
4375
4525
  scope?: string;
4376
4526
  }
4527
+ /**
4528
+ * Google social login provider parameters.
4529
+ *
4530
+ * @author Daniel DeGroff
4531
+ */
4532
+ export interface GoogleIdentityProviderProperties {
4533
+ api?: string;
4534
+ button?: string;
4535
+ }
4377
4536
  /**
4378
4537
  * Authorization Grant types as defined by the <a href="https://tools.ietf.org/html/rfc6749">The OAuth 2.0 Authorization
4379
4538
  * Framework - RFC 6749</a>.
@@ -4693,7 +4852,8 @@ export interface IdentityProviderLinkResponse {
4693
4852
  */
4694
4853
  export declare enum IdentityProviderLoginMethod {
4695
4854
  UsePopup = "UsePopup",
4696
- UseRedirect = "UseRedirect"
4855
+ UseRedirect = "UseRedirect",
4856
+ UseVendorJavaScript = "UseVendorJavaScript"
4697
4857
  }
4698
4858
  /**
4699
4859
  * Login API request object used for login to third-party systems (i.e. Login with Facebook).
@@ -4735,6 +4895,33 @@ export interface IdentityProviderResponse {
4735
4895
  identityProvider?: BaseIdentityProvider<any>;
4736
4896
  identityProviders?: Array<BaseIdentityProvider<any>>;
4737
4897
  }
4898
+ /**
4899
+ * Search criteria for Identity Providers.
4900
+ *
4901
+ * @author Spencer Witt
4902
+ */
4903
+ export interface IdentityProviderSearchCriteria extends BaseSearchCriteria {
4904
+ applicationId?: UUID;
4905
+ name?: string;
4906
+ type?: IdentityProviderType;
4907
+ }
4908
+ /**
4909
+ * Search request for Identity Providers
4910
+ *
4911
+ * @author Spencer Witt
4912
+ */
4913
+ export interface IdentityProviderSearchRequest {
4914
+ search?: IdentityProviderSearchCriteria;
4915
+ }
4916
+ /**
4917
+ * Identity Provider response.
4918
+ *
4919
+ * @author Spencer Witt
4920
+ */
4921
+ export interface IdentityProviderSearchResponse {
4922
+ identityProviders?: Array<BaseIdentityProvider<any>>;
4923
+ total?: number;
4924
+ }
4738
4925
  /**
4739
4926
  * @author Daniel DeGroff
4740
4927
  */
@@ -5092,6 +5279,33 @@ export interface KeyResponse {
5092
5279
  key?: Key;
5093
5280
  keys?: Array<Key>;
5094
5281
  }
5282
+ /**
5283
+ * Search criteria for Keys
5284
+ *
5285
+ * @author Spencer Witt
5286
+ */
5287
+ export interface KeySearchCriteria extends BaseSearchCriteria {
5288
+ algorithm?: KeyAlgorithm;
5289
+ name?: string;
5290
+ type?: KeyType;
5291
+ }
5292
+ /**
5293
+ * Search request for Keys
5294
+ *
5295
+ * @author Spencer Witt
5296
+ */
5297
+ export interface KeySearchRequest {
5298
+ search?: KeySearchCriteria;
5299
+ }
5300
+ /**
5301
+ * Key search response
5302
+ *
5303
+ * @author Spencer Witt
5304
+ */
5305
+ export interface KeySearchResponse {
5306
+ keys?: Array<Key>;
5307
+ total?: number;
5308
+ }
5095
5309
  export declare enum KeyType {
5096
5310
  EC = "EC",
5097
5311
  RSA = "RSA",
@@ -5131,16 +5345,16 @@ export interface Lambda {
5131
5345
  type?: LambdaType;
5132
5346
  }
5133
5347
  export interface LambdaConfiguration {
5134
- accessTokenPopulateId?: UUID;
5135
- idTokenPopulateId?: UUID;
5136
- samlv2PopulateId?: UUID;
5137
- selfServiceRegistrationValidationId?: UUID;
5348
+ reconcileId?: UUID;
5138
5349
  }
5139
5350
  export interface LambdaConfiguration {
5140
5351
  reconcileId?: UUID;
5141
5352
  }
5142
5353
  export interface LambdaConfiguration {
5143
- reconcileId?: UUID;
5354
+ accessTokenPopulateId?: UUID;
5355
+ idTokenPopulateId?: UUID;
5356
+ samlv2PopulateId?: UUID;
5357
+ selfServiceRegistrationValidationId?: UUID;
5144
5358
  }
5145
5359
  /**
5146
5360
  * @author Daniel DeGroff
@@ -5166,6 +5380,33 @@ export interface LambdaResponse {
5166
5380
  lambda?: Lambda;
5167
5381
  lambdas?: Array<Lambda>;
5168
5382
  }
5383
+ /**
5384
+ * Search criteria for Lambdas
5385
+ *
5386
+ * @author Mark Manes
5387
+ */
5388
+ export interface LambdaSearchCriteria extends BaseSearchCriteria {
5389
+ body?: string;
5390
+ name?: string;
5391
+ type?: LambdaType;
5392
+ }
5393
+ /**
5394
+ * Search request for Lambdas
5395
+ *
5396
+ * @author Mark Manes
5397
+ */
5398
+ export interface LambdaSearchRequest {
5399
+ search?: LambdaSearchCriteria;
5400
+ }
5401
+ /**
5402
+ * Lambda search response
5403
+ *
5404
+ * @author Mark Manes
5405
+ */
5406
+ export interface LambdaSearchResponse {
5407
+ lambdas?: Array<Lambda>;
5408
+ total?: number;
5409
+ }
5169
5410
  /**
5170
5411
  * The types of lambdas that indicate how they are invoked by FusionAuth.
5171
5412
  *
@@ -6459,6 +6700,12 @@ export interface SecureIdentity {
6459
6700
  usernameStatus?: ContentStatus;
6460
6701
  verified?: boolean;
6461
6702
  }
6703
+ /**
6704
+ * @author andrewpai
6705
+ */
6706
+ export interface SelfServiceFormConfiguration {
6707
+ requireCurrentPasswordOnPasswordChange?: boolean;
6708
+ }
6462
6709
  /**
6463
6710
  * @author Daniel DeGroff
6464
6711
  */
@@ -6527,10 +6774,20 @@ export interface SortField {
6527
6774
  name?: string;
6528
6775
  order?: Sort;
6529
6776
  }
6777
+ /**
6778
+ * Steam API modes.
6779
+ *
6780
+ * @author Daniel DeGroff
6781
+ */
6782
+ export declare enum SteamAPIMode {
6783
+ Public = "Public",
6784
+ Partner = "Partner"
6785
+ }
6530
6786
  /**
6531
6787
  * @author Brett Pontarelli
6532
6788
  */
6533
6789
  export interface SteamApplicationConfiguration extends BaseIdentityProviderApplicationConfiguration {
6790
+ apiMode?: SteamAPIMode;
6534
6791
  buttonText?: string;
6535
6792
  client_id?: string;
6536
6793
  scope?: string;
@@ -6542,6 +6799,7 @@ export interface SteamApplicationConfiguration extends BaseIdentityProviderAppli
6542
6799
  * @author Brett Pontarelli
6543
6800
  */
6544
6801
  export interface SteamIdentityProvider extends BaseIdentityProvider<SteamApplicationConfiguration> {
6802
+ apiMode?: SteamAPIMode;
6545
6803
  buttonText?: string;
6546
6804
  client_id?: string;
6547
6805
  scope?: string;
@@ -6783,6 +7041,31 @@ export interface TenantSCIMServerConfiguration extends Enableable {
6783
7041
  schemas?: Record<string, any>;
6784
7042
  serverEntityTypeId?: UUID;
6785
7043
  }
7044
+ /**
7045
+ * Search criteria for Tenants
7046
+ *
7047
+ * @author Mark Manes
7048
+ */
7049
+ export interface TenantSearchCriteria extends BaseSearchCriteria {
7050
+ name?: string;
7051
+ }
7052
+ /**
7053
+ * Search request for Tenants
7054
+ *
7055
+ * @author Mark Manes
7056
+ */
7057
+ export interface TenantSearchRequest {
7058
+ search?: TenantSearchCriteria;
7059
+ }
7060
+ /**
7061
+ * Tenant search response
7062
+ *
7063
+ * @author Mark Manes
7064
+ */
7065
+ export interface TenantSearchResponse {
7066
+ tenants?: Array<Tenant>;
7067
+ total?: number;
7068
+ }
6786
7069
  /**
6787
7070
  * @author Brett Pontarelli
6788
7071
  */
@@ -6867,6 +7150,31 @@ export interface ThemeResponse {
6867
7150
  theme?: Theme;
6868
7151
  themes?: Array<Theme>;
6869
7152
  }
7153
+ /**
7154
+ * Search criteria for themes
7155
+ *
7156
+ * @author Mark Manes
7157
+ */
7158
+ export interface ThemeSearchCriteria extends BaseSearchCriteria {
7159
+ name?: string;
7160
+ }
7161
+ /**
7162
+ * Search request for Themes.
7163
+ *
7164
+ * @author Mark Manes
7165
+ */
7166
+ export interface ThemeSearchRequest {
7167
+ search?: ThemeSearchCriteria;
7168
+ }
7169
+ /**
7170
+ * Search response for Themes
7171
+ *
7172
+ * @author Mark Manes
7173
+ */
7174
+ export interface ThemeSearchResponse {
7175
+ themes?: Array<Theme>;
7176
+ total?: number;
7177
+ }
6870
7178
  /**
6871
7179
  * A policy for deleting Users.
6872
7180
  *
@@ -7304,6 +7612,34 @@ export interface UserCommentResponse {
7304
7612
  userComment?: UserComment;
7305
7613
  userComments?: Array<UserComment>;
7306
7614
  }
7615
+ /**
7616
+ * Search criteria for user comments.
7617
+ *
7618
+ * @author Spencer Witt
7619
+ */
7620
+ export interface UserCommentSearchCriteria extends BaseSearchCriteria {
7621
+ comment?: string;
7622
+ commenterId?: UUID;
7623
+ tenantId?: UUID;
7624
+ userId?: UUID;
7625
+ }
7626
+ /**
7627
+ * Search request for user comments
7628
+ *
7629
+ * @author Spencer Witt
7630
+ */
7631
+ export interface UserCommentSearchRequest {
7632
+ search?: UserCommentSearchCriteria;
7633
+ }
7634
+ /**
7635
+ * User comment search response
7636
+ *
7637
+ * @author Spencer Witt
7638
+ */
7639
+ export interface UserCommentSearchResponse {
7640
+ total?: number;
7641
+ userComments?: Array<UserComment>;
7642
+ }
7307
7643
  /**
7308
7644
  * Models a User consent.
7309
7645
  *
@@ -7672,6 +8008,7 @@ export interface UserRegistrationVerifiedEvent extends BaseEvent {
7672
8008
  */
7673
8009
  export interface UserRequest extends BaseEventRequest {
7674
8010
  applicationId?: UUID;
8011
+ currentPassword?: string;
7675
8012
  disableDomainBlock?: boolean;
7676
8013
  sendSetPasswordEmail?: boolean;
7677
8014
  skipVerification?: boolean;
@@ -8040,6 +8377,33 @@ export interface WebhookResponse {
8040
8377
  webhook?: Webhook;
8041
8378
  webhooks?: Array<Webhook>;
8042
8379
  }
8380
+ /**
8381
+ * Search criteria for webhooks.
8382
+ *
8383
+ * @author Spencer Witt
8384
+ */
8385
+ export interface WebhookSearchCriteria extends BaseSearchCriteria {
8386
+ description?: string;
8387
+ tenantId?: UUID;
8388
+ url?: string;
8389
+ }
8390
+ /**
8391
+ * Search request for webhooks
8392
+ *
8393
+ * @author Spencer Witt
8394
+ */
8395
+ export interface WebhookSearchRequest {
8396
+ search?: WebhookSearchCriteria;
8397
+ }
8398
+ /**
8399
+ * Webhook search response
8400
+ *
8401
+ * @author Spencer Witt
8402
+ */
8403
+ export interface WebhookSearchResponse {
8404
+ total?: number;
8405
+ webhooks?: Array<Webhook>;
8406
+ }
8043
8407
  /**
8044
8408
  * @author Brett Pontarelli
8045
8409
  */