UNPKG

@openzeppelin/defender-serverless

Version:
882 lines 25.3 kB
export declare const DefenderSchema: { $schema: string; title: string; type: string; properties: { key: { type: string; }; secret: { type: string; }; }; required: string[]; }; export declare const DefinitionsSchema: { $schema: string; title: string; definitions: { address: { title: string; type: string; pattern: string; }; "risk-category": { title: string; type: string; enum: string[]; }; network: { title: string; type: string; enum: string[]; }; policy: { title: string; type: string; properties: { "gas-price-cap": { type: string; }; "whitelist-receivers": { title: string; type: string; items: { type: string; }; }; "eip1559-pricing": { type: string; }; "private-transactions": { type: string; }; }; }; relayer: { title: string; type: string; properties: { name: { type: string; }; network: { $ref: string; format: string; }; "min-balance": { type: string; }; "address-from-relayer": { title: string; type: string; }; policy: { $ref: string; format: string; }; "api-keys": { title: string; type: string; items: { type: string; }; }; }; required: string[]; }; contract: { title: string; type: string; properties: { name: { type: string; }; address: { $ref: string; format: string; }; network: { $ref: string; format: string; }; abi: { $ref: string; }; "nat-spec": { type: string; }; }; required: string[]; }; notificationType: { title: string; type: string; enum: string[]; }; datadogConfig: { title: string; type: string; properties: { "api-key": { type: string; }; "metric-prefix": { type: string; maxLength: number; pattern: string; }; }; required: string[]; }; urlConfig: { title: string; type: string; properties: { url: { type: string; format: string; }; }; required: string[]; }; telegramBotConfig: { title: string; type: string; properties: { "bot-token": { type: string; }; "chat-id": { type: string; }; }; required: string[]; }; emailConfig: { title: string; type: string; properties: { emails: { title: string; type: string; items: { type: string; format: string; }; default: never[]; }; }; required: string[]; }; opsgenieUserType: { title: string; type: string; enum: string[]; }; opsgeniePriorityLevel: { title: string; type: string; enum: string[]; }; opsgenieInstanceLocation: { title: string; type: string; enum: string[]; }; opsgenieUser: { type: string; properties: { username: { type: string; }; fullName: { type: string; }; id: { type: string; }; type: { $ref: string; }; }; required: string[]; additionalProperties: boolean; }; opsgenieConfig: { title: string; properties: { apiKey: { type: string; }; instanceLocation: { $ref: string; }; alias: { type: string; maxLength: number; }; responders: { type: string; items: { $ref: string; }; }; visibleTo: { type: string; items: { $ref: string; }; }; actions: { type: string; maxItems: number; items: { type: string; maxLength: number; }; }; tags: { type: string; maxItems: number; items: { type: string; maxLength: number; }; }; details: { type: string; additionalProperties: { type: string; }; }; entity: { type: string; maxLength: number; }; priority: { $ref: string; }; note: { type: string; maxLength: number; }; }; required: string[]; additionalProperties: boolean; }; pagerDutyEventType: { title: string; type: string; enum: string[]; }; pagerDutyEventAction: { title: string; type: string; enum: string[]; }; pagerDutySeverity: { title: string; type: string; enum: string[]; }; pagerDutyConfig: { title: string; properties: { token: { type: string; }; eventType: { $ref: string; }; routingKey: { type: string; maxLength: number; minLength: number; }; eventAction: { $ref: string; }; dedupKey: { type: string; maxLength: number; }; severity: { $ref: string; }; component: { type: string; }; group: { type: string; }; class: { type: string; }; customDetails: { type: string; additionalProperties: { type: string; }; }; }; if: { properties: { eventType: { const: string; }; }; }; then: { required: string[]; }; required: string[]; additionalProperties: boolean; }; notification: { title: string; type: string; properties: { type: { $ref: string; format: string; }; name: { type: string; }; paused: { type: string; }; config: { title: string; type: string; oneOf: { $ref: string; format: string; }[]; }; }; required: string[]; }; category: { title: string; type: string; properties: { name: { type: string; }; description: { type: string; }; notificationIds: { type: string; items: { $ref: string; format: string; }; }; }; required: string[]; }; blockSentinel: { title: string; type: string; properties: { name: { type: string; }; type: { type: string; enum: string[]; }; network: { $ref: string; format: string; }; addresses: { title: string; type: string; items: { $ref: string; format: string; }; }; abi: { $ref: string; }; "alert-threshold": { title: string; type: string; properties: { amount: { type: string; }; "window-seconds": { type: string; }; }; }; paused: { type: string; }; "autotask-condition": { $ref: string; format: string; }; "autotask-trigger": { $ref: string; format: string; }; "confirm-level": { oneOf: ({ type: string; enum: string[]; } | { type: string; enum?: undefined; })[]; }; "notify-config": { title: string; type: string; properties: { timeout: { type: string; }; message: { type: string; }; category: { $ref: string; format: string; }; channels: { title: string; type: string; items: { $ref: string; format: string; }; }; }; required: string[]; }; conditions: { title: string; type: string; properties: { event: { title: string; type: string; items: { title: string; type: string; properties: { signature: { type: string; }; expression: { type: string; }; }; required: string[]; }; }; function: { title: string; type: string; items: { title: string; type: string; properties: { signature: { type: string; }; expression: { type: string; }; }; required: string[]; }; }; transaction: { type: string; }; }; }; "risk-category": { $ref: string; }; }; required: string[]; }; fortaSentinel: { title: string; type: string; properties: { name: { type: string; }; type: { type: string; enum: string[]; }; network: { $ref: string; format: string; }; addresses: { title: string; type: string; items: { $ref: string; format: string; }; }; abi: { $ref: string; }; "alert-threshold": { title: string; type: string; properties: { amount: { type: string; }; "window-seconds": { type: string; }; }; }; paused: { type: string; }; "autotask-condition": { $ref: string; format: string; }; "autotask-trigger": { $ref: string; format: string; }; "notify-config": { title: string; type: string; properties: { timeout: { type: string; }; message: { type: string; }; category: { $ref: string; format: string; }; channels: { title: string; type: string; items: { $ref: string; format: string; }; }; }; required: string[]; }; conditions: { title: string; type: string; properties: { "min-scanner-count": { type: string; }; severity: { type: string; enum: number[]; }; "alert-ids": { title: string; type: string; items: { type: string; }; }; }; required: string[]; }; "forta-node-id": { type: string; }; "agent-ids": { title: string; type: string; items: { type: string; }; }; "risk-category": { $ref: string; }; }; anyOf: { required: string[]; }[]; required: string[]; }; sentinel: { title: string; type: string; oneOf: { $ref: string; format: string; }[]; }; autotask: { title: string; type: string; properties: { name: { type: string; }; path: { type: string; }; relayer: { $ref: string; format: string; }; trigger: { title: string; type: string; properties: { type: { title: string; type: string; enum: string[]; }; cron: { title: string; type: string; }; frequency: { title: string; type: string; }; }; if: { properties: { type: { const: string; }; }; }; then: { oneOf: { required: string[]; }[]; }; else: {}; required: string[]; }; paused: { type: string; }; }; required: string[]; }; deploymentConfig: { title: string; type: string; properties: { relayer: { $ref: string; format: string; }; }; required: string[]; }; blockExplorerApiKey: { title: string; type: string; properties: { key: { type: string; }; network: { $ref: string; format: string; }; }; required: string[]; }; abi: { title: string; anyOf: { title: string; type: string; }[]; }; }; }; export declare const FunctionSchema: { $schema: string; title: string; type: string; properties: { path: { type: string; }; relayer: { title: string; $ref: string; format: string; }; trigger: { title: string; type: string; properties: { type: { title: string; type: string; enum: string[]; }; cron: { title: string; type: string; }; frequency: { title: string; type: string; }; }; if: { properties: { type: { const: string; }; }; }; then: { oneOf: { required: string[]; }[]; }; else: {}; required: string[]; }; paused: { type: string; }; }; required: string[]; }; export declare const ProviderSchema: { $schema: string; title: string; type: string; properties: { stage: { type: string; }; stackName: { type: string; }; ssot: { type: string; }; }; required: string[]; }; export declare const ResourcesSchema: { $schema: string; title: string; type: string; additionalProperties: boolean; properties: { Resources: { title: string; type: string; properties: { notifications: { title: string; type: string; additionalProperties: { $ref: string; format: string; }; }; relayers: { title: string; type: string; additionalProperties: { $ref: string; format: string; }; }; policies: { title: string; type: string; additionalProperties: { $ref: string; format: string; }; }; contracts: { title: string; type: string; additionalProperties: { $ref: string; format: string; }; }; secrets: { title: string; type: string; additionalProperties: boolean; properties: { global: { title: string; type: string; additionalProperties: { type: string; }; }; stack: { title: string; type: string; additionalProperties: { type: string; }; }; }; }; sentinels: { title: string; type: string; additionalProperties: { $ref: string; format: string; }; }; "deployment-configs": { title: string; type: string; additionalProperties: { $ref: string; format: string; }; }; "block-explorer-api-keys": { title: string; type: string; additionalProperties: { $ref: string; format: string; }; }; }; }; }; }; //# sourceMappingURL=index.d.ts.map