@merkaly/api 0.29.1 → 0.29.2

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.
@@ -1,3 +1,4 @@
1
+ import type { AccountTeamAssignableRole } from './team.enum.js';
1
2
  export interface AccountAuthIdentity {
2
3
  connection: string;
3
4
  isSocial: boolean;
@@ -66,3 +67,18 @@ export interface AccountAuthOrganizationInvitation {
66
67
  };
67
68
  roles?: string[];
68
69
  }
70
+ export interface AccountTeamInvitation {
71
+ createdAt?: string;
72
+ email: string;
73
+ expiresAt?: string;
74
+ id: string;
75
+ inviter?: string;
76
+ role?: string;
77
+ }
78
+ export interface AccountTeamInvitationPayload {
79
+ email: string;
80
+ role: AccountTeamAssignableRole;
81
+ }
82
+ export interface AccountTeamMemberRolePayload {
83
+ role: AccountTeamAssignableRole;
84
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './auth';
2
+ export * from './team.enum';
2
3
  export * from './request.validator';
@@ -1 +1,2 @@
1
+ export * from './team.enum.js';
1
2
  export * from './request.validator.js';
@@ -0,0 +1,4 @@
1
+ export declare const ACCOUNT_TEAM_MANAGER_ROLES: readonly ["MK_ADMIN", "MK_SUPERADMIN", "ORG_ADMIN", "ORG_OWNER"];
2
+ export declare const ACCOUNT_TEAM_ASSIGNABLE_ROLES: readonly ["ORG_ADMIN", "ORG_MANAGER"];
3
+ export declare const ACCOUNT_TEAM_LOCKED_ROLES: readonly ["MK_ADMIN", "MK_SUPERADMIN", "ORG_OWNER"];
4
+ export type AccountTeamAssignableRole = (typeof ACCOUNT_TEAM_ASSIGNABLE_ROLES)[number];
@@ -0,0 +1,8 @@
1
+ export const ACCOUNT_TEAM_MANAGER_ROLES = [
2
+ 'MK_ADMIN',
3
+ 'MK_SUPERADMIN',
4
+ 'ORG_ADMIN',
5
+ 'ORG_OWNER',
6
+ ];
7
+ export const ACCOUNT_TEAM_ASSIGNABLE_ROLES = ['ORG_ADMIN', 'ORG_MANAGER'];
8
+ export const ACCOUNT_TEAM_LOCKED_ROLES = ['MK_ADMIN', 'MK_SUPERADMIN', 'ORG_OWNER'];
@@ -4,6 +4,7 @@ export interface Auth0JwtPayload {
4
4
  exp: number;
5
5
  iss: string;
6
6
  aud: string | string[];
7
+ azp?: string;
7
8
  org_id?: string;
8
9
  'https://merka.ly/authorization'?: {
9
10
  roles: string[];
@@ -11,6 +12,7 @@ export interface Auth0JwtPayload {
11
12
  };
12
13
  }
13
14
  export interface AppAuth {
15
+ clientId?: string;
14
16
  expiresAt: Date;
15
17
  issuedAt: Date;
16
18
  orgId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkaly/api",
3
- "version": "0.29.1",
3
+ "version": "0.29.2",
4
4
  "type": "module",
5
5
  "description": "Shared TypeScript interfaces and enums for Merkaly API",
6
6
  "repository": {