@asgardeo/javascript 0.7.0 → 0.7.2

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.
Files changed (48) hide show
  1. package/dist/AsgardeoJavaScriptClient.d.ts +3 -4
  2. package/dist/IsomorphicCrypto.d.ts +2 -2
  3. package/dist/StorageManager.d.ts +6 -8
  4. package/dist/__legacy__/client.d.ts +15 -15
  5. package/dist/__legacy__/helpers/authentication-helper.d.ts +5 -5
  6. package/dist/__legacy__/models/client-config.d.ts +14 -14
  7. package/dist/api/createOrganization.d.ts +8 -8
  8. package/dist/api/getAllOrganizations.d.ts +5 -5
  9. package/dist/api/getBrandingPreference.d.ts +5 -5
  10. package/dist/api/getMeOrganizations.d.ts +9 -9
  11. package/dist/api/getOrganization.d.ts +4 -4
  12. package/dist/api/getSchemas.d.ts +4 -4
  13. package/dist/api/getScim2Me.d.ts +4 -4
  14. package/dist/api/updateMeProfile.d.ts +7 -7
  15. package/dist/api/updateOrganization.d.ts +5 -5
  16. package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts +16 -16
  17. package/dist/cjs/index.js +1176 -1184
  18. package/dist/cjs/index.js.map +4 -4
  19. package/dist/constants/ApplicationNativeAuthenticationConstants.d.ts +14 -14
  20. package/dist/constants/OIDCDiscoveryConstants.d.ts +17 -106
  21. package/dist/constants/OIDCRequestConstants.d.ts +6 -44
  22. package/dist/constants/PKCEConstants.d.ts +3 -18
  23. package/dist/constants/TokenConstants.d.ts +2 -31
  24. package/dist/constants/TokenExchangeConstants.d.ts +5 -30
  25. package/dist/index.js +1177 -1185
  26. package/dist/index.js.map +4 -4
  27. package/dist/models/branding-preference.d.ts +5 -5
  28. package/dist/models/client.d.ts +57 -58
  29. package/dist/models/config.d.ts +48 -48
  30. package/dist/models/crypto.d.ts +11 -11
  31. package/dist/models/embedded-flow.d.ts +10 -10
  32. package/dist/models/field.d.ts +8 -8
  33. package/dist/models/oidc-discovery.d.ts +161 -161
  34. package/dist/models/oidc-endpoints.d.ts +15 -15
  35. package/dist/models/platforms.d.ts +2 -2
  36. package/dist/models/scim2-schema.d.ts +17 -17
  37. package/dist/models/session.d.ts +4 -4
  38. package/dist/models/store.d.ts +9 -9
  39. package/dist/models/user.d.ts +5 -5
  40. package/dist/models/v2/embedded-flow-v2.d.ts +86 -86
  41. package/dist/models/v2/embedded-signin-flow-v2.d.ts +39 -39
  42. package/dist/models/v2/embedded-signup-flow-v2.d.ts +42 -42
  43. package/dist/theme/types.d.ts +133 -133
  44. package/dist/utils/getAuthorizeRequestUrlParams.d.ts +3 -3
  45. package/dist/utils/logger.d.ts +6 -6
  46. package/dist/utils/processUsername.d.ts +1 -1
  47. package/package.json +2 -2
  48. package/dist/utils/cryptoUtils.d.ts +0 -0
@@ -46,39 +46,50 @@
46
46
  */
