Copy.ai (Independent Publisher) (#2937)

* Revert "Merge branch 'microsoft:dev' into dev"

This reverts commit 096a7c3199, reversing
changes made to cb0948670f.

* Revert "Merge branch 'microsoft:dev' into dev"

This reverts commit cb0948670f, reversing
changes made to dc26e8a026.

* Revert "Revert "Merge branch 'microsoft:dev' into dev""

This reverts commit 01764d0a6d.

* Revert "Revert "Merge branch 'microsoft:dev' into dev""

This reverts commit a3f086ef0f.

* Add files via upload

* Revert "Add files via upload"

This reverts commit eeff7b7a02.

* Add files via upload

* Delete independent-publisher-connectors/FileIO directory

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Revert "Add files via upload"

This reverts commit 1d85506958.

* Update readme.md

* Revert "Update readme.md"

This reverts commit b94447a142.

* Add files via upload
This commit is contained in:
Troy Taylor 2023-10-18 05:01:07 -04:00 коммит произвёл GitHub
Родитель 784c2d7f29
Коммит c4067102c9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 356 добавлений и 0 удалений

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

@ -0,0 +1,312 @@
{
"swagger": "2.0",
"info": {
"title": "Copy.ai",
"description": "Meet your brainstorming buddy, blank page remover, research assistant, and expert copywriter: Chat by Copy.ai. Use our generative AI platform to work faster, smarter, and anything but harder.",
"version": "1.0",
"contact": {
"name": "Troy Taylor",
"url": "https://www.hitachisolutions.com",
"email": "ttaylor@hitachisolutions.com"
}
},
"host": "api.copy.ai",
"basePath": "/api/",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/workflow/{workflow_id}/run": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "The status.",
"title": "Status"
},
"data": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"format": "int32",
"description": "The total.",
"title": "Total"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "The status.",
"title": "Status"
},
"input": {
"type": "object",
"properties": {},
"description": "The input object.",
"title": "Input"
},
"output": {
"type": "object",
"properties": {},
"description": "The output object.",
"title": "Output"
},
"metadata": {
"type": "object",
"properties": {},
"description": "The metadata object.",
"title": "Metadata"
},
"createdAt": {
"type": "string",
"description": "When created at.",
"title": "Created At"
},
"id": {
"type": "string",
"description": "The identifier.",
"title": "ID"
},
"credits": {
"type": "integer",
"format": "int32",
"description": "The credits used.",
"title": "Credits"
}
}
},
"title": "Data"
}
},
"title": "Workflow"
}
}
}
}
},
"parameters": [
{
"name": "workflow_id",
"in": "path",
"x-ms-summary": "Workflow ID",
"x-ms-url-encoding": "single",
"description": "The workflow identifier.",
"required": true,
"type": "string"
},
{
"name": "size",
"in": "query",
"x-ms-summary": "Size",
"description": "The page size.",
"required": false,
"type": "integer",
"default": 10
},
{
"name": "page",
"in": "query",
"x-ms-summary": "Page",
"description": "The page number.",
"required": false,
"type": "integer",
"default": 1
}
],
"summary": "Get all workflow runs",
"description": "Retrieve the details of all workflow runs for a workflow.",
"operationId": "WorkflowsGet"
},
"post": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "The status.",
"title": "Status"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The identifier.",
"title": "ID"
}
},
"title": "Data"
}
}
}
}
},
"summary": "Start workflow",
"description": "Start a workflow based on the variables and metadata you provide.",
"operationId": "WorkflowPost",
"parameters": [
{
"name": "workflow_id",
"in": "path",
"x-ms-summary": "Workflow ID",
"x-ms-url-encoding": "single",
"description": "The workflow identifier.",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": false,
"schema": {
"type": "object",
"properties": {
"startVariables": {
"type": "object",
"properties": {},
"description": "The start variables as an object.",
"title": "Start Variables"
},
"metadata": {
"type": "object",
"properties": {},
"description": "The metadata object.",
"title": "Metadata"
}
}
}
}
]
}
},
"/workflow/{workflow_id}/run/{run_id}": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "The status.",
"title": "Status"
},
"data": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "The status.",
"title": "Status"
},
"input": {
"type": "object",
"properties": {},
"description": "The input object.",
"title": "Input"
},
"metadata": {
"type": "object",
"properties": {},
"description": "The metadata object.",
"title": "Metadata"
},
"createdAt": {
"type": "string",
"description": "When created at.",
"title": "Created At"
},
"id": {
"type": "string",
"description": "The identifier.",
"title": "ID"
},
"credits": {
"type": "integer",
"format": "int32",
"description": "The credits used.",
"title": "Credits"
}
},
"title": "Data"
}
}
}
}
},
"summary": "Get a workflow run",
"description": "Retrieve the details of a workflow run.",
"operationId": "WorkflowGet",
"parameters": [
{
"name": "workflow_id",
"in": "path",
"x-ms-summary": "Workflow ID",
"x-ms-url-encoding": "single",
"description": "The workflow identifier.",
"required": true,
"type": "string"
},
{
"name": "run_id",
"in": "path",
"x-ms-summary": "Run ID",
"x-ms-url-encoding": "single",
"description": "The run identifier.",
"required": true,
"type": "string"
}
]
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {
"API Key": {
"type": "apiKey",
"in": "header",
"name": "x-copy-ai-api-key"
}
},
"security": [
{
"API Key": []
}
],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://www.copy.ai/"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://www.copy.ai/privacy-notice"
},
{
"propertyName": "Categories",
"propertyValue": "AI"
}
]
}

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

@ -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": "CopyAI, Inc."
}
}

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

@ -0,0 +1,21 @@
# Copy.ai
Meet your brainstorming buddy, blank page remover, research assistant, and expert copywriter: Chat by Copy.ai. Use our generative AI platform to work faster, smarter, and anything but harder.
## Publisher: Troy Taylor, Hitachi Solutions
## Prerequisites
You will need to sign up for an account with (Copy.ai)[https://app.copy.ai/].
## Obtaining Credentials
Once you have logged in to your account and created a workflow, open a workflow and click on the API tab to retrieve your Workspace API Key.
## Supported Operations
### Get a workflow run
Retrieve the details of a workflow run.
### Get all workflow runs
Retrieve the details of all workflow runs for a workflow.
### Start workflow
Start a workflow based on the variables and metadata you provide.
## Known Issues and Limitations
There are no known issues at this time.