prividium 1.1.0 → 1.3.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.
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare const adminUserSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  oidcSub: z.ZodNullable<z.ZodString>;
5
+ oidcIssuer: z.ZodNullable<z.ZodString>;
5
6
  displayName: z.ZodString;
6
7
  source: z.ZodEnum<{
7
8
  oidc: "oidc";
@@ -29,6 +30,7 @@ export declare const adminUserSchema: z.ZodObject<{
29
30
  org_users_manage: "org_users_manage";
30
31
  org_wallets_manage: "org_wallets_manage";
31
32
  org_rpc_access: "org_rpc_access";
33
+ org_admin: "org_admin";
32
34
  rpc_read_eth_getBlockByNumber: "rpc_read_eth_getBlockByNumber";
33
35
  rpc_read_eth_getLogs: "rpc_read_eth_getLogs";
34
36
  rpc_read_eth_getTransactionByHash: "rpc_read_eth_getTransactionByHash";
@@ -57,6 +59,7 @@ export declare const adminContractSchema: z.ZodObject<{
57
59
  discloseBytecode: z.ZodBoolean;
58
60
  templateId: z.ZodNullable<z.ZodNumber>;
59
61
  isSystemContract: z.ZodBoolean;
62
+ organizationId: z.ZodNullable<z.ZodString>;
60
63
  disclosedAddresses: z.ZodArray<z.ZodObject<{
61
64
  address: z.ZodString;
62
65
  }, z.core.$strip>>;
@@ -8,6 +8,7 @@ const systemPermissionSchema = z.enum([
8
8
  'org_users_manage',
9
9
  'org_wallets_manage',
10
10
  'org_rpc_access',
11
+ 'org_admin',
11
12
  'rpc_read_eth_getBlockByNumber',
12
13
  'rpc_read_eth_getLogs',
13
14
  'rpc_read_eth_getTransactionByHash',
@@ -37,6 +38,7 @@ const userSourceSchema = z.enum(['oidc', 'adminPanel', 'tenant', 'crypto_native'
37
38
  export const adminUserSchema = z.object({
38
39
  id: z.string(),
39
40
  oidcSub: z.string().nullable(),
41
+ oidcIssuer: z.string().nullable(),
40
42
  displayName: z.string(),
41
43
  source: userSourceSchema,
42
44
  organizationId: z.string().nullable(),
@@ -57,6 +59,7 @@ export const adminContractSchema = z.object({
57
59
  discloseBytecode: z.boolean(),
58
60
  templateId: z.number().nullable(),
59
61
  isSystemContract: z.boolean(),
62
+ organizationId: z.string().nullable(),
60
63
  disclosedAddresses: z.array(disclosedAddressSchema),
61
64
  createdAt: z.string(),
62
65
  updatedAt: z.string(),
@@ -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' | 'rpc_read_eth_getBlockByNumber' | 'rpc_read_eth_getLogs' | 'rpc_read_eth_getTransactionByHash' | 'rpc_read_eth_getTransactionReceipt' | 'check_user_read_access' | 'contract_metadata_read';
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' | 'org_admin' | '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>;
@@ -21,6 +21,7 @@ export interface AdminUserOrganization {
21
21
  export interface AdminUser {
22
22
  id: string;
23
23
  oidcSub: string | null;
24
+ oidcIssuer: string | null;
24
25
  displayName: string;
25
26
  source: AdminUserSource;
26
27
  organizationId: string | null;
@@ -54,6 +55,7 @@ export interface AdminContract {
54
55
  discloseBytecode: boolean;
55
56
  templateId: number | null;
56
57
  isSystemContract: boolean;
58
+ organizationId: string | null;
57
59
  disclosedAddresses: Array<AdminDisclosedAddress>;
58
60
  createdAt: string;
59
61
  updatedAt: string;
@@ -69,5 +71,6 @@ export interface AdminContractCreate {
69
71
  disclosedAddresses?: Array<AdminDisclosedAddress>;
70
72
  templateId?: number | null;
71
73
  templateKey?: string | null;
74
+ organizationId?: string | null;
72
75
  disclosureStartBlock: string;
73
76
  }