@thunderid/vue 1.6.0 → 1.8.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/__tests__/helpers/managementContext.d.ts +4 -2
- package/dist/__tests__/helpers/managementContext.d.ts.map +1 -1
- package/dist/cjs/index.cjs +3966 -2595
- package/dist/components/admin/AgentCreate/AgentCreate.d.ts.map +1 -1
- package/dist/components/admin/AgentDetails/AgentDetails.d.ts.map +1 -1
- package/dist/components/admin/AgentDetails/BaseAgentDetails.d.ts +6 -1
- package/dist/components/admin/AgentDetails/BaseAgentDetails.d.ts.map +1 -1
- package/dist/components/admin/AgentList/AgentList.d.ts.map +1 -1
- package/dist/components/admin/ApplicationCreate/ApplicationCreate.d.ts +21 -0
- package/dist/components/admin/ApplicationCreate/ApplicationCreate.d.ts.map +1 -0
- package/dist/components/admin/ApplicationCreate/BaseApplicationCreate.d.ts +36 -0
- package/dist/components/admin/ApplicationCreate/BaseApplicationCreate.d.ts.map +1 -0
- package/dist/components/admin/ApplicationDetails/ApplicationDetails.d.ts +27 -0
- package/dist/components/admin/ApplicationDetails/ApplicationDetails.d.ts.map +1 -0
- package/dist/components/admin/ApplicationDetails/BaseApplicationDetails.d.ts +48 -0
- package/dist/components/admin/ApplicationDetails/BaseApplicationDetails.d.ts.map +1 -0
- package/dist/components/admin/ApplicationList/ApplicationList.d.ts +20 -0
- package/dist/components/admin/ApplicationList/ApplicationList.d.ts.map +1 -0
- package/dist/components/admin/ApplicationList/BaseApplicationList.d.ts +13 -0
- package/dist/components/admin/ApplicationList/BaseApplicationList.d.ts.map +1 -0
- package/dist/components/admin/GroupCreate/GroupCreate.d.ts.map +1 -1
- package/dist/components/admin/GroupList/GroupList.d.ts.map +1 -1
- package/dist/components/admin/GroupMembers/GroupMembers.d.ts.map +1 -1
- package/dist/components/admin/RoleAssignments/RoleAssignments.d.ts.map +1 -1
- package/dist/components/admin/RoleCreate/RoleCreate.d.ts.map +1 -1
- package/dist/components/admin/RoleList/RoleList.d.ts.map +1 -1
- package/dist/components/admin/RolePermissions/RolePermissions.d.ts.map +1 -1
- package/dist/components/admin/UserCreate/UserCreate.d.ts.map +1 -1
- package/dist/components/admin/UserDetails/BaseUserDetails.d.ts +9 -1
- package/dist/components/admin/UserDetails/BaseUserDetails.d.ts.map +1 -1
- package/dist/components/admin/UserDetails/UserDetails.d.ts.map +1 -1
- package/dist/components/admin/UserList/UserList.d.ts.map +1 -1
- package/dist/components/admin/shared/AccessStatusBadge.d.ts +8 -0
- package/dist/components/admin/shared/AccessStatusBadge.d.ts.map +1 -0
- package/dist/components/admin/shared/AccountLifecycleButtons.d.ts +9 -0
- package/dist/components/admin/shared/AccountLifecycleButtons.d.ts.map +1 -0
- package/dist/components/admin/shared/ClientSecretNotice.d.ts +7 -0
- package/dist/components/admin/shared/ClientSecretNotice.d.ts.map +1 -0
- package/dist/components/admin/shared/createAdminList.d.ts +2 -2
- package/dist/components/admin/shared/createAdminList.d.ts.map +1 -1
- package/dist/components/admin/shared/createConnectedAdminList.d.ts +1 -1
- package/dist/components/admin/shared/renderApplicationFields.d.ts +34 -0
- package/dist/components/admin/shared/renderApplicationFields.d.ts.map +1 -0
- package/dist/components/auth/flow/AuthOptionFactoryCore.d.ts.map +1 -1
- package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
- package/dist/components/primitives/TextField/TextField.d.ts.map +1 -1
- package/dist/composables/management/useAccountLifecycle.d.ts +56 -0
- package/dist/composables/management/useAccountLifecycle.d.ts.map +1 -0
- package/dist/composables/management/useManagementEndpoint.d.ts +1 -1
- package/dist/composables/management/useManagementEndpoint.d.ts.map +1 -1
- package/dist/composables/management/useManagementRequestConfig.d.ts +21 -0
- package/dist/composables/management/useManagementRequestConfig.d.ts.map +1 -0
- package/dist/index.d.ts +15 -55
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4705 -4257
- package/dist/models/contexts.d.ts +3 -3
- package/package.json +2 -2
- package/dist/composables/management/agents/useCreateAgent.d.ts +0 -11
- package/dist/composables/management/agents/useCreateAgent.d.ts.map +0 -1
- package/dist/composables/management/agents/useDeleteAgent.d.ts +0 -10
- package/dist/composables/management/agents/useDeleteAgent.d.ts.map +0 -1
- package/dist/composables/management/agents/useGetAgent.d.ts +0 -13
- package/dist/composables/management/agents/useGetAgent.d.ts.map +0 -1
- package/dist/composables/management/agents/useGetAgentGroups.d.ts +0 -18
- package/dist/composables/management/agents/useGetAgentGroups.d.ts.map +0 -1
- package/dist/composables/management/agents/useGetAgentRoles.d.ts +0 -19
- package/dist/composables/management/agents/useGetAgentRoles.d.ts.map +0 -1
- package/dist/composables/management/agents/useGetAgentTypes.d.ts +0 -16
- package/dist/composables/management/agents/useGetAgentTypes.d.ts.map +0 -1
- package/dist/composables/management/agents/useGetAgents.d.ts +0 -24
- package/dist/composables/management/agents/useGetAgents.d.ts.map +0 -1
- package/dist/composables/management/agents/useUpdateAgent.d.ts +0 -18
- package/dist/composables/management/agents/useUpdateAgent.d.ts.map +0 -1
- package/dist/composables/management/applications/useCreateApplication.d.ts +0 -11
- package/dist/composables/management/applications/useCreateApplication.d.ts.map +0 -1
- package/dist/composables/management/applications/useDeleteApplication.d.ts +0 -10
- package/dist/composables/management/applications/useDeleteApplication.d.ts.map +0 -1
- package/dist/composables/management/applications/useGetApplication.d.ts +0 -13
- package/dist/composables/management/applications/useGetApplication.d.ts.map +0 -1
- package/dist/composables/management/applications/useGetApplications.d.ts +0 -20
- package/dist/composables/management/applications/useGetApplications.d.ts.map +0 -1
- package/dist/composables/management/applications/useUpdateApplication.d.ts +0 -19
- package/dist/composables/management/applications/useUpdateApplication.d.ts.map +0 -1
- package/dist/composables/management/groups/useAddGroupMembers.d.ts +0 -25
- package/dist/composables/management/groups/useAddGroupMembers.d.ts.map +0 -1
- package/dist/composables/management/groups/useCreateGroup.d.ts +0 -11
- package/dist/composables/management/groups/useCreateGroup.d.ts.map +0 -1
- package/dist/composables/management/groups/useDeleteGroup.d.ts +0 -11
- package/dist/composables/management/groups/useDeleteGroup.d.ts.map +0 -1
- package/dist/composables/management/groups/useGetGroup.d.ts +0 -13
- package/dist/composables/management/groups/useGetGroup.d.ts.map +0 -1
- package/dist/composables/management/groups/useGetGroupMembers.d.ts +0 -22
- package/dist/composables/management/groups/useGetGroupMembers.d.ts.map +0 -1
- package/dist/composables/management/groups/useGetGroups.d.ts +0 -20
- package/dist/composables/management/groups/useGetGroups.d.ts.map +0 -1
- package/dist/composables/management/groups/useRemoveGroupMembers.d.ts +0 -13
- package/dist/composables/management/groups/useRemoveGroupMembers.d.ts.map +0 -1
- package/dist/composables/management/groups/useUpdateGroup.d.ts +0 -25
- package/dist/composables/management/groups/useUpdateGroup.d.ts.map +0 -1
- package/dist/composables/management/roles/useAddRoleAssignments.d.ts +0 -25
- package/dist/composables/management/roles/useAddRoleAssignments.d.ts.map +0 -1
- package/dist/composables/management/roles/useCreateRole.d.ts +0 -11
- package/dist/composables/management/roles/useCreateRole.d.ts.map +0 -1
- package/dist/composables/management/roles/useDeleteRole.d.ts +0 -10
- package/dist/composables/management/roles/useDeleteRole.d.ts.map +0 -1
- package/dist/composables/management/roles/useGetRole.d.ts +0 -13
- package/dist/composables/management/roles/useGetRole.d.ts.map +0 -1
- package/dist/composables/management/roles/useGetRoleAssignments.d.ts +0 -26
- package/dist/composables/management/roles/useGetRoleAssignments.d.ts.map +0 -1
- package/dist/composables/management/roles/useGetRoles.d.ts +0 -20
- package/dist/composables/management/roles/useGetRoles.d.ts.map +0 -1
- package/dist/composables/management/roles/useRemoveRoleAssignments.d.ts +0 -12
- package/dist/composables/management/roles/useRemoveRoleAssignments.d.ts.map +0 -1
- package/dist/composables/management/roles/useUpdateRole.d.ts +0 -25
- package/dist/composables/management/roles/useUpdateRole.d.ts.map +0 -1
- package/dist/composables/management/users/useCreateUser.d.ts +0 -11
- package/dist/composables/management/users/useCreateUser.d.ts.map +0 -1
- package/dist/composables/management/users/useDeleteUser.d.ts +0 -10
- package/dist/composables/management/users/useDeleteUser.d.ts.map +0 -1
- package/dist/composables/management/users/useGetUser.d.ts +0 -13
- package/dist/composables/management/users/useGetUser.d.ts.map +0 -1
- package/dist/composables/management/users/useGetUserGroups.d.ts +0 -18
- package/dist/composables/management/users/useGetUserGroups.d.ts.map +0 -1
- package/dist/composables/management/users/useGetUserTypes.d.ts +0 -16
- package/dist/composables/management/users/useGetUserTypes.d.ts.map +0 -1
- package/dist/composables/management/users/useGetUsers.d.ts +0 -18
- package/dist/composables/management/users/useGetUsers.d.ts.map +0 -1
- package/dist/composables/management/users/useUpdateUser.d.ts +0 -18
- package/dist/composables/management/users/useUpdateUser.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AgentCreate/AgentCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAgF,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"AgentCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AgentCreate/AgentCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAgF,MAAM,KAAK,CAAC;AAelH;;;;;;;;GAQG;AACH,QAAA,MAAM,WAAW,EAAE,SA4DjB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AgentDetails/AgentDetails.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AgentDetails/AgentDetails.ts"],"names":[],"mappings":"AAcA,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AAgBrG;;;;;;;;;;GAUG;AACH,QAAA,MAAM,YAAY,EAAE,SA2ElB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Agent, type MembershipGroup } from '@thunderid/browser';
|
|
1
|
+
import { type AccountLifecycleAction, type Agent, type MembershipGroup } from '@thunderid/browser';
|
|
2
2
|
import { type Component } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* What `BaseAgentDetails` hands its default scoped slot, so the agent can be shown with any UI.
|
|
@@ -9,8 +9,13 @@ export interface BaseAgentDetailsRenderProps {
|
|
|
9
9
|
groups: MembershipGroup[];
|
|
10
10
|
isDeleting: boolean;
|
|
11
11
|
isLoading: boolean;
|
|
12
|
+
isRunningLifecycleAction: boolean;
|
|
13
|
+
/** The account lifecycle actions offered for the agent. Empty when none is allowed. */
|
|
14
|
+
lifecycleActions: AccountLifecycleAction[];
|
|
12
15
|
/** Deletes the agent. Undefined when deletion is not allowed, including for read-only agents. */
|
|
13
16
|
onDelete?: () => void;
|
|
17
|
+
/** Runs an account lifecycle action, with the operator's note on a suspension. Undefined when none is allowed. */
|
|
18
|
+
onLifecycleAction?: (action: AccountLifecycleAction, operatorNote?: string) => void;
|
|
14
19
|
roles: string[];
|
|
15
20
|
}
|
|
16
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseAgentDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AgentDetails/BaseAgentDetails.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"BaseAgentDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AgentDetails/BaseAgentDetails.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,KAAK,EACV,KAAK,eAAe,EAGrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AA4BrG;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,wBAAwB,EAAE,OAAO,CAAC;IAClC,uFAAuF;IACvF,gBAAgB,EAAE,sBAAsB,EAAE,CAAC;IAC3C,iGAAiG;IACjG,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,kHAAkH;IAClH,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpF,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAID;;;;;;GAMG;AACH,QAAA,MAAM,gBAAgB,EAAE,SA2KtB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AgentList/AgentList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/AgentList/AgentList.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAC;AAOnC;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,SAAS,EAAE,SAyBf,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an application with an OAuth client through the management API in the given organization
|
|
4
|
+
* unit, or the signed-in user's own. When the server returns a client secret, shows it once and emits
|
|
5
|
+
* `created` with the application after the user has copied it; otherwise emits `created` right away.
|
|
6
|
+
*
|
|
7
|
+
* The server guards applications with the root `system` permission, for reading and for changes alike;
|
|
8
|
+
* it defines no application-specific permission. Gate the view and its actions on it with
|
|
9
|
+
* `useGrantedPermissions().can('system')`.
|
|
10
|
+
*
|
|
11
|
+
* Slots: `default`, a scoped slot that replaces the form with custom UI and receives
|
|
12
|
+
* `BaseApplicationCreateRenderProps`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```vue
|
|
16
|
+
* <ApplicationCreate @created="(application) => (selectedApplicationId = application.id)" />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const ApplicationCreate: Component;
|
|
20
|
+
export default ApplicationCreate;
|
|
21
|
+
//# sourceMappingURL=ApplicationCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/ApplicationCreate/ApplicationCreate.ts"],"names":[],"mappings":"AAWA,OAAO,EAAC,KAAK,SAAS,EAAqF,MAAM,KAAK,CAAC;AAUvH;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,iBAAiB,EAAE,SAsEvB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ApplicationSubmission, type SelectOption } from '@thunderid/browser';
|
|
2
|
+
import { type Component } from 'vue';
|
|
3
|
+
import { type AdminFormRenderProps } from '../shared/adminFormProps';
|
|
4
|
+
import { type ApplicationFormValues, type ApplicationTextField } from '../shared/renderApplicationFields';
|
|
5
|
+
/**
|
|
6
|
+
* The application `BaseApplicationCreate` emits on `submit`. The organization unit is added by the caller.
|
|
7
|
+
*/
|
|
8
|
+
export type ApplicationCreateSubmission = ApplicationSubmission;
|
|
9
|
+
/**
|
|
10
|
+
* What `BaseApplicationCreate` hands its default scoped slot, so the form can be built with any UI.
|
|
11
|
+
*/
|
|
12
|
+
export interface BaseApplicationCreateRenderProps extends AdminFormRenderProps {
|
|
13
|
+
/** The client secret of the application just created, to show once. `null` while there is none. */
|
|
14
|
+
clientSecret: string | null;
|
|
15
|
+
/** The grant types to choose from, with translated labels. */
|
|
16
|
+
grantTypeOptions: SelectOption[];
|
|
17
|
+
/** Sets the chosen grant types. */
|
|
18
|
+
handleGrantTypesChange: (grantTypes: string[]) => void;
|
|
19
|
+
/** Sets one text field of the form. `redirectUris` takes URIs separated by commas. */
|
|
20
|
+
handleInputChange: (field: ApplicationTextField, value: string) => void;
|
|
21
|
+
/** Sets whether the client is public. */
|
|
22
|
+
handlePublicClientChange: (publicClient: boolean) => void;
|
|
23
|
+
/** Hides the client secret once it has been copied. Undefined while there is no secret. */
|
|
24
|
+
onSecretDismiss?: () => void;
|
|
25
|
+
values: ApplicationFormValues;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A form that collects a new application's name, description, links and OAuth basics: redirect URIs,
|
|
29
|
+
* grant types and whether the client is public. Holds no data of its own: handle the `submit` event,
|
|
30
|
+
* which carries an {@link ApplicationCreateSubmission}, and pass back the client secret the server
|
|
31
|
+
* returned as `clientSecret` to show it once. Slots: `default`, a scoped slot that replaces the form
|
|
32
|
+
* with custom UI and receives {@link BaseApplicationCreateRenderProps}.
|
|
33
|
+
*/
|
|
34
|
+
declare const BaseApplicationCreate: Component;
|
|
35
|
+
export default BaseApplicationCreate;
|
|
36
|
+
//# sourceMappingURL=BaseApplicationCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseApplicationCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/ApplicationCreate/BaseApplicationCreate.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,qBAAqB,EAI1B,KAAK,YAAY,EAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EASf,MAAM,KAAK,CAAC;AACb,OAAO,EAAsB,KAAK,oBAAoB,EAAiB,MAAM,0BAA0B,CAAC;AAIxG,OAAgC,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAC1B,MAAM,mCAAmC,CAAC;AAG3C;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAAC;AAKhE;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,oBAAoB;IAC5E,mGAAmG;IACnG,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,8DAA8D;IAC9D,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,mCAAmC;IACnC,sBAAsB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACvD,sFAAsF;IACtF,iBAAiB,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,yCAAyC;IACzC,wBAAwB,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1D,2FAA2F;IAC3F,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,MAAM,EAAE,qBAAqB,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,QAAA,MAAM,qBAAqB,EAAE,SAkG3B,CAAC;AAEH,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Shows an application and its OAuth configuration, and optionally lets the signed-in user edit it,
|
|
4
|
+
* regenerate its client secret (shown once) or delete it. Emits `deleted` after the application has
|
|
5
|
+
* been deleted.
|
|
6
|
+
*
|
|
7
|
+
* The server guards applications with the root `system` permission, for reading and for changes alike;
|
|
8
|
+
* it defines no application-specific permission. Gate the view and its actions on it with
|
|
9
|
+
* `useGrantedPermissions().can('system')`.
|
|
10
|
+
*
|
|
11
|
+
* Slots: `actions`, rendered next to the application's name; `default`, a scoped slot that replaces the
|
|
12
|
+
* view with custom UI and receives `BaseApplicationDetailsRenderProps`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```vue
|
|
16
|
+
* <ApplicationDetails
|
|
17
|
+
* :application-id="applicationId"
|
|
18
|
+
* :editable="can('system')"
|
|
19
|
+
* :deletable="can('system')"
|
|
20
|
+
* :secret-regenerable="can('system')"
|
|
21
|
+
* @deleted="router.push('/applications')"
|
|
22
|
+
* />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const ApplicationDetails: Component;
|
|
26
|
+
export default ApplicationDetails;
|
|
27
|
+
//# sourceMappingURL=ApplicationDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/ApplicationDetails/ApplicationDetails.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AAwBrG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,QAAA,MAAM,kBAAkB,EAAE,SAiHxB,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type AccountLifecycleAction, type Application, type ApplicationSubmission, type OAuth2Config } from '@thunderid/browser';
|
|
2
|
+
import { type Component } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* The edited fields `BaseApplicationDetails` hands `onUpdate`. Whether the client is public does not change.
|
|
5
|
+
*/
|
|
6
|
+
export type ApplicationUpdateSubmission = Omit<ApplicationSubmission, 'publicClient'>;
|
|
7
|
+
/**
|
|
8
|
+
* What `BaseApplicationDetails` hands its default scoped slot, so the application can be shown with any UI.
|
|
9
|
+
*/
|
|
10
|
+
export interface BaseApplicationDetailsRenderProps {
|
|
11
|
+
application?: Application;
|
|
12
|
+
/** The new client secret, to show once. `null` while there is none. */
|
|
13
|
+
clientSecret: string | null;
|
|
14
|
+
error: string | null;
|
|
15
|
+
isDeleting: boolean;
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
isRegeneratingSecret: boolean;
|
|
18
|
+
isRunningLifecycleAction: boolean;
|
|
19
|
+
isUpdating: boolean;
|
|
20
|
+
/** The account lifecycle actions offered for the application. Empty when none is allowed. */
|
|
21
|
+
lifecycleActions: AccountLifecycleAction[];
|
|
22
|
+
/** The application's OAuth configuration, without its client secret. Undefined when it has no OAuth client. */
|
|
23
|
+
oauth?: Omit<OAuth2Config, 'clientSecret'>;
|
|
24
|
+
/** Deletes the application. Undefined when deletion is not allowed, including for read-only applications. */
|
|
25
|
+
onDelete?: () => void;
|
|
26
|
+
/** Runs an account lifecycle action. Undefined when none is allowed. */
|
|
27
|
+
onLifecycleAction?: (action: AccountLifecycleAction, operatorNote?: string) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Gives the application a new client secret. Undefined when not allowed, for read-only applications
|
|
30
|
+
* and for applications without a confidential OAuth client.
|
|
31
|
+
*/
|
|
32
|
+
onRegenerateSecret?: () => void;
|
|
33
|
+
/** Hides the new client secret once it has been copied. Undefined while there is no secret. */
|
|
34
|
+
onSecretDismiss?: () => void;
|
|
35
|
+
/** Saves edited fields. Undefined when editing is not allowed, including for read-only applications. */
|
|
36
|
+
onUpdate?: (application: ApplicationUpdateSubmission) => void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Shows an application's general fields and OAuth configuration. Holds no data of its own: pass the
|
|
40
|
+
* application and handle editing, deletion and client secret regeneration, each offered only when its
|
|
41
|
+
* handler is set.
|
|
42
|
+
*
|
|
43
|
+
* Slots: `actions`, rendered next to the application's name; `default`, a scoped slot that replaces the
|
|
44
|
+
* view with custom UI and receives {@link BaseApplicationDetailsRenderProps}.
|
|
45
|
+
*/
|
|
46
|
+
declare const BaseApplicationDetails: Component;
|
|
47
|
+
export default BaseApplicationDetails;
|
|
48
|
+
//# sourceMappingURL=BaseApplicationDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseApplicationDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/ApplicationDetails/BaseApplicationDetails.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAEhB,KAAK,qBAAqB,EAG1B,KAAK,YAAY,EAIlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EASf,MAAM,KAAK,CAAC;AAmBb;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC,qBAAqB,EAAE,cAAc,CAAC,CAAC;AAqBtF;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,uEAAuE;IACvE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,wBAAwB,EAAE,OAAO,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,6FAA6F;IAC7F,gBAAgB,EAAE,sBAAsB,EAAE,CAAC;IAC3C,+GAA+G;IAC/G,KAAK,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAC3C,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpF;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,+FAA+F;IAC/F,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,wGAAwG;IACxG,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,2BAA2B,KAAK,IAAI,CAAC;CAC/D;AAwBD;;;;;;;GAOG;AACH,QAAA,MAAM,sBAAsB,EAAE,SA8T5B,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Lists the applications the signed-in user is allowed to see, a page at a time.
|
|
4
|
+
*
|
|
5
|
+
* The server guards applications with the root `system` permission, for reading and for changes alike;
|
|
6
|
+
* it defines no application-specific permission. Gate the view and its actions on it with
|
|
7
|
+
* `useGrantedPermissions().can('system')`.
|
|
8
|
+
*
|
|
9
|
+
* Props: `limit`, `selectedApplicationId`, `onSelect` (`@select`), `title`, `description`, `className`,
|
|
10
|
+
* `preferences`. Slots: `actions`; `default`, a scoped slot that replaces the table with custom UI and
|
|
11
|
+
* receives `AdminListRenderProps` (rows, default columns, loading and error state, pagination and selection).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```vue
|
|
15
|
+
* <ApplicationList @select="(application) => (selectedApplicationId = application.id)" />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare const ApplicationList: Component;
|
|
19
|
+
export default ApplicationList;
|
|
20
|
+
//# sourceMappingURL=ApplicationList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/ApplicationList/ApplicationList.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAC;AAMnC;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,eAAe,EAAE,SAwBrB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Lists applications with their client identifier, type and, when the server reports it, access status. Holds no data of its own: pass the page
|
|
4
|
+
* of applications and handle selection and pagination.
|
|
5
|
+
*
|
|
6
|
+
* Props: `applications` (required), `selectedApplicationId`, `isLoading`, `error`, `limit`, `offset`,
|
|
7
|
+
* `totalResults`, `onPageChange`, `onSelect` (`@select`), `title`, `description`, `className`, `preferences`.
|
|
8
|
+
* Slots: `actions`, rendered next to the title; `default`, a scoped slot that replaces the table with custom UI and
|
|
9
|
+
* receives `AdminListRenderProps` (rows, default columns, loading and error state, pagination and selection).
|
|
10
|
+
*/
|
|
11
|
+
declare const BaseApplicationList: Component;
|
|
12
|
+
export default BaseApplicationList;
|
|
13
|
+
//# sourceMappingURL=BaseApplicationList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseApplicationList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/ApplicationList/BaseApplicationList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,SAAS,EAAqB,MAAM,KAAK,CAAC;AAqBvD;;;;;;;;GAQG;AACH,QAAA,MAAM,mBAAmB,EAAE,SAoCzB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/GroupCreate/GroupCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAsE,MAAM,KAAK,CAAC;AAaxG;;;;;;;;GAQG;AACH,QAAA,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"GroupCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/GroupCreate/GroupCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAsE,MAAM,KAAK,CAAC;AAaxG;;;;;;;;GAQG;AACH,QAAA,MAAM,WAAW,EAAE,SA8CjB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/GroupList/GroupList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GroupList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/GroupList/GroupList.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAC;AAMnC;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,SAAS,EAAE,SAwBf,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupMembers.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/GroupMembers/GroupMembers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GroupMembers.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/GroupMembers/GroupMembers.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AAuBrG;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY,EAAE,SAsGlB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleAssignments.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/RoleAssignments/RoleAssignments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RoleAssignments.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/RoleAssignments/RoleAssignments.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAC,KAAK,SAAS,EAAkF,MAAM,KAAK,CAAC;AAwBpH;;;;;;;;GAQG;AACH,QAAA,MAAM,eAAe,EAAE,SA8HrB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/RoleCreate/RoleCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAsE,MAAM,KAAK,CAAC;AAaxG;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"RoleCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/RoleCreate/RoleCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAsE,MAAM,KAAK,CAAC;AAaxG;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU,EAAE,SA8ChB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/RoleList/RoleList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RoleList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/RoleList/RoleList.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAC;AAMnC;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,QAAQ,EAAE,SAwBd,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RolePermissions.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/RolePermissions/RolePermissions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AAerG;;;;;;;GAOG;AACH,QAAA,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"RolePermissions.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/RolePermissions/RolePermissions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AAerG;;;;;;;GAOG;AACH,QAAA,MAAM,eAAe,EAAE,SAyCrB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/UserCreate/UserCreate.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"UserCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/UserCreate/UserCreate.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,KAAK,CAAC;AAmBb;;;;;;;;;GASG;AACH,QAAA,MAAM,UAAU,EAAE,SA8EhB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ManagedUser, type MembershipGroup } from '@thunderid/browser';
|
|
1
|
+
import { type AccountLifecycleAction, type ManagedUser, type MembershipGroup } from '@thunderid/browser';
|
|
2
2
|
import { type Component } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* What `BaseUserDetails` hands its default scoped slot, so the user can be shown with any UI.
|
|
@@ -12,9 +12,17 @@ export interface BaseUserDetailsRenderProps {
|
|
|
12
12
|
groups: MembershipGroup[];
|
|
13
13
|
isDeleting: boolean;
|
|
14
14
|
isLoading: boolean;
|
|
15
|
+
isRunningLifecycleAction: boolean;
|
|
15
16
|
isUpdating: boolean;
|
|
17
|
+
/** The account lifecycle actions offered for the user. Empty when none is allowed. */
|
|
18
|
+
lifecycleActions: AccountLifecycleAction[];
|
|
16
19
|
/** Deletes the user. Undefined when deletion is not allowed, including for read-only users. */
|
|
17
20
|
onDelete?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Runs an account lifecycle action, with the operator's note on a suspension. Undefined when none is
|
|
23
|
+
* allowed.
|
|
24
|
+
*/
|
|
25
|
+
onLifecycleAction?: (action: AccountLifecycleAction, operatorNote?: string) => void;
|
|
18
26
|
/** Saves the given attributes. Undefined when editing is not allowed, including for read-only users. */
|
|
19
27
|
onUpdate?: (attributes: Record<string, unknown>) => void;
|
|
20
28
|
user?: ManagedUser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseUserDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/UserDetails/BaseUserDetails.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"BaseUserDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/UserDetails/BaseUserDetails.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,eAAe,EAGrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EASf,MAAM,KAAK,CAAC;AAgCb;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,wBAAwB,EAAE,OAAO,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,sFAAsF;IACtF,gBAAgB,EAAE,sBAAsB,EAAE,CAAC;IAC3C,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpF,wGAAwG;IACxG,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACzD,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAYD;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,EAAE,SAwPrB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/UserDetails/UserDetails.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/UserDetails/UserDetails.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AAwBrG;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,EAAE,SAiGjB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/UserList/UserList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/UserList/UserList.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAC;AAOnC;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,QAAQ,EAAE,SA6Bd,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* The translated access status of an identity, or its raw value when the status is one this SDK does
|
|
4
|
+
* not know. Renders nothing when the server reports no status.
|
|
5
|
+
*/
|
|
6
|
+
declare const AccessStatusBadge: Component;
|
|
7
|
+
export default AccessStatusBadge;
|
|
8
|
+
//# sourceMappingURL=AccessStatusBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessStatusBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/shared/AccessStatusBadge.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,SAAS,EAAgD,MAAM,KAAK,CAAC;AAKlF;;;GAGG;AACH,QAAA,MAAM,iBAAiB,EAAE,SAsBvB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* One button per account lifecycle action. Suspending and unsuspending ask for confirmation inline;
|
|
4
|
+
* unlocking is remedial and runs straight away. Emits `action` with the action and, on a suspension
|
|
5
|
+
* that collects one, the operator's note.
|
|
6
|
+
*/
|
|
7
|
+
declare const AccountLifecycleButtons: Component;
|
|
8
|
+
export default AccountLifecycleButtons;
|
|
9
|
+
//# sourceMappingURL=AccountLifecycleButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountLifecycleButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/shared/AccountLifecycleButtons.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,SAAS,EASf,MAAM,KAAK,CAAC;AAoBb;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,EAAE,SAsG7B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Shows a client secret the one time it can be read, masked until revealed, with a copy button.
|
|
4
|
+
*/
|
|
5
|
+
declare const ClientSecretNotice: Component;
|
|
6
|
+
export default ClientSecretNotice;
|
|
7
|
+
//# sourceMappingURL=ClientSecretNotice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientSecretNotice.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/shared/ClientSecretNotice.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,SAAS,EAAgD,MAAM,KAAK,CAAC;AAclF;;GAEG;AACH,QAAA,MAAM,kBAAkB,EAAE,SAwBxB,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -9,8 +9,8 @@ import { type DataTableColumn } from '../../primitives/DataTable/DataTable';
|
|
|
9
9
|
export interface AdminListDefinition<T> {
|
|
10
10
|
/** BEM block of the component. */
|
|
11
11
|
block: string;
|
|
12
|
-
/** Builds the columns with the active translation function. */
|
|
13
|
-
columns: (t: AdminTranslate) => DataTableColumn<T>[];
|
|
12
|
+
/** Builds the columns with the active translation function, for the rows being shown. */
|
|
13
|
+
columns: (t: AdminTranslate, rows: T[]) => DataTableColumn<T>[];
|
|
14
14
|
/** Translation key of the message shown when there are no rows. */
|
|
15
15
|
emptyKey: string;
|
|
16
16
|
/** Returns a row's identifier. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAdminList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/shared/createAdminList.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAC,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAoD,MAAM,KAAK,CAAC;AACrG,OAAoB,EAAC,KAAK,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAEjE,OAA4B,EAAC,KAAK,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAC/E,OAAkB,EAAC,KAAK,eAAe,EAAC,MAAM,sCAAsC,CAAC;AAErF;;GAEG;AACH,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd
|
|
1
|
+
{"version":3,"file":"createAdminList.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/shared/createAdminList.ts"],"names":[],"mappings":"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"}
|
|
@@ -31,7 +31,7 @@ export interface ConnectedAdminListDefinition<TData, TRow> {
|
|
|
31
31
|
total: (data: TData | undefined) => number | undefined;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Creates a list that fetches its own pages through
|
|
34
|
+
* Creates a list that fetches its own pages through `useResourceQuery` and renders the given
|
|
35
35
|
* presentational list. Server errors are mapped to translated messages; raw server text is never shown.
|
|
36
36
|
*
|
|
37
37
|
* @param definition - What the list fetches and renders.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
2
|
+
import type { AdminTranslate } from './useAdminTranslation';
|
|
3
|
+
/**
|
|
4
|
+
* The text fields of the application forms.
|
|
5
|
+
*/
|
|
6
|
+
export type ApplicationTextField = 'description' | 'logoUrl' | 'name' | 'redirectUris' | 'url';
|
|
7
|
+
/**
|
|
8
|
+
* The values of the application forms. `redirectUris` is the text of the field, URIs separated by
|
|
9
|
+
* commas.
|
|
10
|
+
*/
|
|
11
|
+
export interface ApplicationFormValues {
|
|
12
|
+
description: string;
|
|
13
|
+
grantTypes: string[];
|
|
14
|
+
logoUrl: string;
|
|
15
|
+
name: string;
|
|
16
|
+
publicClient: boolean;
|
|
17
|
+
redirectUris: string;
|
|
18
|
+
url: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Renders the general fields and OAuth basics of an application, shared by the create form and the
|
|
22
|
+
* edit form. The public client choice shows only when `onPublicClientChange` is given.
|
|
23
|
+
*/
|
|
24
|
+
declare const renderApplicationFields: ({ onGrantTypesChange, onInputChange, onPublicClientChange, t, uid, values, }: {
|
|
25
|
+
onGrantTypesChange: (grantTypes: string[]) => void;
|
|
26
|
+
onInputChange: (field: ApplicationTextField, value: string) => void;
|
|
27
|
+
onPublicClientChange?: (publicClient: boolean) => void;
|
|
28
|
+
t: AdminTranslate;
|
|
29
|
+
/** A unique prefix for the field names. */
|
|
30
|
+
uid: string;
|
|
31
|
+
values: ApplicationFormValues;
|
|
32
|
+
}) => VNode[];
|
|
33
|
+
export default renderApplicationFields;
|
|
34
|
+
//# sourceMappingURL=renderApplicationFields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderApplicationFields.d.ts","sourceRoot":"","sources":["../../../../src/components/admin/shared/renderApplicationFields.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,KAAK,EAAI,MAAM,KAAK,CAAC;AAClC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAM1D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,cAAc,GAAG,KAAK,CAAC;AAE/F;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,QAAA,MAAM,uBAAuB,GAAI,8EAO9B;IACD,kBAAkB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnD,aAAa,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpE,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,CAAC,EAAE,cAAc,CAAC;IAClB,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,qBAAqB,CAAC;CAC/B,KAAG,KAAK,EA+CR,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthOptionFactoryCore.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/flow/AuthOptionFactoryCore.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,oBAAoB,EACpB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"AuthOptionFactoryCore.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/flow/AuthOptionFactoryCore.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/sign-in/SignIn.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/sign-in/SignIn.ts"],"names":[],"mappings":"AAGA,OAAO,EAOL,qBAAqB,EAErB,yBAAyB,EAIzB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EAWf,MAAM,KAAK,CAAC;AAmBb;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,OAAO,EAAE,yBAAyB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACjE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,MAAM,EAAE,SAsmBZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/TextField/TextField.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/TextField/TextField.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AAiBrG,QAAA,MAAM,SAAS,EAAE,SA0Ef,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type AccessStatusValue, type AccountLifecycleAction, type AccountLifecycleSubjectKind, type ResourceQueryKey } from '@thunderid/browser';
|
|
2
|
+
import { type ComputedRef } from 'vue';
|
|
3
|
+
export interface AccountLifecycleOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Whether to offer the actions at all. The configured flows are read only when it is on.
|
|
6
|
+
*/
|
|
7
|
+
enabled: () => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Query keys to refetch after an action, such as the record and the list it appears in.
|
|
10
|
+
*/
|
|
11
|
+
invalidatedKeys: () => ResourceQueryKey[];
|
|
12
|
+
kind: AccountLifecycleSubjectKind;
|
|
13
|
+
/**
|
|
14
|
+
* The identity's effective access status, from the read that rendered it.
|
|
15
|
+
*/
|
|
16
|
+
status: () => AccessStatusValue | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Identifier of the user, agent or application.
|
|
19
|
+
*/
|
|
20
|
+
subject: () => string;
|
|
21
|
+
}
|
|
22
|
+
export interface AccountLifecycleState {
|
|
23
|
+
/**
|
|
24
|
+
* The actions to offer now: allowed by the status and backed by a configured flow.
|
|
25
|
+
*/
|
|
26
|
+
actions: ComputedRef<AccountLifecycleAction[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Why the last action failed.
|
|
29
|
+
*/
|
|
30
|
+
error: ComputedRef<Error | null>;
|
|
31
|
+
isRunning: ComputedRef<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Why the configured flows could not be read, so no action can be offered.
|
|
34
|
+
*/
|
|
35
|
+
loadError: ComputedRef<Error | null>;
|
|
36
|
+
run: (action: AccountLifecycleAction, operatorNote?: string) => void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Offers the account lifecycle actions (suspend, unsuspend, unlock) of a user, agent or application and
|
|
40
|
+
* runs them. These actions have no management API endpoint: they run only through the administration
|
|
41
|
+
* flows the server configures, so an action is offered only when its flow is configured.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* const lifecycle = useAccountLifecycle({
|
|
46
|
+
* enabled: () => props.lifecycleActions,
|
|
47
|
+
* invalidatedKeys: () => [[UserQueryKeys.USER, props.userId]],
|
|
48
|
+
* kind: 'user',
|
|
49
|
+
* status: () => user.data.value?.status?.value,
|
|
50
|
+
* subject: () => props.userId,
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare const useAccountLifecycle: ({ enabled, invalidatedKeys, kind, status, subject, }: AccountLifecycleOptions) => AccountLifecycleState;
|
|
55
|
+
export default useAccountLifecycle;
|
|
56
|
+
//# sourceMappingURL=useAccountLifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccountLifecycle.d.ts","sourceRoot":"","sources":["../../../src/composables/management/useAccountLifecycle.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAG3B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EAItB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,KAAK,WAAW,EAAW,MAAM,KAAK,CAAC;AAW/C,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB;;OAEG;IACH,eAAe,EAAE,MAAM,gBAAgB,EAAE,CAAC;IAC1C,IAAI,EAAE,2BAA2B,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,iBAAiB,GAAG,SAAS,CAAC;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC,sBAAsB,EAAE,CAAC,CAAC;IAC/C;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IACjC,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IACrC,GAAG,EAAE,CAAC,MAAM,EAAE,sBAAsB,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACtE;AAED;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,mBAAmB,GAAI,sDAM1B,uBAAuB,KAAG,qBAsB5B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -13,7 +13,7 @@ export interface ManagementEndpoint {
|
|
|
13
13
|
/**
|
|
14
14
|
* The management resource collections a composable can address.
|
|
15
15
|
*/
|
|
16
|
-
export type ManagementEndpointKey = Extract<ResourceEndpointKey, 'agents' | 'agentTypes' | 'applications' | 'groups' | 'roles' | 'users' | 'userTypes'>;
|
|
16
|
+
export type ManagementEndpointKey = Extract<ResourceEndpointKey, 'agents' | 'agentTypes' | 'applications' | 'configurationVersions' | 'connections' | 'design' | 'export' | 'flows' | 'gateways' | 'groups' | 'i18n' | 'import' | 'notificationTemplates' | 'organizationUnits' | 'resourceServers' | 'roles' | 'secrets' | 'serverConfig' | 'users' | 'userTypes' | 'variables'>;
|
|
17
17
|
/**
|
|
18
18
|
* Resolves where a management resource collection lives, honoring the provider's `endpoints`
|
|
19
19
|
* override, or `{baseUrl}/{collection}` when none is set.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useManagementEndpoint.d.ts","sourceRoot":"","sources":["../../../src/composables/management/useManagementEndpoint.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,mBAAmB,EAA0B,MAAM,oBAAoB,CAAC;AAGhF;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;OAGG;IACH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,CACzC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useManagementEndpoint.d.ts","sourceRoot":"","sources":["../../../src/composables/management/useManagementEndpoint.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,mBAAmB,EAA0B,MAAM,oBAAoB,CAAC;AAGhF;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;OAGG;IACH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,CACzC,mBAAmB,EACjB,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,uBAAuB,GACvB,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,UAAU,GACV,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,uBAAuB,GACvB,mBAAmB,GACnB,iBAAiB,GACjB,OAAO,GACP,SAAS,GACT,cAAc,GACd,OAAO,GACP,WAAW,GACX,WAAW,CACd,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,qBAAqB,GAAI,KAAK,qBAAqB,KAAG,kBAI3D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ManagementRequestConfig } from '@thunderid/browser';
|
|
2
|
+
import { type ManagementEndpointKey } from './useManagementEndpoint';
|
|
3
|
+
/**
|
|
4
|
+
* Returns the request config the SDK's management API functions take for a collection: the server URL,
|
|
5
|
+
* the collection URL when `endpoints` overrides it, and a fetcher that sends the signed-in user's access
|
|
6
|
+
* token (`ThunderIDProvider`'s `http.fetcher` when set).
|
|
7
|
+
*
|
|
8
|
+
* Use it to call the API functions from an app's own data layer, such as TanStack Query:
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const config = useManagementRequestConfig('groups');
|
|
13
|
+
* const groups = useQuery({
|
|
14
|
+
* queryKey: [GroupQueryKeys.GROUPS, {limit, offset}],
|
|
15
|
+
* queryFn: () => getGroups({...config, limit, offset}),
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const useManagementRequestConfig: (collection: ManagementEndpointKey) => ManagementRequestConfig;
|
|
20
|
+
export default useManagementRequestConfig;
|
|
21
|
+
//# sourceMappingURL=useManagementRequestConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useManagementRequestConfig.d.ts","sourceRoot":"","sources":["../../../src/composables/management/useManagementRequestConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAChE,OAA8B,EAAC,KAAK,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAI1F;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,0BAA0B,GAAI,YAAY,qBAAqB,KAAG,uBAGtE,CAAC;AAEH,eAAe,0BAA0B,CAAC"}
|