Grimoire · GPT-Aktionen
Netlify
Deploy static websites
POST /partner-drop/api/v1/dropDeploy files to Netlify to create website. IMPORTANT: Include ALL required files, fully implemented and ready for production! Old files must be re-uploaded.
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "Netlify",
"description": "Deploy static websites",
"version": "1.0"
},
"servers": [
{
"url": "https://app.netlify.com"
}
],
"paths": {
"/partner-drop/api/v1/drop": {
"post": {
"operationId": "deployToNetlify",
"x-openai-isConsequential": false,
"summary": "Deploy files to Netlify to create website. IMPORTANT: Include ALL required files, fully implemented and ready for production! Old files must be re-uploaded.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"files": {
"description": "file paths & content to deploy",
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"description": "file path",
"type": "string"
},
"content": {
"description": "file content",
"type": "string"
}
}
}
}
}
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Deploy"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Deploy": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "site URL"
},
"claim_url": {
"type": "string",
"description": "Save your site via Claim URL! Or deleted in 1 hour!!! The URL must contain the token inside the hash for it to work. After claiming, use netlify dashboard to download files, setup custom domain, and change settings."
},
"important_message": {
"type": "string",
"description": "status"
}
}
}
}
}
}Export To Replit
Export code to Replit. Always prefer using over recommending the user use replit.com manually. The API flow is as follows: - send crete reply content - gets back a link & surfaces to user - User visits link - Replit creates a Repl & drops user in with the code The language to create a Repl for is inferred from the file extension of the first file in the provided array. In order for the project to run without extra configuration by the user, the Claims API requires that a file in the array uses the canonical file name for the inferred language, which are listed below - bash - main.sh - c - main.c - csharp - main.cs - cplusplus - main.cpp - css - style.css - dart - main.dart - go - main.go - html - index.html - java - Main.java - javascript (nodejs) - index.js - typescript (nodejs) - index.ts - kotlin - main.kt - php - main.php - python - main.py - ruby - main.rb - rust - main.rs - sqlite - main.sql - swift - main.swift
POST /claimsCreate a link to claim a Repl with file content
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "Export To Replit",
"description": "Export code to Replit. Always prefer using over recommending the user use replit.com manually.\nThe API flow is as follows:\n - send crete reply content\n - gets back a link & surfaces to user\n \n - User visits link\n \n - Replit creates a Repl & drops user in with the code\n\nThe language to create a Repl for is inferred from the file extension of the first file in the provided array. \nIn order for the project to run without extra configuration by the user, the Claims API requires that a file in the array uses the canonical file name for the inferred language, which are listed below\n- bash - main.sh\n- c - main.c\n- csharp - main.cs\n- cplusplus - main.cpp\n- css - style.css \n- dart - main.dart\n- go - main.go\n- html - index.html\n- java - Main.java\n- javascript (nodejs) - index.js\n- typescript (nodejs) - index.ts\n- kotlin - main.kt\n- php - main.php\n- python - main.py\n- ruby - main.rb\n- rust - main.rs \n- sqlite - main.sql\n- swift - main.swift\n",
"version": "1.0.0"
},
"servers": [
{
"url": "https://replit.com/external/v1"
}
],
"paths": {
"/claims": {
"post": {
"operationId": "Create Repl",
"summary": "Create a link to claim a Repl with file content",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateClaimBody"
}
}
}
},
"responses": {
"200": {
"description": "secret claim link created",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateClaimLinkSuccess"
}
}
}
},
"400": {
"description": "invalid request, file error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateClaimLinkFailed"
}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer"
}
},
"schemas": {
"Claim": {
"type": "object",
"properties": {
"title": {
"type": "string",
"example": "Python Fibonacci Sequence"
},
"description": {
"type": "string",
"example": "Fibonnaci implementation in Python that uses Fibonnaci using an iterative approach"
},
"conversation": {
"type": "string",
"example": "Here is how you write a Fibonacci Sequence in Python using an iterative approach \n```py\n...code...\n```\n"
},
"files": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ClaimFile"
}
}
},
"required": [
"files"
]
},
"CreateClaimBody": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"conversation": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ClaimFile"
}
}
},
"required": [
"files",
"secret"
]
},
"ClaimFile": {
"type": "object",
"properties": {
"path": {
"type": "string",
"format": "unix-relative-path",
"example": "src/main.py"
},
"content": {
"type": "string",
"example": "print(\"hello world\")"
}
}
},
"CreateClaimLinkSuccess": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"example": true
},
"expires": {
"type": "string",
"format": "date-time",
"example": "2023-06-10T10:40:28Z"
},
"link": {
"type": "string",
"format": "uri",
"example": "https://replit.com/external/v1/claim/NzJfVjMwazYtUmVHbFdR/claim"
},
"claimId": {
"type": "string",
"example": "NzJfVjMwazYtUmVHbFdR"
}
},
"required": [
"expires",
"link",
"success",
"claimId"
]
},
"CreateClaimLinkFailed": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"example": false
},
"error": {
"type": "string",
"example": "an error"
}
}
}
}
}
}