All schemas (parameters, output, output_schema, conf_schema) now use the
StackStorm-style flat format expected by Attune:
{ param_name: { type, description, required, secret, ... } }
Instead of the standard JSON Schema format:
{ type: object, properties: { ... }, required: [...] }
Also fix rule template syntax: trigger.payload.* -> event.payload.*
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
# Node.js Example Pack
|
|
# Demonstrates Node.js actions, sensors, triggers, and keystore integration
|
|
|
|
ref: nodejs_example
|
|
label: "Node.js Example Pack"
|
|
description: "Example pack demonstrating Node.js actions, a counter sensor with keystore integration, and HTTP requests"
|
|
version: "1.0.0"
|
|
author: "Attune Team"
|
|
email: "support@attune.io"
|
|
|
|
system: false
|
|
enabled: true
|
|
|
|
# Pack configuration schema (flat format with inline required/secret)
|
|
conf_schema:
|
|
counter_key_prefix:
|
|
type: string
|
|
description: "Prefix for counter keys in the keystore"
|
|
default: "nodejs_example.counter"
|
|
|
|
# Default pack configuration
|
|
config:
|
|
counter_key_prefix: "nodejs_example.counter"
|
|
|
|
# Pack metadata
|
|
meta:
|
|
category: "examples"
|
|
keywords:
|
|
- "nodejs"
|
|
- "javascript"
|
|
- "examples"
|
|
- "counter"
|
|
- "sensor"
|
|
- "keystore"
|
|
- "http"
|
|
node_dependencies:
|
|
- "node-fetch@^3.3.0"
|
|
- "amqplib@^0.10.0"
|
|
documentation_url: "https://github.com/attune-automation/pack-nodejs-example"
|
|
repository_url: "https://github.com/attune-automation/pack-nodejs-example"
|
|
|
|
# Tags for categorization
|
|
tags:
|
|
- nodejs
|
|
- javascript
|
|
- examples
|
|
- counter
|
|
- sensor
|
|
- http
|
|
|
|
# Runtime dependencies
|
|
runtime_deps:
|
|
- nodejs
|