@schemavaults/auth-common 0.29.0 → 0.30.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/index.d.ts CHANGED
@@ -23,8 +23,8 @@ export { createAudienceSchema, createAudienceListSchema, createResourceUrlAudien
23
23
  export type { AudienceSchemaOverrides } from "./audience-schema";
24
24
  export { inviteCodeFormatSchema, inviteCodeDefinitionSchema, } from "./invite-code";
25
25
  export type { InviteCode, InviteCodeDefinition } from "./invite-code";
26
- export { organizationIdSchema, isValidOrganizationID, RESERVED_ORGANIZATION_IDS, organizationDefinitionSchema, getHardcodedOrgs, getAuthServerOwnerOrganizationId, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_ID, getAuthServerOwnerOrganizationName, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_NAME, MAXIMUM_USER_ORGANIZATIONS, MINIMUM_ORGANIZATION_ID_LENGTH, MAXIMUM_ORGANIZATION_ID_LENGTH, inviteMemberInputModes, inviteMemberFormSchema, organizationInvitationStatusTypes, organizationInvitationStatusSchema, organizationInvitationSchema, organizationMembershipRoleTypes, organizationMembershipRoleTypeSchema, isValidOrganizationMembershipRoleType, organizationMembershipRoleDetailsSchema, isValidOrganizationMembershipRoleDetails, } from "./organizations";
27
- export type { OrganizationID, OrganizationDefinition, InviteMemberInputMode, InviteMemberFormValues, InviteMemberSubmitData, OrganizationInvitationStatus, OrganizationInvitation, UserPendingInvitation, OrganizationInvitationWithUserData, OrganizationMembershipRoleType, OrganizationMembershipRoleDetails, } from "./organizations";
26
+ export { organizationIdSchema, isValidOrganizationID, RESERVED_ORGANIZATION_IDS, organizationDefinitionSchema, getHardcodedOrgs, getAuthServerOwnerOrganizationId, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_ID, getAuthServerOwnerOrganizationName, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_NAME, MAXIMUM_USER_ORGANIZATIONS, MINIMUM_ORGANIZATION_ID_LENGTH, MAXIMUM_ORGANIZATION_ID_LENGTH, inviteMemberInputModes, inviteMemberFormSchema, assignableOrganizationMembershipRoles, assignableOrganizationMembershipRoleSchema, assignMemberFormSchema, organizationInvitationStatusTypes, organizationInvitationStatusSchema, organizationInvitationSchema, organizationMembershipRoleTypes, organizationMembershipRoleTypeSchema, isValidOrganizationMembershipRoleType, organizationMembershipRoleDetailsSchema, isValidOrganizationMembershipRoleDetails, } from "./organizations";
27
+ export type { OrganizationID, OrganizationDefinition, InviteMemberInputMode, InviteMemberFormValues, InviteMemberSubmitData, AssignableOrganizationMembershipRole, AssignMemberFormValues, AssignMemberSubmitData, OrganizationInvitationStatus, OrganizationInvitation, UserPendingInvitation, OrganizationInvitationWithUserData, OrganizationMembershipRoleType, OrganizationMembershipRoleDetails, } from "./organizations";
28
28
  export { MaximumBrowserCookieSize } from "./MaximumBrowserCookieSize";
29
29
  export { RefreshTokenCookieName, RefreshTokenExpiryCookieName, } from "./RefreshTokenCookieNames";
30
30
  export { AccessTokenCookieName, AccessTokenExpiryCookieName, } from "./AccessTokenCookieNames";
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ export { getAuthServerUrl } from "@schemavaults/app-definitions";
15
15
  export { appIdSchema } from "@schemavaults/app-definitions";
16
16
  export { createAudienceSchema, createAudienceListSchema, createResourceUrlAudienceSchema, isResourceUrlAudience, RESOURCE_URL_AUDIENCE_MAX_LENGTH, } from "./audience-schema";
17
17
  export { inviteCodeFormatSchema, inviteCodeDefinitionSchema, } from "./invite-code";
18
- export { organizationIdSchema, isValidOrganizationID, RESERVED_ORGANIZATION_IDS, organizationDefinitionSchema, getHardcodedOrgs, getAuthServerOwnerOrganizationId, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_ID, getAuthServerOwnerOrganizationName, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_NAME, MAXIMUM_USER_ORGANIZATIONS, MINIMUM_ORGANIZATION_ID_LENGTH, MAXIMUM_ORGANIZATION_ID_LENGTH, inviteMemberInputModes, inviteMemberFormSchema, organizationInvitationStatusTypes, organizationInvitationStatusSchema, organizationInvitationSchema, organizationMembershipRoleTypes, organizationMembershipRoleTypeSchema, isValidOrganizationMembershipRoleType, organizationMembershipRoleDetailsSchema, isValidOrganizationMembershipRoleDetails, } from "./organizations";
18
+ export { organizationIdSchema, isValidOrganizationID, RESERVED_ORGANIZATION_IDS, organizationDefinitionSchema, getHardcodedOrgs, getAuthServerOwnerOrganizationId, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_ID, getAuthServerOwnerOrganizationName, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_NAME, MAXIMUM_USER_ORGANIZATIONS, MINIMUM_ORGANIZATION_ID_LENGTH, MAXIMUM_ORGANIZATION_ID_LENGTH, inviteMemberInputModes, inviteMemberFormSchema, assignableOrganizationMembershipRoles, assignableOrganizationMembershipRoleSchema, assignMemberFormSchema, organizationInvitationStatusTypes, organizationInvitationStatusSchema, organizationInvitationSchema, organizationMembershipRoleTypes, organizationMembershipRoleTypeSchema, isValidOrganizationMembershipRoleType, organizationMembershipRoleDetailsSchema, isValidOrganizationMembershipRoleDetails, } from "./organizations";
19
19
  export { MaximumBrowserCookieSize } from "./MaximumBrowserCookieSize";
20
20
  export { RefreshTokenCookieName, RefreshTokenExpiryCookieName, } from "./RefreshTokenCookieNames";
21
21
  export { AccessTokenCookieName, AccessTokenExpiryCookieName, } from "./AccessTokenCookieNames";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,cAAc,GACf,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EACL,mCAAmC,EACnC,qCAAqC,GACtC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,cAAc,EAEd,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,q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CAA0C,CAAC;AAE9F,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAE/C,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAE5D,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { z } from "zod";
2
+ import { type OrganizationID } from "./organization_id";
3
+ import { type InviteMemberInputMode } from "./invite_member_form";
4
+ /**
5
+ * Roles a platform administrator may assign directly. `admin` is the
6
+ * virtual role administrators hold in the owner organization and is never
7
+ * stored.
8
+ */
9
+ export declare const assignableOrganizationMembershipRoles: readonly ["member", "owner"];
10
+ export type AssignableOrganizationMembershipRole = (typeof assignableOrganizationMembershipRoles)[number];
11
+ export declare const assignableOrganizationMembershipRoleSchema: z.ZodEnum<{
12
+ member: "member";
13
+ owner: "owner";
14
+ }>;
15
+ /**
16
+ * The "assign a member" form of platform administrators: adds a user to an
17
+ * organization directly, without an invitation. The user is named like in
18
+ * the invite form (`input_mode` + `identifier`).
19
+ */
20
+ export declare const assignMemberFormSchema: z.ZodObject<{
21
+ organization_id: z.ZodString;
22
+ input_mode: z.ZodEnum<{
23
+ uid: "uid";
24
+ email: "email";
25
+ }>;
26
+ identifier: z.ZodString;
27
+ role: z.ZodEnum<{
28
+ member: "member";
29
+ owner: "owner";
30
+ }>;
31
+ }, z.core.$strict>;
32
+ export type AssignMemberFormValues = z.infer<typeof assignMemberFormSchema>;
33
+ export interface AssignMemberSubmitData {
34
+ organization_id: OrganizationID;
35
+ input_mode: InviteMemberInputMode;
36
+ /** E-mail address (`input_mode: email`) or user id (`input_mode: uid`). */
37
+ identifier: string;
38
+ role: AssignableOrganizationMembershipRole;
39
+ }
@@ -0,0 +1,47 @@
1
+ import { z } from "zod";
2
+ import { organizationIdSchema } from "./organization_id";
3
+ import { inviteMemberInputModes, } from "./invite_member_form";
4
+ /**
5
+ * Roles a platform administrator may assign directly. `admin` is the
6
+ * virtual role administrators hold in the owner organization and is never
7
+ * stored.
8
+ */
9
+ export const assignableOrganizationMembershipRoles = [
10
+ "member",
11
+ "owner",
12
+ ];
13
+ export const assignableOrganizationMembershipRoleSchema = z.enum(assignableOrganizationMembershipRoles);
14
+ /**
15
+ * The "assign a member" form of platform administrators: adds a user to an
16
+ * organization directly, without an invitation. The user is named like in
17
+ * the invite form (`input_mode` + `identifier`).
18
+ */
19
+ export const assignMemberFormSchema = z
20
+ .object({
21
+ organization_id: organizationIdSchema,
22
+ input_mode: z.enum(inviteMemberInputModes),
23
+ identifier: z.string().trim().min(1, "Required"),
24
+ role: assignableOrganizationMembershipRoleSchema,
25
+ })
26
+ .strict()
27
+ .superRefine((data, ctx) => {
28
+ if (data.input_mode === "uid") {
29
+ if (!z.guid().safeParse(data.identifier).success) {
30
+ ctx.addIssue({
31
+ code: "custom",
32
+ message: "Must be a valid UUID",
33
+ path: ["identifier"],
34
+ });
35
+ }
36
+ }
37
+ else if (data.input_mode === "email") {
38
+ if (!z.email().safeParse(data.identifier).success) {
39
+ ctx.addIssue({
40
+ code: "custom",
41
+ message: "Must be a valid email address",
42
+ path: ["identifier"],
43
+ });
44
+ }
45
+ }
46
+ });
47
+ //# sourceMappingURL=assign_member_form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign_member_form.js","sourceRoot":"","sources":["../../src/organizations/assign_member_form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAuB,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAC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AACH,CAAC,CAAC,CAAC"}
@@ -9,6 +9,8 @@ export { getHardcodedOrgs } from "./hardcoded_orgs";
9
9
  export { MAXIMUM_USER_ORGANIZATIONS, MINIMUM_ORGANIZATION_ID_LENGTH, MAXIMUM_ORGANIZATION_ID_LENGTH, } from "./organization_constants";
10
10
  export { inviteMemberInputModes, inviteMemberFormSchema, } from "./invite_member_form";
11
11
  export type { InviteMemberInputMode, InviteMemberFormValues, InviteMemberSubmitData, } from "./invite_member_form";
12
+ export { assignableOrganizationMembershipRoles, assignableOrganizationMembershipRoleSchema, assignMemberFormSchema, } from "./assign_member_form";
13
+ export type { AssignableOrganizationMembershipRole, AssignMemberFormValues, AssignMemberSubmitData, } from "./assign_member_form";
12
14
  export { organizationInvitationStatusTypes, organizationInvitationStatusSchema, organizationInvitationSchema, } from "./organization_invitation";
13
15
  export type { OrganizationInvitationStatus, OrganizationInvitation, UserPendingInvitation, OrganizationInvitationWithUserData, } from "./organization_invitation";
14
16
  export { organizationMembershipRoleTypes, organizationMembershipRoleTypeSchema, isValidOrganizationMembershipRoleType, } from "./organization-membership-role-type";
@@ -5,6 +5,7 @@ export { getAuthServerOwnerOrganizationId, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATIO
5
5
  export { getHardcodedOrgs } from "./hardcoded_orgs";
6
6
  export { MAXIMUM_USER_ORGANIZATIONS, MINIMUM_ORGANIZATION_ID_LENGTH, MAXIMUM_ORGANIZATION_ID_LENGTH, } from "./organization_constants";
7
7
  export { inviteMemberInputModes, inviteMemberFormSchema, } from "./invite_member_form";
8
+ export { assignableOrganizationMembershipRoles, assignableOrganizationMembershipRoleSchema, assignMemberFormSchema, } from "./assign_member_form";
8
9
  export { organizationInvitationStatusTypes, organizationInvitationStatusSchema, organizationInvitationSchema, } from "./organization_invitation";
9
10
  export { organizationMembershipRoleTypes, organizationMembershipRoleTypeSchema, isValidOrganizationMembershipRoleType, } from "./organization-membership-role-type";
10
11
  export { organizationMembershipRoleDetailsSchema, isValidOrganizationMembershipRoleDetails, } from "./organization_membership_role_details";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAGzE,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,gCAAgC,EAChC,yCAAyC,EACzC,kCAAkC,EAClC,2CAA2C,GAC5C,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EACL,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,qCAAqC,GACtC,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,uCAAuC,EACvC,wCAAwC,GACzC,MAAM,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAGzE,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,gCAAgC,EAChC,yCAAyC,EACzC,kCAAkC,EAClC,2CAA2C,GAC5C,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EACL,qCAAqC,EACrC,0CAA0C,EAC1C,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EACL,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,qCAAqC,GACtC,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,uCAAuC,EACvC,wCAAwC,GACzC,MAAM,wCAAwC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const organizationMembershipRoleTypes: readonly ["owner", "admin", "member"];
3
3
  export type OrganizationMembershipRoleType = (typeof organizationMembershipRoleTypes)[number];
4
- export declare const organizationMembershipRoleTypeSchema: z.ZodString & z.ZodType<"admin" | "owner" | "member", string, z.core.$ZodTypeInternals<"admin" | "owner" | "member", string>>;
4
+ export declare const organizationMembershipRoleTypeSchema: z.ZodString & z.ZodType<"admin" | "member" | "owner", string, z.core.$ZodTypeInternals<"admin" | "member" | "owner", string>>;
5
5
  export declare function isValidOrganizationMembershipRoleType(role: string): role is OrganizationMembershipRoleType;
@@ -25,7 +25,7 @@ export interface OrganizationMembershipRoleDetails {
25
25
  export declare const organizationMembershipRoleDetailsSchema: z.ZodObject<{
26
26
  organization_id: z.ZodNonOptional<z.ZodString>;
27
27
  organization_name: z.ZodNonOptional<z.ZodString>;
28
- role: z.ZodNonOptional<z.ZodType<"admin" | "owner" | "member", unknown, z.core.$ZodTypeInternals<"admin" | "owner" | "member", unknown>>>;
28
+ role: z.ZodNonOptional<z.ZodType<"admin" | "member" | "owner", unknown, z.core.$ZodTypeInternals<"admin" | "member" | "owner", unknown>>>;
29
29
  created_at: z.ZodNonOptional<z.ZodNumber>;
30
30
  joined_at: z.ZodNonOptional<z.ZodNumber>;
31
31
  }, z.core.$strict>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@schemavaults/auth-common",
3
3
  "description": "Types and utility functions for authentication and authorization",
4
- "version": "0.29.0",
4
+ "version": "0.30.0",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
7
7
  "repository": {