@asgardeo/react 0.5.0 → 0.5.1

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 (28) hide show
  1. package/dist/AsgardeoReactClient.d.ts +3 -2
  2. package/dist/api/{scim2/createOrganization.d.ts → createOrganization.d.ts} +32 -25
  3. package/dist/api/{scim2/getAllOrganizations.d.ts → getAllOrganizations.d.ts} +30 -13
  4. package/dist/api/{scim2/getMeOrganizations.d.ts → getMeOrganizations.d.ts} +35 -10
  5. package/dist/api/{scim2/getOrganization.d.ts → getOrganization.d.ts} +28 -20
  6. package/dist/api/getSchemas.d.ts +67 -0
  7. package/dist/api/getScim2Me.d.ts +67 -0
  8. package/dist/api/updateMeProfile.d.ts +55 -0
  9. package/dist/api/{scim2/updateOrganization.d.ts → updateOrganization.d.ts} +27 -25
  10. package/dist/cjs/index.js +262 -482
  11. package/dist/cjs/index.js.map +4 -4
  12. package/dist/components/control/AsgardeoLoading.d.ts +2 -0
  13. package/dist/components/control/SignedIn.d.ts +2 -0
  14. package/dist/components/control/SignedOut.d.ts +2 -0
  15. package/dist/components/factories/FieldFactory.d.ts +4 -9
  16. package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.d.ts +1 -1
  17. package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts +1 -1
  18. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts +1 -1
  19. package/dist/components/presentation/SignIn/BaseSignIn.d.ts +4 -0
  20. package/dist/components/presentation/SignIn/SignIn.d.ts +3 -15
  21. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +6 -2
  22. package/dist/index.d.ts +17 -4
  23. package/dist/index.js +301 -496
  24. package/dist/index.js.map +4 -4
  25. package/package.json +1 -1
  26. package/dist/api/scim2/getMeProfile.d.ts +0 -39
  27. package/dist/api/scim2/getSchemas.d.ts +0 -39
  28. package/dist/api/scim2/updateMeProfile.d.ts +0 -38
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/react",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "React implementation of Asgardeo JavaScript SDK.",
5
5
  "keywords": [
6
6
  "asgardeo",
@@ -1,39 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { User } from '@asgardeo/browser';
19
- /**
20
- * Retrieves the user profile information from the specified selfcare profile endpoint.
21
- *
22
- * @param requestConfig - Request configuration object.
23
- * @returns A promise that resolves with the user profile information.
24
- * @example
25
- * ```typescript
26
- * try {
27
- * const userProfile = await getUserProfile({
28
- * url: "https://api.asgardeo.io/t/<ORGANIZATION>/scim2/Me",
29
- * });
30
- * console.log(userProfile);
31
- * } catch (error) {
32
- * if (error instanceof AsgardeoAPIError) {
33
- * console.error('Failed to get user profile:', error.message);
34
- * }
35
- * }
36
- * ```
37
- */
38
- declare const getMeProfile: ({ url, ...requestConfig }: Partial<Request>) => Promise<User>;
39
- export default getMeProfile;
@@ -1,39 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { Schema } from '@asgardeo/browser';
19
- /**
20
- * Retrieves the SCIM2 schemas from the specified endpoint.
21
- *
22
- * @param requestConfig - Request configuration object.
23
- * @returns A promise that resolves with the SCIM2 schemas information.
24
- * @example
25
- * ```typescript
26
- * try {
27
- * const schemas = await getSchemas({
28
- * url: "https://api.asgardeo.io/t/<ORGANIZATION>/scim2/Schemas",
29
- * });
30
- * console.log(schemas);
31
- * } catch (error) {
32
- * if (error instanceof AsgardeoAPIError) {
33
- * console.error('Failed to get schemas:', error.message);
34
- * }
35
- * }
36
- * ```
37
- */
38
- declare const getSchemas: ({ url }: Partial<Request>) => Promise<Schema[]>;
39
- export default getSchemas;
@@ -1,38 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { User } from '@asgardeo/browser';
19
- /**
20
- * Updates the user profile information at the specified SCIM2 Me endpoint.
21
- *
22
- * @param url - The SCIM2 Me endpoint URL.
23
- * @param value - The value object to patch (SCIM2 PATCH value).
24
- * @param requestConfig - Additional request config if needed.
25
- * @returns A promise that resolves with the updated user profile information.
26
- * @example
27
- * ```typescript
28
- * await updateMeProfile({
29
- * url: "https://api.asgardeo.io/t/<ORG>/scim2/Me",
30
- * value: { "urn:scim:wso2:schema": { mobileNumbers: ["0777933830"] } }
31
- * });
32
- * ```
33
- */
34
- declare const updateMeProfile: ({ url, payload, ...requestConfig }: {
35
- url: string;
36
- payload: any;
37
- } & Partial<Request>) => Promise<User>;
38
- export default updateMeProfile;