@asgardeo/javascript 0.13.0 → 0.15.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/dist/api/v2/getOrganizationUnitChildren.d.ts +42 -0
- package/dist/cjs/index.js +74 -0
- package/dist/cjs/index.js.map +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +73 -0
- package/dist/index.js.map +3 -3
- package/dist/models/v2/embedded-flow-v2.d.ts +2 -0
- package/dist/models/v2/organization-unit.d.ts +102 -0
- package/dist/theme/types.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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/dist/theme/types.d.ts
CHANGED
|
@@ -65,11 +65,13 @@ export interface ThemeColors {
|
|
|
65
65
|
error: {
|
|
66
66
|
contrastText: string;
|
|
67
67
|
dark?: string;
|
|
68
|
+
light?: string;
|
|
68
69
|
main: string;
|
|
69
70
|
};
|
|
70
71
|
info: {
|
|
71
72
|
contrastText: string;
|
|
72
73
|
dark?: string;
|
|
74
|
+
light?: string;
|
|
73
75
|
main: string;
|
|
74
76
|
};
|
|
75
77
|
primary: {
|
|
@@ -80,11 +82,13 @@ export interface ThemeColors {
|
|
|
80
82
|
secondary: {
|
|
81
83
|
contrastText: string;
|
|
82
84
|
dark?: string;
|
|
85
|
+
light?: string;
|
|
83
86
|
main: string;
|
|
84
87
|
};
|
|
85
88
|
success: {
|
|
86
89
|
contrastText: string;
|
|
87
90
|
dark?: string;
|
|
91
|
+
light?: string;
|
|
88
92
|
main: string;
|
|
89
93
|
};
|
|
90
94
|
text: {
|
|
@@ -95,6 +99,7 @@ export interface ThemeColors {
|
|
|
95
99
|
warning: {
|
|
96
100
|
contrastText: string;
|
|
97
101
|
dark?: string;
|
|
102
|
+
light?: string;
|
|
98
103
|
main: string;
|
|
99
104
|
};
|
|
100
105
|
}
|