← All procedures

notify.pushover.validate

Examine a Pushover user key: its active devices and licenses. It sends no message.

CLI
Package
@procedures/notify · README
Path
["notify","pushover","validate"]
CLI
mark notify pushover validate
As data
{"$proc":["notify","pushover","validate"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/notify/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["notify","pushover","validate"], {});
console.log(JSON.stringify(result));

From the command line

$ mark notify pushover validate

As data, in a program

{ "$proc": ["notify", "pushover", "validate"], "input": {} }

Input

FieldTypeRequiredDefaultDescription
userstringnoThe user key to examine. Without it, the procedure reads userEnv.
userEnvstringno"PUSHOVER_USER_KEY"The name of the environment variable with the user key (default: PUSHOVER_USER_KEY)
devicestringnoThe name of a device to examine
tokenEnvstringno"PUSHOVER_APP_TOKEN"The name of the environment variable with the API token of the application (default: PUSHOVER_APP_TOKEN)
timeoutMsintegerno20000The time limit, in milliseconds (default: 20000)

Output

FieldTypeRequiredDefaultDescription
okbooleanyes
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "user": {
        "description": "The user key to examine. Without it, the procedure reads userEnv.",
        "type": "string"
      },
      "userEnv": {
        "default": "PUSHOVER_USER_KEY",
        "description": "The name of the environment variable with the user key (default: PUSHOVER_USER_KEY)",
        "type": "string",
        "pattern": "^PUSHOVER_[A-Z0-9_]+$"
      },
      "device": {
        "description": "The name of a device to examine",
        "type": "string"
      },
      "tokenEnv": {
        "default": "PUSHOVER_APP_TOKEN",
        "description": "The name of the environment variable with the API token of the application (default: PUSHOVER_APP_TOKEN)",
        "type": "string",
        "pattern": "^PUSHOVER_[A-Z0-9_]+$"
      },
      "timeoutMs": {
        "default": 20000,
        "description": "The time limit, in milliseconds (default: 20000)",
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 120000
      }
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "ok": {
        "type": "boolean"
      }
    },
    "required": [
      "ok"
    ],
    "additionalProperties": {}
  }
}