47
47
  export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiResponse {
48
48
  /**
49
- * Supported OAuth 2.0 scope values.
50
- * Lists the permission scopes this server can handle.
51
- *
52
- * @remarks
53
- * Common values include:
54
- * - 'openid' - Required for OIDC flows
55
- * - 'profile' - Basic user information
56
- * - 'email' - User's email address
57
- * - 'address' - User's postal address
58
- * - 'phone' - User's phone number
49
+ * Supported Authentication Context Class References.
50
+ * Indicates the OP's ability to satisfy specific authentication requirements.
59
51
  */
60
- scopes_supported?: string[];
52
+ acr_values_supported?: string[];
61
53
  /**
62
- * Supported OAuth 2.0 response_type values.
63
- *
64
- * @remarks
65
- * Common values include:
66
- * - 'code' - Authorization Code flow
67
- * - 'token' - Implicit flow
68
- * - 'id_token' - OIDC implicit flow
69
- * - 'code token' - Hybrid flow
54
+ * Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to
55
+ * identify the RP session with the OP.
70
56
  */
71
- response_types_supported?: string[];
57
+ backchannel_logout_session_supported?: boolean;
72
58
  /**
73
- * Supported OAuth 2.0 response_mode values.
74
- *
75
- * @remarks
76
- * Determines how the authorization response is returned:
77
- * - 'query' - Parameters in URL query string
78
- * - 'fragment' - Parameters in URL fragment
79
- * - 'form_post' - Parameters via POST
59
+ * Boolean value specifying whether the OP supports back-channel logout, with true indicating support.
60
+ * If omitted, the default value is false.
80
61
  */
81
- response_modes_supported?: string[];
62
+ backchannel_logout_supported?: boolean;
63
+ /**
64
+ * JSON array containing a list of the Claim Types that the OpenID Provider supports.
65
+ */
66
+ claim_types_supported?: string[];
67
+ /**
68
+ * Languages and scripts supported for values in Claims being returned, represented as a JSON array
69
+ * of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily
70
+ * supported for all Claim values.
71
+ */
72
+ claims_locales_supported?: string[];
73
+ /**
74
+ * Boolean value specifying whether the OP supports use of the claims parameter,
75
+ * with true indicating support. If omitted, the default value is false.
76
+ */
77
+ claims_parameter_supported?: boolean;
78
+ /**
79
+ * JSON array containing a list of the Claim Names of the Claims that
80
+ * the OpenID Provider MAY be able to supply values for.
81
+ */
82
+ claims_supported?: string[];
83
+ /**
84
+ * JSON array containing a list of Proof Key for Code
85
+ * Exchange (PKCE) [RFC7636] code challenge methods supported by this
86
+ * authorization server.
87
+ */
88
+ code_challenge_methods_supported?: string[];
89
+ /**
90
+ * JSON array containing a list of the display parameter values that the OpenID Provider supports.
91
+ */
92
+ display_values_supported?: string[];
82
93
  /**
83
94
  * Supported OAuth 2.0 grant type values.
84
95
  *
@@ -90,26 +101,6 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
90
101
  * - 'client_credentials' - Client credentials grant
91
102
  */
92
103
  grant_types_supported?: string[];
93
- /**
94
- * Supported Authentication Context Class References.
95
- * Indicates the OP's ability to satisfy specific authentication requirements.
96
- */
97
- acr_values_supported?: string[];
98
- /**
99
- * Supported Subject Identifier types.
100
- * Defines how the OP identifies users across sessions.
101
- *
102
- * @remarks
103
- * Common values:
104
- * - 'public' - Same sub value for all clients
105
- * - 'pairwise' - Different sub values for different clients
106
- */
107
- subject_types_supported?: string[];
108
- /**
109
- * JSON array containing a list of the JWS signing algorithms (alg values)
110
- * supported by the OP for the ID Token to encode the Claims in a JWT [JWT].
111
- */
112
- id_token_signing_alg_values_supported?: string[];
113
104
  /**
114
105
  * JSON array containing a list of the JWE encryption algorithms (alg values)
115
106
  * supported by the OP for the ID Token to encode the Claims in a JWT [JWT].
@@ -121,24 +112,33 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
121
112
  */
122
113
  id_token_encryption_enc_values_supported?: string[];
123
114
  /**
124
- * JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA]
125
- * supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
115
+ * JSON array containing a list of the JWS signing algorithms (alg values)
116
+ * supported by the OP for the ID Token to encode the Claims in a JWT [JWT].
126
117
  */
127
- userinfo_signing_alg_values_supported?: string[];
118
+ id_token_signing_alg_values_supported?: string[];
128
119
  /**
129
- * JSON array containing a list of the JWE [JWE] encryption algorithms (alg values)
130
- * [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
120
+ * JSON array containing a list of client authentication
121
+ * methods supported by this introspection endpoint.
131
122
  */
132
- userinfo_encryption_alg_values_supported?: string[];
123
+ introspection_endpoint_auth_methods_supported?: string[];
133
124
  /**
134
- * JSON array containing a list of the JWE encryption algorithms (enc values) [JWA]
135
- * supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]
125
+ * JSON array containing a list of the JWS signing
126
+ * algorithms ("alg" values) supported by the introspection endpoint
127
+ * for the signature on the JWT [JWT] used to authenticate the client
128
+ * at the introspection endpoint for the "private_key_jwt" and
129
+ * "client_secret_jwt" authentication methods.
136
130
  */
137
- userinfo_encryption_enc_values_supported?: string[];
131
+ introspection_endpoint_auth_signing_alg_values_supported?: string[];
138
132
  /**
139
- * JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects
133
+ * URL that the OpenID Provider provides to the person registering the Client
134
+ * to read about the OP's requirements on how the Relying Party can use the data provided by the OP.
140
135
  */
141
- request_object_signing_alg_values_supported?: string[];
136
+ op_policy_uri?: string;
137
+ /**
138
+ * URL that the OpenID Provider provides to the person registering the Client
139
+ * to read about OpenID Provider's terms of service.
140
+ */
141
+ op_tos_uri?: string;
142
142
  /**
143
143
  * JSON array containing a list of the JWE encryption algorithms (alg values)
144
144
  * supported by the OP for Request Objects.
@@ -150,49 +150,9 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
150
150
  */
151
151
  request_object_encryption_enc_values_supported?: string[];
152
152
  /**
153
- * JSON array containing a list of Client Authentication methods supported by this Token Endpoint.
154
- */
155
- token_endpoint_auth_methods_supported?: string[];
156
- /**
157
- * JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint
158
- * for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the
159
- * private_key_jwt and client_secret_jwt authentication methods.
160
- */
161
- token_endpoint_auth_signing_alg_values_supported?: string[];
162
- /**
163
- * JSON array containing a list of the display parameter values that the OpenID Provider supports.
164
- */
165
- display_values_supported?: string[];
166
- /**
167
- * JSON array containing a list of the Claim Types that the OpenID Provider supports.
168
- */
169
- claim_types_supported?: string[];
170
- /**
171
- * JSON array containing a list of the Claim Names of the Claims that
172
- * the OpenID Provider MAY be able to supply values for.
173
- */
174
- claims_supported?: string[];
175
- /**
176
- * URL of a page containing human-readable information that developers
177
- * might want or need to know when using the OpenID Provider.
178
- */
179
- service_documentation?: string;
180
- /**
181
- * Languages and scripts supported for values in Claims being returned, represented as a JSON array
182
- * of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily
183
- * supported for all Claim values.
184
- */
185
- claims_locales_supported?: string[];
186
- /**
187
- * Languages and scripts supported for the user interface,
188
- * represented as a JSON array of BCP47 [RFC5646] language tag values.
189
- */
190
- ui_locales_supported?: string[];
191
- /**
192
- * Boolean value specifying whether the OP supports use of the claims parameter,
193
- * with true indicating support. If omitted, the default value is false.
153
+ * JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects
194
154
  */
195
- claims_parameter_supported?: boolean;
155
+ request_object_signing_alg_values_supported?: string[];
196
156
  /**
197
157
  * Boolean value specifying whether the OP supports use of the request parameter,
198
158
  * with true indicating support. If omitted, the default value is false.
@@ -209,15 +169,26 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
209
169
  */
210
170
  require_request_uri_registration?: boolean;
211
171
  /**
212
- * URL that the OpenID Provider provides to the person registering the Client
213
- * to read about the OP's requirements on how the Relying Party can use the data provided by the OP.
172
+ * Supported OAuth 2.0 response_mode values.
173
+ *
174
+ * @remarks
175
+ * Determines how the authorization response is returned:
176
+ * - 'query' - Parameters in URL query string
177
+ * - 'fragment' - Parameters in URL fragment
178
+ * - 'form_post' - Parameters via POST
214
179
  */
215
- op_policy_uri?: string;
180
+ response_modes_supported?: string[];
216
181
  /**
217
- * URL that the OpenID Provider provides to the person registering the Client
218
- * to read about OpenID Provider's terms of service.
182
+ * Supported OAuth 2.0 response_type values.
183
+ *
184
+ * @remarks
185
+ * Common values include:
186
+ * - 'code' - Authorization Code flow
187
+ * - 'token' - Implicit flow
188
+ * - 'id_token' - OIDC implicit flow
189
+ * - 'code token' - Hybrid flow
219
190
  */
220
- op_tos_uri?: string;
191
+ response_types_supported?: string[];
221
192
  /**
222
193
  * JSON array containing a list of client authentication
223
194
  * methods supported by this revocation endpoint.
@@ -232,34 +203,63 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
232
203
  */
233
204
  revocation_endpoint_auth_signing_alg_values_supported?: string[];
234
205
  /**
235
- * JSON array containing a list of client authentication
236
- * methods supported by this introspection endpoint.
206
+ * Supported OAuth 2.0 scope values.
207
+ * Lists the permission scopes this server can handle.
208
+ *
209
+ * @remarks
210
+ * Common values include:
211
+ * - 'openid' - Required for OIDC flows
212
+ * - 'profile' - Basic user information
213
+ * - 'email' - User's email address
214
+ * - 'address' - User's postal address
215
+ * - 'phone' - User's phone number
237
216
  */
238
- introspection_endpoint_auth_methods_supported?: string[];
217
+ scopes_supported?: string[];
239
218
  /**
240
- * JSON array containing a list of the JWS signing
241
- * algorithms ("alg" values) supported by the introspection endpoint
242
- * for the signature on the JWT [JWT] used to authenticate the client
243
- * at the introspection endpoint for the "private_key_jwt" and
244
- * "client_secret_jwt" authentication methods.
219
+ * URL of a page containing human-readable information that developers
220
+ * might want or need to know when using the OpenID Provider.
245
221
  */
246
- introspection_endpoint_auth_signing_alg_values_supported?: string[];
222
+ service_documentation?: string;
247
223
  /**
248
- * JSON array containing a list of Proof Key for Code
249
- * Exchange (PKCE) [RFC7636] code challenge methods supported by this
250
- * authorization server.
224
+ * Supported Subject Identifier types.
225
+ * Defines how the OP identifies users across sessions.
226
+ *
227
+ * @remarks
228
+ * Common values:
229
+ * - 'public' - Same sub value for all clients
230
+ * - 'pairwise' - Different sub values for different clients
251
231
  */
252
- code_challenge_methods_supported?: string[];
232
+ subject_types_supported?: string[];
253
233
  /**
254
- * Boolean value specifying whether the OP supports back-channel logout, with true indicating support.
255
- * If omitted, the default value is false.
234
+ * JSON array containing a list of Client Authentication methods supported by this Token Endpoint.
256
235
  */
257
- backchannel_logout_supported?: boolean;
236
+ token_endpoint_auth_methods_supported?: string[];
258
237
  /**
259
- * Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to
260
- * identify the RP session with the OP.
238
+ * JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint
239
+ * for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the
240
+ * private_key_jwt and client_secret_jwt authentication methods.
261
241
  */
262
- backchannel_logout_session_supported?: boolean;
242
+ token_endpoint_auth_signing_alg_values_supported?: string[];
243
+ /**
244
+ * Languages and scripts supported for the user interface,
245
+ * represented as a JSON array of BCP47 [RFC5646] language tag values.
246
+ */
247
+ ui_locales_supported?: string[];
248
+ /**
249
+ * JSON array containing a list of the JWE [JWE] encryption algorithms (alg values)
250
+ * [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
251
+ */
252
+ userinfo_encryption_alg_values_supported?: string[];
253
+ /**
254
+ * JSON array containing a list of the JWE encryption algorithms (enc values) [JWA]
255
+ * supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]
256
+ */
257
+ userinfo_encryption_enc_values_supported?: string[];
258
+ /**
259
+ * JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA]
260
+ * supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
261
+ */
262
+ userinfo_signing_alg_values_supported?: string[];
263
263
  }
