cauthy-auth 0.33.0 → 0.34.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/next.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Cauthy } from './cauthy-2jtP2LVQ.mjs';
2
- import { S as Session } from './system-BrrJsrFW.mjs';
1
+ import { C as Cauthy } from './cauthy-C-GoRXy9.mjs';
2
+ import { S as Session } from './system-DUGV040y.mjs';
3
3
  import 'jose';
4
4
  import './theme.mjs';
5
5
 
package/dist/next.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Cauthy } from './cauthy-CKfvvv_i.js';
2
- import { S as Session } from './system-BvvoNs2y.js';
1
+ import { C as Cauthy } from './cauthy-BUozWD72.js';
2
+ import { S as Session } from './system-Bz4haPrI.js';
3
3
  import 'jose';
4
4
  import './theme.js';
5
5
 
package/dist/react.d.mts CHANGED
@@ -620,7 +620,11 @@ interface OrganizationsClient {
620
620
  members(organizationId: string): Promise<OrganizationPerson[] | null>;
621
621
  /** The roles a member may be given, or null when the person may not see them. */
622
622
  roles(organizationId: string): Promise<OrganizationRoleChoice[] | null>;
623
- /** Adds a person by their address; an address with no account gets one and its invitation. */
623
+ /**
624
+ * Adds a person by their address; an address with no account gets one and
625
+ * its invitation. It only adds: a person who already belongs keeps their
626
+ * role and the result is the error `member_exists` (change it with `setRole`).
627
+ */
624
628
  add(organizationId: string, form: {
625
629
  email: string;
626
630
  role: string;
package/dist/react.d.ts CHANGED
@@ -620,7 +620,11 @@ interface OrganizationsClient {
620
620
  members(organizationId: string): Promise<OrganizationPerson[] | null>;
621
621
  /** The roles a member may be given, or null when the person may not see them. */
622
622
  roles(organizationId: string): Promise<OrganizationRoleChoice[] | null>;
623
- /** Adds a person by their address; an address with no account gets one and its invitation. */
623
+ /**
624
+ * Adds a person by their address; an address with no account gets one and
625
+ * its invitation. It only adds: a person who already belongs keeps their
626
+ * role and the result is the error `member_exists` (change it with `setRole`).
627
+ */
624
628
  add(organizationId: string, form: {
625
629
  email: string;
626
630
  role: string;
package/dist/react.js CHANGED
@@ -910,6 +910,7 @@ var TEXTS = {
910
910
  last_manager: "Somebody else must manage the members first: give that role to another member.",
911
911
  last_owner: "An organization keeps at least one owner: make another member owner first.",
912
912
  organization_not_found: "That organization no longer exists.",
913
+ member_exists: "That person already belongs to the organization; their role was not changed. Change it in the list instead.",
913
914
  already_member: "That person already belongs to the organization. Change their role instead.",
914
915
  unknown_role: "Choose one of the roles offered.",
915
916
  user_not_active: "That account is disabled.",
@@ -1090,6 +1091,7 @@ var TEXTS = {
1090
1091
  last_manager: "Primero alguien m\xE1s debe administrar los miembros: dale ese rol a otro miembro.",
1091
1092
  last_owner: "Una organizaci\xF3n conserva al menos un propietario: primero haz propietario a otro miembro.",
1092
1093
  organization_not_found: "Esa organizaci\xF3n ya no existe.",
1094
+ member_exists: "Esa persona ya pertenece a la organizaci\xF3n; su rol no cambi\xF3. C\xE1mbialo en la lista.",
1093
1095
  already_member: "Esa persona ya pertenece a la organizaci\xF3n. Cambia su rol.",
1094
1096
  unknown_role: "Escoge uno de los roles ofrecidos.",
1095
1097
  user_not_active: "Esa cuenta est\xE1 desactivada.",