@thunderid/javascript 0.3.6 → 0.3.8
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/ThunderIDJavaScriptClient.d.ts +0 -5
- package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -1
- package/dist/api/getOrganizationUnitChildren.d.ts +65 -22
- package/dist/api/getOrganizationUnitChildren.d.ts.map +1 -1
- package/dist/cjs/index.cjs +551 -1344
- package/dist/edge/index.js +552 -1336
- package/dist/errors/exception.d.ts +1 -3
- package/dist/errors/exception.d.ts.map +1 -1
- package/dist/index.d.ts +1 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +552 -1336
- package/dist/models/client.d.ts +0 -25
- package/dist/models/client.d.ts.map +1 -1
- package/dist/models/config.d.ts +0 -15
- package/dist/models/config.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/api/createOrganization.d.ts +0 -130
- package/dist/api/createOrganization.d.ts.map +0 -1
- package/dist/api/getAllOrganizations.d.ts +0 -104
- package/dist/api/getAllOrganizations.d.ts.map +0 -1
- package/dist/api/getBrandingPreference.d.ts +0 -104
- package/dist/api/getBrandingPreference.d.ts.map +0 -1
- package/dist/api/getMeOrganizations.d.ts +0 -120
- package/dist/api/getMeOrganizations.d.ts.map +0 -1
- package/dist/api/getOrganization.d.ts +0 -110
- package/dist/api/getOrganization.d.ts.map +0 -1
- package/dist/api/updateOrganization.d.ts +0 -119
- package/dist/api/updateOrganization.d.ts.map +0 -1
- package/dist/models/branding-preference.d.ts +0 -249
- package/dist/models/branding-preference.d.ts.map +0 -1
- package/dist/models/organization-unit.d.ts +0 -103
- package/dist/models/organization-unit.d.ts.map +0 -1
- package/dist/models/organization.d.ts +0 -34
- package/dist/models/organization.d.ts.map +0 -1
- package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts +0 -40
- package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts.map +0 -1
- package/dist/utils/transformBrandingPreferenceToTheme.d.ts +0 -49
- package/dist/utils/transformBrandingPreferenceToTheme.d.ts.map +0 -1
|
@@ -1,110 +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
|
-
/**
|
|
19
|
-
* Extended organization interface with additional properties
|
|
20
|
-
*/
|
|
21
|
-
export interface OrganizationDetails {
|
|
22
|
-
attributes?: Record<string, any>;
|
|
23
|
-
created?: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
id: string;
|
|
26
|
-
lastModified?: string;
|
|
27
|
-
name: string;
|
|
28
|
-
orgHandle: string;
|
|
29
|
-
parent?: {
|
|
30
|
-
id: string;
|
|
31
|
-
ref: string;
|
|
32
|
-
};
|
|
33
|
-
permissions?: string[];
|
|
34
|
-
status?: string;
|
|
35
|
-
type?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Configuration for the getOrganization request
|
|
39
|
-
*/
|
|
40
|
-
export interface GetOrganizationConfig extends Omit<RequestInit, 'method'> {
|
|
41
|
-
/**
|
|
42
|
-
* The base URL for the API endpoint.
|
|
43
|
-
*/
|
|
44
|
-
baseUrl: string;
|
|
45
|
-
/**
|
|
46
|
-
* Optional custom fetcher function.
|
|
47
|
-
* If not provided, native fetch will be used
|
|
48
|
-
*/
|
|
49
|
-
fetcher?: (url: string, config: RequestInit) => Promise<Response>;
|
|
50
|
-
/**
|
|
51
|
-
* The ID of the organization to retrieve
|
|
52
|
-
*/
|
|
53
|
-
organizationId: string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Retrieves detailed information for a specific organization.
|
|
57
|
-
*
|
|
58
|
-
* @param config - Configuration object containing baseUrl, organizationId, and request config.
|
|
59
|
-
* @returns A promise that resolves with the organization details.
|
|
60
|
-
* @example
|
|
61
|
-
* ```typescript
|
|
62
|
-
* // Using default fetch
|
|
63
|
-
* try {
|
|
64
|
-
* const organization = await getOrganization({
|
|
65
|
-
* baseUrl: "https://localhost:8090",
|
|
66
|
-
* organizationId: "0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
|
|
67
|
-
* });
|
|
68
|
-
* console.log(organization);
|
|
69
|
-
* } catch (error) {
|
|
70
|
-
* if (error instanceof ThunderIDAPIError) {
|
|
71
|
-
* console.error('Failed to get organization:', error.message);
|
|
72
|
-
* }
|
|
73
|
-
* }
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```typescript
|
|
78
|
-
* // Using custom fetcher (e.g., axios-based httpClient)
|
|
79
|
-
* try {
|
|
80
|
-
* const organization = await getOrganization({
|
|
81
|
-
* baseUrl: "https://localhost:8090",
|
|
82
|
-
* organizationId: "0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1",
|
|
83
|
-
* fetcher: async (url, config) => {
|
|
84
|
-
* const response = await httpClient({
|
|
85
|
-
* url,
|
|
86
|
-
* method: config.method,
|
|
87
|
-
* headers: config.headers,
|
|
88
|
-
* ...config
|
|
89
|
-
* });
|
|
90
|
-
* // Convert axios-like response to fetch-like Response
|
|
91
|
-
* return {
|
|
92
|
-
* ok: response.status >= 200 && response.status < 300,
|
|
93
|
-
* status: response.status,
|
|
94
|
-
* statusText: response.statusText,
|
|
95
|
-
* json: () => Promise.resolve(response.data),
|
|
96
|
-
* text: () => Promise.resolve(typeof response.data === 'string' ? response.data : JSON.stringify(response.data))
|
|
97
|
-
* } as Response;
|
|
98
|
-
* }
|
|
99
|
-
* });
|
|
100
|
-
* console.log(organization);
|
|
101
|
-
* } catch (error) {
|
|
102
|
-
* if (error instanceof ThunderIDAPIError) {
|
|
103
|
-
* console.error('Failed to get organization:', error.message);
|
|
104
|
-
* }
|
|
105
|
-
* }
|
|
106
|
-
* ```
|
|
107
|
-
*/
|
|
108
|
-
declare const getOrganization: ({ baseUrl, organizationId, fetcher, ...requestConfig }: GetOrganizationConfig) => Promise<OrganizationDetails>;
|
|
109
|
-
export default getOrganization;
|
|
110
|
-
//# sourceMappingURL=getOrganization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOrganization.d.ts","sourceRoot":"","sources":["../../src/api/getOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IACxE;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,QAAA,MAAM,eAAe,GAAU,wDAK5B,qBAAqB,KAAG,OAAO,CAAC,mBAAmB,CAmErD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,119 +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 { OrganizationDetails } from './getOrganization';
|
|
19
|
-
/**
|
|
20
|
-
* Configuration for the updateOrganization request
|
|
21
|
-
*/
|
|
22
|
-
export interface UpdateOrganizationConfig extends Omit<RequestInit, 'method' | 'body'> {
|
|
23
|
-
/**
|
|
24
|
-
* The base URL for the API endpoint.
|
|
25
|
-
*/
|
|
26
|
-
baseUrl: string;
|
|
27
|
-
/**
|
|
28
|
-
* Optional custom fetcher function.
|
|
29
|
-
* If not provided, native fetch will be used
|
|
30
|
-
*/
|
|
31
|
-
fetcher?: (url: string, config: RequestInit) => Promise<Response>;
|
|
32
|
-
/**
|
|
33
|
-
* Array of patch operations to apply
|
|
34
|
-
*/
|
|
35
|
-
operations: {
|
|
36
|
-
operation: 'REPLACE' | 'ADD' | 'REMOVE';
|
|
37
|
-
path: string;
|
|
38
|
-
value?: any;
|
|
39
|
-
}[];
|
|
40
|
-
/**
|
|
41
|
-
* The ID of the organization to update
|
|
42
|
-
*/
|
|
43
|
-
organizationId: string;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Updates the organization information using the Organizations Management API.
|
|
47
|
-
*
|
|
48
|
-
* @param config - Configuration object with baseUrl, organizationId, operations and optional request config.
|
|
49
|
-
* @returns A promise that resolves with the updated organization information.
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* // Using the helper function to create operations automatically
|
|
53
|
-
* const operations = createPatchOperations({
|
|
54
|
-
* name: "Updated Organization Name", // Will use REPLACE
|
|
55
|
-
* description: "", // Will use REMOVE (empty string)
|
|
56
|
-
* customField: "Some value" // Will use REPLACE
|
|
57
|
-
* });
|
|
58
|
-
*
|
|
59
|
-
* await updateOrganization({
|
|
60
|
-
* baseUrl: "https://localhost:8090",
|
|
61
|
-
* organizationId: "0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1",
|
|
62
|
-
* operations
|
|
63
|
-
* });
|
|
64
|
-
*
|
|
65
|
-
* // Or manually specify operations
|
|
66
|
-
* await updateOrganization({
|
|
67
|
-
* baseUrl: "https://localhost:8090",
|
|
68
|
-
* organizationId: "0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1",
|
|
69
|
-
* operations: [
|
|
70
|
-
* { operation: "REPLACE", path: "/name", value: "Updated Organization Name" },
|
|
71
|
-
* { operation: "REMOVE", path: "/description" }
|
|
72
|
-
* ]
|
|
73
|
-
* });
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```typescript
|
|
78
|
-
* // Using custom fetcher (e.g., axios-based httpClient)
|
|
79
|
-
* await updateOrganization({
|
|
80
|
-
* baseUrl: "https://localhost:8090",
|
|
81
|
-
* organizationId: "0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1",
|
|
82
|
-
* operations: [
|
|
83
|
-
* { operation: "REPLACE", path: "/name", value: "Updated Organization Name" }
|
|
84
|
-
* ],
|
|
85
|
-
* fetcher: async (url, config) => {
|
|
86
|
-
* const response = await httpClient({
|
|
87
|
-
* url,
|
|
88
|
-
* method: config.method,
|
|
89
|
-
* headers: config.headers,
|
|
90
|
-
* data: config.body,
|
|
91
|
-
* ...config
|
|
92
|
-
* });
|
|
93
|
-
* // Convert axios-like response to fetch-like Response
|
|
94
|
-
* return {
|
|
95
|
-
* ok: response.status >= 200 && response.status < 300,
|
|
96
|
-
* status: response.status,
|
|
97
|
-
* statusText: response.statusText,
|
|
98
|
-
* json: () => Promise.resolve(response.data),
|
|
99
|
-
* text: () => Promise.resolve(typeof response.data === 'string' ? response.data : JSON.stringify(response.data))
|
|
100
|
-
* } as Response;
|
|
101
|
-
* }
|
|
102
|
-
* });
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
declare const updateOrganization: ({ baseUrl, organizationId, operations, fetcher, ...requestConfig }: UpdateOrganizationConfig) => Promise<OrganizationDetails>;
|
|
106
|
-
/**
|
|
107
|
-
* Helper function to convert field updates to patch operations format.
|
|
108
|
-
* Uses REMOVE operation when the value is empty, otherwise uses REPLACE.
|
|
109
|
-
*
|
|
110
|
-
* @param payload - Object containing field updates
|
|
111
|
-
* @returns Array of patch operations
|
|
112
|
-
*/
|
|
113
|
-
export declare const createPatchOperations: (payload: Record<string, any>) => {
|
|
114
|
-
operation: "REPLACE" | "REMOVE";
|
|
115
|
-
path: string;
|
|
116
|
-
value?: any;
|
|
117
|
-
}[];
|
|
118
|
-
export default updateOrganization;
|
|
119
|
-
//# sourceMappingURL=updateOrganization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateOrganization.d.ts","sourceRoot":"","sources":["../../src/api/updateOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAItD;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,CAAC;IACpF;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,EAAE;QACV,SAAS,EAAE,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;QACxC,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,GAAG,CAAC;KACb,EAAE,CAAC;IACJ;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,QAAA,MAAM,kBAAkB,GAAU,oEAM/B,wBAAwB,KAAG,OAAO,CAAC,mBAAmB,CA8ExD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAChC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC3B;IACD,SAAS,EAAE,SAAS,GAAG,QAAQ,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,EAcG,CAAC;AAEL,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,249 +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
|
-
/**
|
|
19
|
-
* Interface for color configuration with multiple variants.
|
|
20
|
-
*/
|
|
21
|
-
export interface ColorVariants {
|
|
22
|
-
contrastText?: string;
|
|
23
|
-
dark?: string;
|
|
24
|
-
inverted?: string;
|
|
25
|
-
light?: string;
|
|
26
|
-
main?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Interface for text color configuration.
|
|
30
|
-
*/
|
|
31
|
-
export interface TextColors {
|
|
32
|
-
primary?: string;
|
|
33
|
-
secondary?: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Interface for button styling configuration.
|
|
37
|
-
*/
|
|
38
|
-
export interface ButtonStyle {
|
|
39
|
-
base?: {
|
|
40
|
-
background?: {
|
|
41
|
-
backgroundColor?: string;
|
|
42
|
-
};
|
|
43
|
-
border?: {
|
|
44
|
-
borderColor?: string;
|
|
45
|
-
borderRadius?: string;
|
|
46
|
-
};
|
|
47
|
-
font?: {
|
|
48
|
-
color?: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Interface for buttons configuration.
|
|
54
|
-
*/
|
|
55
|
-
export interface ButtonsConfig {
|
|
56
|
-
externalConnection?: ButtonStyle;
|
|
57
|
-
primary?: ButtonStyle;
|
|
58
|
-
secondary?: ButtonStyle;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Interface for color palette configuration.
|
|
62
|
-
*/
|
|
63
|
-
export interface ColorsConfig {
|
|
64
|
-
alerts?: {
|
|
65
|
-
error?: ColorVariants;
|
|
66
|
-
info?: ColorVariants;
|
|
67
|
-
neutral?: ColorVariants;
|
|
68
|
-
warning?: ColorVariants;
|
|
69
|
-
};
|
|
70
|
-
background?: {
|
|
71
|
-
body?: ColorVariants;
|
|
72
|
-
surface?: ColorVariants;
|
|
73
|
-
};
|
|
74
|
-
illustrations?: {
|
|
75
|
-
accent1?: ColorVariants;
|
|
76
|
-
accent2?: ColorVariants;
|
|
77
|
-
accent3?: ColorVariants;
|
|
78
|
-
primary?: ColorVariants;
|
|
79
|
-
secondary?: ColorVariants;
|
|
80
|
-
};
|
|
81
|
-
outlined?: {
|
|
82
|
-
default?: string;
|
|
83
|
-
};
|
|
84
|
-
primary?: ColorVariants;
|
|
85
|
-
secondary?: ColorVariants;
|
|
86
|
-
text?: TextColors;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Interface for footer configuration.
|
|
90
|
-
*/
|
|
91
|
-
export interface FooterConfig {
|
|
92
|
-
border?: {
|
|
93
|
-
borderColor?: string;
|
|
94
|
-
};
|
|
95
|
-
font?: {
|
|
96
|
-
color?: string;
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Interface for image configuration.
|
|
101
|
-
*/
|
|
102
|
-
export interface ImageConfig {
|
|
103
|
-
altText?: string;
|
|
104
|
-
imgURL?: string;
|
|
105
|
-
title?: string;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Interface for images configuration.
|
|
109
|
-
*/
|
|
110
|
-
export interface ImagesConfig {
|
|
111
|
-
favicon?: Partial<ImageConfig>;
|
|
112
|
-
logo?: Partial<ImageConfig>;
|
|
113
|
-
myAccountLogo?: Partial<ImageConfig>;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Interface for input styling configuration.
|
|
117
|
-
*/
|
|
118
|
-
export interface InputsConfig {
|
|
119
|
-
base?: {
|
|
120
|
-
background?: {
|
|
121
|
-
backgroundColor?: string;
|
|
122
|
-
};
|
|
123
|
-
border?: {
|
|
124
|
-
borderColor?: string;
|
|
125
|
-
borderRadius?: string;
|
|
126
|
-
};
|
|
127
|
-
font?: {
|
|
128
|
-
color?: string;
|
|
129
|
-
};
|
|
130
|
-
labels?: {
|
|
131
|
-
font?: {
|
|
132
|
-
color?: string;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Interface for login box configuration.
|
|
139
|
-
*/
|
|
140
|
-
export interface LoginBoxConfig {
|
|
141
|
-
background?: {
|
|
142
|
-
backgroundColor?: string;
|
|
143
|
-
};
|
|
144
|
-
border?: {
|
|
145
|
-
borderColor?: string;
|
|
146
|
-
borderRadius?: string;
|
|
147
|
-
borderWidth?: string;
|
|
148
|
-
};
|
|
149
|
-
font?: {
|
|
150
|
-
color?: string;
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Interface for login page configuration.
|
|
155
|
-
*/
|
|
156
|
-
export interface LoginPageConfig {
|
|
157
|
-
background?: {
|
|
158
|
-
backgroundColor?: string;
|
|
159
|
-
};
|
|
160
|
-
font?: {
|
|
161
|
-
color?: string;
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Interface for typography configuration.
|
|
166
|
-
*/
|
|
167
|
-
export interface TypographyConfig {
|
|
168
|
-
font?: {
|
|
169
|
-
color?: string;
|
|
170
|
-
fontFamily?: string;
|
|
171
|
-
importURL?: string;
|
|
172
|
-
};
|
|
173
|
-
heading?: {
|
|
174
|
-
font?: {
|
|
175
|
-
color?: string;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Interface for theme variant configuration (LIGHT/DARK).
|
|
181
|
-
*/
|
|
182
|
-
export interface ThemeVariant {
|
|
183
|
-
buttons?: ButtonsConfig;
|
|
184
|
-
colors?: ColorsConfig;
|
|
185
|
-
footer?: FooterConfig;
|
|
186
|
-
images?: ImagesConfig;
|
|
187
|
-
inputs?: InputsConfig;
|
|
188
|
-
loginBox?: LoginBoxConfig;
|
|
189
|
-
loginPage?: LoginPageConfig;
|
|
190
|
-
typography?: TypographyConfig;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Interface for branding preference layout configuration.
|
|
194
|
-
*/
|
|
195
|
-
export interface BrandingLayout {
|
|
196
|
-
activeLayout?: string;
|
|
197
|
-
sideImg?: {
|
|
198
|
-
altText?: string;
|
|
199
|
-
imgURL?: string;
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Interface for organization details configuration.
|
|
204
|
-
*/
|
|
205
|
-
export interface BrandingOrganizationDetails {
|
|
206
|
-
displayName?: string;
|
|
207
|
-
supportEmail?: string;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Interface for URL configurations.
|
|
211
|
-
*/
|
|
212
|
-
export interface UrlsConfig {
|
|
213
|
-
cookiePolicyURL?: string;
|
|
214
|
-
privacyPolicyURL?: string;
|
|
215
|
-
selfSignUpURL?: string;
|
|
216
|
-
termsOfUseURL?: string;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Interface for branding preference theme configuration.
|
|
220
|
-
*/
|
|
221
|
-
export interface BrandingTheme {
|
|
222
|
-
DARK?: ThemeVariant;
|
|
223
|
-
LIGHT?: ThemeVariant;
|
|
224
|
-
activeTheme?: string;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Interface for branding preference configuration.
|
|
228
|
-
*/
|
|
229
|
-
export interface BrandingPreferenceConfig {
|
|
230
|
-
configs?: {
|
|
231
|
-
isBrandingEnabled?: boolean;
|
|
232
|
-
removeDefaultBranding?: boolean;
|
|
233
|
-
selfSignUpEnabled?: boolean;
|
|
234
|
-
};
|
|
235
|
-
layout?: BrandingLayout;
|
|
236
|
-
organizationDetails?: BrandingOrganizationDetails;
|
|
237
|
-
theme?: BrandingTheme;
|
|
238
|
-
urls?: UrlsConfig;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Interface for branding preference configuration.
|
|
242
|
-
*/
|
|
243
|
-
export interface BrandingPreference {
|
|
244
|
-
locale?: string;
|
|
245
|
-
name?: string;
|
|
246
|
-
preference?: BrandingPreferenceConfig;
|
|
247
|
-
type?: string;
|
|
248
|
-
}
|
|
249
|
-
//# sourceMappingURL=branding-preference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"branding-preference.d.ts","sourceRoot":"","sources":["../../src/models/branding-preference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE;QACL,UAAU,CAAC,EAAE;YACX,eAAe,CAAC,EAAE,MAAM,CAAC;SAC1B,CAAC;QACF,MAAM,CAAC,EAAE;YACP,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB,CAAC;QACF,IAAI,CAAC,EAAE;YACL,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;KACH,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,kBAAk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AO,CAAC;QAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,CAAC;IACF,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;IAClD,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,103 +0,0 @@
|
|
|
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
|
-
}
|
|
103
|
-
//# sourceMappingURL=organization-unit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization-unit.d.ts","sourceRoot":"","sources":["../../src/models/organization-unit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC9F;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,iCAAkC,SAAQ,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACtG;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1,34 +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
|
-
export interface Organization {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
orgHandle: string;
|
|
22
|
-
ref?: string;
|
|
23
|
-
status?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Interface for paginated organization response.
|
|
27
|
-
*/
|
|
28
|
-
export interface AllOrganizationsApiResponse {
|
|
29
|
-
hasMore?: boolean;
|
|
30
|
-
nextCursor?: string;
|
|
31
|
-
organizations: Organization[];
|
|
32
|
-
totalCount?: number;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/models/organization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1,40 +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
|
-
/**
|
|
19
|
-
* Extracts the organization handle from a ThunderID base URL.
|
|
20
|
-
*
|
|
21
|
-
* Parses URLs following the `/t/{orgHandle}` pattern.
|
|
22
|
-
*
|
|
23
|
-
* @param baseUrl - The base URL of the ThunderID identity server
|
|
24
|
-
* @returns The extracted organization handle
|
|
25
|
-
* @throws {ThunderIDRuntimeError} When the URL doesn't match the expected ThunderID pattern,
|
|
26
|
-
* indicating a custom domain is configured and organizationHandle must be provided explicitly
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```typescript
|
|
30
|
-
* const handle = deriveOrganizationHandleFromBaseUrl('https://localhost:8090/t/dxlab');
|
|
31
|
-
* // Returns: 'dxlab'
|
|
32
|
-
*
|
|
33
|
-
* // Custom domain - returns empty string with a warning
|
|
34
|
-
* const handle2 = deriveOrganizationHandleFromBaseUrl('https://custom.example.com/auth');
|
|
35
|
-
* // Returns: '' and logs a warning
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
declare const deriveOrganizationHandleFromBaseUrl: (baseUrl?: string) => string;
|
|
39
|
-
export default deriveOrganizationHandleFromBaseUrl;
|
|
40
|
-
//# sourceMappingURL=deriveOrganizationHandleFromBaseUrl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deriveOrganizationHandleFromBaseUrl.d.ts","sourceRoot":"","sources":["../../src/utils/deriveOrganizationHandleFromBaseUrl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,mCAAmC,GAAI,UAAU,MAAM,KAAG,MAuD/D,CAAC;AAEF,eAAe,mCAAmC,CAAC"}
|