authula 0.7.15 → 0.8.0-beta.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.

Potentially problematic release.


This version of authula might be problematic. Click here for more details.

Files changed (40) hide show
  1. package/README.md +196 -40
  2. package/dist/{index.js → core-Csdt31Tx.js} +6 -17
  3. package/dist/core-Csdt31Tx.js.map +1 -0
  4. package/dist/core.d.ts +2 -0
  5. package/dist/core.js +4 -0
  6. package/dist/{custom-fetch-CXJ4-i7I.js → custom-fetch-DJxn7nVP.js} +26 -10
  7. package/dist/custom-fetch-DJxn7nVP.js.map +1 -0
  8. package/dist/framework-client-CsGjKPXl.d.ts +8 -0
  9. package/dist/framework-client-D-yGjqAx.js +50 -0
  10. package/dist/framework-client-D-yGjqAx.js.map +1 -0
  11. package/dist/{index-DVhn7FFt.d.ts → index-Cuok0NWW.d.ts} +4 -448
  12. package/dist/models.d.ts +2 -0
  13. package/dist/models.js +11 -0
  14. package/dist/models.js.map +1 -0
  15. package/dist/plugins.d.ts +513 -0
  16. package/dist/plugins.js +2472 -0
  17. package/dist/plugins.js.map +1 -0
  18. package/dist/react.d.ts +3728 -0
  19. package/dist/{plugins/index.js → react.js} +975 -1256
  20. package/dist/react.js.map +1 -0
  21. package/dist/{rolldown-runtime-w6R9maHv.js → rolldown-runtime-CNh9ExCG.js} +1 -2
  22. package/dist/sdk-Cu28BXFh.d.ts +102 -0
  23. package/dist/solid.d.ts +3955 -0
  24. package/dist/solid.js +5461 -0
  25. package/dist/solid.js.map +1 -0
  26. package/dist/svelte.d.ts +3368 -0
  27. package/dist/svelte.js +5500 -0
  28. package/dist/svelte.js.map +1 -0
  29. package/dist/vue.d.ts +3289 -0
  30. package/dist/vue.js +5644 -0
  31. package/dist/vue.js.map +1 -0
  32. package/dist/zod.d.ts +3862 -0
  33. package/dist/zod.js +1480 -0
  34. package/dist/zod.js.map +1 -0
  35. package/package.json +68 -16
  36. package/dist/custom-fetch-CXJ4-i7I.js.map +0 -1
  37. package/dist/index.d.ts +0 -2
  38. package/dist/index.js.map +0 -1
  39. package/dist/plugins/index.d.ts +0 -4907
  40. package/dist/plugins/index.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import { $ as ReplaceRolePermissionResponse, $n as AddRolePermissionResponse, $t as DisableResponse, A as UpdateApiKeyRequestMetadata, An as CreateApiKeyRequest, At as ListOrganizationInvitationsParams, B as SignOutResponse, Bn as User, Bt as GetOrganizationInvitationResponse, C as UpdateOrganizationTeamRequest, Cn as CreateOrganizationTeamRequestMetadata, Ct as OrganizationTeamMemberResponse, D as UpdateOrganizationMemberRequest, Dn as CreateOrganizationInvitationQuery, Dt as ListOrganizationMembersParams, E as UpdateOrganizationRequestMetadata, En as CreateOrganizationInvitationRequest, Et as OrganizationMemberResponse, F as StartImpersonationResponse, Fn as CheckUserPermissionsRequest, Ft as UserPermissionInfo, G as RoleDetails, Gn as AssignUserRoleResponse, Gt as GetMeResponse, H as SignInResponse, Hn as BanUserResponse, Ht as OrganizationSummaryMetadata, I as StartImpersonationRequest, In as ChangePasswordResponse, It as PermissionGrantSource, J as RequestPasswordResetRequest, Jn as ApiKeyMetadata, Jt as GetApiKeyResponse, K as RevokeSessionResponse, Kn as AssignUserRoleRequest, Kt as GetImpersonationByIDResponse, L as SignUpResponse, Ln as ChangePasswordRequest, Lt as GetUserByIDResponse, M as UpdateAccountRequest, Mn as CreateAccountResponse, Mt as Jwk, N as UnbanUserResponse, Nn as CreateAccountRequest, Nt as GetUserStateResponse, O as UpdateApiKeyResponse, On as CreateOrganizationInvitationParams, Ot as ListOrganizationInvitationsResponse, P as StopImpersonationResponse, Pn as CheckUserPermissionsResponse, Pt as GetUserPermissionsResponse, Q as ReplaceRolePermissionsRequest, Qn as AdminSessionState, Qt as EnableResponse, R as SignUpRequest, Rn as ChangeEmailResponse, Rt as GetTOTPURIResponse, S as UpdatePermissionRequest, Sn as CreateOrganizationTeamRequest, St as ListOrganizationTeamMembersResponse, T as UpdateOrganizationRequest, Tn as CreateOrganizationRequestMetadata, Tt as ListOrganizationMembersResponse, U as SignInRequest, Un as BanUserRequest, Ut as OrganizationInvitation, V as SignOutRequest, Vn as UserMetadata, Vt as OrganizationSummary, W as SendEmailVerificationRequest, Wn as AuthorizeResponse, Wt as OrganizationInvitationStatus, X as ReplaceUserRolesResponse, Xn as AdminUserSession, Xt as GetAccountByIDResponse, Y as RequestEmailChangeRequest, Yn as AdminUserState, Yt as GetAllApiKeysResponse, Z as ReplaceUserRolesRequest, Zn as Session, Zt as GenerateBackupCodesResponse, _ as UpdateUserRequest, _n as Role, _t as ListOrganizationsParams, a as VerifyBackupCodeResponse, an as DeleteOrganizationTeamResponse, ar as AcceptOrganizationInvitationParams, at as OrganizationMember, b as UpdateRoleRequest, bn as Permission, bt as OrganizationTeamMetadata, c as VerifyApiKeyRequest, cn as DeleteOrganizationMemberResponse, ct as MagicLinkVerifyResponse, d as UserAccountsResponse, dn as CreateUserStateRequest, dt as MagicLinkExchangeResponse, en as DeleteUserStateResponse, er as AddRolePermissionRequest, et as RemoveUserRoleResponse, f as UpsertUserStateResponse, fn as CreateUserResponse, ft as MagicLinkExchangeRequest, g as UpdateUserResponse, gn as CreateRoleResponse, gt as OrganizationMetadata, h as UpsertSessionStateRequest, hn as CreateSessionStateRequest, ht as Organization, i as VerifyMagicLinkParams, in as DeletePermissionResponse, ir as AcceptOrganizationInvitationQuery, it as OrganizationTeamMember, j as UpdateAccountResponse, jn as CreateApiKeyRequestMetadata, jt as ListApiKeysParams, k as UpdateApiKeyRequest, kn as CreateApiKeyResponse, kt as Pagination, l as UsersPage, ln as DeleteApiKeyResponse, lt as MagicLinkSignInResponse, m as UpsertSessionStateResponse, mn as CreateUserRequestMetadata, mt as ListOrganizationsResponse, n as VerifyTOTPResponse, nn as DeleteSessionStateResponse, nr as AddOrganizationMemberRequest, nt as RefreshTokenResponse, o as VerifyBackupCodeRequest, on as DeleteOrganizationTeamMemberResponse, ot as OauthCallbackParams, p as UpsertUserStateRequest, pn as CreateUserRequest, pt as ListUsersParams, q as RevokeSessionRequest, qn as ApiKey, qt as Impersonation, r as VerifyTOTPRequest, rn as DeleteRoleResponse, rr as Account, rt as RefreshTokenRequest, s as VerifyApiKeyResponse, sn as DeleteOrganizationResponse, st as OauthAuthorizeParams, t as WellKnownJWKSResponse, tn as DeleteUserResponse, tr as AddOrganizationTeamMemberRequest, tt as RemoveRolePermissionResponse, u as UserRoleInfo, un as DeleteAccountResponse, ut as MagicLinkSignInRequest, v as UpdateUserRequestMetadata, vn as CreateRoleRequest, vt as ListOrganizationTeamsResponse, w as UpdateOrganizationTeamRequestMetadata, wn as CreateOrganizationRequest, wt as ListOrganizationTeamMembersParams, x as UpdatePermissionResponse, xn as CreatePermissionRequest, xt as ListOrganizationTeamsParams, y as UpdateRoleResponse, yn as CreatePermissionResponse, yt as OrganizationTeam, z as SignUpRequestMetadata, zn as CallbackResponse, zt as GetSessionStateResponse } from "./index-Cuok0NWW.js";