264
264
  /**
265
265
  * Essential OpenID Connect (OIDC) Provider endpoints configuration.
@@ -290,15 +290,6 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
290
290
  * ```
291
291
  */
292
292
  export interface OIDCDiscoveryEndpointsApiResponse {
293
- /**
294
- * HTTPS URL that the OP asserts as its Issuer Identifier.
295
- * Must not contain query or fragment components.
296
- *
297
- * @remarks
298
- * This is a crucial identifier for the OpenID Provider and should
299
- * match the iss claim in issued JWT tokens.
300
- */
301
- issuer?: string;
302
293
  /**
303
294
  * OAuth 2.0 Authorization Endpoint URL.
304
295
  * Used to initiate the authentication and authorization process.
@@ -309,23 +300,29 @@ export interface OIDCDiscoveryEndpointsApiResponse {
309
300
  */
310
301
  authorization_endpoint?: string;
311
302
  /**
312
- * OAuth 2.0 Token Endpoint URL.
313
- * Used to obtain tokens using various grant types.
314
- *
315
- * @remarks
316
- * Clients use this endpoint to exchange authorization codes for tokens
317
- * and to refresh expired access tokens.
303
+ * URL of an OP iframe that supports cross-origin communications for session state information with the RP
304
+ * Client, using the HTML5 postMessage API.
318
305
  */
319
- token_endpoint?: string;
306
+ check_session_iframe?: string;
320
307
  /**
321
- * UserInfo Endpoint URL.
322
- * Returns claims about the authenticated end-user.
308
+ * URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the
309
+ * OP.
310
+ */
311
+ end_session_endpoint?: string;
312
+ /**
313
+ * URL of the authorization server's OAuth 2.0
314
+ * introspection endpoint.
315
+ */
316
+ introspection_endpoint?: string;
317
+ /**
318
+ * HTTPS URL that the OP asserts as its Issuer Identifier.
319
+ * Must not contain query or fragment components.
323
320
  *
324
321
  * @remarks
325
- * Requires a valid access token with appropriate scope.
326
- * May return claims in JWT format if signing/encryption is configured.
322
+ * This is a crucial identifier for the OpenID Provider and should
323
+ * match the iss claim in issued JWT tokens.
327
324
  */
328
- userinfo_endpoint?: string;
325
+ issuer?: string;
329
326
  /**
330
327
  * JSON Web Key Set (JWKS) document URL.
331
328
  * Contains the cryptographic keys used to secure communications.
@@ -347,23 +344,26 @@ export interface OIDCDiscoveryEndpointsApiResponse {
347
344
  */
348
345
  registration_endpoint?: string;
349
346
  /**
350
- * URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the
351
- * OP.
352
- */
353
- end_session_endpoint?: string;
354
- /**
355
- * URL of an OP iframe that supports cross-origin communications for session state information with the RP
356
- * Client, using the HTML5 postMessage API.
347
+ * URL of the authorization server's OAuth 2.0 revocation
348
+ * endpoint.
357
349
  */
358
- check_session_iframe?: string;
350
+ revocation_endpoint?: string;
359
351
  /**
360
- * URL of the authorization server's OAuth 2.0
361
- * introspection endpoint.
352
+ * OAuth 2.0 Token Endpoint URL.
353
+ * Used to obtain tokens using various grant types.
354
+ *
355
+ * @remarks
356
+ * Clients use this endpoint to exchange authorization codes for tokens
357
+ * and to refresh expired access tokens.
362
358
  */
363
- introspection_endpoint?: string;
359
+ token_endpoint?: string;
364
360
  /**
365
- * URL of the authorization server's OAuth 2.0 revocation
366
- * endpoint.
361
+ * UserInfo Endpoint URL.
362
+ * Returns claims about the authenticated end-user.
363
+ *
364
+ * @remarks
365
+ * Requires a valid access token with appropriate scope.
366
+ * May return claims in JWT format if signing/encryption is configured.
367
367
  */
368
- revocation_endpoint?: string;
368
+ userinfo_endpoint?: string;
369
369
  }
