@asgardeo/javascript 0.13.0 → 0.14.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.
@@ -52,6 +52,8 @@ export declare enum EmbeddedFlowComponentType {
52
52
  Image = "IMAGE",
53
53
  /** One-time password input field for multi-factor authentication */
54
54
  OtpInput = "OTP_INPUT",
55
+ /** Organization unit tree picker for selecting an OU */
56
+ OuSelect = "OU_SELECT",
55
57
  /** Password input field with masking for sensitive data */
56
58
  PasswordInput = "PASSWORD_INPUT",
57
59
  /** Phone number input field with country code support */
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Copyright (c) 2026, 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
+ export interface OrganizationUnit {
19
+ description?: string;
20
+ handle: string;
21
+ id: string;
22
+ logoUrl?: string;
23
+ name: string;
24
+ parent?: {
25
+ id: string;
26
+ ref?: string;
27
+ };
28
+ }
29
+ export interface OrganizationUnitListResponse {
30
+ count: number;
31
+ organizationUnits: OrganizationUnit[];
32
+ startIndex: number;
33
+ totalResults: number;
34
+ }
35
+ /**
36
+ * Request configuration for fetching a single organization unit.
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * const config: GetOrganizationUnitConfig = {
41
+ * baseUrl: 'https://localhost:8090',
42
+ * organizationUnitId: '0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1',
43
+ * };
44
+ * ```
45
+ *
46
+ * @experimental This API may change in future versions
47
+ */
48
+ export interface GetOrganizationUnitConfig extends Omit<Partial<RequestInit>, 'method' | 'body'> {
49
+ /**
50
+ * Base URL of the API server.
51
+ * Either `baseUrl` or `url` must be provided.
52
+ */
53
+ baseUrl?: string;
54
+ /**
55
+ * The ID of the organization unit to retrieve.
56
+ */
57
+ organizationUnitId: string;
58
+ /**
59
+ * Fully qualified URL of the organization unit endpoint.
60
+ * When provided, `baseUrl` is ignored.
61
+ */
62
+ url?: string;
63
+ }
64
+ /**
65
+ * Request configuration for fetching child organization units.
66
+ *
67
+ * @example
68
+ * ```typescript
69
+ * const config: GetOrganizationUnitChildrenConfig = {
70
+ * baseUrl: 'https://localhost:8090',
71
+ * organizationUnitId: '0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1',
72
+ * limit: 10,
73
+ * offset: 0,
74
+ * };
75
+ * ```
76
+ *
77
+ * @experimental This API may change in future versions
78
+ */
79
+ export interface GetOrganizationUnitChildrenConfig extends Omit<Partial<RequestInit>, 'method' | 'body'> {
80
+ /**
81
+ * Base URL of the API server.
82
+ * Either `baseUrl` or `url` must be provided.
83
+ */
84
+ baseUrl?: string;
85
+ /**
86
+ * Maximum number of child OUs to return. Defaults to 10.
87
+ */
88
+ limit?: number;
89
+ /**
90
+ * Pagination offset. Defaults to 0.
91
+ */
92
+ offset?: number;
93
+ /**
94
+ * The ID of the parent organization unit.
95
+ */
96
+ organizationUnitId: string;
97
+ /**
98
+ * Fully qualified URL of the organization unit children endpoint.
99
+ * When provided, `baseUrl` is ignored.
100
+ */
101
+ url?: string;
102
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",