Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel committed May 13, 2024
1 parent 596d56b commit 27ed9c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Permission } from '@narval/armory-sdk'
import {
Action,
ApprovalRequirement,
Expand All @@ -9,7 +10,6 @@ import {
EvaluationRequest,
EvaluationResponse,
JwtString,

Policy
} from '@narval/policy-engine-shared'
import { Payload, PrivateKey, PublicKey, SigningAlg, decodeJwt, hash, signJwt, verifyJwt } from '@narval/signature'
Expand All @@ -25,7 +25,6 @@ import { OpenPolicyAgentInstance, Result } from './type/open-policy-agent.type'
import { toData, toInput } from './util/evaluation.util'
import { getRegoRuleTemplatePath } from './util/rego-transpiler.util'
import { build, getRegoCorePath } from './util/wasm-build.util'
import { Permission } from '@narval/armory-sdk'

export class OpenPolicyAgentEngine implements Engine<OpenPolicyAgentEngine> {
private policies: Policy[]
Expand Down
3 changes: 1 addition & 2 deletions packages/policy-engine-shared/src/lib/type/action.type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { PermissionSchema } from '@narval/armory-sdk'
import { fromHex } from 'viem'
import { z } from 'zod'
import { addressSchema } from '../schema/address.schema'
Expand Down Expand Up @@ -143,7 +142,7 @@ export const GrantPermissionAction = BaseAction.merge(
z.object({
action: z.literal(Action.GRANT_PERMISSION),
resourceId: z.string(),
permissions: z.array(PermissionSchema)
permissions: z.array(z.string())
})
)
export type GrantPermissionAction = z.infer<typeof GrantPermissionAction>

0 comments on commit 27ed9c1

Please sign in to comment.