UNPKG

@sprucelabs/mercury-client

Version:

The simple way to interact with the Spruce Experience Platform

42 lines (41 loc) 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const schema_1 = require("@sprucelabs/schema"); const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils"); exports.default = (0, schema_1.buildErrorSchema)({ id: 'unauthorizedAccess', name: 'Unauthorized Access', description: '', fields: { fqen: { type: 'text', isRequired: true, }, action: { type: 'select', isRequired: true, options: { choices: [ { value: 'emit', label: 'emit', }, ], }, }, target: { type: 'schema', isRequired: true, options: { schema: { id: 'unauthorizedTarget', fields: spruce_event_utils_1.eventTargetSchema.fields, }, }, }, permissionContractId: { type: 'id', isRequired: true, }, }, });