doc update - add run tasks page (#2425)
This commit is contained in:
@@ -16,6 +16,7 @@ from skyvern.exceptions import (
|
||||
)
|
||||
from skyvern.forge.sdk.db.enums import TaskType
|
||||
from skyvern.forge.sdk.schemas.files import FileInfo
|
||||
from skyvern.schemas.docs.doc_strings import PROXY_LOCATION_DOC_STRING
|
||||
from skyvern.schemas.runs import ProxyLocation
|
||||
from skyvern.utils.url_validators import validate_url
|
||||
|
||||
@@ -65,8 +66,7 @@ class TaskBase(BaseModel):
|
||||
)
|
||||
proxy_location: ProxyLocation | None = Field(
|
||||
default=None,
|
||||
description="The location of the proxy to use for the task.",
|
||||
examples=["US-WA", "US-CA", "US-FL", "US-NY", "US-TX"],
|
||||
description=PROXY_LOCATION_DOC_STRING,
|
||||
)
|
||||
extracted_information_schema: dict[str, Any] | list | str | None = Field(
|
||||
default=None,
|
||||
|
||||
@@ -24,7 +24,12 @@ ALGORITHM = "HS256"
|
||||
|
||||
|
||||
async def get_current_org(
|
||||
x_api_key: Annotated[str | None, Header(description="API key for authentication")] = None,
|
||||
x_api_key: Annotated[
|
||||
str | None,
|
||||
Header(
|
||||
description="Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
|
||||
),
|
||||
] = None,
|
||||
authorization: Annotated[str | None, Header(include_in_schema=False)] = None,
|
||||
) -> Organization:
|
||||
if not x_api_key and not authorization:
|
||||
|
||||
Reference in New Issue
Block a user