Zapier NLA (Independent Publisher) (#2526)

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update apiProperties.json

* Update apiDefinition.swagger.json
This commit is contained in:
Troy Taylor 2023-04-14 16:27:25 -04:00 коммит произвёл GitHub
Родитель 5e22a48725
Коммит 039f3f5d60
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 271 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,229 @@
{
"swagger": "2.0",
"info": {
"title": "Zapier NLA",
"description": "Zapier is an integration platform with over 5,000+ apps and 50,000+ actions. Natural Language Actions (NLA) is optimized to receive user input in natural language to perform actions pre-configured by the user.",
"version": "1.0",
"contact": {
"name": "Troy Taylor",
"url": "https://www.hitachisolutions.com",
"email": "ttaylor@hitachisolutions.com"
}
},
"host": "nla.zapier.com",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/api/v1/exposed/": {
"get": {
"summary": "List exposed actions",
"description": "List all the currently exposed actions for the given account.",
"operationId": "ExposedGet",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ExposedActionResponseSchema"
}
}
}
}
},
"/api/v1/dynamic/exposed/{action_id}/execute/": {
"post": {
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The action identifier.",
"title": "ID"
},
"action_used": {
"type": "string",
"description": "The action used..",
"title": "Action Used"
},
"input_params": {
"type": "object",
"properties": {},
"description": "The input parameters as a JSON object.",
"title": "Input Params"
},
"review_url": {
"type": "string",
"description": "The review URL address.",
"title": "Review URL"
},
"result": {
"type": "object",
"properties": {},
"description": "The result parameters as a JSON object.",
"title": "Result"
},
"status": {
"type": "string",
"description": "The status.",
"title": "Status"
},
"error": {
"type": "string",
"description": "The error message.",
"title": "Error"
}
}
}
}
},
"summary": "Perform action",
"x-ms-visibility": "important",
"description": "Performs given action using a natural language set of instructions.",
"operationId": "ActionPost",
"parameters": [
{
"name": "action_id",
"in": "path",
"x-ms-summary": "Action",
"x-ms-url-encoding": "single",
"description": "The action to perform.",
"required": true,
"type": "string",
"x-ms-dynamic-values": {
"operationId": "ExposedGet",
"value-path": "id",
"value-collection": "results",
"value-title": "description"
}
},
{
"name": "body",
"in": "body",
"required": false,
"schema": {
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "The instructions in a natural language string.",
"title": "Instructions"
},
"preview_only": {
"type": "boolean",
"description": "Whether to preview the action result.",
"default": "false",
"enum": [
"false",
"true"
],
"title": "Preview Only"
}
},
"required": [
"instructions"
]
}
}
]
}
}
},
"definitions": {
"ExposedActionSchema": {
"title": "ExposedActionSchema",
"required": [
"id",
"operation_id",
"description",
"params"
],
"type": "object",
"properties": {
"id": {
"title": "Id",
"description": "The unique ID of the exposed action.",
"type": "string"
},
"operation_id": {
"title": "Operation Id",
"description": "The operation ID of the exposed action.",
"type": "string"
},
"description": {
"title": "Description",
"description": "Description of the action.",
"type": "string"
},
"params": {
"title": "Params",
"description": "Available hint fields for the action.",
"type": "object"
}
}
},
"ExposedActionResponseSchema": {
"title": "ExposedActionResponseSchema",
"required": [
"results",
"configuration_link"
],
"type": "object",
"properties": {
"results": {
"title": "Results",
"type": "array",
"items": {
"$ref": "#/definitions/ExposedActionSchema"
}
},
"configuration_link": {
"title": "Configuration Link",
"description": "URL to configure and expose more actions.",
"type": "string"
}
}
}
},
"parameters": {},
"responses": {},
"securityDefinitions": {
"API Key": {
"type": "apiKey",
"in": "header",
"name": "x-api-key"
}
},
"security": [
{
"API Key": []
}
],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://zapier.com/"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://zapier.com/privacy"
},
{
"propertyName": "Categories",
"propertyValue": "Productivity;IT Operations"
}
]
}

Просмотреть файл

@ -0,0 +1,23 @@
{
"properties": {
"connectionParameters": {
"api_key": {
"type": "securestring",
"uiDefinition": {
"displayName": "API Key",
"description": "The API Key for this api",
"tooltip": "Provide your API Key",
"constraints": {
"tabIndex": 2,
"clearText": false,
"required": "true"
}
}
}
},
"iconBrandColor": "#da3b01",
"capabilities": [],
"publisher": "Troy Taylor",
"stackOwner": "Zapier"
}
}

Просмотреть файл

@ -0,0 +1,19 @@
# Zapier NLA
Zapier is an integration platform with over 5,000+ apps and 50,000+ actions. Natural Language Actions (NLA) is optimized to receive user input in natural language to perform actions pre-configured by the user.
## Publisher: Troy Taylor, Hitachi Solutions
## Prerequisites
You must sign up for an account with [Zapier](https://zapier.com/sign-up/). Once logged in to your account, you will need to go to the [Get Started with Natural Language Actions page](https://nla.zapier.com/get-started/) and under the Your Access Points section, select the [link for Manage Actions](https://nla.zapier.com/dev/actions/) for your Dev App. You can now configure any actions you want to perform using this connector.
## Obtaining Credentials
Once logged in to your account, you will need to go to the [Get Started with Natural Language Actions page](https://nla.zapier.com/get-started/) and under the Your Access Points section, click the (click to reveal) link for your Dev App to show your API Key.
## Supported Operations
### Perform action
Performs given action using a natural language set of instructions.
### List exposed actions
List all the currently exposed actions for the given account.
## Known Issues and Limitations
There are no known issues at this time.