{
  "openapi": "3.0.1",
  "info": {
    "title": "Integrations Input Test Actor",
    "description": "Testing different UI elements provided in the input schema",
    "version": "0.0",
    "x-build-id": "kPBIlgt1VYo1j328f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gokdeniz_kaymak~Integrations-input-test-Actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gokdeniz_kaymak-Integrations-input-test-Actor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/gokdeniz_kaymak~Integrations-input-test-Actor/runs": {
      "post": {
        "operationId": "runs-sync-gokdeniz_kaymak-Integrations-input-test-Actor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/gokdeniz_kaymak~Integrations-input-test-Actor/run-sync": {
      "post": {
        "operationId": "run-sync-gokdeniz_kaymak-Integrations-input-test-Actor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "requiredField"
        ],
        "properties": {
          "stringTextfield": {
            "title": "String Textfield",
            "type": "string",
            "description": "Basic string input with textfield editor",
            "default": "default value"
          },
          "stringTextfieldWithPattern": {
            "title": "String with Pattern",
            "pattern": "^[a-zA-Z0-9]+$",
            "minLength": 3,
            "maxLength": 20,
            "type": "string",
            "description": "String with regex pattern validation (alphanumeric only, 3-20 chars)"
          },
          "stringTextarea": {
            "title": "String Textarea",
            "type": "string",
            "description": "Multi-line text input",
            "default": "Line 1\nLine 2\nLine 3"
          },
          "stringJavascript": {
            "title": "JavaScript Code",
            "type": "string",
            "description": "JavaScript code editor with syntax highlighting"
          },
          "stringPython": {
            "title": "Python Code",
            "type": "string",
            "description": "Python code editor with syntax highlighting"
          },
          "stringSelectEnum": {
            "title": "String Select (Enum)",
            "enum": [
              "option1",
              "option2",
              "option3"
            ],
            "type": "string",
            "description": "Dropdown select with fixed enum values",
            "default": "option1"
          },
          "stringSelectSuggested": {
            "title": "String Select (Suggested)",
            "type": "string",
            "description": "Dropdown with suggested values but allows custom input"
          },
          "stringDateAbsolute": {
            "title": "Date (Absolute)",
            "type": "string",
            "description": "Date picker for absolute dates only"
          },
          "stringDateRelative": {
            "title": "Date (Relative)",
            "type": "string",
            "description": "Date picker for relative dates only (e.g., '7 days ago')"
          },
          "stringDateAbsoluteOrRelative": {
            "title": "Date (Absolute or Relative)",
            "type": "string",
            "description": "Date picker allowing both absolute and relative dates"
          },
          "stringFileupload": {
            "title": "Single File Upload",
            "type": "string",
            "description": "Upload a single file (string type)"
          },
          "stringSecret": {
            "title": "Secret String",
            "type": "string",
            "description": "Secret string input (masked in UI)"
          },
          "integerBasic": {
            "title": "Integer Basic",
            "type": "integer",
            "description": "Basic integer input",
            "default": 42
          },
          "integerWithRange": {
            "title": "Integer with Range",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Integer with min/max constraints and unit",
            "default": 50
          },
          "numberBasic": {
            "title": "Number (Float) Basic",
            "type": "number",
            "description": "Basic floating point number",
            "default": 3.14
          },
          "numberWithRange": {
            "title": "Number with Range",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Float with min/max constraints and unit",
            "default": 0.5
          },
          "booleanBasic": {
            "title": "Boolean Basic",
            "type": "boolean",
            "description": "Basic checkbox",
            "default": true
          },
          "booleanGrouped1": {
            "title": "Enable Feature A",
            "type": "boolean",
            "description": "First option in grouped checkboxes",
            "default": false
          },
          "booleanGrouped2": {
            "title": "Enable Feature B",
            "type": "boolean",
            "description": "Second option in grouped checkboxes",
            "default": true
          },
          "objectJson": {
            "title": "Object (JSON Editor)",
            "type": "object",
            "description": "Basic JSON object input",
            "default": {
              "key1": "value1",
              "key2": 123
            }
          },
          "objectJsonWithConstraints": {
            "title": "Object with Constraints",
            "minProperties": 1,
            "maxProperties": 5,
            "type": "object",
            "description": "Object with patternKey, patternValue, and property count constraints",
            "default": {
              "name": "test"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify proxy settings",
            "default": {
              "useApifyProxy": false
            }
          },
          "objectSchemaBased": {
            "title": "Object (Schema-Based)",
            "required": [
              "username"
            ],
            "type": "object",
            "description": "Object with sub-properties rendered individually",
            "properties": {
              "username": {
                "type": "string",
                "title": "Username",
                "description": "Enter your username",
                "editor": "textfield"
              },
              "email": {
                "type": "string",
                "title": "Email",
                "description": "Enter your email address",
                "editor": "textfield",
                "pattern": "^[^@]+@[^@]+\\.[^@]+$"
              },
              "age": {
                "type": "integer",
                "title": "Age",
                "description": "Enter your age",
                "editor": "number",
                "minimum": 0,
                "maximum": 150
              },
              "newsletter": {
                "type": "boolean",
                "title": "Subscribe to Newsletter",
                "description": "Receive updates via email",
                "editor": "checkbox",
                "default": false
              }
            }
          },
          "object.with": {
            "title": "Object with Dot in Key",
            "type": "object",
            "description": "Testing object key with dot character",
            "default": {
              "nested": "value"
            }
          },
          "arrayJson": {
            "title": "Array (JSON Editor)",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "Basic array with JSON editor",
            "default": [
              "item1",
              "item2",
              "item3"
            ]
          },
          "arrayRequestListSources": {
            "title": "Request List Sources",
            "type": "array",
            "description": "URLs in Crawlee RequestListSources format",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "arrayPseudoUrls": {
            "title": "Pseudo URLs",
            "type": "array",
            "description": "PseudoUrl patterns for crawling",
            "items": {
              "type": "object",
              "required": [
                "purl"
              ],
              "properties": {
                "purl": {
                  "type": "string",
                  "title": "Pseudo-URL of a web page"
                }
              }
            }
          },
          "arrayGlobs": {
            "title": "Glob Patterns",
            "type": "array",
            "description": "GlobInput patterns",
            "items": {
              "type": "object",
              "required": [
                "glob"
              ],
              "properties": {
                "glob": {
                  "type": "string",
                  "title": "Glob of a web page"
                }
              }
            }
          },
          "arrayKeyValue": {
            "title": "Key-Value Array",
            "type": "array",
            "description": "Array of key-value pairs",
            "items": {
              "type": "object",
              "required": [
                "key",
                "value"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "title": "Key"
                },
                "value": {
                  "type": "string",
                  "title": "Value"
                }
              }
            }
          },
          "arrayStringList": {
            "title": "String List",
            "type": "array",
            "description": "Simple list of strings",
            "items": {
              "type": "string"
            }
          },
          "arrayFileupload": {
            "title": "Multiple File Upload",
            "type": "array",
            "description": "Upload multiple files"
          },
          "arraySelectMulti": {
            "title": "Multi-Select (Enum)",
            "type": "array",
            "description": "Multi-select dropdown with fixed options",
            "items": {
              "type": "string",
              "enum": [
                "red",
                "green",
                "blue",
                "yellow"
              ],
              "enumTitles": [
                "Red",
                "Green",
                "Blue",
                "Yellow"
              ]
            },
            "default": [
              "red",
              "blue"
            ]
          },
          "arraySelectSuggested": {
            "title": "Multi-Select (Suggested)",
            "type": "array",
            "description": "Multi-select with suggested values and custom input",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "tag1",
                "tag2",
                "tag3"
              ]
            }
          },
          "schemaBasedStringArray": {
            "title": "String Array (Schema-Based)",
            "type": "array",
            "description": "Array of strings with schema-based editor",
            "items": {
              "type": "string"
            }
          },
          "schemaBasedIntegerArray": {
            "title": "Integer Array (Schema-Based)",
            "type": "array",
            "description": "Array of integers with schema-based editor",
            "items": {
              "type": "integer"
            }
          },
          "schemaBasedBooleanArray": {
            "title": "Boolean Array (Schema-Based)",
            "type": "array",
            "description": "Array of booleans with schema-based editor",
            "items": {
              "type": "boolean"
            }
          },
          "schemaBasedObjectArray": {
            "title": "Object Array (Schema-Based)",
            "type": "array",
            "description": "Array of objects with sub-schema",
            "items": {
              "type": "object",
              "properties": {
                "firstName": {
                  "type": "string",
                  "editor": "textfield",
                  "title": "First Name",
                  "description": "Enter your first name"
                },
                "lastName": {
                  "type": "string",
                  "editor": "textfield",
                  "title": "Last Name",
                  "description": "Enter your last name"
                },
                "age": {
                  "type": "integer",
                  "editor": "number",
                  "title": "Age",
                  "description": "Enter your age",
                  "minimum": 0
                }
              },
              "required": [
                "lastName"
              ]
            }
          },
          "schemaBasedObjectArrayComplex": {
            "title": "Complex Object Array",
            "type": "array",
            "description": "Array of objects with multiple field types",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "editor": "textfield",
                  "title": "Name",
                  "description": "Enter item name"
                },
                "itemDescription": {
                  "type": "string",
                  "editor": "textarea",
                  "title": "Description",
                  "description": "Enter item description"
                },
                "count": {
                  "type": "integer",
                  "editor": "number",
                  "title": "Count",
                  "description": "Enter count value",
                  "minimum": 0,
                  "maximum": 1000
                },
                "ratio": {
                  "type": "number",
                  "editor": "number",
                  "title": "Ratio",
                  "description": "Enter ratio value",
                  "minimum": 0,
                  "maximum": 1
                },
                "enabled": {
                  "type": "boolean",
                  "editor": "checkbox",
                  "title": "Enabled",
                  "description": "Toggle enabled state",
                  "default": true
                },
                "category": {
                  "type": "string",
                  "editor": "select",
                  "title": "Category",
                  "description": "Select category type",
                  "enum": [
                    "typeA",
                    "typeB",
                    "typeC"
                  ],
                  "enumTitles": [
                    "Type A",
                    "Type B",
                    "Type C"
                  ]
                }
              },
              "required": [
                "name"
              ]
            }
          },
          "resourceDataset": {
            "title": "Dataset Resource",
            "type": "string",
            "description": "Pick a dataset resource"
          },
          "resourceKeyValueStore": {
            "title": "Key-Value Store Resource",
            "type": "string",
            "description": "Pick a key-value store resource"
          },
          "nullableString": {
            "title": "Nullable String",
            "type": "string",
            "description": "String field that can be null"
          },
          "fieldWithExample": {
            "title": "Field with Example",
            "type": "string",
            "description": "String field showing example property"
          },
          "fieldWithErrorMessage": {
            "title": "Field with Custom Error",
            "pattern": "^[A-Z]+$",
            "minLength": 2,
            "type": "string",
            "description": "String with custom error messages for validation"
          },
          "requiredField": {
            "title": "Required Field",
            "type": "string",
            "description": "This field is required"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}