2
+ export { AcceptOrganizationInvitationParams, AcceptOrganizationInvitationQuery, Account, AddOrganizationMemberRequest, AddOrganizationTeamMemberRequest, AddRolePermissionRequest, AddRolePermissionResponse, AdminSessionState, AdminUserSession, AdminUserState, ApiKey, ApiKeyMetadata, AssignUserRoleRequest, AssignUserRoleResponse, AuthorizeResponse, BanUserRequest, BanUserResponse, CallbackResponse, ChangeEmailResponse, ChangePasswordRequest, ChangePasswordResponse, CheckUserPermissionsRequest, CheckUserPermissionsResponse, CreateAccountRequest, CreateAccountResponse, CreateApiKeyRequest, CreateApiKeyRequestMetadata, CreateApiKeyResponse, CreateOrganizationInvitationParams, CreateOrganizationInvitationQuery, CreateOrganizationInvitationRequest, CreateOrganizationRequest, CreateOrganizationRequestMetadata, CreateOrganizationTeamRequest, CreateOrganizationTeamRequestMetadata, CreatePermissionRequest, CreatePermissionResponse, CreateRoleRequest, CreateRoleResponse, CreateSessionStateRequest, CreateUserRequest, CreateUserRequestMetadata, CreateUserResponse, CreateUserStateRequest, DeleteAccountResponse, DeleteApiKeyResponse, DeleteOrganizationMemberResponse, DeleteOrganizationResponse, DeleteOrganizationTeamMemberResponse, DeleteOrganizationTeamResponse, DeletePermissionResponse, DeleteRoleResponse, DeleteSessionStateResponse, DeleteUserResponse, DeleteUserStateResponse, DisableResponse, EnableResponse, GenerateBackupCodesResponse, GetAccountByIDResponse, GetAllApiKeysResponse, GetApiKeyResponse, GetImpersonationByIDResponse, GetMeResponse, GetOrganizationInvitationResponse, GetSessionStateResponse, GetTOTPURIResponse, GetUserByIDResponse, GetUserPermissionsResponse, GetUserStateResponse, Impersonation, Jwk, ListApiKeysParams, ListOrganizationInvitationsParams, ListOrganizationInvitationsResponse, ListOrganizationMembersParams, ListOrganizationMembersResponse, ListOrganizationTeamMembersParams, ListOrganizationTeamMembersResponse, ListOrganizationTeamsParams, ListOrganizationTeamsResponse, ListOrganizationsParams, ListOrganizationsResponse, ListUsersParams, MagicLinkExchangeRequest, MagicLinkExchangeResponse, MagicLinkSignInRequest, MagicLinkSignInResponse, MagicLinkVerifyResponse, OauthAuthorizeParams, OauthCallbackParams, Organization, OrganizationInvitation, OrganizationInvitationStatus, OrganizationMember, OrganizationMemberResponse, OrganizationMetadata, OrganizationSummary, OrganizationSummaryMetadata, OrganizationTeam, OrganizationTeamMember, OrganizationTeamMemberResponse, OrganizationTeamMetadata, Pagination, Permission, PermissionGrantSource, RefreshTokenRequest, RefreshTokenResponse, RemoveRolePermissionResponse, RemoveUserRoleResponse, ReplaceRolePermissionResponse, ReplaceRolePermissionsRequest, ReplaceUserRolesRequest, ReplaceUserRolesResponse, RequestEmailChangeRequest, RequestPasswordResetRequest, RevokeSessionRequest, RevokeSessionResponse, Role, RoleDetails, SendEmailVerificationRequest, Session, SignInRequest, SignInResponse, SignOutRequest, SignOutResponse, SignUpRequest, SignUpRequestMetadata, SignUpResponse, StartImpersonationRequest, StartImpersonationResponse, StopImpersonationResponse, UnbanUserResponse, UpdateAccountRequest, UpdateAccountResponse, UpdateApiKeyRequest, UpdateApiKeyRequestMetadata, UpdateApiKeyResponse, UpdateOrganizationMemberRequest, UpdateOrganizationRequest, UpdateOrganizationRequestMetadata, UpdateOrganizationTeamRequest, UpdateOrganizationTeamRequestMetadata, UpdatePermissionRequest, UpdatePermissionResponse, UpdateRoleRequest, UpdateRoleResponse, UpdateUserRequest, UpdateUserRequestMetadata, UpdateUserResponse, UpsertSessionStateRequest, UpsertSessionStateResponse, UpsertUserStateRequest, UpsertUserStateResponse, User, UserAccountsResponse, UserMetadata, UserPermissionInfo, UserRoleInfo, UsersPage, VerifyApiKeyRequest, VerifyApiKeyResponse, VerifyBackupCodeRequest, VerifyBackupCodeResponse, VerifyMagicLinkParams, VerifyTOTPRequest, VerifyTOTPResponse, WellKnownJWKSResponse };
package/dist/models.js ADDED
@@ -0,0 +1,11 @@
1
+ // src/models/organization-invitation-status.ts
2
+ const OrganizationInvitationStatus = {
3
+ pending: "pending",
4
+ accepted: "accepted",
5
+ rejected: "rejected",
6
+ revoked: "revoked",
7
+ expired: "expired"
8
+ };
9
+
10
+ export { OrganizationInvitationStatus };
11
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","names":[],"sources":["../src/models/organization-invitation-status.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Authula API\n * Authula API - An open-source authentication solution that scales with you.\n * OpenAPI spec version: 0.1.0\n */\n\n/**\n * The type of the invitation status\n */\nexport type OrganizationInvitationStatus =\n (typeof OrganizationInvitationStatus)[keyof typeof OrganizationInvitationStatus];\n\nexport const OrganizationInvitationStatus = {\n pending: \"pending\",\n accepted: \"accepted\",\n rejected: \"rejected\",\n revoked: \"revoked\",\n expired: \"expired\",\n} as const;\n"],"mappings":";AAcA,MAAa,+BAA+B;CAC1C,SAAS;CACT,UAAU;CACV,UAAU;CACV,SAAS;CACT,SAAS;AACX"}
@@ -0,0 +1,513 @@
1
+ import { a as customFetch, d as Plugin, f as AuthulaClient, t as ClientWithPlugins } from "./sdk-Cu28BXFh.js";
2
+ import { $ as ReplaceRolePermissionResponse, $n as AddRolePermissionResponse, $t as DisableResponse, An as CreateApiKeyRequest, At as ListOrganizationInvitationsParams, B as SignOutResponse, Bt as GetOrganizationInvitationResponse, C as UpdateOrganizationTeamRequest, Ct as OrganizationTeamMemberResponse, D as UpdateOrganizationMemberRequest, Dt as ListOrganizationMembersParams, En as CreateOrganizationInvitationRequest, Et as OrganizationMemberResponse, F as StartImpersonationResponse, Fn as CheckUserPermissionsRequest, Ft as UserPermissionInfo, G as RoleDetails, Gn as AssignUserRoleResponse, Gt as GetMeResponse, H as SignInResponse, Hn as BanUserResponse, I as StartImpersonationRequest, In as ChangePasswordResponse, J as RequestPasswordResetRequest, Jt as GetApiKeyResponse, K as RevokeSessionResponse, Kn as AssignUserRoleRequest, Kt as GetImpersonationByIDResponse, L as SignUpResponse, Ln as ChangePasswordRequest, Lt as GetUserByIDResponse, M as UpdateAccountRequest, Mn as CreateAccountResponse, N as UnbanUserResponse, Nn as CreateAccountRequest, Nt as GetUserStateResponse, O as UpdateApiKeyResponse, On as CreateOrganizationInvitationParams, Ot as ListOrganizationInvitationsResponse, P as StopImpersonationResponse, Pn as CheckUserPermissionsResponse, Pt as GetUserPermissionsResponse, Q as ReplaceRolePermissionsRequest, Qn as AdminSessionState, Qt as EnableResponse, R as SignUpRequest, Rn as ChangeEmailResponse, Rt as GetTOTPURIResponse, S as UpdatePermissionRequest, Sn as CreateOrganizationTeamRequest, St as ListOrganizationTeamMembersResponse, T as UpdateOrganizationRequest, Tt as ListOrganizationMembersResponse, U as SignInRequest, Un as BanUserRequest, Ut as OrganizationInvitation, V as SignOutRequest, W as SendEmailVerificationRequest, Wn as AuthorizeResponse, X as ReplaceUserRolesResponse, Xn as AdminUserSession, Xt as GetAccountByIDResponse, Y as RequestEmailChangeRequest, Yn as AdminUserState, Yt as GetAllApiKeysResponse, Z as ReplaceUserRolesRequest, Zt as GenerateBackupCodesResponse, _ as UpdateUserRequest, _n as Role, _t as ListOrganizationsParams, a as VerifyBackupCodeResponse, an as DeleteOrganizationTeamResponse, ar as AcceptOrganizationInvitationParams, at as OrganizationMember, b as UpdateRoleRequest, bn as Permission, c as VerifyApiKeyRequest, cn as DeleteOrganizationMemberResponse, ct as MagicLinkVerifyResponse, d as UserAccountsResponse, dn as CreateUserStateRequest, dt as MagicLinkExchangeResponse, en as DeleteUserStateResponse, er as AddRolePermissionRequest, et as RemoveUserRoleResponse, f as UpsertUserStateResponse, fn as CreateUserResponse, ft as MagicLinkExchangeRequest, g as UpdateUserResponse, gn as CreateRoleResponse, h as UpsertSessionStateRequest, hn as CreateSessionStateRequest, ht as Organization, i as VerifyMagicLinkParams, in as DeletePermissionResponse, ir as AcceptOrganizationInvitationQuery, it as OrganizationTeamMember, j as UpdateAccountResponse, jt as ListApiKeysParams, k as UpdateApiKeyRequest, kn as CreateApiKeyResponse, l as UsersPage, ln as DeleteApiKeyResponse, lt as MagicLinkSignInResponse, m as UpsertSessionStateResponse, mt as ListOrganizationsResponse, n as VerifyTOTPResponse, nn as DeleteSessionStateResponse, nr as AddOrganizationMemberRequest, nt as RefreshTokenResponse, o as VerifyBackupCodeRequest, on as DeleteOrganizationTeamMemberResponse, ot as OauthCallbackParams, p as UpsertUserStateRequest, pn as CreateUserRequest, pt as ListUsersParams, q as RevokeSessionRequest, qt as Impersonation, r as VerifyTOTPRequest, rn as DeleteRoleResponse, rt as RefreshTokenRequest, s as VerifyApiKeyResponse, sn as DeleteOrganizationResponse, st as OauthAuthorizeParams, t as WellKnownJWKSResponse, tn as DeleteUserResponse, tr as AddOrganizationTeamMemberRequest, tt as RemoveRolePermissionResponse, u as UserRoleInfo, un as DeleteAccountResponse, ut as MagicLinkSignInRequest, vn as CreateRoleRequest, vt as ListOrganizationTeamsResponse, wn as CreateOrganizationRequest, wt as ListOrganizationTeamMembersParams, x as UpdatePermissionResponse, xn as CreatePermissionRequest, xt as ListOrganizationTeamsParams, y as UpdateRoleResponse, yn as CreatePermissionResponse, yt as OrganizationTeam, zn as CallbackResponse, zt as GetSessionStateResponse } from "./index-Cuok0NWW.js";
3
+ declare namespace access_control_d_exports {
4
+ export { addRolePermission, assignUserRole, checkUserPermissions, createPermission, createRole, deletePermission, deleteRole, getAddRolePermissionUrl, getAssignUserRoleUrl, getCheckUserPermissionsUrl, getCreatePermissionUrl, getCreateRoleUrl, getDeletePermissionUrl, getDeleteRoleUrl, getGetPermissionByKeyUrl, getGetPermissionUrl, getGetRoleByNameUrl, getGetRoleUrl, getGetUserPermissionsUrl, getListPermissionsUrl, getListRolePermissionsUrl, getListRolesUrl, getListUserRolesUrl, getPermission, getPermissionByKey, getRemoveRolePermissionUrl, getRemoveUserRoleUrl, getReplaceRolePermissionsUrl, getReplaceUserRolesUrl, getRole, getRoleByName, getUpdatePermissionUrl, getUpdateRoleUrl, getUserPermissions, listPermissions, listRolePermissions, listRoles, listUserRoles, removeRolePermission, removeUserRole, replaceRolePermissions, replaceUserRoles, updatePermission, updateRole };
5
+ }
6
+ declare const getListPermissionsUrl: () => string;
7
+ /**
8
+ * Lists all permissions.
9
+ * @summary List permissions
10
+ */
11
+ declare const listPermissions: (options?: Parameters<typeof customFetch>[1]) => Promise<Permission[] | null>;
12
+ declare const getCreatePermissionUrl: () => string;
13
+ /**
14
+ * Creates a new permission.
15
+ * @summary Create permission
16
+ */
17
+ declare const createPermission: (createPermissionRequest?: CreatePermissionRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreatePermissionResponse>;
18
+ declare const getGetPermissionByKeyUrl: (permissionKey: string) => string;
19
+ /**
20
+ * Retrieves a permission by its key.
21
+ * @summary Get permission by key
22
+ */
23
+ declare const getPermissionByKey: (permissionKey: string, options?: Parameters<typeof customFetch>[1]) => Promise<Permission>;
24
+ declare const getGetPermissionUrl: (permissionId: string) => string;
25
+ /**
26
+ * Retrieves a permission by its ID.
27
+ * @summary Get permission by ID
28
+ */
29
+ declare const getPermission: (permissionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<Permission>;
30
+ declare const getDeletePermissionUrl: (permissionId: string) => string;
31
+ /**
32
+ * Deletes a permission.
33
+ * @summary Delete permission
34
+ */
35
+ declare const deletePermission: (permissionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeletePermissionResponse>;
36
+ declare const getUpdatePermissionUrl: (permissionId: string) => string;
37
+ /**
38
+ * Updates a permission's description.
39
+ * @summary Update permission
40
+ */
41
+ declare const updatePermission: (permissionId: string, updatePermissionRequest?: UpdatePermissionRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdatePermissionResponse>;
42
+ declare const getListRolesUrl: () => string;
43
+ /**
44
+ * Lists all roles.
45
+ * @summary List roles
46
+ */
47
+ declare const listRoles: (options?: Parameters<typeof customFetch>[1]) => Promise<Role[] | null>;
48
+ declare const getCreateRoleUrl: () => string;
49
+ /**
50
+ * Creates a new role.
51
+ * @summary Create role
52
+ */
53
+ declare const createRole: (createRoleRequest?: CreateRoleRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateRoleResponse>;
54
+ declare const getGetRoleByNameUrl: (roleName: string) => string;
55
+ /**
56
+ * Retrieves a role by its name.
57
+ * @summary Get role by name
58
+ */
59
+ declare const getRoleByName: (roleName: string, options?: Parameters<typeof customFetch>[1]) => Promise<Role>;
60
+ declare const getGetRoleUrl: (roleId: string) => string;
61
+ /**
62
+ * Retrieves a role by its ID, including its permissions.
63
+ * @summary Get role by ID
64
+ */
65
+ declare const getRole: (roleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<RoleDetails>;
66
+ declare const getDeleteRoleUrl: (roleId: string) => string;
67
+ /**
68
+ * Deletes a role.
69
+ * @summary Delete role
70
+ */
71
+ declare const deleteRole: (roleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteRoleResponse>;
72
+ declare const getUpdateRoleUrl: (roleId: string) => string;
73
+ /**
74
+ * Updates a role's attributes.
75
+ * @summary Update role
76
+ */
77
+ declare const updateRole: (roleId: string, updateRoleRequest?: UpdateRoleRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateRoleResponse>;
78
+ declare const getListRolePermissionsUrl: (roleId: string) => string;
79
+ /**
80
+ * Lists all permissions assigned to a role.
81
+ * @summary List role permissions
82
+ */
83
+ declare const listRolePermissions: (roleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UserPermissionInfo[] | null>;
84
+ declare const getReplaceRolePermissionsUrl: (roleId: string) => string;
85
+ /**
86
+ * Replaces all permissions assigned to a role with a new set.
87
+ * @summary Replace role permissions
88
+ */
89
+ declare const replaceRolePermissions: (roleId: string, replaceRolePermissionsRequest?: ReplaceRolePermissionsRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ReplaceRolePermissionResponse>;
90
+ declare const getAddRolePermissionUrl: (roleId: string) => string;
91
+ /**
92
+ * Assigns a permission to a role.
93
+ * @summary Assign permission to role
94
+ */
95
+ declare const addRolePermission: (roleId: string, addRolePermissionRequest?: AddRolePermissionRequest, options?: Parameters<typeof customFetch>[1]) => Promise<AddRolePermissionResponse>;
96
+ declare const getRemoveRolePermissionUrl: (roleId: string, permissionId: string) => string;
97
+ /**
98
+ * Removes a permission from a role.
99
+ * @summary Remove role permission
100
+ */
101
+ declare const removeRolePermission: (roleId: string, permissionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<RemoveRolePermissionResponse>;
102
+ declare const getGetUserPermissionsUrl: (userId: string) => string;
103
+ /**
104
+ * Retrieves all permissions granted to a user through their roles.
105
+ * @summary Get user permissions
106
+ */
107
+ declare const getUserPermissions: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserPermissionsResponse>;
108
+ declare const getCheckUserPermissionsUrl: (userId: string) => string;
109
+ /**
110
+ * Checks whether a user has all the specified permissions.
111
+ * @summary Check user permissions
112
+ */
113
+ declare const checkUserPermissions: (userId: string, checkUserPermissionsRequest?: CheckUserPermissionsRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CheckUserPermissionsResponse>;
114
+ declare const getListUserRolesUrl: (userId: string) => string;
115
+ /**
116
+ * Lists all roles assigned to a user.
117
+ * @summary List user roles
118
+ */
119
+ declare const listUserRoles: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UserRoleInfo[] | null>;
120
+ declare const getReplaceUserRolesUrl: (userId: string) => string;
121
+ /**
122
+ * Replaces all roles assigned to a user with a new set.
123
+ * @summary Replace user roles
124
+ */
125
+ declare const replaceUserRoles: (userId: string, replaceUserRolesRequest?: ReplaceUserRolesRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ReplaceUserRolesResponse>;
126
+ declare const getAssignUserRoleUrl: (userId: string) => string;
127
+ /**
128
+ * Assigns a role to a user.
129
+ * @summary Assign role to user
130
+ */
131
+ declare const assignUserRole: (userId: string, assignUserRoleRequest?: AssignUserRoleRequest, options?: Parameters<typeof customFetch>[1]) => Promise<AssignUserRoleResponse>;
132
+ declare const getRemoveUserRoleUrl: (userId: string, roleId: string) => string;
133
+ /**
134
+ * Removes a role from a user.
135
+ * @summary Remove user role
136
+ */
137
+ declare const removeUserRole: (userId: string, roleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<RemoveUserRoleResponse>;
138
+ export declare class AccessControlPlugin implements Plugin {
139
+ readonly id = "accessControl";
140
+ constructor();
141
+ init(client: AuthulaClient): typeof access_control_d_exports;
142
+ }
143
+ export declare class AdminPlugin implements Plugin {
144
+ readonly id = "admin";
145
+ constructor();
146
+ init(client: AuthulaClient): {
147
+ getListImpersonationsUrl: () => string;
148
+ listImpersonations: (options?: Parameters<typeof customFetch>[1]) => Promise<Impersonation[] | null>;
149
+ getStartImpersonationUrl: () => string;
150
+ startImpersonation: (startImpersonationRequest?: StartImpersonationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<StartImpersonationResponse>;
151
+ getGetImpersonationUrl: (impersonationId: string) => string;
152
+ getImpersonation: (impersonationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetImpersonationByIDResponse>;
153
+ getStopImpersonationUrl: (impersonationId: string) => string;
154
+ stopImpersonation: (impersonationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<StopImpersonationResponse>;
155
+ getListRevokedSessionStatesUrl: () => string;
156
+ listRevokedSessionStates: (options?: Parameters<typeof customFetch>[1]) => Promise<AdminSessionState[] | null>;
157
+ getRevokeSessionUrl: (sessionId: string) => string;
158
+ revokeSession: (sessionId: string, revokeSessionRequest?: RevokeSessionRequest, options?: Parameters<typeof customFetch>[1]) => Promise<RevokeSessionResponse>;
159
+ getGetSessionStateUrl: (sessionId: string) => string;
160
+ getSessionState: (sessionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetSessionStateResponse>;
161
+ getCreateSessionStateUrl: (sessionId: string) => string;
162
+ createSessionState: (sessionId: string, createSessionStateRequest?: CreateSessionStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertSessionStateResponse>;
163
+ getDeleteSessionStateUrl: (sessionId: string) => string;
164
+ deleteSessionState: (sessionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteSessionStateResponse>;
165
+ getUpdateSessionStateUrl: (sessionId: string) => string;
166
+ updateSessionState: (sessionId: string, upsertSessionStateRequest?: UpsertSessionStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertSessionStateResponse>;
167
+ getListBannedUserStatesUrl: () => string;
168
+ listBannedUserStates: (options?: Parameters<typeof customFetch>[1]) => Promise<AdminUserState[] | null>;
169
+ getBanUserUrl: (userId: string) => string;
170
+ banUser: (userId: string, banUserRequest?: BanUserRequest, options?: Parameters<typeof customFetch>[1]) => Promise<BanUserResponse>;
171
+ getListUserSessionsUrl: (userId: string) => string;
172
+ listUserSessions: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<AdminUserSession[] | null>;
173
+ getGetUserStateUrl: (userId: string) => string;
174
+ getUserState: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserStateResponse>;
175
+ getCreateUserStateUrl: (userId: string) => string;
176
+ createUserState: (userId: string, createUserStateRequest?: CreateUserStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertUserStateResponse>;
177
+ getDeleteUserStateUrl: (userId: string) => string;
178
+ deleteUserState: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteUserStateResponse>;
179
+ getUpdateUserStateUrl: (userId: string) => string;
180
+ updateUserState: (userId: string, upsertUserStateRequest?: UpsertUserStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertUserStateResponse>;
181
+ getUnbanUserUrl: (userId: string) => string;
182
+ unbanUser: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UnbanUserResponse>;
183
+ getGetAccountUrl: (id: string) => string;
184
+ getAccount: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetAccountByIDResponse>;
185
+ getDeleteAccountUrl: (id: string) => string;
186
+ deleteAccount: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteAccountResponse>;
187
+ getUpdateAccountUrl: (id: string) => string;
188
+ updateAccount: (id: string, updateAccountRequest?: UpdateAccountRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateAccountResponse>;
189
+ getListUserAccountsUrl: (userId: string) => string;
190
+ listUserAccounts: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UserAccountsResponse>;
191
+ getCreateAccountUrl: (userId: string) => string;
192
+ createAccount: (userId: string, createAccountRequest?: CreateAccountRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateAccountResponse>;
193
+ getListUsersUrl: (params?: ListUsersParams) => string;
194
+ listUsers: (params?: ListUsersParams, options?: Parameters<typeof customFetch>[1]) => Promise<UsersPage>;
195
+ getCreateUserUrl: () => string;
196
+ createUser: (createUserRequest?: CreateUserRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateUserResponse>;
197
+ getGetUserUrl: (userId: string) => string;
198
+ getUser: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserByIDResponse>;
199
+ getDeleteUserUrl: (userId: string) => string;
200
+ deleteUser: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteUserResponse>;
201
+ getUpdateUserUrl: (userId: string) => string;
202
+ updateUser: (userId: string, updateUserRequest?: UpdateUserRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateUserResponse>;
203
+ };
204
+ }
205
+ declare namespace api_keys_d_exports {
206
+ export { createApiKey, deleteApiKey, getApiKey, getCreateApiKeyUrl, getDeleteApiKeyUrl, getGetApiKeyUrl, getListApiKeysUrl, getUpdateApiKeyUrl, getVerifyApiKeyUrl, listApiKeys, updateApiKey, verifyApiKey };
207
+ }
208
+ declare const getListApiKeysUrl: (params?: ListApiKeysParams) => string;
209
+ /**
210
+ * Lists API keys with pagination, optionally filtered by owner.
211
+ * @summary List API keys
212
+ */
213
+ declare const listApiKeys: (params?: ListApiKeysParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetAllApiKeysResponse>;
214
+ declare const getCreateApiKeyUrl: () => string;
215
+ /**
216
+ * Creates a new API key for the specified owner.
217
+ * @summary Create API key
218
+ */
219
+ declare const createApiKey: (createApiKeyRequest?: CreateApiKeyRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateApiKeyResponse>;
220
+ declare const getVerifyApiKeyUrl: () => string;
221
+ /**
222
+ * Verifies an API key by its raw value and returns the associated key details.
223
+ * @summary Verify API key
224
+ */
225
+ declare const verifyApiKey: (verifyApiKeyRequest?: VerifyApiKeyRequest, options?: Parameters<typeof customFetch>[1]) => Promise<VerifyApiKeyResponse>;
226
+ declare const getGetApiKeyUrl: (id: string) => string;
227
+ /**
228
+ * Retrieves an API key by its ID.
229
+ * @summary Get API key by ID
230
+ */
231
+ declare const getApiKey: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetApiKeyResponse>;
232
+ declare const getDeleteApiKeyUrl: (id: string) => string;
233
+ /**
234
+ * Deletes an API key.
235
+ * @summary Delete API key
236
+ */
237
+ declare const deleteApiKey: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteApiKeyResponse>;
238
+ declare const getUpdateApiKeyUrl: (id: string) => string;
239
+ /**
240
+ * Updates an API key's attributes.
241
+ * @summary Update API key
242
+ */
243
+ declare const updateApiKey: (id: string, updateApiKeyRequest?: UpdateApiKeyRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateApiKeyResponse>;
244
+ export declare class ApiKeyPlugin implements Plugin {
245
+ readonly id = "apiKey";
246
+ constructor();
247
+ init(client: AuthulaClient): typeof api_keys_d_exports;
248
+ }
249
+ declare namespace jwt_plugin_d_exports {
250
+ export { getGetJWKSUrl, getJWKS, getRefreshTokenUrl, refreshToken };
251
+ }
252
+ declare const getGetJWKSUrl: () => string;
253
+ /**
254
+ * Returns the JSON Web Key Set (JWKS) containing the public keys used to verify JWT signatures.
255
+ * @summary Get JWKS
256
+ */
257
+ declare const getJWKS: (options?: Parameters<typeof customFetch>[1]) => Promise<WellKnownJWKSResponse>;
258
+ declare const getRefreshTokenUrl: () => string;
259
+ /**
260
+ * Exchanges a valid refresh token for a new access token and refresh token pair.
261
+ * @summary Refresh JWT token
262
+ */
263
+ declare const refreshToken: (refreshTokenRequest?: RefreshTokenRequest, options?: Parameters<typeof customFetch>[1]) => Promise<RefreshTokenResponse>;
264
+ export declare class JWTPlugin implements Plugin {
265
+ readonly id = "jwt";
266
+ constructor();
267
+ init(client: AuthulaClient): typeof jwt_plugin_d_exports;
268
+ }
269
+ export type BearerPluginOptions = {
270
+ headerName?: string;
271
+ };
272
+ export declare class BearerPlugin implements Plugin {
273
+ private readonly options?;
274
+ readonly id = "bearer";
275
+ private refreshPromise;
276
+ constructor(options?: BearerPluginOptions | undefined);
277
+ init(client: ClientWithPlugins<[JWTPlugin]>): {};
278
+ }
279
+ declare namespace core_d_exports {
280
+ export { getGetMeUrl, getMe, getSignOutUrl, signOut };
281
+ }
282
+ declare const getGetMeUrl: () => string;
283
+ /**
284
+ * Retrieves the authenticated user's profile and current session.
285
+ * @summary Get current user
286
+ */
287
+ declare const getMe: (options?: Parameters<typeof customFetch>[1]) => Promise<GetMeResponse>;
288
+ declare const getSignOutUrl: () => string;
289
+ /**
290
+ * Signs out the authenticated user. With no body, revokes the session that authenticated the request (400 if the request carries no session id). Pass session_id to revoke one of your own sessions (404 if it does not exist, 403 if it belongs to another user), or sign_out_all to revoke every session.
291
+ * @summary Sign out
292
+ */
293
+ declare const signOut: (signOutRequest?: SignOutRequest, options?: Parameters<typeof customFetch>[1]) => Promise<SignOutResponse>;
294
+ export declare class CorePlugin implements Plugin {
295
+ readonly id = "core";
296
+ constructor();
297
+ init(client: AuthulaClient): typeof core_d_exports;
298
+ }
299
+ export type CSRFPluginOptions = {
300
+ cookieName: string;
301
+ headerName: string;
302
+ };
303
+ export declare class CSRFPlugin implements Plugin {
304
+ private readonly options;
305
+ readonly id = "csrf";
306
+ constructor(options: CSRFPluginOptions);
307
+ init(client: AuthulaClient): {};
308
+ }
309
+ declare namespace email_password_plugin_d_exports {
310
+ export { changePassword, getChangePasswordUrl, getRequestEmailChangeUrl, getRequestPasswordResetUrl, getSendEmailVerificationUrl, getSignInUrl, getSignUpUrl, getVerifyEmailUrl, requestEmailChange, requestPasswordReset, sendEmailVerification, signIn, signUp, verifyEmail };
311
+ }
312
+ declare const getChangePasswordUrl: () => string;
313
+ /**
314
+ * Changes the user's password using a reset token
315
+ * @summary Change password
316
+ */
317
+ declare const changePassword: (changePasswordRequest?: ChangePasswordRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ChangePasswordResponse>;
318
+ declare const getRequestEmailChangeUrl: () => string;
319
+ /**
320
+ * Requests to change the authenticated user's email address
321
+ * @summary Request email change
322
+ */
323
+ declare const requestEmailChange: (requestEmailChangeRequest?: RequestEmailChangeRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ChangeEmailResponse>;
324
+ declare const getRequestPasswordResetUrl: () => string;
325
+ /**
326
+ * Requests a password reset link to be sent to the user's email
327
+ * @summary Request password reset
328
+ */
329
+ declare const requestPasswordReset: (requestPasswordResetRequest?: RequestPasswordResetRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ChangePasswordResponse>;
330
+ declare const getSendEmailVerificationUrl: () => string;
331
+ /**
332
+ * Sends a verification email to the authenticated user
333
+ * @summary Send email verification
334
+ */
335
+ declare const sendEmailVerification: (sendEmailVerificationRequest?: SendEmailVerificationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ChangePasswordResponse>;
336
+ declare const getSignInUrl: () => string;
337
+ /**
338
+ * Authenticates a user with email and password
339
+ * @summary Sign in
340
+ */
341
+ declare const signIn: (signInRequest?: SignInRequest, options?: Parameters<typeof customFetch>[1]) => Promise<SignInResponse>;
342
+ declare const getSignUpUrl: () => string;
343
+ /**
344
+ * Registers a new user with email and password
345
+ * @summary Register new user
346
+ */
347
+ declare const signUp: (signUpRequest?: SignUpRequest, options?: Parameters<typeof customFetch>[1]) => Promise<SignUpResponse>;
348
+ declare const getVerifyEmailUrl: () => string;
349
+ /**
350
+ * Verifies an email address or processes a password reset token using a verification token
351
+ * @summary Verify email
352
+ */
353
+ declare const verifyEmail: (options?: Parameters<typeof customFetch>[1]) => Promise<ChangePasswordResponse>;
354
+ export declare class EmailPasswordPlugin implements Plugin {
355
+ readonly id = "emailPassword";
356
+ init(client: AuthulaClient): typeof email_password_plugin_d_exports;
357
+ }
358
+ export type JWTTokenType = "Bearer";
359
+ /**
360
+ * The type that is returned when using the `jwt.repond_json` capability.
361
+ */
362
+ export type JWTTokensResponse = {
363
+ tokenType: JWTTokenType;
364
+ accessToken: string;
365
+ refreshToken?: string;
366
+ };
367
+ declare namespace magic_link_plugin_d_exports {
368
+ export { exchangeMagicLink, getExchangeMagicLinkUrl, getSignInWithMagicLinkUrl, getVerifyMagicLinkUrl, signInWithMagicLink, verifyMagicLink };
369
+ }
370
+ declare const getExchangeMagicLinkUrl: () => string;
371
+ /**
372
+ * Exchanges a verified magic link token for an authenticated user session.
373
+ * @summary Exchange magic link token for session
374
+ */
375
+ declare const exchangeMagicLink: (magicLinkExchangeRequest?: MagicLinkExchangeRequest, options?: Parameters<typeof customFetch>[1]) => Promise<MagicLinkExchangeResponse>;
376
+ declare const getSignInWithMagicLinkUrl: () => string;
377
+ /**
378
+ * Sends a magic link to the given email address if an account exists. Optionally creates a new account if sign-up is enabled.
379
+ * @summary Sign in with magic link
380
+ */
381
+ declare const signInWithMagicLink: (magicLinkSignInRequest?: MagicLinkSignInRequest, options?: Parameters<typeof customFetch>[1]) => Promise<MagicLinkSignInResponse>;
382
+ declare const getVerifyMagicLinkUrl: (params: VerifyMagicLinkParams) => string;
383
+ /**
384
+ * Verifies a magic link token. If a callback_url is provided and trusted, redirects the user with an exchange token appended. Otherwise returns the exchange token in the JSON response.
385
+ * @summary Verify magic link token
386
+ */
387
+ declare const verifyMagicLink: (params: VerifyMagicLinkParams, options?: Parameters<typeof customFetch>[1]) => Promise<MagicLinkVerifyResponse>;
388
+ export declare class MagicLinkPlugin implements Plugin {
389
+ readonly id = "magicLink";
390
+ constructor();
391
+ init(client: AuthulaClient): typeof magic_link_plugin_d_exports;
392
+ }
393
+ declare namespace oauth2_plugin_d_exports {
394
+ export { getOauthAuthorizeUrl, getOauthCallbackUrl, oauthAuthorize, oauthCallback };
395
+ }
396
+ declare const getOauthAuthorizeUrl: (provider: string, params?: OauthAuthorizeParams) => string;
397
+ /**
398
+ * Initiates the OAuth2 authorization flow with the specified provider. Returns the provider's authorization URL to redirect the user to.
399
+ * @summary Authorize with OAuth2 provider
400
+ */
401
+ declare const oauthAuthorize: (provider: string, params?: OauthAuthorizeParams, options?: Parameters<typeof customFetch>[1]) => Promise<AuthorizeResponse>;
402
+ declare const getOauthCallbackUrl: (provider: string, params: OauthCallbackParams) => string;
403
+ /**
404
+ * Handles the OAuth2 callback from the provider. Exchanges the authorization code for tokens, creates or links a user account, and returns the authenticated user and session.
405
+ * @summary OAuth2 callback
406
+ */
407
+ declare const oauthCallback: (provider: string, params: OauthCallbackParams, options?: Parameters<typeof customFetch>[1]) => Promise<CallbackResponse>;
408
+ export declare class OAuth2Plugin implements Plugin {
409
+ readonly id = "oauth2";
410
+ init(client: AuthulaClient): typeof oauth2_plugin_d_exports;
411
+ }
412
+ export declare class OrganizationsPlugin implements Plugin {
413
+ readonly id = "organizations";
414
+ init(client: AuthulaClient): {
415
+ getListOrganizationTeamMembersUrl: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams) => string;
416
+ listOrganizationTeamMembers: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationTeamMembersResponse>;
417
+ getAddOrganizationTeamMemberUrl: (organizationId: string, teamId: string) => string;
418
+ addOrganizationTeamMember: (organizationId: string, teamId: string, addOrganizationTeamMemberRequest?: AddOrganizationTeamMemberRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeamMember>;
419
+ getGetOrganizationTeamMemberUrl: (organizationId: string, teamId: string, memberId: string) => string;
420
+ getOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeamMemberResponse>;
421
+ getDeleteOrganizationTeamMemberUrl: (organizationId: string, teamId: string, memberId: string) => string;
422
+ deleteOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationTeamMemberResponse>;
423
+ getListOrganizationTeamsUrl: (organizationId: string, params?: ListOrganizationTeamsParams) => string;
424
+ listOrganizationTeams: (organizationId: string, params?: ListOrganizationTeamsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationTeamsResponse>;
425
+ getCreateOrganizationTeamUrl: (organizationId: string) => string;
426
+ createOrganizationTeam: (organizationId: string, createOrganizationTeamRequest?: CreateOrganizationTeamRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam>;
427
+ getGetOrganizationTeamUrl: (organizationId: string, teamId: string) => string;
428
+ getOrganizationTeam: (organizationId: string, teamId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam>;
429
+ getDeleteOrganizationTeamUrl: (organizationId: string, teamId: string) => string;
430
+ deleteOrganizationTeam: (organizationId: string, teamId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationTeamResponse>;
431
+ getUpdateOrganizationTeamUrl: (organizationId: string, teamId: string) => string;
432
+ updateOrganizationTeam: (organizationId: string, teamId: string, updateOrganizationTeamRequest?: UpdateOrganizationTeamRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam>;
433
+ getListOrganizationMembersUrl: (organizationId: string, params?: ListOrganizationMembersParams) => string;
434
+ listOrganizationMembers: (organizationId: string, params?: ListOrganizationMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationMembersResponse>;
435
+ getAddOrganizationMemberUrl: (organizationId: string) => string;
436
+ addOrganizationMember: (organizationId: string, addOrganizationMemberRequest?: AddOrganizationMemberRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMember>;
437
+ getGetOrganizationMemberByUserIDUrl: (organizationId: string, userId: string) => string;
438
+ getOrganizationMemberByUserID: (organizationId: string, userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMemberResponse>;
439
+ getGetOrganizationMemberUrl: (organizationId: string, memberId: string) => string;
440
+ getOrganizationMember: (organizationId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMemberResponse>;
441
+ getDeleteOrganizationMemberUrl: (organizationId: string, memberId: string) => string;
442
+ deleteOrganizationMember: (organizationId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationMemberResponse>;
443
+ getUpdateOrganizationMemberUrl: (organizationId: string, memberId: string) => string;
444
+ updateOrganizationMember: (organizationId: string, memberId: string, updateOrganizationMemberRequest?: UpdateOrganizationMemberRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMember>;
445
+ getListOrganizationInvitationsUrl: (organizationId: string, params?: ListOrganizationInvitationsParams) => string;
446
+ listOrganizationInvitations: (organizationId: string, params?: ListOrganizationInvitationsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationInvitationsResponse>;
447
+ getCreateOrganizationInvitationUrl: (organizationId: string, params?: CreateOrganizationInvitationParams) => string;
448
+ createOrganizationInvitation: (organizationId: string, createOrganizationInvitationRequest?: CreateOrganizationInvitationRequest, params?: CreateOrganizationInvitationParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
449
+ getGetOrganizationInvitationUrl: (organizationId: string, invitationId: string) => string;
450
+ getOrganizationInvitation: (organizationId: string, invitationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetOrganizationInvitationResponse>;
451
+ getAcceptOrganizationInvitationUrl: (organizationId: string, invitationId: string, params?: AcceptOrganizationInvitationParams) => string;
452
+ acceptOrganizationInvitation: (organizationId: string, invitationId: string, acceptOrganizationInvitationQuery?: AcceptOrganizationInvitationQuery, params?: AcceptOrganizationInvitationParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
453
+ getRejectOrganizationInvitationUrl: (organizationId: string, invitationId: string) => string;
454
+ rejectOrganizationInvitation: (organizationId: string, invitationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
455
+ getRevokeOrganizationInvitationUrl: (organizationId: string, invitationId: string) => string;
456
+ revokeOrganizationInvitation: (organizationId: string, invitationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
457
+ getListOrganizationsUrl: (params?: ListOrganizationsParams) => string;
458
+ listOrganizations: (params?: ListOrganizationsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationsResponse>;
459
+ getCreateOrganizationUrl: () => string;
460
+ createOrganization: (createOrganizationRequest?: CreateOrganizationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<Organization>;
461
+ getGetOrganizationUrl: (organizationId: string) => string;
462
+ getOrganization: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<Organization>;
463
+ getDeleteOrganizationUrl: (organizationId: string) => string;
464
+ deleteOrganization: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationResponse>;
465
+ getUpdateOrganizationUrl: (organizationId: string) => string;
466
+ updateOrganization: (organizationId: string, updateOrganizationRequest?: UpdateOrganizationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<Organization>;
467
+ };
468
+ }
469
+ declare namespace totp_plugin_d_exports {
470
+ export { disableTotp, enableTotp, generateTotpBackupCodes, getDisableTotpUrl, getEnableTotpUrl, getGenerateTotpBackupCodesUrl, getGetTotpURIUrl, getTotpURI, getVerifyTotpBackupCodeUrl, getVerifyTotpUrl, verifyTotp, verifyTotpBackupCode };
471
+ }
472
+ declare const getDisableTotpUrl: () => string;
473
+ /**
474
+ * Disables TOTP two-factor authentication for the authenticated user.
475
+ * @summary Disable TOTP
476
+ */
477
+ declare const disableTotp: (options?: Parameters<typeof customFetch>[1]) => Promise<DisableResponse>;
478
+ declare const getEnableTotpUrl: () => string;
479
+ /**
480
+ * Enables TOTP two-factor authentication for the authenticated user. Returns the TOTP URI and backup codes.
481
+ * @summary Enable TOTP
482
+ */
483
+ declare const enableTotp: (options?: Parameters<typeof customFetch>[1]) => Promise<EnableResponse>;
484
+ declare const getGenerateTotpBackupCodesUrl: () => string;
485
+ /**
486
+ * Generates a new set of backup codes for the authenticated user. Previous backup codes are invalidated.
487
+ * @summary Generate backup codes
488
+ */
489
+ declare const generateTotpBackupCodes: (options?: Parameters<typeof customFetch>[1]) => Promise<GenerateBackupCodesResponse>;
490
+ declare const getGetTotpURIUrl: () => string;
491
+ /**
492
+ * Returns the current TOTP URI for the authenticated user's authenticator app configuration.
493
+ * @summary Get TOTP URI
494
+ */
495
+ declare const getTotpURI: (options?: Parameters<typeof customFetch>[1]) => Promise<GetTOTPURIResponse>;
496
+ declare const getVerifyTotpUrl: () => string;
497
+ /**
498
+ * Verifies a TOTP code from the authenticator app and completes authentication. Requires a pending TOTP cookie set during sign-in.
499
+ * @summary Verify TOTP code
500
+ */
501
+ declare const verifyTotp: (verifyTOTPRequest?: VerifyTOTPRequest, options?: Parameters<typeof customFetch>[1]) => Promise<VerifyTOTPResponse>;
502
+ declare const getVerifyTotpBackupCodeUrl: () => string;
503
+ /**
504
+ * Verifies a backup code as an alternative to TOTP verification. Completes authentication if the code is valid.
505
+ * @summary Verify backup code
506
+ */
507
+ declare const verifyTotpBackupCode: (verifyBackupCodeRequest?: VerifyBackupCodeRequest, options?: Parameters<typeof customFetch>[1]) => Promise<VerifyBackupCodeResponse>;
508
+ export declare class TOTPPlugin implements Plugin {
509
+ readonly id = "totp";
510
+ init(client: AuthulaClient): typeof totp_plugin_d_exports;
511
+ }
512
+ export {};
513
+ //# sourceMappingURL=plugins.d.ts.map