@@ -21,14 +21,14 @@
21
21
  */
22
22
  export interface LegacyOIDCEndpoints {
23
23
  authorizationEndpoint: string;
24
- tokenEndpoint: string;
25
- userinfoEndpoint: string;
24
+ checkSessionIframe: string;
25
+ endSessionEndpoint: string;
26
+ introspectionEndpoint?: string;
26
27
  jwksUri: string;
27
28
  registrationEndpoint?: string;
28
29
  revocationEndpoint: string;
29
- introspectionEndpoint?: string;
30
- checkSessionIframe: string;
31
- endSessionEndpoint: string;
30
+ tokenEndpoint: string;
31
+ userinfoEndpoint: string;
32
32
  }
33
33
  /**
34
34
  * Interface representing OpenID Connect endpoints configuration.
@@ -36,25 +36,25 @@ export interface LegacyOIDCEndpoints {
36
36
  */
37
37
  export interface OIDCEndpoints extends Partial<LegacyOIDCEndpoints> {
38
38
  /**
39
- * The issuer identifier URL for the OpenID Provider
39
+ * The authorization endpoint URL where the authentication request is sent
40
40
  */
41
- issuer: string;
41
+ authorization: string;
42
42
  /**
43
43
  * The OpenID Provider's discovery endpoint URL
44
44
  */
45
45
  discovery: string;
46
46
  /**
47
- * The authorization endpoint URL where the authentication request is sent
48
- */
49
- authorization: string;
50
- /**
51
- * The userinfo endpoint URL that returns claims about the authenticated user
47
+ * The end session endpoint URL used to terminate the user's session
52
48
  */
53
- userinfo: string;
49
+ endSession: string;
54
50
  /**
55
51
  * The introspection endpoint URL used to validate tokens
56
52
  */
57
53
  introspection: string;
54
+ /**
55
+ * The issuer identifier URL for the OpenID Provider
56
+ */
57
+ issuer: string;
58
58
  /**
59
59
  * The JSON Web Key Set endpoint URL that provides the public keys to verify tokens
60
60
  */
@@ -64,7 +64,7 @@ export interface OIDCEndpoints extends Partial<LegacyOIDCEndpoints> {
64
64
  */
65
65
  revocation: string;
66
66
  /**
67
- * The end session endpoint URL used to terminate the user's session
67
+ * The userinfo endpoint URL that returns claims about the authenticated user
68
68
  */
69
- endSession: string;
69
+ userinfo: string;
70
70
  }
@@ -28,10 +28,10 @@
28
28
  export declare enum Platform {
29
29
  /** Asgardeo cloud identity platform (asgardeo.io domains) */
30
30
  Asgardeo = "ASGARDEO",
31
- /** WSO2 Identity Server (on-prem or custom domains) */
32
- IdentityServer = "IDENTITY_SERVER",
33
31
  /** @experimental WSO2 Asgardeo V2 */
34
32
  AsgardeoV2 = "AsgardeoV2",
33
+ /** WSO2 Identity Server (on-prem or custom domains) */
34
+ IdentityServer = "IDENTITY_SERVER",
35
35
  /** Unknown or unsupported platform */
36
36
  Unknown = "UNKNOWN"
37
37
  }
@@ -16,34 +16,34 @@
16
16
  * under the License.
17
17
  */
18
18
  export interface SchemaAttribute {
19
- name: string;
20
- type: string;
21
- multiValued: boolean;
22
- description?: string;
23
- required?: boolean;
24
19
  caseExact: boolean;
25
- mutability: string;
26
- returned: string;
27
- uniqueness: string;
20
+ description?: string;
28
21
  displayName?: string;
29
22
  displayOrder?: string;
23
+ multiValued: boolean;
24
+ mutability: string;
25
+ name: string;
30
26
  regEx?: string;
31
- supportedByDefault?: string;
27
+ required?: boolean;
28
+ returned: string;
32
29
  sharedProfileValueResolvingMethod?: string;
33
30
  subAttributes?: SchemaAttribute[];
31
+ supportedByDefault?: string;
32
+ type: string;
33
+ uniqueness: string;
34
34
  }
35
35
  /**
36
36
  * Represents a SCIM2 schema definition
37
37
  */
38
38
  export interface Schema {
39
+ /** Schema attributes */
40
+ attributes: SchemaAttribute[];
41
+ /** Schema description */
42
+ description: string;
39
43
  /** Schema identifier */
40
44
  id: string;
41
45
  /** Schema name */
42
46
  name: string;
43
- /** Schema description */
44
- description: string;
45
- /** Schema attributes */
46
- attributes: SchemaAttribute[];
47
47
  }
48
48
  export interface FlattenedSchema extends Schema {
49
49
  schemaId: string;
@@ -54,12 +54,12 @@ export interface FlattenedSchema extends Schema {
54
54
  export declare enum WellKnownSchemaIds {
55
55
  /** Core Schema */
56
56
  Core = "urn:ietf:params:scim:schemas:core:2.0",
57
- /** User Schema */
58
- User = "urn:ietf:params:scim:schemas:core:2.0:User",
57
+ /** Custom User Schema */
58
+ CustomUser = "urn:scim:schemas:extension:custom:User",
59
59
  /** Enterprise User Schema */
60
60
  EnterpriseUser = "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
61
61
  /** System User Schema */
62
62
  SystemUser = "urn:scim:wso2:schema",
63
- /** Custom User Schema */
64
- CustomUser = "urn:scim:schemas:extension:custom:User"
63
+ /** User Schema */
64
+ User = "urn:ietf:params:scim:schemas:core:2.0:User"
65
65
  }
@@ -17,13 +17,13 @@
17
17
  */
18
18
  export interface SessionData {
19
19
  access_token: string;
20
- id_token: string;
20
+ created_at: number;
21
21
  expires_in: string;
22
- scope: string;
22
+ id_token: string;
23
23
  refresh_token?: string;
24
- token_type: string;
24
+ scope: string;
25
25
  session_state: string;
26
- created_at: number;
26
+ token_type: string;
27
27
  }
28
28
  export interface UserSession {
29
29
  scopes: string[];
@@ -22,15 +22,6 @@ import { OIDCEndpoints } from './oidc-endpoints';
22
22
  * memory cache, or distributed caches like Redis or Memcached.
23
23
  */
24
24
  export interface Storage {
25
- /**
26
- * Stores a value with the specified key.
27
- *
28
- * @param key - The unique identifier for the stored value
29
- * @param value - The string value to store
30
- * @returns A promise that resolves when the value is successfully stored
31
- * @throws Error if storage operation fails
32
- */
33
- setData(key: string, value: string): Promise<void>;
34
25
  /**
35
26
  * Retrieves a value by its key.
36
27
  *
@@ -47,6 +38,15 @@ export interface Storage {
47
38
  * @throws Error if removal fails or the key doesn't exist
48
39
  */
49
40
  removeData(key: string): Promise<void>;
41
+ /**
42
+ * Stores a value with the specified key.
43
+ *
44
+ * @param key - The unique identifier for the stored value
45
+ * @param value - The string value to store
46
+ * @returns A promise that resolves when the value is successfully stored
47
+ * @throws Error if storage operation fails
48
+ */
49
+ setData(key: string, value: string): Promise<void>;
50
50
  }
51
51
  /**
52
52
  * Represents the possible value types that can be stored in the temporary data storage.
@@ -17,17 +17,17 @@
17
17
  */
18
18
  import { Schema } from './scim2-schema';
19
19
  export interface KnownUser {
20
- username?: string;
20
+ displayName?: string;
21
21
  email?: string;
22
- givenName?: string;
23
22
  familyName?: string;
24
- displayName?: string;
23
+ givenName?: string;
24
+ username?: string;
25
25
  }
26
26
  export interface User extends KnownUser {
27
27
  [key: string]: any;
28
28
  }
29
29
  export interface UserProfile {
30
- schemas: Schema[];
31
- profile: User;
32
30
  flattenedProfile: User;
31
+ profile: User;
32
+ schemas: Schema[];
33
33
  }