prividium 1.4.0 → 1.5.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.
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const adminUserSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
|
-
oidcSub: z.ZodNullable<z.ZodString>;
|
|
5
|
-
oidcIssuer: z.ZodNullable<z.ZodString>;
|
|
6
4
|
displayName: z.ZodString;
|
|
7
5
|
source: z.ZodEnum<{
|
|
8
6
|
oidc: "oidc";
|
|
@@ -11,8 +9,6 @@ export declare const adminUserSchema: z.ZodObject<{
|
|
|
11
9
|
crypto_native: "crypto_native";
|
|
12
10
|
m2m_app: "m2m_app";
|
|
13
11
|
}>;
|
|
14
|
-
organizationId: z.ZodNullable<z.ZodString>;
|
|
15
|
-
walletToken: z.ZodNullable<z.ZodString>;
|
|
16
12
|
createdAt: z.ZodString;
|
|
17
13
|
updatedAt: z.ZodString;
|
|
18
14
|
organization: z.ZodNullable<z.ZodObject<{
|
|
@@ -30,7 +26,6 @@ export declare const adminUserSchema: z.ZodObject<{
|
|
|
30
26
|
org_users_manage: "org_users_manage";
|
|
31
27
|
org_wallets_manage: "org_wallets_manage";
|
|
32
28
|
org_rpc_access: "org_rpc_access";
|
|
33
|
-
org_admin: "org_admin";
|
|
34
29
|
rpc_read_eth_getBlockByNumber: "rpc_read_eth_getBlockByNumber";
|
|
35
30
|
rpc_read_eth_getLogs: "rpc_read_eth_getLogs";
|
|
36
31
|
rpc_read_eth_getTransactionByHash: "rpc_read_eth_getTransactionByHash";
|
|
@@ -8,7 +8,6 @@ const systemPermissionSchema = z.enum([
|
|
|
8
8
|
'org_users_manage',
|
|
9
9
|
'org_wallets_manage',
|
|
10
10
|
'org_rpc_access',
|
|
11
|
-
'org_admin',
|
|
12
11
|
'rpc_read_eth_getBlockByNumber',
|
|
13
12
|
'rpc_read_eth_getLogs',
|
|
14
13
|
'rpc_read_eth_getTransactionByHash',
|
|
@@ -35,14 +34,12 @@ const userOrganizationSchema = z.object({
|
|
|
35
34
|
name: z.string()
|
|
36
35
|
});
|
|
37
36
|
const userSourceSchema = z.enum(['oidc', 'adminPanel', 'tenant', 'crypto_native', 'm2m_app']);
|
|
37
|
+
// Mirrors the permissions-api user response, which omits server-owned secrets (walletToken) and
|
|
38
|
+
// external IdP identity (oidcSub/oidcIssuer); organizationId is redundant with `organization`.
|
|
38
39
|
export const adminUserSchema = z.object({
|
|
39
40
|
id: z.string(),
|
|
40
|
-
oidcSub: z.string().nullable(),
|
|
41
|
-
oidcIssuer: z.string().nullable(),
|
|
42
41
|
displayName: z.string(),
|
|
43
42
|
source: userSourceSchema,
|
|
44
|
-
organizationId: z.string().nullable(),
|
|
45
|
-
walletToken: z.string().nullable(),
|
|
46
43
|
createdAt: z.string(),
|
|
47
44
|
updatedAt: z.string(),
|
|
48
45
|
organization: userOrganizationSchema.nullable(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type AdminUserSource = 'oidc' | 'adminPanel' | 'tenant' | 'crypto_native' | 'm2m_app';
|
|
2
|
-
export type AdminSystemPermission = 'contract_deployment' | 'full_sequencer_rpc_access' | 'full_read_access' | 'admin_read' | 'admin_write' | 'org_users_manage' | 'org_wallets_manage' | 'org_rpc_access' | '
|
|
2
|
+
export type AdminSystemPermission = 'contract_deployment' | 'full_sequencer_rpc_access' | 'full_read_access' | 'admin_read' | 'admin_write' | 'org_users_manage' | 'org_wallets_manage' | 'org_rpc_access' | 'rpc_read_eth_getBlockByNumber' | 'rpc_read_eth_getLogs' | 'rpc_read_eth_getTransactionByHash' | 'rpc_read_eth_getTransactionReceipt' | 'check_user_read_access' | 'contract_metadata_read';
|
|
3
3
|
export interface AdminUserRole {
|
|
4
4
|
roleName: string;
|
|
5
5
|
systemPermissions?: Array<AdminSystemPermission>;
|
|
@@ -20,12 +20,8 @@ export interface AdminUserOrganization {
|
|
|
20
20
|
}
|
|
21
21
|
export interface AdminUser {
|
|
22
22
|
id: string;
|
|
23
|
-
oidcSub: string | null;
|
|
24
|
-
oidcIssuer: string | null;
|
|
25
23
|
displayName: string;
|
|
26
24
|
source: AdminUserSource;
|
|
27
|
-
organizationId: string | null;
|
|
28
|
-
walletToken: string | null;
|
|
29
25
|
createdAt: string;
|
|
30
26
|
updatedAt: string;
|
|
31
27
|
organization: AdminUserOrganization | null;
|