@meistrari/auth-core 1.38.0 → 1.39.1
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/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.mjs +6 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5906,8 +5906,8 @@ type ListAdminOrganizationMembersOptions = {
|
|
|
5906
5906
|
includeInvitations?: boolean;
|
|
5907
5907
|
/** When true, each row includes the member's teams and accessible applications. */
|
|
5908
5908
|
includeAccess?: boolean;
|
|
5909
|
-
/** Column to sort by
|
|
5910
|
-
sortBy?: 'createdAt';
|
|
5909
|
+
/** Column to sort by: the join date or the member name. Defaults to 'createdAt'. */
|
|
5910
|
+
sortBy?: 'createdAt' | 'name';
|
|
5911
5911
|
/** Sort direction for the listing. Defaults to 'desc'. */
|
|
5912
5912
|
sortDirection?: 'asc' | 'desc';
|
|
5913
5913
|
};
|
|
@@ -6392,6 +6392,13 @@ type InviteAdminOrganizationUsersOptions = {
|
|
|
6392
6392
|
/** Teams joined when each invitation is accepted. */
|
|
6393
6393
|
teamIds?: string[];
|
|
6394
6394
|
applicationId?: string;
|
|
6395
|
+
/**
|
|
6396
|
+
* When false, skips the invitation flow and adds each user as a member
|
|
6397
|
+
* immediately, creating the user account if it does not exist yet.
|
|
6398
|
+
* This mode is restricted to global administrators.
|
|
6399
|
+
* Defaults to true (send an invitation email).
|
|
6400
|
+
*/
|
|
6401
|
+
sendInvite?: boolean;
|
|
6395
6402
|
};
|
|
6396
6403
|
/**
|
|
6397
6404
|
* Per-email outcome of a batch organization invite.
|
|
@@ -6734,8 +6741,10 @@ declare class AdminService {
|
|
|
6734
6741
|
*/
|
|
6735
6742
|
resendInvite(options: ResendAdminInviteOptions): Promise<void>;
|
|
6736
6743
|
/**
|
|
6737
|
-
* Invites several users to an organization in one call
|
|
6738
|
-
*
|
|
6744
|
+
* Invites several users to an organization in one call, or — with
|
|
6745
|
+
* `sendInvite: false` — adds them as members immediately, creating user
|
|
6746
|
+
* accounts as needed. Failures are isolated per email in the results
|
|
6747
|
+
* payload.
|
|
6739
6748
|
*
|
|
6740
6749
|
* @param options - Organization, emails, role, and optional teams/application
|
|
6741
6750
|
* @returns Per-email invite outcomes
|
package/dist/index.d.ts
CHANGED
|
@@ -5906,8 +5906,8 @@ type ListAdminOrganizationMembersOptions = {
|
|
|
5906
5906
|
includeInvitations?: boolean;
|
|
5907
5907
|
/** When true, each row includes the member's teams and accessible applications. */
|
|
5908
5908
|
includeAccess?: boolean;
|
|
5909
|
-
/** Column to sort by
|
|
5910
|
-
sortBy?: 'createdAt';
|
|
5909
|
+
/** Column to sort by: the join date or the member name. Defaults to 'createdAt'. */
|
|
5910
|
+
sortBy?: 'createdAt' | 'name';
|
|
5911
5911
|
/** Sort direction for the listing. Defaults to 'desc'. */
|
|
5912
5912
|
sortDirection?: 'asc' | 'desc';
|
|
5913
5913
|
};
|
|
@@ -6392,6 +6392,13 @@ type InviteAdminOrganizationUsersOptions = {
|
|
|
6392
6392
|
/** Teams joined when each invitation is accepted. */
|
|
6393
6393
|
teamIds?: string[];
|
|
6394
6394
|
applicationId?: string;
|
|
6395
|
+
/**
|
|
6396
|
+
* When false, skips the invitation flow and adds each user as a member
|
|
6397
|
+
* immediately, creating the user account if it does not exist yet.
|
|
6398
|
+
* This mode is restricted to global administrators.
|
|
6399
|
+
* Defaults to true (send an invitation email).
|
|
6400
|
+
*/
|
|
6401
|
+
sendInvite?: boolean;
|
|
6395
6402
|
};
|
|
6396
6403
|
/**
|
|
6397
6404
|
* Per-email outcome of a batch organization invite.
|
|
@@ -6734,8 +6741,10 @@ declare class AdminService {
|
|
|
6734
6741
|
*/
|
|
6735
6742
|
resendInvite(options: ResendAdminInviteOptions): Promise<void>;
|
|
6736
6743
|
/**
|
|
6737
|
-
* Invites several users to an organization in one call
|
|
6738
|
-
*
|
|
6744
|
+
* Invites several users to an organization in one call, or — with
|
|
6745
|
+
* `sendInvite: false` — adds them as members immediately, creating user
|
|
6746
|
+
* accounts as needed. Failures are isolated per email in the results
|
|
6747
|
+
* payload.
|
|
6739
6748
|
*
|
|
6740
6749
|
* @param options - Organization, emails, role, and optional teams/application
|
|
6741
6750
|
* @returns Per-email invite outcomes
|
package/dist/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ function isTokenExpired(token, expiresInMs) {
|
|
|
21
21
|
return nowInSeconds > expirationTime;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const version = "1.
|
|
24
|
+
const version = "1.39.1";
|
|
25
25
|
|
|
26
26
|
function parsedEnumValues(schema) {
|
|
27
27
|
return Object.fromEntries(
|
|
@@ -977,8 +977,10 @@ class AdminService {
|
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
979
|
/**
|
|
980
|
-
* Invites several users to an organization in one call
|
|
981
|
-
*
|
|
980
|
+
* Invites several users to an organization in one call, or — with
|
|
981
|
+
* `sendInvite: false` — adds them as members immediately, creating user
|
|
982
|
+
* accounts as needed. Failures are isolated per email in the results
|
|
983
|
+
* payload.
|
|
982
984
|
*
|
|
983
985
|
* @param options - Organization, emails, role, and optional teams/application
|
|
984
986
|
* @returns Per-email invite outcomes
|
|
@@ -986,7 +988,7 @@ class AdminService {
|
|
|
986
988
|
async inviteOrganizationUsers(options) {
|
|
987
989
|
const { data } = await this.client.$fetch("/admin/organizations/users", {
|
|
988
990
|
method: "POST",
|
|
989
|
-
body: { ...options, sendInvite: true }
|
|
991
|
+
body: { ...options, sendInvite: options.sendInvite ?? true }
|
|
990
992
|
});
|
|
991
993
|
return data;
|
|
992
994
|
}
|