{
  "name": "numerous",
  "title": "Numerous",
  "description": "<a href=\"http://numerousapp.com\">Numerous</a> lets you track and share life’s most important numbers",
  "url": "",
  "trackDuplicates": false,
  "config": {},
  "auth": {
    "strategy": "issuer_token",
    "properties": {
      "username": {
        "title": "API Key",
        "type": "string"
      }
    },
    "disposition": [
      "username"
    ]
  },
  "rpcs": {
    "my_metrics": {
      "contentType": "application/json",
      "properties": {
        "id": {
          "type": "string",
          "description": "ID"
        },
        "label": {
          "type": "string",
          "description": "Label"
        }
      },
      "title": "Get My Metrics"
    }
  },
  "actions": {
    "new_metric": {
      "title": "Create a Metric",
      "description": "Creates a New Numerous metric.  The first image file present will be set as its background",
      "trigger": "invoke",
      "config": {
        "properties": {
          "kind": {
            "type": "string",
            "oneOf": [
              {
                "$ref": "#/config/definitions/kind"
              }
            ],
            "title": "Metric Kind"
          },
          "units": {
            "type": "string",
            "title": "Units"
          },
          "currencySymbol": {
            "type": "string",
            "title": "Currency Symbol"
          }
        },
        "definitions": {
          "kind": {
            "description": "Metric Kind",
            "enum": [
              "number",
              "currency",
              "percent",
              "duration"
            ],
            "enum_label": [
              "Number",
              "Currency",
              "Percent",
              "Duration"
            ],
            "default": "number"
          }
        },
        "disposition": [
          "kind",
          "units",
          "currencySymbol"
        ]
      },
      "exports": {
        "properties": {
          "id": {
            "type": "string",
            "title": "ID"
          },
          "photoURL": {
            "type": "string",
            "title": "Photo URL"
          }
        }
      },
      "imports": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "value": {
            "type": "integer",
            "title": "Initial Value"
          }
        },
        "required": [
          "label"
        ],
        "disposition": [
          "label",
          "description",
          "value"
        ]
      }
    },
    "increment_metric": {
      "title": "Increment a Metric",
      "description": "Increments a Numerous metric",
      "trigger": "invoke",
      "config": {
        "properties": {
          "metric_id": {
            "type": "string",
            "oneOf": [
              {
                "$ref": "/rpcs/my_metrics/{id}"
              }
            ],
            "label": {
              "$ref": "/rpcs/my_metrics/{label}"
            },
            "title": "Metric"
          }
        },
        "disposition": [
          "metric_id"
        ]
      },
      "exports": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Event ID"
          },
          "metricId": {
            "type": "string",
            "title": "Metric ID"
          },
          "value": {
            "type": "string",
            "title": "New Value"
          }
        }
      },
      "imports": {
        "properties": {
          "metric_id": {
            "type": "string",
            "title": "Metric ID"
          },
          "value": {
            "type": "string",
            "default": 1,
            "title": "Value"
          }
        },
        "disposition": [
          "metric_id",
          "value"
        ]
      }
    },
    "update_metric": {
      "title": "Update a Metric Value",
      "description": "Updates a Numerous Metrics Value",
      "trigger": "invoke",
      "config": {
        "properties": {
          "metric_id": {
            "type": "string",
            "oneOf": [
              {
                "$ref": "/rpcs/my_metrics/{id}"
              }
            ],
            "label": {
              "$ref": "/rpcs/my_metrics/{label}"
            },
            "title": "Metric"
          }
        },
        "disposition": [
          "metric_id"
        ]
      },
      "exports": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Event ID"
          },
          "metricId": {
            "type": "string",
            "title": "Metric ID"
          },
          "value": {
            "type": "string",
            "title": "New Value"
          }
        }
      },
      "imports": {
        "properties": {
          "metric_id": {
            "type": "string",
            "title": "Metric ID"
          },
          "value": {
            "type": "string",
            "default": 1,
            "title": "Value"
          }
        },
        "disposition": [
          "metric_id",
          "value"
        ]
      }
    }
  },
  "tags": [
    "productivity",
    "math"
  ]
}