@fusionauth/typescript-client 1.44.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.
- package/build/src/FusionAuthClient.d.ts +348 -7
- package/build/src/FusionAuthClient.js +131 -1
- package/build/src/FusionAuthClient.js.map +1 -1
- package/dist/fusionauth-typescript-client.js +132 -2
- package/dist/fusionauth-typescript-client.min.js +1 -1
- package/dist/fusionauth-typescript-client.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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<
|
|
1886
|
+
* @returns {Promise<ClientResponse<UserinfoResponse>>}
|
|
1887
1887
|
*/
|
|
1888
|
-
retrieveUserInfoFromAccessToken(encodedJWT: string): Promise<ClientResponse<
|
|
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
|
*/
|
|
@@ -4747,6 +4895,33 @@ export interface IdentityProviderResponse {
|
|
|
4747
4895
|
identityProvider?: BaseIdentityProvider<any>;
|
|
4748
4896
|
identityProviders?: Array<BaseIdentityProvider<any>>;
|
|
4749
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
|
+
}
|
|
4750
4925
|
/**
|
|
4751
4926
|
* @author Daniel DeGroff
|
|
4752
4927
|
*/
|
|
@@ -5104,6 +5279,33 @@ export interface KeyResponse {
|
|
|
5104
5279
|
key?: Key;
|
|
5105
5280
|
keys?: Array<Key>;
|
|
5106
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
|
+
}
|
|
5107
5309
|
export declare enum KeyType {
|
|
5108
5310
|
EC = "EC",
|
|
5109
5311
|
RSA = "RSA",
|
|
@@ -5143,16 +5345,16 @@ export interface Lambda {
|
|
|
5143
5345
|
type?: LambdaType;
|
|
5144
5346
|
}
|
|
5145
5347
|
export interface LambdaConfiguration {
|
|
5146
|
-
|
|
5147
|
-
idTokenPopulateId?: UUID;
|
|
5148
|
-
samlv2PopulateId?: UUID;
|
|
5149
|
-
selfServiceRegistrationValidationId?: UUID;
|
|
5348
|
+
reconcileId?: UUID;
|
|
5150
5349
|
}
|
|
5151
5350
|
export interface LambdaConfiguration {
|
|
5152
5351
|
reconcileId?: UUID;
|
|
5153
5352
|
}
|
|
5154
5353
|
export interface LambdaConfiguration {
|
|
5155
|
-
|
|
5354
|
+
accessTokenPopulateId?: UUID;
|
|
5355
|
+
idTokenPopulateId?: UUID;
|
|
5356
|
+
samlv2PopulateId?: UUID;
|
|
5357
|
+
selfServiceRegistrationValidationId?: UUID;
|
|
5156
5358
|
}
|
|
5157
5359
|
/**
|
|
5158
5360
|
* @author Daniel DeGroff
|
|
@@ -5178,6 +5380,33 @@ export interface LambdaResponse {
|
|
|
5178
5380
|
lambda?: Lambda;
|
|
5179
5381
|
lambdas?: Array<Lambda>;
|
|
5180
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
|
+
}
|
|
5181
5410
|
/**
|
|
5182
5411
|
* The types of lambdas that indicate how they are invoked by FusionAuth.
|
|
5183
5412
|
*
|
|
@@ -6471,6 +6700,12 @@ export interface SecureIdentity {
|
|
|
6471
6700
|
usernameStatus?: ContentStatus;
|
|
6472
6701
|
verified?: boolean;
|
|
6473
6702
|
}
|
|
6703
|
+
/**
|
|
6704
|
+
* @author andrewpai
|
|
6705
|
+
*/
|
|
6706
|
+
export interface SelfServiceFormConfiguration {
|
|
6707
|
+
requireCurrentPasswordOnPasswordChange?: boolean;
|
|
6708
|
+
}
|
|
6474
6709
|
/**
|
|
6475
6710
|
* @author Daniel DeGroff
|
|
6476
6711
|
*/
|
|
@@ -6806,6 +7041,31 @@ export interface TenantSCIMServerConfiguration extends Enableable {
|
|
|
6806
7041
|
schemas?: Record<string, any>;
|
|
6807
7042
|
serverEntityTypeId?: UUID;
|
|
6808
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
|
+
}
|
|
6809
7069
|
/**
|
|
6810
7070
|
* @author Brett Pontarelli
|
|
6811
7071
|
*/
|
|
@@ -6890,6 +7150,31 @@ export interface ThemeResponse {
|
|
|
6890
7150
|
theme?: Theme;
|
|
6891
7151
|
themes?: Array<Theme>;
|
|
6892
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
|
+
}
|
|
6893
7178
|
/**
|
|
6894
7179
|
* A policy for deleting Users.
|
|
6895
7180
|
*
|
|
@@ -7327,6 +7612,34 @@ export interface UserCommentResponse {
|
|
|
7327
7612
|
userComment?: UserComment;
|
|
7328
7613
|
userComments?: Array<UserComment>;
|
|
7329
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
|
+
}
|
|
7330
7643
|
/**
|
|
7331
7644
|
* Models a User consent.
|
|
7332
7645
|
*
|
|
@@ -7695,6 +8008,7 @@ export interface UserRegistrationVerifiedEvent extends BaseEvent {
|
|
|
7695
8008
|
*/
|
|
7696
8009
|
export interface UserRequest extends BaseEventRequest {
|
|
7697
8010
|
applicationId?: UUID;
|
|
8011
|
+
currentPassword?: string;
|
|
7698
8012
|
disableDomainBlock?: boolean;
|
|
7699
8013
|
sendSetPasswordEmail?: boolean;
|
|
7700
8014
|
skipVerification?: boolean;
|
|
@@ -8063,6 +8377,33 @@ export interface WebhookResponse {
|
|
|
8063
8377
|
webhook?: Webhook;
|
|
8064
8378
|
webhooks?: Array<Webhook>;
|
|
8065
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
|
+
}
|
|
8066
8407
|
/**
|
|
8067
8408
|
* @author Brett Pontarelli
|
|
8068
8409
|
*/
|
|
@@ -3431,7 +3431,7 @@ class FusionAuthClient {
|
|
|
3431
3431
|
* Call the UserInfo endpoint to retrieve User Claims from the access token issued by FusionAuth.
|
|
3432
3432
|
*
|
|
3433
3433
|
* @param {string} encodedJWT The encoded JWT (access token).
|
|
3434
|
-
* @returns {Promise<ClientResponse<
|
|
3434
|
+
* @returns {Promise<ClientResponse<UserinfoResponse>>}
|
|
3435
3435
|
*/
|
|
3436
3436
|
retrieveUserInfoFromAccessToken(encodedJWT) {
|
|
3437
3437
|
return this.startAnonymous()
|
|
@@ -3737,6 +3737,19 @@ class FusionAuthClient {
|
|
|
3737
3737
|
.withMethod("DELETE")
|
|
3738
3738
|
.go();
|
|
3739
3739
|
}
|
|
3740
|
+
/**
|
|
3741
|
+
* Searches applications with the specified criteria and pagination.
|
|
3742
|
+
*
|
|
3743
|
+
* @param {ApplicationSearchRequest} request The search criteria and pagination information.
|
|
3744
|
+
* @returns {Promise<ClientResponse<ApplicationSearchResponse>>}
|
|
3745
|
+
*/
|
|
3746
|
+
searchApplications(request) {
|
|
3747
|
+
return this.start()
|
|
3748
|
+
.withUri('/api/application/search')
|
|
3749
|
+
.withJSONBody(request)
|
|
3750
|
+
.withMethod("POST")
|
|
3751
|
+
.go();
|
|
3752
|
+
}
|
|
3740
3753
|
/**
|
|
3741
3754
|
* Searches the audit logs with the specified criteria and pagination.
|
|
3742
3755
|
*
|
|
@@ -3750,6 +3763,32 @@ class FusionAuthClient {
|
|
|
3750
3763
|
.withMethod("POST")
|
|
3751
3764
|
.go();
|
|
3752
3765
|
}
|
|
3766
|
+
/**
|
|
3767
|
+
* Searches consents with the specified criteria and pagination.
|
|
3768
|
+
*
|
|
3769
|
+
* @param {ConsentSearchRequest} request The search criteria and pagination information.
|
|
3770
|
+
* @returns {Promise<ClientResponse<ConsentSearchResponse>>}
|
|
3771
|
+
*/
|
|
3772
|
+
searchConsents(request) {
|
|
3773
|
+
return this.start()
|
|
3774
|
+
.withUri('/api/consent/search')
|
|
3775
|
+
.withJSONBody(request)
|
|
3776
|
+
.withMethod("POST")
|
|
3777
|
+
.go();
|
|
3778
|
+
}
|
|
3779
|
+
/**
|
|
3780
|
+
* Searches email templates with the specified criteria and pagination.
|
|
3781
|
+
*
|
|
3782
|
+
* @param {EmailTemplateSearchRequest} request The search criteria and pagination information.
|
|
3783
|
+
* @returns {Promise<ClientResponse<EmailTemplateSearchResponse>>}
|
|
3784
|
+
*/
|
|
3785
|
+
searchEmailTemplates(request) {
|
|
3786
|
+
return this.start()
|
|
3787
|
+
.withUri('/api/email/template/search')
|
|
3788
|
+
.withJSONBody(request)
|
|
3789
|
+
.withMethod("POST")
|
|
3790
|
+
.go();
|
|
3791
|
+
}
|
|
3753
3792
|
/**
|
|
3754
3793
|
* Searches entities with the specified criteria and pagination.
|
|
3755
3794
|
*
|
|
@@ -3854,6 +3893,45 @@ class FusionAuthClient {
|
|
|
3854
3893
|
.withMethod("POST")
|
|
3855
3894
|
.go();
|
|
3856
3895
|
}
|
|
3896
|
+
/**
|
|
3897
|
+
* Searches identity providers with the specified criteria and pagination.
|
|
3898
|
+
*
|
|
3899
|
+
* @param {IdentityProviderSearchRequest} request The search criteria and pagination information.
|
|
3900
|
+
* @returns {Promise<ClientResponse<IdentityProviderSearchResponse>>}
|
|
3901
|
+
*/
|
|
3902
|
+
searchIdentityProviders(request) {
|
|
3903
|
+
return this.start()
|
|
3904
|
+
.withUri('/api/identity-provider/search')
|
|
3905
|
+
.withJSONBody(request)
|
|
3906
|
+
.withMethod("POST")
|
|
3907
|
+
.go();
|
|
3908
|
+
}
|
|
3909
|
+
/**
|
|
3910
|
+
* Searches keys with the specified criteria and pagination.
|
|
3911
|
+
*
|
|
3912
|
+
* @param {KeySearchRequest} request The search criteria and pagination information.
|
|
3913
|
+
* @returns {Promise<ClientResponse<KeySearchResponse>>}
|
|
3914
|
+
*/
|
|
3915
|
+
searchKeys(request) {
|
|
3916
|
+
return this.start()
|
|
3917
|
+
.withUri('/api/key/search')
|
|
3918
|
+
.withJSONBody(request)
|
|
3919
|
+
.withMethod("POST")
|
|
3920
|
+
.go();
|
|
3921
|
+
}
|
|
3922
|
+
/**
|
|
3923
|
+
* Searches lambdas with the specified criteria and pagination.
|
|
3924
|
+
*
|
|
3925
|
+
* @param {LambdaSearchRequest} request The search criteria and pagination information.
|
|
3926
|
+
* @returns {Promise<ClientResponse<LambdaSearchResponse>>}
|
|
3927
|
+
*/
|
|
3928
|
+
searchLambdas(request) {
|
|
3929
|
+
return this.start()
|
|
3930
|
+
.withUri('/api/lambda/search')
|
|
3931
|
+
.withJSONBody(request)
|
|
3932
|
+
.withMethod("POST")
|
|
3933
|
+
.go();
|
|
3934
|
+
}
|
|
3857
3935
|
/**
|
|
3858
3936
|
* Searches the login records with the specified criteria and pagination.
|
|
3859
3937
|
*
|
|
@@ -3867,6 +3945,45 @@ class FusionAuthClient {
|
|
|
3867
3945
|
.withMethod("POST")
|
|
3868
3946
|
.go();
|
|
3869
3947
|
}
|
|
3948
|
+
/**
|
|
3949
|
+
* Searches tenants with the specified criteria and pagination.
|
|
3950
|
+
*
|
|
3951
|
+
* @param {TenantSearchRequest} request The search criteria and pagination information.
|
|
3952
|
+
* @returns {Promise<ClientResponse<TenantSearchResponse>>}
|
|
3953
|
+
*/
|
|
3954
|
+
searchTenants(request) {
|
|
3955
|
+
return this.start()
|
|
3956
|
+
.withUri('/api/tenant/search')
|
|
3957
|
+
.withJSONBody(request)
|
|
3958
|
+
.withMethod("POST")
|
|
3959
|
+
.go();
|
|
3960
|
+
}
|
|
3961
|
+
/**
|
|
3962
|
+
* Searches themes with the specified criteria and pagination.
|
|
3963
|
+
*
|
|
3964
|
+
* @param {ThemeSearchRequest} request The search criteria and pagination information.
|
|
3965
|
+
* @returns {Promise<ClientResponse<ThemeSearchResponse>>}
|
|
3966
|
+
*/
|
|
3967
|
+
searchThemes(request) {
|
|
3968
|
+
return this.start()
|
|
3969
|
+
.withUri('/api/theme/search')
|
|
3970
|
+
.withJSONBody(request)
|
|
3971
|
+
.withMethod("POST")
|
|
3972
|
+
.go();
|
|
3973
|
+
}
|
|
3974
|
+
/**
|
|
3975
|
+
* Searches user comments with the specified criteria and pagination.
|
|
3976
|
+
*
|
|
3977
|
+
* @param {UserCommentSearchRequest} request The search criteria and pagination information.
|
|
3978
|
+
* @returns {Promise<ClientResponse<UserCommentSearchResponse>>}
|
|
3979
|
+
*/
|
|
3980
|
+
searchUserComments(request) {
|
|
3981
|
+
return this.start()
|
|
3982
|
+
.withUri('/api/user/comment/search')
|
|
3983
|
+
.withJSONBody(request)
|
|
3984
|
+
.withMethod("POST")
|
|
3985
|
+
.go();
|
|
3986
|
+
}
|
|
3870
3987
|
/**
|
|
3871
3988
|
* Retrieves the users for the given ids. If any id is invalid, it is ignored.
|
|
3872
3989
|
*
|
|
@@ -3925,6 +4042,19 @@ class FusionAuthClient {
|
|
|
3925
4042
|
.withMethod("POST")
|
|
3926
4043
|
.go();
|
|
3927
4044
|
}
|
|
4045
|
+
/**
|
|
4046
|
+
* Searches webhooks with the specified criteria and pagination.
|
|
4047
|
+
*
|
|
4048
|
+
* @param {WebhookSearchRequest} request The search criteria and pagination information.
|
|
4049
|
+
* @returns {Promise<ClientResponse<WebhookSearchResponse>>}
|
|
4050
|
+
*/
|
|
4051
|
+
searchWebhooks(request) {
|
|
4052
|
+
return this.start()
|
|
4053
|
+
.withUri('/api/webhook/search')
|
|
4054
|
+
.withJSONBody(request)
|
|
4055
|
+
.withMethod("POST")
|
|
4056
|
+
.go();
|
|
4057
|
+
}
|
|
3928
4058
|
/**
|
|
3929
4059
|
* Send an email using an email template id. You can optionally provide <code>requestData</code> to access key value
|
|
3930
4060
|
* pairs in the email template.
|