upgrade versions and autogenerated client code (#2053)
This commit is contained in:
1
fern/.preview/fern-python-sdk
Submodule
1
fern/.preview/fern-python-sdk
Submodule
Submodule fern/.preview/fern-python-sdk added at 8e5fdfcfea
File diff suppressed because it is too large
Load Diff
2438
poetry.lock
generated
2438
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@ commentjson = "^0.9.0"
|
|||||||
asyncache = "^0.3.1"
|
asyncache = "^0.3.1"
|
||||||
orjson = "^3.9.10"
|
orjson = "^3.9.10"
|
||||||
structlog = "^23.2.0"
|
structlog = "^23.2.0"
|
||||||
typer = "^0.9.0"
|
typer = ">=0.9.0,<1.0"
|
||||||
types-toml = "^0.10.8.7"
|
types-toml = "^0.10.8.7"
|
||||||
httpx = {version = "^0.27.0", extras = ["socks"]}
|
httpx = {version = "^0.27.0", extras = ["socks"]}
|
||||||
filetype = "^1.2.0"
|
filetype = "^1.2.0"
|
||||||
|
|||||||
@@ -1,592 +1,58 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
from .types import (
|
from .types import (
|
||||||
Action,
|
|
||||||
ActionBlock,
|
|
||||||
ActionBlockDataSchema,
|
|
||||||
ActionBlockParametersItem,
|
|
||||||
ActionBlockParametersItem_AwsSecret,
|
|
||||||
ActionBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
ActionBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
ActionBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
ActionBlockParametersItem_Context,
|
|
||||||
ActionBlockParametersItem_Credential,
|
|
||||||
ActionBlockParametersItem_Output,
|
|
||||||
ActionBlockParametersItem_Workflow,
|
|
||||||
ActionResult,
|
|
||||||
ActionStatus,
|
|
||||||
ActionType,
|
|
||||||
AgentStepOutput,
|
|
||||||
Artifact,
|
|
||||||
ArtifactType,
|
|
||||||
AwsSecretParameter,
|
|
||||||
BitwardenCreditCardDataParameter,
|
|
||||||
BitwardenLoginCredentialParameter,
|
|
||||||
BitwardenSensitiveInformationParameter,
|
|
||||||
BlockType,
|
|
||||||
BrowserSessionResponse,
|
BrowserSessionResponse,
|
||||||
CodeBlock,
|
|
||||||
CodeBlockParametersItem,
|
|
||||||
CodeBlockParametersItem_AwsSecret,
|
|
||||||
CodeBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
CodeBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
CodeBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
CodeBlockParametersItem_Context,
|
|
||||||
CodeBlockParametersItem_Credential,
|
|
||||||
CodeBlockParametersItem_Output,
|
|
||||||
CodeBlockParametersItem_Workflow,
|
|
||||||
ContextParameter,
|
|
||||||
CreateCredentialRequest,
|
|
||||||
CreateTaskResponse,
|
|
||||||
Credential,
|
|
||||||
CredentialParameter,
|
|
||||||
CredentialResponse,
|
|
||||||
CredentialType,
|
|
||||||
CreditCardCredentialResponse,
|
|
||||||
Data,
|
|
||||||
DownloadToS3Block,
|
|
||||||
EntityType,
|
|
||||||
ExtractionBlock,
|
|
||||||
ExtractionBlockDataSchema,
|
|
||||||
ExtractionBlockParametersItem,
|
|
||||||
ExtractionBlockParametersItem_AwsSecret,
|
|
||||||
ExtractionBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
ExtractionBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
ExtractionBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
ExtractionBlockParametersItem_Context,
|
|
||||||
ExtractionBlockParametersItem_Credential,
|
|
||||||
ExtractionBlockParametersItem_Output,
|
|
||||||
ExtractionBlockParametersItem_Workflow,
|
|
||||||
FileDownloadBlock,
|
|
||||||
FileDownloadBlockDataSchema,
|
|
||||||
FileDownloadBlockParametersItem,
|
|
||||||
FileDownloadBlockParametersItem_AwsSecret,
|
|
||||||
FileDownloadBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
FileDownloadBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
FileDownloadBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
FileDownloadBlockParametersItem_Context,
|
|
||||||
FileDownloadBlockParametersItem_Credential,
|
|
||||||
FileDownloadBlockParametersItem_Output,
|
|
||||||
FileDownloadBlockParametersItem_Workflow,
|
|
||||||
FileInfo,
|
|
||||||
FileParserBlock,
|
|
||||||
FileStorageType,
|
|
||||||
FileType,
|
|
||||||
FileUploadBlock,
|
|
||||||
ForLoopBlock,
|
|
||||||
ForLoopBlockLoopBlocksItem,
|
|
||||||
ForLoopBlockLoopBlocksItem_Action,
|
|
||||||
ForLoopBlockLoopBlocksItem_Code,
|
|
||||||
ForLoopBlockLoopBlocksItem_DownloadToS3,
|
|
||||||
ForLoopBlockLoopBlocksItem_Extraction,
|
|
||||||
ForLoopBlockLoopBlocksItem_FileDownload,
|
|
||||||
ForLoopBlockLoopBlocksItem_FileUpload,
|
|
||||||
ForLoopBlockLoopBlocksItem_FileUrlParser,
|
|
||||||
ForLoopBlockLoopBlocksItem_ForLoop,
|
|
||||||
ForLoopBlockLoopBlocksItem_GotoUrl,
|
|
||||||
ForLoopBlockLoopBlocksItem_Login,
|
|
||||||
ForLoopBlockLoopBlocksItem_Navigation,
|
|
||||||
ForLoopBlockLoopBlocksItem_PdfParser,
|
|
||||||
ForLoopBlockLoopBlocksItem_SendEmail,
|
|
||||||
ForLoopBlockLoopBlocksItem_Task,
|
|
||||||
ForLoopBlockLoopBlocksItem_TaskV2,
|
|
||||||
ForLoopBlockLoopBlocksItem_TextPrompt,
|
|
||||||
ForLoopBlockLoopBlocksItem_UploadToS3,
|
|
||||||
ForLoopBlockLoopBlocksItem_Validation,
|
|
||||||
ForLoopBlockLoopBlocksItem_Wait,
|
|
||||||
ForLoopBlockLoopOver,
|
|
||||||
ForLoopBlockLoopOver_AwsSecret,
|
|
||||||
ForLoopBlockLoopOver_BitwardenCreditCardData,
|
|
||||||
ForLoopBlockLoopOver_BitwardenLoginCredential,
|
|
||||||
ForLoopBlockLoopOver_BitwardenSensitiveInformation,
|
|
||||||
ForLoopBlockLoopOver_Context,
|
|
||||||
ForLoopBlockLoopOver_Credential,
|
|
||||||
ForLoopBlockLoopOver_Output,
|
|
||||||
ForLoopBlockLoopOver_Workflow,
|
|
||||||
GetOrganizationApiKeysResponse,
|
|
||||||
GetOrganizationsResponse,
|
|
||||||
HttpValidationError,
|
HttpValidationError,
|
||||||
LoginBlock,
|
|
||||||
LoginBlockDataSchema,
|
|
||||||
LoginBlockParametersItem,
|
|
||||||
LoginBlockParametersItem_AwsSecret,
|
|
||||||
LoginBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
LoginBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
LoginBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
LoginBlockParametersItem_Context,
|
|
||||||
LoginBlockParametersItem_Credential,
|
|
||||||
LoginBlockParametersItem_Output,
|
|
||||||
LoginBlockParametersItem_Workflow,
|
|
||||||
NavigationBlock,
|
|
||||||
NavigationBlockDataSchema,
|
|
||||||
NavigationBlockParametersItem,
|
|
||||||
NavigationBlockParametersItem_AwsSecret,
|
|
||||||
NavigationBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
NavigationBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
NavigationBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
NavigationBlockParametersItem_Context,
|
|
||||||
NavigationBlockParametersItem_Credential,
|
|
||||||
NavigationBlockParametersItem_Output,
|
|
||||||
NavigationBlockParametersItem_Workflow,
|
|
||||||
NonEmptyCreditCardCredential,
|
|
||||||
NonEmptyPasswordCredential,
|
|
||||||
OrderBy,
|
|
||||||
Organization,
|
|
||||||
OrganizationAuthToken,
|
|
||||||
OrganizationAuthTokenType,
|
|
||||||
Output,
|
Output,
|
||||||
OutputParameter,
|
|
||||||
PasswordCredentialResponse,
|
|
||||||
PdfParserBlock,
|
|
||||||
ProxyLocation,
|
ProxyLocation,
|
||||||
RunEngine,
|
RunEngine,
|
||||||
RunWorkflowResponse,
|
RunStatus,
|
||||||
SelectOption,
|
TaskRunRequest,
|
||||||
SendEmailBlock,
|
TaskRunRequestDataExtractionSchema,
|
||||||
SortDirection,
|
|
||||||
Source,
|
|
||||||
Source_AwsSecret,
|
|
||||||
Source_BitwardenCreditCardData,
|
|
||||||
Source_BitwardenLoginCredential,
|
|
||||||
Source_BitwardenSensitiveInformation,
|
|
||||||
Source_Context,
|
|
||||||
Source_Credential,
|
|
||||||
Source_Output,
|
|
||||||
Source_Workflow,
|
|
||||||
Step,
|
|
||||||
StepStatus,
|
|
||||||
Task,
|
|
||||||
TaskBase,
|
|
||||||
TaskBaseExtractedInformationSchema,
|
|
||||||
TaskBaseNavigationPayload,
|
|
||||||
TaskBlock,
|
|
||||||
TaskBlockDataSchema,
|
|
||||||
TaskBlockParametersItem,
|
|
||||||
TaskBlockParametersItem_AwsSecret,
|
|
||||||
TaskBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
TaskBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
TaskBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
TaskBlockParametersItem_Context,
|
|
||||||
TaskBlockParametersItem_Credential,
|
|
||||||
TaskBlockParametersItem_Output,
|
|
||||||
TaskBlockParametersItem_Workflow,
|
|
||||||
TaskExtractedInformation,
|
|
||||||
TaskExtractedInformationSchema,
|
|
||||||
TaskGeneration,
|
|
||||||
TaskNavigationPayload,
|
|
||||||
TaskResponse,
|
|
||||||
TaskResponseExtractedInformation,
|
|
||||||
TaskRunResponse,
|
TaskRunResponse,
|
||||||
TaskRunResponseDataExtractionSchema,
|
|
||||||
TaskRunStatus,
|
|
||||||
TaskStatus,
|
|
||||||
TaskType,
|
|
||||||
TaskV2,
|
|
||||||
TaskV2Block,
|
|
||||||
TaskV2ExtractedInformationSchema,
|
|
||||||
TaskV2Status,
|
|
||||||
TextPromptBlock,
|
|
||||||
TextPromptBlockParametersItem,
|
|
||||||
TextPromptBlockParametersItem_AwsSecret,
|
|
||||||
TextPromptBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
TextPromptBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
TextPromptBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
TextPromptBlockParametersItem_Context,
|
|
||||||
TextPromptBlockParametersItem_Credential,
|
|
||||||
TextPromptBlockParametersItem_Output,
|
|
||||||
TextPromptBlockParametersItem_Workflow,
|
|
||||||
Thought,
|
|
||||||
ThoughtScenario,
|
|
||||||
ThoughtType,
|
|
||||||
TotpCode,
|
|
||||||
UploadToS3Block,
|
|
||||||
UrlBlock,
|
|
||||||
UrlBlockDataSchema,
|
|
||||||
UrlBlockParametersItem,
|
|
||||||
UrlBlockParametersItem_AwsSecret,
|
|
||||||
UrlBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
UrlBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
UrlBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
UrlBlockParametersItem_Context,
|
|
||||||
UrlBlockParametersItem_Credential,
|
|
||||||
UrlBlockParametersItem_Output,
|
|
||||||
UrlBlockParametersItem_Workflow,
|
|
||||||
UserDefinedError,
|
|
||||||
ValidationBlock,
|
|
||||||
ValidationBlockDataSchema,
|
|
||||||
ValidationBlockParametersItem,
|
|
||||||
ValidationBlockParametersItem_AwsSecret,
|
|
||||||
ValidationBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
ValidationBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
ValidationBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
ValidationBlockParametersItem_Context,
|
|
||||||
ValidationBlockParametersItem_Credential,
|
|
||||||
ValidationBlockParametersItem_Output,
|
|
||||||
ValidationBlockParametersItem_Workflow,
|
|
||||||
ValidationError,
|
ValidationError,
|
||||||
ValidationErrorLocItem,
|
ValidationErrorLocItem,
|
||||||
Value,
|
WorkflowRunRequest,
|
||||||
WaitBlock,
|
|
||||||
WaitBlockParametersItem,
|
|
||||||
WaitBlockParametersItem_AwsSecret,
|
|
||||||
WaitBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
WaitBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
WaitBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
WaitBlockParametersItem_Context,
|
|
||||||
WaitBlockParametersItem_Credential,
|
|
||||||
WaitBlockParametersItem_Output,
|
|
||||||
WaitBlockParametersItem_Workflow,
|
|
||||||
Workflow,
|
|
||||||
WorkflowDefinition,
|
|
||||||
WorkflowDefinitionBlocksItem,
|
|
||||||
WorkflowDefinitionBlocksItem_Action,
|
|
||||||
WorkflowDefinitionBlocksItem_Code,
|
|
||||||
WorkflowDefinitionBlocksItem_DownloadToS3,
|
|
||||||
WorkflowDefinitionBlocksItem_Extraction,
|
|
||||||
WorkflowDefinitionBlocksItem_FileDownload,
|
|
||||||
WorkflowDefinitionBlocksItem_FileUpload,
|
|
||||||
WorkflowDefinitionBlocksItem_FileUrlParser,
|
|
||||||
WorkflowDefinitionBlocksItem_ForLoop,
|
|
||||||
WorkflowDefinitionBlocksItem_GotoUrl,
|
|
||||||
WorkflowDefinitionBlocksItem_Login,
|
|
||||||
WorkflowDefinitionBlocksItem_Navigation,
|
|
||||||
WorkflowDefinitionBlocksItem_PdfParser,
|
|
||||||
WorkflowDefinitionBlocksItem_SendEmail,
|
|
||||||
WorkflowDefinitionBlocksItem_Task,
|
|
||||||
WorkflowDefinitionBlocksItem_TaskV2,
|
|
||||||
WorkflowDefinitionBlocksItem_TextPrompt,
|
|
||||||
WorkflowDefinitionBlocksItem_UploadToS3,
|
|
||||||
WorkflowDefinitionBlocksItem_Validation,
|
|
||||||
WorkflowDefinitionBlocksItem_Wait,
|
|
||||||
WorkflowDefinitionParametersItem,
|
|
||||||
WorkflowDefinitionParametersItem_AwsSecret,
|
|
||||||
WorkflowDefinitionParametersItem_BitwardenCreditCardData,
|
|
||||||
WorkflowDefinitionParametersItem_BitwardenLoginCredential,
|
|
||||||
WorkflowDefinitionParametersItem_BitwardenSensitiveInformation,
|
|
||||||
WorkflowDefinitionParametersItem_Context,
|
|
||||||
WorkflowDefinitionParametersItem_Credential,
|
|
||||||
WorkflowDefinitionParametersItem_Output,
|
|
||||||
WorkflowDefinitionParametersItem_Workflow,
|
|
||||||
WorkflowParameter,
|
|
||||||
WorkflowParameterDefaultValue,
|
|
||||||
WorkflowParameterType,
|
|
||||||
WorkflowRun,
|
|
||||||
WorkflowRunBlock,
|
|
||||||
WorkflowRunBlockDataSchema,
|
|
||||||
WorkflowRunBlockNavigationPayload,
|
|
||||||
WorkflowRunResponse,
|
WorkflowRunResponse,
|
||||||
WorkflowRunStatus,
|
|
||||||
WorkflowRunTimeline,
|
|
||||||
WorkflowRunTimelineType,
|
|
||||||
WorkflowStatus,
|
|
||||||
)
|
)
|
||||||
from .errors import UnprocessableEntityError
|
from .errors import BadRequestError, NotFoundError, UnauthorizedError, UnprocessableEntityError
|
||||||
from . import agent, server, session
|
from . import agent, browser_session
|
||||||
from .agent import (
|
from .agent import (
|
||||||
AgentGetRunsResponseItem,
|
AgentGetRunResponse,
|
||||||
AgentRunTaskV2RequestXMaxIterationsOverride,
|
AgentGetRunResponse_TaskV1,
|
||||||
AgentRunTaskV2RequestXMaxStepsOverride,
|
AgentGetRunResponse_TaskV2,
|
||||||
TaskRequestExtractedInformationSchema,
|
AgentGetRunResponse_WorkflowRun,
|
||||||
TaskRequestNavigationPayload,
|
|
||||||
TaskRunRequestDataExtractionSchema,
|
|
||||||
TaskV2RequestExtractedInformationSchema,
|
|
||||||
)
|
)
|
||||||
from .client import AsyncSkyvern, Skyvern
|
from .client import AsyncSkyvern, Skyvern
|
||||||
from .environment import SkyvernEnvironment
|
from .environment import SkyvernEnvironment
|
||||||
from .version import __version__
|
from .version import __version__
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Action",
|
"AgentGetRunResponse",
|
||||||
"ActionBlock",
|
"AgentGetRunResponse_TaskV1",
|
||||||
"ActionBlockDataSchema",
|
"AgentGetRunResponse_TaskV2",
|
||||||
"ActionBlockParametersItem",
|
"AgentGetRunResponse_WorkflowRun",
|
||||||
"ActionBlockParametersItem_AwsSecret",
|
|
||||||
"ActionBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"ActionBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"ActionBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"ActionBlockParametersItem_Context",
|
|
||||||
"ActionBlockParametersItem_Credential",
|
|
||||||
"ActionBlockParametersItem_Output",
|
|
||||||
"ActionBlockParametersItem_Workflow",
|
|
||||||
"ActionResult",
|
|
||||||
"ActionStatus",
|
|
||||||
"ActionType",
|
|
||||||
"AgentGetRunsResponseItem",
|
|
||||||
"AgentRunTaskV2RequestXMaxIterationsOverride",
|
|
||||||
"AgentRunTaskV2RequestXMaxStepsOverride",
|
|
||||||
"AgentStepOutput",
|
|
||||||
"Artifact",
|
|
||||||
"ArtifactType",
|
|
||||||
"AsyncSkyvern",
|
"AsyncSkyvern",
|
||||||
"AwsSecretParameter",
|
"BadRequestError",
|
||||||
"BitwardenCreditCardDataParameter",
|
|
||||||
"BitwardenLoginCredentialParameter",
|
|
||||||
"BitwardenSensitiveInformationParameter",
|
|
||||||
"BlockType",
|
|
||||||
"BrowserSessionResponse",
|
"BrowserSessionResponse",
|
||||||
"CodeBlock",
|
|
||||||
"CodeBlockParametersItem",
|
|
||||||
"CodeBlockParametersItem_AwsSecret",
|
|
||||||
"CodeBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"CodeBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"CodeBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"CodeBlockParametersItem_Context",
|
|
||||||
"CodeBlockParametersItem_Credential",
|
|
||||||
"CodeBlockParametersItem_Output",
|
|
||||||
"CodeBlockParametersItem_Workflow",
|
|
||||||
"ContextParameter",
|
|
||||||
"CreateCredentialRequest",
|
|
||||||
"CreateTaskResponse",
|
|
||||||
"Credential",
|
|
||||||
"CredentialParameter",
|
|
||||||
"CredentialResponse",
|
|
||||||
"CredentialType",
|
|
||||||
"CreditCardCredentialResponse",
|
|
||||||
"Data",
|
|
||||||
"DownloadToS3Block",
|
|
||||||
"EntityType",
|
|
||||||
"ExtractionBlock",
|
|
||||||
"ExtractionBlockDataSchema",
|
|
||||||
"ExtractionBlockParametersItem",
|
|
||||||
"ExtractionBlockParametersItem_AwsSecret",
|
|
||||||
"ExtractionBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"ExtractionBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"ExtractionBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"ExtractionBlockParametersItem_Context",
|
|
||||||
"ExtractionBlockParametersItem_Credential",
|
|
||||||
"ExtractionBlockParametersItem_Output",
|
|
||||||
"ExtractionBlockParametersItem_Workflow",
|
|
||||||
"FileDownloadBlock",
|
|
||||||
"FileDownloadBlockDataSchema",
|
|
||||||
"FileDownloadBlockParametersItem",
|
|
||||||
"FileDownloadBlockParametersItem_AwsSecret",
|
|
||||||
"FileDownloadBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"FileDownloadBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"FileDownloadBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"FileDownloadBlockParametersItem_Context",
|
|
||||||
"FileDownloadBlockParametersItem_Credential",
|
|
||||||
"FileDownloadBlockParametersItem_Output",
|
|
||||||
"FileDownloadBlockParametersItem_Workflow",
|
|
||||||
"FileInfo",
|
|
||||||
"FileParserBlock",
|
|
||||||
"FileStorageType",
|
|
||||||
"FileType",
|
|
||||||
"FileUploadBlock",
|
|
||||||
"ForLoopBlock",
|
|
||||||
"ForLoopBlockLoopBlocksItem",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Action",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Code",
|
|
||||||
"ForLoopBlockLoopBlocksItem_DownloadToS3",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Extraction",
|
|
||||||
"ForLoopBlockLoopBlocksItem_FileDownload",
|
|
||||||
"ForLoopBlockLoopBlocksItem_FileUpload",
|
|
||||||
"ForLoopBlockLoopBlocksItem_FileUrlParser",
|
|
||||||
"ForLoopBlockLoopBlocksItem_ForLoop",
|
|
||||||
"ForLoopBlockLoopBlocksItem_GotoUrl",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Login",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Navigation",
|
|
||||||
"ForLoopBlockLoopBlocksItem_PdfParser",
|
|
||||||
"ForLoopBlockLoopBlocksItem_SendEmail",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Task",
|
|
||||||
"ForLoopBlockLoopBlocksItem_TaskV2",
|
|
||||||
"ForLoopBlockLoopBlocksItem_TextPrompt",
|
|
||||||
"ForLoopBlockLoopBlocksItem_UploadToS3",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Validation",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Wait",
|
|
||||||
"ForLoopBlockLoopOver",
|
|
||||||
"ForLoopBlockLoopOver_AwsSecret",
|
|
||||||
"ForLoopBlockLoopOver_BitwardenCreditCardData",
|
|
||||||
"ForLoopBlockLoopOver_BitwardenLoginCredential",
|
|
||||||
"ForLoopBlockLoopOver_BitwardenSensitiveInformation",
|
|
||||||
"ForLoopBlockLoopOver_Context",
|
|
||||||
"ForLoopBlockLoopOver_Credential",
|
|
||||||
"ForLoopBlockLoopOver_Output",
|
|
||||||
"ForLoopBlockLoopOver_Workflow",
|
|
||||||
"GetOrganizationApiKeysResponse",
|
|
||||||
"GetOrganizationsResponse",
|
|
||||||
"HttpValidationError",
|
"HttpValidationError",
|
||||||
"LoginBlock",
|
"NotFoundError",
|
||||||
"LoginBlockDataSchema",
|
|
||||||
"LoginBlockParametersItem",
|
|
||||||
"LoginBlockParametersItem_AwsSecret",
|
|
||||||
"LoginBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"LoginBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"LoginBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"LoginBlockParametersItem_Context",
|
|
||||||
"LoginBlockParametersItem_Credential",
|
|
||||||
"LoginBlockParametersItem_Output",
|
|
||||||
"LoginBlockParametersItem_Workflow",
|
|
||||||
"NavigationBlock",
|
|
||||||
"NavigationBlockDataSchema",
|
|
||||||
"NavigationBlockParametersItem",
|
|
||||||
"NavigationBlockParametersItem_AwsSecret",
|
|
||||||
"NavigationBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"NavigationBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"NavigationBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"NavigationBlockParametersItem_Context",
|
|
||||||
"NavigationBlockParametersItem_Credential",
|
|
||||||
"NavigationBlockParametersItem_Output",
|
|
||||||
"NavigationBlockParametersItem_Workflow",
|
|
||||||
"NonEmptyCreditCardCredential",
|
|
||||||
"NonEmptyPasswordCredential",
|
|
||||||
"OrderBy",
|
|
||||||
"Organization",
|
|
||||||
"OrganizationAuthToken",
|
|
||||||
"OrganizationAuthTokenType",
|
|
||||||
"Output",
|
"Output",
|
||||||
"OutputParameter",
|
|
||||||
"PasswordCredentialResponse",
|
|
||||||
"PdfParserBlock",
|
|
||||||
"ProxyLocation",
|
"ProxyLocation",
|
||||||
"RunEngine",
|
"RunEngine",
|
||||||
"RunWorkflowResponse",
|
"RunStatus",
|
||||||
"SelectOption",
|
|
||||||
"SendEmailBlock",
|
|
||||||
"Skyvern",
|
"Skyvern",
|
||||||
"SkyvernEnvironment",
|
"SkyvernEnvironment",
|
||||||
"SortDirection",
|
"TaskRunRequest",
|
||||||
"Source",
|
|
||||||
"Source_AwsSecret",
|
|
||||||
"Source_BitwardenCreditCardData",
|
|
||||||
"Source_BitwardenLoginCredential",
|
|
||||||
"Source_BitwardenSensitiveInformation",
|
|
||||||
"Source_Context",
|
|
||||||
"Source_Credential",
|
|
||||||
"Source_Output",
|
|
||||||
"Source_Workflow",
|
|
||||||
"Step",
|
|
||||||
"StepStatus",
|
|
||||||
"Task",
|
|
||||||
"TaskBase",
|
|
||||||
"TaskBaseExtractedInformationSchema",
|
|
||||||
"TaskBaseNavigationPayload",
|
|
||||||
"TaskBlock",
|
|
||||||
"TaskBlockDataSchema",
|
|
||||||
"TaskBlockParametersItem",
|
|
||||||
"TaskBlockParametersItem_AwsSecret",
|
|
||||||
"TaskBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"TaskBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"TaskBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"TaskBlockParametersItem_Context",
|
|
||||||
"TaskBlockParametersItem_Credential",
|
|
||||||
"TaskBlockParametersItem_Output",
|
|
||||||
"TaskBlockParametersItem_Workflow",
|
|
||||||
"TaskExtractedInformation",
|
|
||||||
"TaskExtractedInformationSchema",
|
|
||||||
"TaskGeneration",
|
|
||||||
"TaskNavigationPayload",
|
|
||||||
"TaskRequestExtractedInformationSchema",
|
|
||||||
"TaskRequestNavigationPayload",
|
|
||||||
"TaskResponse",
|
|
||||||
"TaskResponseExtractedInformation",
|
|
||||||
"TaskRunRequestDataExtractionSchema",
|
"TaskRunRequestDataExtractionSchema",
|
||||||
"TaskRunResponse",
|
"TaskRunResponse",
|
||||||
"TaskRunResponseDataExtractionSchema",
|
"UnauthorizedError",
|
||||||
"TaskRunStatus",
|
|
||||||
"TaskStatus",
|
|
||||||
"TaskType",
|
|
||||||
"TaskV2",
|
|
||||||
"TaskV2Block",
|
|
||||||
"TaskV2ExtractedInformationSchema",
|
|
||||||
"TaskV2RequestExtractedInformationSchema",
|
|
||||||
"TaskV2Status",
|
|
||||||
"TextPromptBlock",
|
|
||||||
"TextPromptBlockParametersItem",
|
|
||||||
"TextPromptBlockParametersItem_AwsSecret",
|
|
||||||
"TextPromptBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"TextPromptBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"TextPromptBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"TextPromptBlockParametersItem_Context",
|
|
||||||
"TextPromptBlockParametersItem_Credential",
|
|
||||||
"TextPromptBlockParametersItem_Output",
|
|
||||||
"TextPromptBlockParametersItem_Workflow",
|
|
||||||
"Thought",
|
|
||||||
"ThoughtScenario",
|
|
||||||
"ThoughtType",
|
|
||||||
"TotpCode",
|
|
||||||
"UnprocessableEntityError",
|
"UnprocessableEntityError",
|
||||||
"UploadToS3Block",
|
|
||||||
"UrlBlock",
|
|
||||||
"UrlBlockDataSchema",
|
|
||||||
"UrlBlockParametersItem",
|
|
||||||
"UrlBlockParametersItem_AwsSecret",
|
|
||||||
"UrlBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"UrlBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"UrlBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"UrlBlockParametersItem_Context",
|
|
||||||
"UrlBlockParametersItem_Credential",
|
|
||||||
"UrlBlockParametersItem_Output",
|
|
||||||
"UrlBlockParametersItem_Workflow",
|
|
||||||
"UserDefinedError",
|
|
||||||
"ValidationBlock",
|
|
||||||
"ValidationBlockDataSchema",
|
|
||||||
"ValidationBlockParametersItem",
|
|
||||||
"ValidationBlockParametersItem_AwsSecret",
|
|
||||||
"ValidationBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"ValidationBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"ValidationBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"ValidationBlockParametersItem_Context",
|
|
||||||
"ValidationBlockParametersItem_Credential",
|
|
||||||
"ValidationBlockParametersItem_Output",
|
|
||||||
"ValidationBlockParametersItem_Workflow",
|
|
||||||
"ValidationError",
|
"ValidationError",
|
||||||
"ValidationErrorLocItem",
|
"ValidationErrorLocItem",
|
||||||
"Value",
|
"WorkflowRunRequest",
|
||||||
"WaitBlock",
|
|
||||||
"WaitBlockParametersItem",
|
|
||||||
"WaitBlockParametersItem_AwsSecret",
|
|
||||||
"WaitBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"WaitBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"WaitBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"WaitBlockParametersItem_Context",
|
|
||||||
"WaitBlockParametersItem_Credential",
|
|
||||||
"WaitBlockParametersItem_Output",
|
|
||||||
"WaitBlockParametersItem_Workflow",
|
|
||||||
"Workflow",
|
|
||||||
"WorkflowDefinition",
|
|
||||||
"WorkflowDefinitionBlocksItem",
|
|
||||||
"WorkflowDefinitionBlocksItem_Action",
|
|
||||||
"WorkflowDefinitionBlocksItem_Code",
|
|
||||||
"WorkflowDefinitionBlocksItem_DownloadToS3",
|
|
||||||
"WorkflowDefinitionBlocksItem_Extraction",
|
|
||||||
"WorkflowDefinitionBlocksItem_FileDownload",
|
|
||||||
"WorkflowDefinitionBlocksItem_FileUpload",
|
|
||||||
"WorkflowDefinitionBlocksItem_FileUrlParser",
|
|
||||||
"WorkflowDefinitionBlocksItem_ForLoop",
|
|
||||||
"WorkflowDefinitionBlocksItem_GotoUrl",
|
|
||||||
"WorkflowDefinitionBlocksItem_Login",
|
|
||||||
"WorkflowDefinitionBlocksItem_Navigation",
|
|
||||||
"WorkflowDefinitionBlocksItem_PdfParser",
|
|
||||||
"WorkflowDefinitionBlocksItem_SendEmail",
|
|
||||||
"WorkflowDefinitionBlocksItem_Task",
|
|
||||||
"WorkflowDefinitionBlocksItem_TaskV2",
|
|
||||||
"WorkflowDefinitionBlocksItem_TextPrompt",
|
|
||||||
"WorkflowDefinitionBlocksItem_UploadToS3",
|
|
||||||
"WorkflowDefinitionBlocksItem_Validation",
|
|
||||||
"WorkflowDefinitionBlocksItem_Wait",
|
|
||||||
"WorkflowDefinitionParametersItem",
|
|
||||||
"WorkflowDefinitionParametersItem_AwsSecret",
|
|
||||||
"WorkflowDefinitionParametersItem_BitwardenCreditCardData",
|
|
||||||
"WorkflowDefinitionParametersItem_BitwardenLoginCredential",
|
|
||||||
"WorkflowDefinitionParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"WorkflowDefinitionParametersItem_Context",
|
|
||||||
"WorkflowDefinitionParametersItem_Credential",
|
|
||||||
"WorkflowDefinitionParametersItem_Output",
|
|
||||||
"WorkflowDefinitionParametersItem_Workflow",
|
|
||||||
"WorkflowParameter",
|
|
||||||
"WorkflowParameterDefaultValue",
|
|
||||||
"WorkflowParameterType",
|
|
||||||
"WorkflowRun",
|
|
||||||
"WorkflowRunBlock",
|
|
||||||
"WorkflowRunBlockDataSchema",
|
|
||||||
"WorkflowRunBlockNavigationPayload",
|
|
||||||
"WorkflowRunResponse",
|
"WorkflowRunResponse",
|
||||||
"WorkflowRunStatus",
|
|
||||||
"WorkflowRunTimeline",
|
|
||||||
"WorkflowRunTimelineType",
|
|
||||||
"WorkflowStatus",
|
|
||||||
"__version__",
|
"__version__",
|
||||||
"agent",
|
"agent",
|
||||||
"server",
|
"browser_session",
|
||||||
"session",
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,21 +1,15 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
from .types import (
|
from .types import (
|
||||||
AgentGetRunsResponseItem,
|
AgentGetRunResponse,
|
||||||
AgentRunTaskV2RequestXMaxIterationsOverride,
|
AgentGetRunResponse_TaskV1,
|
||||||
AgentRunTaskV2RequestXMaxStepsOverride,
|
AgentGetRunResponse_TaskV2,
|
||||||
TaskRequestExtractedInformationSchema,
|
AgentGetRunResponse_WorkflowRun,
|
||||||
TaskRequestNavigationPayload,
|
|
||||||
TaskRunRequestDataExtractionSchema,
|
|
||||||
TaskV2RequestExtractedInformationSchema,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"AgentGetRunsResponseItem",
|
"AgentGetRunResponse",
|
||||||
"AgentRunTaskV2RequestXMaxIterationsOverride",
|
"AgentGetRunResponse_TaskV1",
|
||||||
"AgentRunTaskV2RequestXMaxStepsOverride",
|
"AgentGetRunResponse_TaskV2",
|
||||||
"TaskRequestExtractedInformationSchema",
|
"AgentGetRunResponse_WorkflowRun",
|
||||||
"TaskRequestNavigationPayload",
|
|
||||||
"TaskRunRequestDataExtractionSchema",
|
|
||||||
"TaskV2RequestExtractedInformationSchema",
|
|
||||||
]
|
]
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,19 +1,15 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
from .agent_get_runs_response_item import AgentGetRunsResponseItem
|
from .agent_get_run_response import (
|
||||||
from .agent_run_task_v2request_x_max_iterations_override import AgentRunTaskV2RequestXMaxIterationsOverride
|
AgentGetRunResponse,
|
||||||
from .agent_run_task_v2request_x_max_steps_override import AgentRunTaskV2RequestXMaxStepsOverride
|
AgentGetRunResponse_TaskV1,
|
||||||
from .task_request_extracted_information_schema import TaskRequestExtractedInformationSchema
|
AgentGetRunResponse_TaskV2,
|
||||||
from .task_request_navigation_payload import TaskRequestNavigationPayload
|
AgentGetRunResponse_WorkflowRun,
|
||||||
from .task_run_request_data_extraction_schema import TaskRunRequestDataExtractionSchema
|
)
|
||||||
from .task_v2request_extracted_information_schema import TaskV2RequestExtractedInformationSchema
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"AgentGetRunsResponseItem",
|
"AgentGetRunResponse",
|
||||||
"AgentRunTaskV2RequestXMaxIterationsOverride",
|
"AgentGetRunResponse_TaskV1",
|
||||||
"AgentRunTaskV2RequestXMaxStepsOverride",
|
"AgentGetRunResponse_TaskV2",
|
||||||
"TaskRequestExtractedInformationSchema",
|
"AgentGetRunResponse_WorkflowRun",
|
||||||
"TaskRequestNavigationPayload",
|
|
||||||
"TaskRunRequestDataExtractionSchema",
|
|
||||||
"TaskV2RequestExtractedInformationSchema",
|
|
||||||
]
|
]
|
||||||
|
|||||||
77
skyvern/client/agent/types/agent_get_run_response.py
Normal file
77
skyvern/client/agent/types/agent_get_run_response.py
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
from ...core.pydantic_utilities import UniversalBaseModel
|
||||||
|
import typing
|
||||||
|
from ...types.run_status import RunStatus
|
||||||
|
from ...types.output import Output
|
||||||
|
import datetime as dt
|
||||||
|
from ...types.task_run_request import TaskRunRequest
|
||||||
|
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
||||||
|
import pydantic
|
||||||
|
from ...types.workflow_run_request import WorkflowRunRequest
|
||||||
|
|
||||||
|
|
||||||
|
class AgentGetRunResponse_TaskV1(UniversalBaseModel):
|
||||||
|
run_type: typing.Literal["task_v1"] = "task_v1"
|
||||||
|
run_id: str
|
||||||
|
status: RunStatus
|
||||||
|
output: typing.Optional[Output] = None
|
||||||
|
failure_reason: typing.Optional[str] = None
|
||||||
|
created_at: dt.datetime
|
||||||
|
modified_at: dt.datetime
|
||||||
|
run_request: typing.Optional[TaskRunRequest] = None
|
||||||
|
|
||||||
|
if IS_PYDANTIC_V2:
|
||||||
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
||||||
|
else:
|
||||||
|
|
||||||
|
class Config:
|
||||||
|
frozen = True
|
||||||
|
smart_union = True
|
||||||
|
extra = pydantic.Extra.allow
|
||||||
|
|
||||||
|
|
||||||
|
class AgentGetRunResponse_TaskV2(UniversalBaseModel):
|
||||||
|
run_type: typing.Literal["task_v2"] = "task_v2"
|
||||||
|
run_id: str
|
||||||
|
status: RunStatus
|
||||||
|
output: typing.Optional[Output] = None
|
||||||
|
failure_reason: typing.Optional[str] = None
|
||||||
|
created_at: dt.datetime
|
||||||
|
modified_at: dt.datetime
|
||||||
|
run_request: typing.Optional[TaskRunRequest] = None
|
||||||
|
|
||||||
|
if IS_PYDANTIC_V2:
|
||||||
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
||||||
|
else:
|
||||||
|
|
||||||
|
class Config:
|
||||||
|
frozen = True
|
||||||
|
smart_union = True
|
||||||
|
extra = pydantic.Extra.allow
|
||||||
|
|
||||||
|
|
||||||
|
class AgentGetRunResponse_WorkflowRun(UniversalBaseModel):
|
||||||
|
run_type: typing.Literal["workflow_run"] = "workflow_run"
|
||||||
|
run_id: str
|
||||||
|
status: RunStatus
|
||||||
|
output: typing.Optional[Output] = None
|
||||||
|
failure_reason: typing.Optional[str] = None
|
||||||
|
created_at: dt.datetime
|
||||||
|
modified_at: dt.datetime
|
||||||
|
run_request: typing.Optional[WorkflowRunRequest] = None
|
||||||
|
|
||||||
|
if IS_PYDANTIC_V2:
|
||||||
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
||||||
|
else:
|
||||||
|
|
||||||
|
class Config:
|
||||||
|
frozen = True
|
||||||
|
smart_union = True
|
||||||
|
extra = pydantic.Extra.allow
|
||||||
|
|
||||||
|
|
||||||
|
AgentGetRunResponse = typing.Union[
|
||||||
|
AgentGetRunResponse_TaskV1, AgentGetRunResponse_TaskV2, AgentGetRunResponse_WorkflowRun
|
||||||
|
]
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
from ...types.workflow_run import WorkflowRun
|
|
||||||
from ...types.task import Task
|
|
||||||
|
|
||||||
AgentGetRunsResponseItem = typing.Union[WorkflowRun, Task]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
AgentRunTaskV2RequestXMaxIterationsOverride = typing.Union[int, str]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
AgentRunTaskV2RequestXMaxStepsOverride = typing.Union[int, str]
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
TaskRequestExtractedInformationSchema = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
|
||||||
]
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
TaskRequestNavigationPayload = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
|
||||||
]
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
TaskV2RequestExtractedInformationSchema = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
|
||||||
]
|
|
||||||
@@ -6,6 +6,8 @@ from ..core.request_options import RequestOptions
|
|||||||
from ..types.browser_session_response import BrowserSessionResponse
|
from ..types.browser_session_response import BrowserSessionResponse
|
||||||
from ..core.jsonable_encoder import jsonable_encoder
|
from ..core.jsonable_encoder import jsonable_encoder
|
||||||
from ..core.pydantic_utilities import parse_obj_as
|
from ..core.pydantic_utilities import parse_obj_as
|
||||||
|
from ..errors.unauthorized_error import UnauthorizedError
|
||||||
|
from ..errors.not_found_error import NotFoundError
|
||||||
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
||||||
from ..types.http_validation_error import HttpValidationError
|
from ..types.http_validation_error import HttpValidationError
|
||||||
from json.decoder import JSONDecodeError
|
from json.decoder import JSONDecodeError
|
||||||
@@ -13,7 +15,7 @@ from ..core.api_error import ApiError
|
|||||||
from ..core.client_wrapper import AsyncClientWrapper
|
from ..core.client_wrapper import AsyncClientWrapper
|
||||||
|
|
||||||
|
|
||||||
class SessionClient:
|
class BrowserSessionClient:
|
||||||
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
||||||
self._client_wrapper = client_wrapper
|
self._client_wrapper = client_wrapper
|
||||||
|
|
||||||
@@ -21,6 +23,8 @@ class SessionClient:
|
|||||||
self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
||||||
) -> BrowserSessionResponse:
|
) -> BrowserSessionResponse:
|
||||||
"""
|
"""
|
||||||
|
Get details about a specific browser session by ID
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
browser_session_id : str
|
browser_session_id : str
|
||||||
@@ -31,7 +35,7 @@ class SessionClient:
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
BrowserSessionResponse
|
BrowserSessionResponse
|
||||||
Successful Response
|
Successfully retrieved browser session details
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
@@ -41,12 +45,12 @@ class SessionClient:
|
|||||||
api_key="YOUR_API_KEY",
|
api_key="YOUR_API_KEY",
|
||||||
authorization="YOUR_AUTHORIZATION",
|
authorization="YOUR_AUTHORIZATION",
|
||||||
)
|
)
|
||||||
client.session.get_browser_session(
|
client.browser_session.get_browser_session(
|
||||||
browser_session_id="browser_session_id",
|
browser_session_id="browser_session_id",
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
_response = self._client_wrapper.httpx_client.request(
|
||||||
f"api/v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
|
f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
|
||||||
method="GET",
|
method="GET",
|
||||||
request_options=request_options,
|
request_options=request_options,
|
||||||
)
|
)
|
||||||
@@ -59,6 +63,26 @@ class SessionClient:
|
|||||||
object_=_response.json(),
|
object_=_response.json(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if _response.status_code == 401:
|
||||||
|
raise UnauthorizedError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
if _response.status_code == 404:
|
||||||
|
raise NotFoundError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
if _response.status_code == 422:
|
if _response.status_code == 422:
|
||||||
raise UnprocessableEntityError(
|
raise UnprocessableEntityError(
|
||||||
typing.cast(
|
typing.cast(
|
||||||
@@ -88,7 +112,7 @@ class SessionClient:
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
typing.List[BrowserSessionResponse]
|
typing.List[BrowserSessionResponse]
|
||||||
Successful Response
|
Successfully retrieved all active browser sessions
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
@@ -98,10 +122,10 @@ class SessionClient:
|
|||||||
api_key="YOUR_API_KEY",
|
api_key="YOUR_API_KEY",
|
||||||
authorization="YOUR_AUTHORIZATION",
|
authorization="YOUR_AUTHORIZATION",
|
||||||
)
|
)
|
||||||
client.session.get_browser_sessions()
|
client.browser_session.get_browser_sessions()
|
||||||
"""
|
"""
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
_response = self._client_wrapper.httpx_client.request(
|
||||||
"api/v1/browser_sessions",
|
"v1/browser_sessions",
|
||||||
method="GET",
|
method="GET",
|
||||||
request_options=request_options,
|
request_options=request_options,
|
||||||
)
|
)
|
||||||
@@ -114,6 +138,16 @@ class SessionClient:
|
|||||||
object_=_response.json(),
|
object_=_response.json(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if _response.status_code == 401:
|
||||||
|
raise UnauthorizedError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
if _response.status_code == 422:
|
if _response.status_code == 422:
|
||||||
raise UnprocessableEntityError(
|
raise UnprocessableEntityError(
|
||||||
typing.cast(
|
typing.cast(
|
||||||
@@ -133,6 +167,8 @@ class SessionClient:
|
|||||||
self, *, request_options: typing.Optional[RequestOptions] = None
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
||||||
) -> BrowserSessionResponse:
|
) -> BrowserSessionResponse:
|
||||||
"""
|
"""
|
||||||
|
Create a new browser session
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
request_options : typing.Optional[RequestOptions]
|
request_options : typing.Optional[RequestOptions]
|
||||||
@@ -141,7 +177,7 @@ class SessionClient:
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
BrowserSessionResponse
|
BrowserSessionResponse
|
||||||
Successful Response
|
Successfully created browser session
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
@@ -151,10 +187,10 @@ class SessionClient:
|
|||||||
api_key="YOUR_API_KEY",
|
api_key="YOUR_API_KEY",
|
||||||
authorization="YOUR_AUTHORIZATION",
|
authorization="YOUR_AUTHORIZATION",
|
||||||
)
|
)
|
||||||
client.session.create_browser_session()
|
client.browser_session.create_browser_session()
|
||||||
"""
|
"""
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
_response = self._client_wrapper.httpx_client.request(
|
||||||
"api/v1/browser_sessions",
|
"v1/browser_sessions",
|
||||||
method="POST",
|
method="POST",
|
||||||
request_options=request_options,
|
request_options=request_options,
|
||||||
)
|
)
|
||||||
@@ -167,6 +203,16 @@ class SessionClient:
|
|||||||
object_=_response.json(),
|
object_=_response.json(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if _response.status_code == 401:
|
||||||
|
raise UnauthorizedError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
if _response.status_code == 422:
|
if _response.status_code == 422:
|
||||||
raise UnprocessableEntityError(
|
raise UnprocessableEntityError(
|
||||||
typing.cast(
|
typing.cast(
|
||||||
@@ -183,12 +229,14 @@ class SessionClient:
|
|||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
||||||
|
|
||||||
def close_browser_session(
|
def close_browser_session(
|
||||||
self, session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
||||||
) -> typing.Optional[typing.Any]:
|
) -> typing.Optional[typing.Any]:
|
||||||
"""
|
"""
|
||||||
|
Close a browser session
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
session_id : str
|
browser_session_id : str
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
request_options : typing.Optional[RequestOptions]
|
||||||
Request-specific configuration.
|
Request-specific configuration.
|
||||||
@@ -196,7 +244,7 @@ class SessionClient:
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
typing.Optional[typing.Any]
|
typing.Optional[typing.Any]
|
||||||
Successful Response
|
Successfully closed browser session
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
@@ -206,12 +254,12 @@ class SessionClient:
|
|||||||
api_key="YOUR_API_KEY",
|
api_key="YOUR_API_KEY",
|
||||||
authorization="YOUR_AUTHORIZATION",
|
authorization="YOUR_AUTHORIZATION",
|
||||||
)
|
)
|
||||||
client.session.close_browser_session(
|
client.browser_session.close_browser_session(
|
||||||
session_id="session_id",
|
browser_session_id="browser_session_id",
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
_response = self._client_wrapper.httpx_client.request(
|
||||||
f"api/v1/browser_sessions/{jsonable_encoder(session_id)}/close",
|
f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}/close",
|
||||||
method="POST",
|
method="POST",
|
||||||
request_options=request_options,
|
request_options=request_options,
|
||||||
)
|
)
|
||||||
@@ -224,6 +272,16 @@ class SessionClient:
|
|||||||
object_=_response.json(),
|
object_=_response.json(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if _response.status_code == 401:
|
||||||
|
raise UnauthorizedError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
if _response.status_code == 422:
|
if _response.status_code == 422:
|
||||||
raise UnprocessableEntityError(
|
raise UnprocessableEntityError(
|
||||||
typing.cast(
|
typing.cast(
|
||||||
@@ -240,7 +298,7 @@ class SessionClient:
|
|||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
||||||
|
|
||||||
|
|
||||||
class AsyncSessionClient:
|
class AsyncBrowserSessionClient:
|
||||||
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
||||||
self._client_wrapper = client_wrapper
|
self._client_wrapper = client_wrapper
|
||||||
|
|
||||||
@@ -248,6 +306,8 @@ class AsyncSessionClient:
|
|||||||
self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
||||||
) -> BrowserSessionResponse:
|
) -> BrowserSessionResponse:
|
||||||
"""
|
"""
|
||||||
|
Get details about a specific browser session by ID
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
browser_session_id : str
|
browser_session_id : str
|
||||||
@@ -258,7 +318,7 @@ class AsyncSessionClient:
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
BrowserSessionResponse
|
BrowserSessionResponse
|
||||||
Successful Response
|
Successfully retrieved browser session details
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
@@ -273,7 +333,7 @@ class AsyncSessionClient:
|
|||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
async def main() -> None:
|
||||||
await client.session.get_browser_session(
|
await client.browser_session.get_browser_session(
|
||||||
browser_session_id="browser_session_id",
|
browser_session_id="browser_session_id",
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -281,7 +341,7 @@ class AsyncSessionClient:
|
|||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
"""
|
"""
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
_response = await self._client_wrapper.httpx_client.request(
|
||||||
f"api/v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
|
f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
|
||||||
method="GET",
|
method="GET",
|
||||||
request_options=request_options,
|
request_options=request_options,
|
||||||
)
|
)
|
||||||
@@ -294,6 +354,26 @@ class AsyncSessionClient:
|
|||||||
object_=_response.json(),
|
object_=_response.json(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if _response.status_code == 401:
|
||||||
|
raise UnauthorizedError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
if _response.status_code == 404:
|
||||||
|
raise NotFoundError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
if _response.status_code == 422:
|
if _response.status_code == 422:
|
||||||
raise UnprocessableEntityError(
|
raise UnprocessableEntityError(
|
||||||
typing.cast(
|
typing.cast(
|
||||||
@@ -323,7 +403,7 @@ class AsyncSessionClient:
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
typing.List[BrowserSessionResponse]
|
typing.List[BrowserSessionResponse]
|
||||||
Successful Response
|
Successfully retrieved all active browser sessions
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
@@ -338,13 +418,13 @@ class AsyncSessionClient:
|
|||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
async def main() -> None:
|
||||||
await client.session.get_browser_sessions()
|
await client.browser_session.get_browser_sessions()
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
"""
|
"""
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
_response = await self._client_wrapper.httpx_client.request(
|
||||||
"api/v1/browser_sessions",
|
"v1/browser_sessions",
|
||||||
method="GET",
|
method="GET",
|
||||||
request_options=request_options,
|
request_options=request_options,
|
||||||
)
|
)
|
||||||
@@ -357,6 +437,16 @@ class AsyncSessionClient:
|
|||||||
object_=_response.json(),
|
object_=_response.json(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if _response.status_code == 401:
|
||||||
|
raise UnauthorizedError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
if _response.status_code == 422:
|
if _response.status_code == 422:
|
||||||
raise UnprocessableEntityError(
|
raise UnprocessableEntityError(
|
||||||
typing.cast(
|
typing.cast(
|
||||||
@@ -376,6 +466,8 @@ class AsyncSessionClient:
|
|||||||
self, *, request_options: typing.Optional[RequestOptions] = None
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
||||||
) -> BrowserSessionResponse:
|
) -> BrowserSessionResponse:
|
||||||
"""
|
"""
|
||||||
|
Create a new browser session
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
request_options : typing.Optional[RequestOptions]
|
request_options : typing.Optional[RequestOptions]
|
||||||
@@ -384,7 +476,7 @@ class AsyncSessionClient:
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
BrowserSessionResponse
|
BrowserSessionResponse
|
||||||
Successful Response
|
Successfully created browser session
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
@@ -399,13 +491,13 @@ class AsyncSessionClient:
|
|||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
async def main() -> None:
|
||||||
await client.session.create_browser_session()
|
await client.browser_session.create_browser_session()
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
"""
|
"""
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
_response = await self._client_wrapper.httpx_client.request(
|
||||||
"api/v1/browser_sessions",
|
"v1/browser_sessions",
|
||||||
method="POST",
|
method="POST",
|
||||||
request_options=request_options,
|
request_options=request_options,
|
||||||
)
|
)
|
||||||
@@ -418,6 +510,16 @@ class AsyncSessionClient:
|
|||||||
object_=_response.json(),
|
object_=_response.json(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if _response.status_code == 401:
|
||||||
|
raise UnauthorizedError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
if _response.status_code == 422:
|
if _response.status_code == 422:
|
||||||
raise UnprocessableEntityError(
|
raise UnprocessableEntityError(
|
||||||
typing.cast(
|
typing.cast(
|
||||||
@@ -434,12 +536,14 @@ class AsyncSessionClient:
|
|||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
||||||
|
|
||||||
async def close_browser_session(
|
async def close_browser_session(
|
||||||
self, session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
||||||
) -> typing.Optional[typing.Any]:
|
) -> typing.Optional[typing.Any]:
|
||||||
"""
|
"""
|
||||||
|
Close a browser session
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
session_id : str
|
browser_session_id : str
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
request_options : typing.Optional[RequestOptions]
|
||||||
Request-specific configuration.
|
Request-specific configuration.
|
||||||
@@ -447,7 +551,7 @@ class AsyncSessionClient:
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
typing.Optional[typing.Any]
|
typing.Optional[typing.Any]
|
||||||
Successful Response
|
Successfully closed browser session
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
@@ -462,15 +566,15 @@ class AsyncSessionClient:
|
|||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
async def main() -> None:
|
||||||
await client.session.close_browser_session(
|
await client.browser_session.close_browser_session(
|
||||||
session_id="session_id",
|
browser_session_id="browser_session_id",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
"""
|
"""
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
_response = await self._client_wrapper.httpx_client.request(
|
||||||
f"api/v1/browser_sessions/{jsonable_encoder(session_id)}/close",
|
f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}/close",
|
||||||
method="POST",
|
method="POST",
|
||||||
request_options=request_options,
|
request_options=request_options,
|
||||||
)
|
)
|
||||||
@@ -483,6 +587,16 @@ class AsyncSessionClient:
|
|||||||
object_=_response.json(),
|
object_=_response.json(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if _response.status_code == 401:
|
||||||
|
raise UnauthorizedError(
|
||||||
|
typing.cast(
|
||||||
|
typing.Optional[typing.Any],
|
||||||
|
parse_obj_as(
|
||||||
|
type_=typing.Optional[typing.Any], # type: ignore
|
||||||
|
object_=_response.json(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
if _response.status_code == 422:
|
if _response.status_code == 422:
|
||||||
raise UnprocessableEntityError(
|
raise UnprocessableEntityError(
|
||||||
typing.cast(
|
typing.cast(
|
||||||
@@ -5,12 +5,10 @@ from .environment import SkyvernEnvironment
|
|||||||
import httpx
|
import httpx
|
||||||
from .core.client_wrapper import SyncClientWrapper
|
from .core.client_wrapper import SyncClientWrapper
|
||||||
from .agent.client import AgentClient
|
from .agent.client import AgentClient
|
||||||
from .server.client import ServerClient
|
from .browser_session.client import BrowserSessionClient
|
||||||
from .session.client import SessionClient
|
|
||||||
from .core.client_wrapper import AsyncClientWrapper
|
from .core.client_wrapper import AsyncClientWrapper
|
||||||
from .agent.client import AsyncAgentClient
|
from .agent.client import AsyncAgentClient
|
||||||
from .server.client import AsyncServerClient
|
from .browser_session.client import AsyncBrowserSessionClient
|
||||||
from .session.client import AsyncSessionClient
|
|
||||||
|
|
||||||
|
|
||||||
class Skyvern:
|
class Skyvern:
|
||||||
@@ -76,8 +74,7 @@ class Skyvern:
|
|||||||
timeout=_defaulted_timeout,
|
timeout=_defaulted_timeout,
|
||||||
)
|
)
|
||||||
self.agent = AgentClient(client_wrapper=self._client_wrapper)
|
self.agent = AgentClient(client_wrapper=self._client_wrapper)
|
||||||
self.server = ServerClient(client_wrapper=self._client_wrapper)
|
self.browser_session = BrowserSessionClient(client_wrapper=self._client_wrapper)
|
||||||
self.session = SessionClient(client_wrapper=self._client_wrapper)
|
|
||||||
|
|
||||||
|
|
||||||
class AsyncSkyvern:
|
class AsyncSkyvern:
|
||||||
@@ -143,8 +140,7 @@ class AsyncSkyvern:
|
|||||||
timeout=_defaulted_timeout,
|
timeout=_defaulted_timeout,
|
||||||
)
|
)
|
||||||
self.agent = AsyncAgentClient(client_wrapper=self._client_wrapper)
|
self.agent = AsyncAgentClient(client_wrapper=self._client_wrapper)
|
||||||
self.server = AsyncServerClient(client_wrapper=self._client_wrapper)
|
self.browser_session = AsyncBrowserSessionClient(client_wrapper=self._client_wrapper)
|
||||||
self.session = AsyncSessionClient(client_wrapper=self._client_wrapper)
|
|
||||||
|
|
||||||
|
|
||||||
def _get_base_url(*, base_url: typing.Optional[str] = None, environment: SkyvernEnvironment) -> str:
|
def _get_base_url(*, base_url: typing.Optional[str] = None, environment: SkyvernEnvironment) -> str:
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
|
from .bad_request_error import BadRequestError
|
||||||
|
from .not_found_error import NotFoundError
|
||||||
|
from .unauthorized_error import UnauthorizedError
|
||||||
from .unprocessable_entity_error import UnprocessableEntityError
|
from .unprocessable_entity_error import UnprocessableEntityError
|
||||||
|
|
||||||
__all__ = ["UnprocessableEntityError"]
|
__all__ = ["BadRequestError", "NotFoundError", "UnauthorizedError", "UnprocessableEntityError"]
|
||||||
|
|||||||
9
skyvern/client/errors/bad_request_error.py
Normal file
9
skyvern/client/errors/bad_request_error.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
|
from ..core.api_error import ApiError
|
||||||
|
import typing
|
||||||
|
|
||||||
|
|
||||||
|
class BadRequestError(ApiError):
|
||||||
|
def __init__(self, body: typing.Optional[typing.Any]):
|
||||||
|
super().__init__(status_code=400, body=body)
|
||||||
9
skyvern/client/errors/not_found_error.py
Normal file
9
skyvern/client/errors/not_found_error.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
|
from ..core.api_error import ApiError
|
||||||
|
import typing
|
||||||
|
|
||||||
|
|
||||||
|
class NotFoundError(ApiError):
|
||||||
|
def __init__(self, body: typing.Optional[typing.Any]):
|
||||||
|
super().__init__(status_code=404, body=body)
|
||||||
9
skyvern/client/errors/unauthorized_error.py
Normal file
9
skyvern/client/errors/unauthorized_error.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
|
from ..core.api_error import ApiError
|
||||||
|
import typing
|
||||||
|
|
||||||
|
|
||||||
|
class UnauthorizedError(ApiError):
|
||||||
|
def __init__(self, body: typing.Optional[typing.Any]):
|
||||||
|
super().__init__(status_code=401, body=body)
|
||||||
@@ -1,759 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
from ..core.client_wrapper import SyncClientWrapper
|
|
||||||
from ..core.request_options import RequestOptions
|
|
||||||
from ..core.pydantic_utilities import parse_obj_as
|
|
||||||
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
|
||||||
from ..types.http_validation_error import HttpValidationError
|
|
||||||
from json.decoder import JSONDecodeError
|
|
||||||
from ..core.api_error import ApiError
|
|
||||||
from ..types.get_organizations_response import GetOrganizationsResponse
|
|
||||||
from ..types.organization import Organization
|
|
||||||
from ..types.get_organization_api_keys_response import GetOrganizationApiKeysResponse
|
|
||||||
from ..core.jsonable_encoder import jsonable_encoder
|
|
||||||
from .. import core
|
|
||||||
from ..core.client_wrapper import AsyncClientWrapper
|
|
||||||
|
|
||||||
# this is used as the default value for optional parameters
|
|
||||||
OMIT = typing.cast(typing.Any, ...)
|
|
||||||
|
|
||||||
|
|
||||||
class ServerClient:
|
|
||||||
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
||||||
self._client_wrapper = client_wrapper
|
|
||||||
|
|
||||||
def webhook(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
skyvern_signature: typing.Optional[str] = None,
|
|
||||||
skyvern_timestamp: typing.Optional[str] = None,
|
|
||||||
request_options: typing.Optional[RequestOptions] = None,
|
|
||||||
) -> typing.Optional[typing.Any]:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
skyvern_signature : typing.Optional[str]
|
|
||||||
|
|
||||||
skyvern_timestamp : typing.Optional[str]
|
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
typing.Optional[typing.Any]
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
from skyvern import Skyvern
|
|
||||||
|
|
||||||
client = Skyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
client.server.webhook()
|
|
||||||
"""
|
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/webhook",
|
|
||||||
method="POST",
|
|
||||||
headers={
|
|
||||||
"x-skyvern-signature": str(skyvern_signature) if skyvern_signature is not None else None,
|
|
||||||
"x-skyvern-timestamp": str(skyvern_timestamp) if skyvern_timestamp is not None else None,
|
|
||||||
},
|
|
||||||
request_options=request_options,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
typing.Optional[typing.Any],
|
|
||||||
parse_obj_as(
|
|
||||||
type_=typing.Optional[typing.Any], # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
def heartbeat(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.Optional[typing.Any]:
|
|
||||||
"""
|
|
||||||
Check if the server is running.
|
|
||||||
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
typing.Optional[typing.Any]
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
from skyvern import Skyvern
|
|
||||||
|
|
||||||
client = Skyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
client.server.heartbeat()
|
|
||||||
"""
|
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/heartbeat",
|
|
||||||
method="GET",
|
|
||||||
request_options=request_options,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
typing.Optional[typing.Any],
|
|
||||||
parse_obj_as(
|
|
||||||
type_=typing.Optional[typing.Any], # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
def get_organizations(self, *, request_options: typing.Optional[RequestOptions] = None) -> GetOrganizationsResponse:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
GetOrganizationsResponse
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
from skyvern import Skyvern
|
|
||||||
|
|
||||||
client = Skyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
client.server.get_organizations()
|
|
||||||
"""
|
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/organizations",
|
|
||||||
method="GET",
|
|
||||||
request_options=request_options,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
GetOrganizationsResponse,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=GetOrganizationsResponse, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
def update_organization(
|
|
||||||
self, *, max_steps_per_run: typing.Optional[int] = OMIT, request_options: typing.Optional[RequestOptions] = None
|
|
||||||
) -> Organization:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
max_steps_per_run : typing.Optional[int]
|
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
Organization
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
from skyvern import Skyvern
|
|
||||||
|
|
||||||
client = Skyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
client.server.update_organization()
|
|
||||||
"""
|
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/organizations",
|
|
||||||
method="PUT",
|
|
||||||
json={
|
|
||||||
"max_steps_per_run": max_steps_per_run,
|
|
||||||
},
|
|
||||||
headers={
|
|
||||||
"content-type": "application/json",
|
|
||||||
},
|
|
||||||
request_options=request_options,
|
|
||||||
omit=OMIT,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
Organization,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=Organization, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
def get_api_keys(
|
|
||||||
self, organization_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
||||||
) -> GetOrganizationApiKeysResponse:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
organization_id : str
|
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
GetOrganizationApiKeysResponse
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
from skyvern import Skyvern
|
|
||||||
|
|
||||||
client = Skyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
client.server.get_api_keys(
|
|
||||||
organization_id="organization_id",
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
|
||||||
f"api/v1/organizations/{jsonable_encoder(organization_id)}/apikeys/",
|
|
||||||
method="GET",
|
|
||||||
request_options=request_options,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
GetOrganizationApiKeysResponse,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=GetOrganizationApiKeysResponse, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
def upload_file(
|
|
||||||
self, *, file: core.File, request_options: typing.Optional[RequestOptions] = None
|
|
||||||
) -> typing.Optional[typing.Any]:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
file : core.File
|
|
||||||
See core.File for more documentation
|
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
typing.Optional[typing.Any]
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
from skyvern import Skyvern
|
|
||||||
|
|
||||||
client = Skyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
client.server.upload_file()
|
|
||||||
"""
|
|
||||||
_response = self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/upload_file",
|
|
||||||
method="POST",
|
|
||||||
data={},
|
|
||||||
files={
|
|
||||||
"file": file,
|
|
||||||
},
|
|
||||||
request_options=request_options,
|
|
||||||
omit=OMIT,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
typing.Optional[typing.Any],
|
|
||||||
parse_obj_as(
|
|
||||||
type_=typing.Optional[typing.Any], # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
|
|
||||||
class AsyncServerClient:
|
|
||||||
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
||||||
self._client_wrapper = client_wrapper
|
|
||||||
|
|
||||||
async def webhook(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
skyvern_signature: typing.Optional[str] = None,
|
|
||||||
skyvern_timestamp: typing.Optional[str] = None,
|
|
||||||
request_options: typing.Optional[RequestOptions] = None,
|
|
||||||
) -> typing.Optional[typing.Any]:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
skyvern_signature : typing.Optional[str]
|
|
||||||
|
|
||||||
skyvern_timestamp : typing.Optional[str]
|
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
typing.Optional[typing.Any]
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
import asyncio
|
|
||||||
|
|
||||||
from skyvern import AsyncSkyvern
|
|
||||||
|
|
||||||
client = AsyncSkyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
|
||||||
await client.server.webhook()
|
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main())
|
|
||||||
"""
|
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/webhook",
|
|
||||||
method="POST",
|
|
||||||
headers={
|
|
||||||
"x-skyvern-signature": str(skyvern_signature) if skyvern_signature is not None else None,
|
|
||||||
"x-skyvern-timestamp": str(skyvern_timestamp) if skyvern_timestamp is not None else None,
|
|
||||||
},
|
|
||||||
request_options=request_options,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
typing.Optional[typing.Any],
|
|
||||||
parse_obj_as(
|
|
||||||
type_=typing.Optional[typing.Any], # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
async def heartbeat(
|
|
||||||
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
||||||
) -> typing.Optional[typing.Any]:
|
|
||||||
"""
|
|
||||||
Check if the server is running.
|
|
||||||
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
typing.Optional[typing.Any]
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
import asyncio
|
|
||||||
|
|
||||||
from skyvern import AsyncSkyvern
|
|
||||||
|
|
||||||
client = AsyncSkyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
|
||||||
await client.server.heartbeat()
|
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main())
|
|
||||||
"""
|
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/heartbeat",
|
|
||||||
method="GET",
|
|
||||||
request_options=request_options,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
typing.Optional[typing.Any],
|
|
||||||
parse_obj_as(
|
|
||||||
type_=typing.Optional[typing.Any], # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
async def get_organizations(
|
|
||||||
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
||||||
) -> GetOrganizationsResponse:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
GetOrganizationsResponse
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
import asyncio
|
|
||||||
|
|
||||||
from skyvern import AsyncSkyvern
|
|
||||||
|
|
||||||
client = AsyncSkyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
|
||||||
await client.server.get_organizations()
|
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main())
|
|
||||||
"""
|
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/organizations",
|
|
||||||
method="GET",
|
|
||||||
request_options=request_options,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
GetOrganizationsResponse,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=GetOrganizationsResponse, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
async def update_organization(
|
|
||||||
self, *, max_steps_per_run: typing.Optional[int] = OMIT, request_options: typing.Optional[RequestOptions] = None
|
|
||||||
) -> Organization:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
max_steps_per_run : typing.Optional[int]
|
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
Organization
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
import asyncio
|
|
||||||
|
|
||||||
from skyvern import AsyncSkyvern
|
|
||||||
|
|
||||||
client = AsyncSkyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
|
||||||
await client.server.update_organization()
|
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main())
|
|
||||||
"""
|
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/organizations",
|
|
||||||
method="PUT",
|
|
||||||
json={
|
|
||||||
"max_steps_per_run": max_steps_per_run,
|
|
||||||
},
|
|
||||||
headers={
|
|
||||||
"content-type": "application/json",
|
|
||||||
},
|
|
||||||
request_options=request_options,
|
|
||||||
omit=OMIT,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
Organization,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=Organization, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
async def get_api_keys(
|
|
||||||
self, organization_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
||||||
) -> GetOrganizationApiKeysResponse:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
organization_id : str
|
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
GetOrganizationApiKeysResponse
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
import asyncio
|
|
||||||
|
|
||||||
from skyvern import AsyncSkyvern
|
|
||||||
|
|
||||||
client = AsyncSkyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
|
||||||
await client.server.get_api_keys(
|
|
||||||
organization_id="organization_id",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main())
|
|
||||||
"""
|
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
|
||||||
f"api/v1/organizations/{jsonable_encoder(organization_id)}/apikeys/",
|
|
||||||
method="GET",
|
|
||||||
request_options=request_options,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
GetOrganizationApiKeysResponse,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=GetOrganizationApiKeysResponse, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
|
|
||||||
async def upload_file(
|
|
||||||
self, *, file: core.File, request_options: typing.Optional[RequestOptions] = None
|
|
||||||
) -> typing.Optional[typing.Any]:
|
|
||||||
"""
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
file : core.File
|
|
||||||
See core.File for more documentation
|
|
||||||
|
|
||||||
request_options : typing.Optional[RequestOptions]
|
|
||||||
Request-specific configuration.
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
typing.Optional[typing.Any]
|
|
||||||
Successful Response
|
|
||||||
|
|
||||||
Examples
|
|
||||||
--------
|
|
||||||
import asyncio
|
|
||||||
|
|
||||||
from skyvern import AsyncSkyvern
|
|
||||||
|
|
||||||
client = AsyncSkyvern(
|
|
||||||
api_key="YOUR_API_KEY",
|
|
||||||
authorization="YOUR_AUTHORIZATION",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
|
||||||
await client.server.upload_file()
|
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(main())
|
|
||||||
"""
|
|
||||||
_response = await self._client_wrapper.httpx_client.request(
|
|
||||||
"api/v1/upload_file",
|
|
||||||
method="POST",
|
|
||||||
data={},
|
|
||||||
files={
|
|
||||||
"file": file,
|
|
||||||
},
|
|
||||||
request_options=request_options,
|
|
||||||
omit=OMIT,
|
|
||||||
)
|
|
||||||
try:
|
|
||||||
if 200 <= _response.status_code < 300:
|
|
||||||
return typing.cast(
|
|
||||||
typing.Optional[typing.Any],
|
|
||||||
parse_obj_as(
|
|
||||||
type_=typing.Optional[typing.Any], # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if _response.status_code == 422:
|
|
||||||
raise UnprocessableEntityError(
|
|
||||||
typing.cast(
|
|
||||||
HttpValidationError,
|
|
||||||
parse_obj_as(
|
|
||||||
type_=HttpValidationError, # type: ignore
|
|
||||||
object_=_response.json(),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_response_json = _response.json()
|
|
||||||
except JSONDecodeError:
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
||||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
@@ -1,593 +1,31 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
from .action import Action
|
|
||||||
from .action_block import ActionBlock
|
|
||||||
from .action_block_data_schema import ActionBlockDataSchema
|
|
||||||
from .action_block_parameters_item import (
|
|
||||||
ActionBlockParametersItem,
|
|
||||||
ActionBlockParametersItem_AwsSecret,
|
|
||||||
ActionBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
ActionBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
ActionBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
ActionBlockParametersItem_Context,
|
|
||||||
ActionBlockParametersItem_Credential,
|
|
||||||
ActionBlockParametersItem_Output,
|
|
||||||
ActionBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .action_result import ActionResult
|
|
||||||
from .action_status import ActionStatus
|
|
||||||
from .action_type import ActionType
|
|
||||||
from .agent_step_output import AgentStepOutput
|
|
||||||
from .artifact import Artifact
|
|
||||||
from .artifact_type import ArtifactType
|
|
||||||
from .aws_secret_parameter import AwsSecretParameter
|
|
||||||
from .bitwarden_credit_card_data_parameter import BitwardenCreditCardDataParameter
|
|
||||||
from .bitwarden_login_credential_parameter import BitwardenLoginCredentialParameter
|
|
||||||
from .bitwarden_sensitive_information_parameter import BitwardenSensitiveInformationParameter
|
|
||||||
from .block_type import BlockType
|
|
||||||
from .browser_session_response import BrowserSessionResponse
|
from .browser_session_response import BrowserSessionResponse
|
||||||
from .code_block import CodeBlock
|
|
||||||
from .code_block_parameters_item import (
|
|
||||||
CodeBlockParametersItem,
|
|
||||||
CodeBlockParametersItem_AwsSecret,
|
|
||||||
CodeBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
CodeBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
CodeBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
CodeBlockParametersItem_Context,
|
|
||||||
CodeBlockParametersItem_Credential,
|
|
||||||
CodeBlockParametersItem_Output,
|
|
||||||
CodeBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
from .create_credential_request import CreateCredentialRequest
|
|
||||||
from .create_task_response import CreateTaskResponse
|
|
||||||
from .credential import Credential
|
|
||||||
from .credential_parameter import CredentialParameter
|
|
||||||
from .credential_response import CredentialResponse
|
|
||||||
from .credential_type import CredentialType
|
|
||||||
from .credit_card_credential_response import CreditCardCredentialResponse
|
|
||||||
from .data import Data
|
|
||||||
from .download_to_s3block import DownloadToS3Block
|
|
||||||
from .entity_type import EntityType
|
|
||||||
from .extraction_block import ExtractionBlock
|
|
||||||
from .extraction_block_data_schema import ExtractionBlockDataSchema
|
|
||||||
from .extraction_block_parameters_item import (
|
|
||||||
ExtractionBlockParametersItem,
|
|
||||||
ExtractionBlockParametersItem_AwsSecret,
|
|
||||||
ExtractionBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
ExtractionBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
ExtractionBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
ExtractionBlockParametersItem_Context,
|
|
||||||
ExtractionBlockParametersItem_Credential,
|
|
||||||
ExtractionBlockParametersItem_Output,
|
|
||||||
ExtractionBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .file_download_block import FileDownloadBlock
|
|
||||||
from .file_download_block_data_schema import FileDownloadBlockDataSchema
|
|
||||||
from .file_download_block_parameters_item import (
|
|
||||||
FileDownloadBlockParametersItem,
|
|
||||||
FileDownloadBlockParametersItem_AwsSecret,
|
|
||||||
FileDownloadBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
FileDownloadBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
FileDownloadBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
FileDownloadBlockParametersItem_Context,
|
|
||||||
FileDownloadBlockParametersItem_Credential,
|
|
||||||
FileDownloadBlockParametersItem_Output,
|
|
||||||
FileDownloadBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .file_info import FileInfo
|
|
||||||
from .file_parser_block import FileParserBlock
|
|
||||||
from .file_storage_type import FileStorageType
|
|
||||||
from .file_type import FileType
|
|
||||||
from .file_upload_block import FileUploadBlock
|
|
||||||
from .for_loop_block import ForLoopBlock
|
|
||||||
from .for_loop_block_loop_blocks_item import (
|
|
||||||
ForLoopBlockLoopBlocksItem,
|
|
||||||
ForLoopBlockLoopBlocksItem_Action,
|
|
||||||
ForLoopBlockLoopBlocksItem_Code,
|
|
||||||
ForLoopBlockLoopBlocksItem_DownloadToS3,
|
|
||||||
ForLoopBlockLoopBlocksItem_Extraction,
|
|
||||||
ForLoopBlockLoopBlocksItem_FileDownload,
|
|
||||||
ForLoopBlockLoopBlocksItem_FileUpload,
|
|
||||||
ForLoopBlockLoopBlocksItem_FileUrlParser,
|
|
||||||
ForLoopBlockLoopBlocksItem_ForLoop,
|
|
||||||
ForLoopBlockLoopBlocksItem_GotoUrl,
|
|
||||||
ForLoopBlockLoopBlocksItem_Login,
|
|
||||||
ForLoopBlockLoopBlocksItem_Navigation,
|
|
||||||
ForLoopBlockLoopBlocksItem_PdfParser,
|
|
||||||
ForLoopBlockLoopBlocksItem_SendEmail,
|
|
||||||
ForLoopBlockLoopBlocksItem_Task,
|
|
||||||
ForLoopBlockLoopBlocksItem_TaskV2,
|
|
||||||
ForLoopBlockLoopBlocksItem_TextPrompt,
|
|
||||||
ForLoopBlockLoopBlocksItem_UploadToS3,
|
|
||||||
ForLoopBlockLoopBlocksItem_Validation,
|
|
||||||
ForLoopBlockLoopBlocksItem_Wait,
|
|
||||||
)
|
|
||||||
from .for_loop_block_loop_over import (
|
|
||||||
ForLoopBlockLoopOver,
|
|
||||||
ForLoopBlockLoopOver_AwsSecret,
|
|
||||||
ForLoopBlockLoopOver_BitwardenCreditCardData,
|
|
||||||
ForLoopBlockLoopOver_BitwardenLoginCredential,
|
|
||||||
ForLoopBlockLoopOver_BitwardenSensitiveInformation,
|
|
||||||
ForLoopBlockLoopOver_Context,
|
|
||||||
ForLoopBlockLoopOver_Credential,
|
|
||||||
ForLoopBlockLoopOver_Output,
|
|
||||||
ForLoopBlockLoopOver_Workflow,
|
|
||||||
)
|
|
||||||
from .get_organization_api_keys_response import GetOrganizationApiKeysResponse
|
|
||||||
from .get_organizations_response import GetOrganizationsResponse
|
|
||||||
from .http_validation_error import HttpValidationError
|
from .http_validation_error import HttpValidationError
|
||||||
from .login_block import LoginBlock
|
|
||||||
from .login_block_data_schema import LoginBlockDataSchema
|
|
||||||
from .login_block_parameters_item import (
|
|
||||||
LoginBlockParametersItem,
|
|
||||||
LoginBlockParametersItem_AwsSecret,
|
|
||||||
LoginBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
LoginBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
LoginBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
LoginBlockParametersItem_Context,
|
|
||||||
LoginBlockParametersItem_Credential,
|
|
||||||
LoginBlockParametersItem_Output,
|
|
||||||
LoginBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .navigation_block import NavigationBlock
|
|
||||||
from .navigation_block_data_schema import NavigationBlockDataSchema
|
|
||||||
from .navigation_block_parameters_item import (
|
|
||||||
NavigationBlockParametersItem,
|
|
||||||
NavigationBlockParametersItem_AwsSecret,
|
|
||||||
NavigationBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
NavigationBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
NavigationBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
NavigationBlockParametersItem_Context,
|
|
||||||
NavigationBlockParametersItem_Credential,
|
|
||||||
NavigationBlockParametersItem_Output,
|
|
||||||
NavigationBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .non_empty_credit_card_credential import NonEmptyCreditCardCredential
|
|
||||||
from .non_empty_password_credential import NonEmptyPasswordCredential
|
|
||||||
from .order_by import OrderBy
|
|
||||||
from .organization import Organization
|
|
||||||
from .organization_auth_token import OrganizationAuthToken
|
|
||||||
from .organization_auth_token_type import OrganizationAuthTokenType
|
|
||||||
from .output import Output
|
from .output import Output
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
from .password_credential_response import PasswordCredentialResponse
|
|
||||||
from .pdf_parser_block import PdfParserBlock
|
|
||||||
from .proxy_location import ProxyLocation
|
from .proxy_location import ProxyLocation
|
||||||
from .run_engine import RunEngine
|
from .run_engine import RunEngine
|
||||||
from .run_workflow_response import RunWorkflowResponse
|
from .run_status import RunStatus
|
||||||
from .select_option import SelectOption
|
from .task_run_request import TaskRunRequest
|
||||||
from .send_email_block import SendEmailBlock
|
from .task_run_request_data_extraction_schema import TaskRunRequestDataExtractionSchema
|
||||||
from .sort_direction import SortDirection
|
|
||||||
from .source import (
|
|
||||||
Source,
|
|
||||||
Source_AwsSecret,
|
|
||||||
Source_BitwardenCreditCardData,
|
|
||||||
Source_BitwardenLoginCredential,
|
|
||||||
Source_BitwardenSensitiveInformation,
|
|
||||||
Source_Context,
|
|
||||||
Source_Credential,
|
|
||||||
Source_Output,
|
|
||||||
Source_Workflow,
|
|
||||||
)
|
|
||||||
from .step import Step
|
|
||||||
from .step_status import StepStatus
|
|
||||||
from .task import Task
|
|
||||||
from .task_base import TaskBase
|
|
||||||
from .task_base_extracted_information_schema import TaskBaseExtractedInformationSchema
|
|
||||||
from .task_base_navigation_payload import TaskBaseNavigationPayload
|
|
||||||
from .task_block import TaskBlock
|
|
||||||
from .task_block_data_schema import TaskBlockDataSchema
|
|
||||||
from .task_block_parameters_item import (
|
|
||||||
TaskBlockParametersItem,
|
|
||||||
TaskBlockParametersItem_AwsSecret,
|
|
||||||
TaskBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
TaskBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
TaskBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
TaskBlockParametersItem_Context,
|
|
||||||
TaskBlockParametersItem_Credential,
|
|
||||||
TaskBlockParametersItem_Output,
|
|
||||||
TaskBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .task_extracted_information import TaskExtractedInformation
|
|
||||||
from .task_extracted_information_schema import TaskExtractedInformationSchema
|
|
||||||
from .task_generation import TaskGeneration
|
|
||||||
from .task_navigation_payload import TaskNavigationPayload
|
|
||||||
from .task_response import TaskResponse
|
|
||||||
from .task_response_extracted_information import TaskResponseExtractedInformation
|
|
||||||
from .task_run_response import TaskRunResponse
|
from .task_run_response import TaskRunResponse
|
||||||
from .task_run_response_data_extraction_schema import TaskRunResponseDataExtractionSchema
|
|
||||||
from .task_run_status import TaskRunStatus
|
|
||||||
from .task_status import TaskStatus
|
|
||||||
from .task_type import TaskType
|
|
||||||
from .task_v2 import TaskV2
|
|
||||||
from .task_v2block import TaskV2Block
|
|
||||||
from .task_v2extracted_information_schema import TaskV2ExtractedInformationSchema
|
|
||||||
from .task_v2status import TaskV2Status
|
|
||||||
from .text_prompt_block import TextPromptBlock
|
|
||||||
from .text_prompt_block_parameters_item import (
|
|
||||||
TextPromptBlockParametersItem,
|
|
||||||
TextPromptBlockParametersItem_AwsSecret,
|
|
||||||
TextPromptBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
TextPromptBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
TextPromptBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
TextPromptBlockParametersItem_Context,
|
|
||||||
TextPromptBlockParametersItem_Credential,
|
|
||||||
TextPromptBlockParametersItem_Output,
|
|
||||||
TextPromptBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .thought import Thought
|
|
||||||
from .thought_scenario import ThoughtScenario
|
|
||||||
from .thought_type import ThoughtType
|
|
||||||
from .totp_code import TotpCode
|
|
||||||
from .upload_to_s3block import UploadToS3Block
|
|
||||||
from .url_block import UrlBlock
|
|
||||||
from .url_block_data_schema import UrlBlockDataSchema
|
|
||||||
from .url_block_parameters_item import (
|
|
||||||
UrlBlockParametersItem,
|
|
||||||
UrlBlockParametersItem_AwsSecret,
|
|
||||||
UrlBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
UrlBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
UrlBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
UrlBlockParametersItem_Context,
|
|
||||||
UrlBlockParametersItem_Credential,
|
|
||||||
UrlBlockParametersItem_Output,
|
|
||||||
UrlBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .user_defined_error import UserDefinedError
|
|
||||||
from .validation_block import ValidationBlock
|
|
||||||
from .validation_block_data_schema import ValidationBlockDataSchema
|
|
||||||
from .validation_block_parameters_item import (
|
|
||||||
ValidationBlockParametersItem,
|
|
||||||
ValidationBlockParametersItem_AwsSecret,
|
|
||||||
ValidationBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
ValidationBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
ValidationBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
ValidationBlockParametersItem_Context,
|
|
||||||
ValidationBlockParametersItem_Credential,
|
|
||||||
ValidationBlockParametersItem_Output,
|
|
||||||
ValidationBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .validation_error import ValidationError
|
from .validation_error import ValidationError
|
||||||
from .validation_error_loc_item import ValidationErrorLocItem
|
from .validation_error_loc_item import ValidationErrorLocItem
|
||||||
from .value import Value
|
from .workflow_run_request import WorkflowRunRequest
|
||||||
from .wait_block import WaitBlock
|
|
||||||
from .wait_block_parameters_item import (
|
|
||||||
WaitBlockParametersItem,
|
|
||||||
WaitBlockParametersItem_AwsSecret,
|
|
||||||
WaitBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
WaitBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
WaitBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
WaitBlockParametersItem_Context,
|
|
||||||
WaitBlockParametersItem_Credential,
|
|
||||||
WaitBlockParametersItem_Output,
|
|
||||||
WaitBlockParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .workflow import Workflow
|
|
||||||
from .workflow_definition import WorkflowDefinition
|
|
||||||
from .workflow_definition_blocks_item import (
|
|
||||||
WorkflowDefinitionBlocksItem,
|
|
||||||
WorkflowDefinitionBlocksItem_Action,
|
|
||||||
WorkflowDefinitionBlocksItem_Code,
|
|
||||||
WorkflowDefinitionBlocksItem_DownloadToS3,
|
|
||||||
WorkflowDefinitionBlocksItem_Extraction,
|
|
||||||
WorkflowDefinitionBlocksItem_FileDownload,
|
|
||||||
WorkflowDefinitionBlocksItem_FileUpload,
|
|
||||||
WorkflowDefinitionBlocksItem_FileUrlParser,
|
|
||||||
WorkflowDefinitionBlocksItem_ForLoop,
|
|
||||||
WorkflowDefinitionBlocksItem_GotoUrl,
|
|
||||||
WorkflowDefinitionBlocksItem_Login,
|
|
||||||
WorkflowDefinitionBlocksItem_Navigation,
|
|
||||||
WorkflowDefinitionBlocksItem_PdfParser,
|
|
||||||
WorkflowDefinitionBlocksItem_SendEmail,
|
|
||||||
WorkflowDefinitionBlocksItem_Task,
|
|
||||||
WorkflowDefinitionBlocksItem_TaskV2,
|
|
||||||
WorkflowDefinitionBlocksItem_TextPrompt,
|
|
||||||
WorkflowDefinitionBlocksItem_UploadToS3,
|
|
||||||
WorkflowDefinitionBlocksItem_Validation,
|
|
||||||
WorkflowDefinitionBlocksItem_Wait,
|
|
||||||
)
|
|
||||||
from .workflow_definition_parameters_item import (
|
|
||||||
WorkflowDefinitionParametersItem,
|
|
||||||
WorkflowDefinitionParametersItem_AwsSecret,
|
|
||||||
WorkflowDefinitionParametersItem_BitwardenCreditCardData,
|
|
||||||
WorkflowDefinitionParametersItem_BitwardenLoginCredential,
|
|
||||||
WorkflowDefinitionParametersItem_BitwardenSensitiveInformation,
|
|
||||||
WorkflowDefinitionParametersItem_Context,
|
|
||||||
WorkflowDefinitionParametersItem_Credential,
|
|
||||||
WorkflowDefinitionParametersItem_Output,
|
|
||||||
WorkflowDefinitionParametersItem_Workflow,
|
|
||||||
)
|
|
||||||
from .workflow_parameter import WorkflowParameter
|
|
||||||
from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|
||||||
from .workflow_parameter_type import WorkflowParameterType
|
|
||||||
from .workflow_run import WorkflowRun
|
|
||||||
from .workflow_run_block import WorkflowRunBlock
|
|
||||||
from .workflow_run_block_data_schema import WorkflowRunBlockDataSchema
|
|
||||||
from .workflow_run_block_navigation_payload import WorkflowRunBlockNavigationPayload
|
|
||||||
from .workflow_run_response import WorkflowRunResponse
|
from .workflow_run_response import WorkflowRunResponse
|
||||||
from .workflow_run_status import WorkflowRunStatus
|
|
||||||
from .workflow_run_timeline import WorkflowRunTimeline
|
|
||||||
from .workflow_run_timeline_type import WorkflowRunTimelineType
|
|
||||||
from .workflow_status import WorkflowStatus
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Action",
|
|
||||||
"ActionBlock",
|
|
||||||
"ActionBlockDataSchema",
|
|
||||||
"ActionBlockParametersItem",
|
|
||||||
"ActionBlockParametersItem_AwsSecret",
|
|
||||||
"ActionBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"ActionBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"ActionBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"ActionBlockParametersItem_Context",
|
|
||||||
"ActionBlockParametersItem_Credential",
|
|
||||||
"ActionBlockParametersItem_Output",
|
|
||||||
"ActionBlockParametersItem_Workflow",
|
|
||||||
"ActionResult",
|
|
||||||
"ActionStatus",
|
|
||||||
"ActionType",
|
|
||||||
"AgentStepOutput",
|
|
||||||
"Artifact",
|
|
||||||
"ArtifactType",
|
|
||||||
"AwsSecretParameter",
|
|
||||||
"BitwardenCreditCardDataParameter",
|
|
||||||
"BitwardenLoginCredentialParameter",
|
|
||||||
"BitwardenSensitiveInformationParameter",
|
|
||||||
"BlockType",
|
|
||||||
"BrowserSessionResponse",
|
"BrowserSessionResponse",
|
||||||
"CodeBlock",
|
|
||||||
"CodeBlockParametersItem",
|
|
||||||
"CodeBlockParametersItem_AwsSecret",
|
|
||||||
"CodeBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"CodeBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"CodeBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"CodeBlockParametersItem_Context",
|
|
||||||
"CodeBlockParametersItem_Credential",
|
|
||||||
"CodeBlockParametersItem_Output",
|
|
||||||
"CodeBlockParametersItem_Workflow",
|
|
||||||
"ContextParameter",
|
|
||||||
"CreateCredentialRequest",
|
|
||||||
"CreateTaskResponse",
|
|
||||||
"Credential",
|
|
||||||
"CredentialParameter",
|
|
||||||
"CredentialResponse",
|
|
||||||
"CredentialType",
|
|
||||||
"CreditCardCredentialResponse",
|
|
||||||
"Data",
|
|
||||||
"DownloadToS3Block",
|
|
||||||
"EntityType",
|
|
||||||
"ExtractionBlock",
|
|
||||||
"ExtractionBlockDataSchema",
|
|
||||||
"ExtractionBlockParametersItem",
|
|
||||||
"ExtractionBlockParametersItem_AwsSecret",
|
|
||||||
"ExtractionBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"ExtractionBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"ExtractionBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"ExtractionBlockParametersItem_Context",
|
|
||||||
"ExtractionBlockParametersItem_Credential",
|
|
||||||
"ExtractionBlockParametersItem_Output",
|
|
||||||
"ExtractionBlockParametersItem_Workflow",
|
|
||||||
"FileDownloadBlock",
|
|
||||||
"FileDownloadBlockDataSchema",
|
|
||||||
"FileDownloadBlockParametersItem",
|
|
||||||
"FileDownloadBlockParametersItem_AwsSecret",
|
|
||||||
"FileDownloadBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"FileDownloadBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"FileDownloadBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"FileDownloadBlockParametersItem_Context",
|
|
||||||
"FileDownloadBlockParametersItem_Credential",
|
|
||||||
"FileDownloadBlockParametersItem_Output",
|
|
||||||
"FileDownloadBlockParametersItem_Workflow",
|
|
||||||
"FileInfo",
|
|
||||||
"FileParserBlock",
|
|
||||||
"FileStorageType",
|
|
||||||
"FileType",
|
|
||||||
"FileUploadBlock",
|
|
||||||
"ForLoopBlock",
|
|
||||||
"ForLoopBlockLoopBlocksItem",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Action",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Code",
|
|
||||||
"ForLoopBlockLoopBlocksItem_DownloadToS3",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Extraction",
|
|
||||||
"ForLoopBlockLoopBlocksItem_FileDownload",
|
|
||||||
"ForLoopBlockLoopBlocksItem_FileUpload",
|
|
||||||
"ForLoopBlockLoopBlocksItem_FileUrlParser",
|
|
||||||
"ForLoopBlockLoopBlocksItem_ForLoop",
|
|
||||||
"ForLoopBlockLoopBlocksItem_GotoUrl",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Login",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Navigation",
|
|
||||||
"ForLoopBlockLoopBlocksItem_PdfParser",
|
|
||||||
"ForLoopBlockLoopBlocksItem_SendEmail",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Task",
|
|
||||||
"ForLoopBlockLoopBlocksItem_TaskV2",
|
|
||||||
"ForLoopBlockLoopBlocksItem_TextPrompt",
|
|
||||||
"ForLoopBlockLoopBlocksItem_UploadToS3",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Validation",
|
|
||||||
"ForLoopBlockLoopBlocksItem_Wait",
|
|
||||||
"ForLoopBlockLoopOver",
|
|
||||||
"ForLoopBlockLoopOver_AwsSecret",
|
|
||||||
"ForLoopBlockLoopOver_BitwardenCreditCardData",
|
|
||||||
"ForLoopBlockLoopOver_BitwardenLoginCredential",
|
|
||||||
"ForLoopBlockLoopOver_BitwardenSensitiveInformation",
|
|
||||||
"ForLoopBlockLoopOver_Context",
|
|
||||||
"ForLoopBlockLoopOver_Credential",
|
|
||||||
"ForLoopBlockLoopOver_Output",
|
|
||||||
"ForLoopBlockLoopOver_Workflow",
|
|
||||||
"GetOrganizationApiKeysResponse",
|
|
||||||
"GetOrganizationsResponse",
|
|
||||||
"HttpValidationError",
|
"HttpValidationError",
|
||||||
"LoginBlock",
|
|
||||||
"LoginBlockDataSchema",
|
|
||||||
"LoginBlockParametersItem",
|
|
||||||
"LoginBlockParametersItem_AwsSecret",
|
|
||||||
"LoginBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"LoginBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"LoginBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"LoginBlockParametersItem_Context",
|
|
||||||
"LoginBlockParametersItem_Credential",
|
|
||||||
"LoginBlockParametersItem_Output",
|
|
||||||
"LoginBlockParametersItem_Workflow",
|
|
||||||
"NavigationBlock",
|
|
||||||
"NavigationBlockDataSchema",
|
|
||||||
"NavigationBlockParametersItem",
|
|
||||||
"NavigationBlockParametersItem_AwsSecret",
|
|
||||||
"NavigationBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"NavigationBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"NavigationBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"NavigationBlockParametersItem_Context",
|
|
||||||
"NavigationBlockParametersItem_Credential",
|
|
||||||
"NavigationBlockParametersItem_Output",
|
|
||||||
"NavigationBlockParametersItem_Workflow",
|
|
||||||
"NonEmptyCreditCardCredential",
|
|
||||||
"NonEmptyPasswordCredential",
|
|
||||||
"OrderBy",
|
|
||||||
"Organization",
|
|
||||||
"OrganizationAuthToken",
|
|
||||||
"OrganizationAuthTokenType",
|
|
||||||
"Output",
|
"Output",
|
||||||
"OutputParameter",
|
|
||||||
"PasswordCredentialResponse",
|
|
||||||
"PdfParserBlock",
|
|
||||||
"ProxyLocation",
|
"ProxyLocation",
|
||||||
"RunEngine",
|
"RunEngine",
|
||||||
"RunWorkflowResponse",
|
"RunStatus",
|
||||||
"SelectOption",
|
"TaskRunRequest",
|
||||||
"SendEmailBlock",
|
"TaskRunRequestDataExtractionSchema",
|
||||||
"SortDirection",
|
|
||||||
"Source",
|
|
||||||
"Source_AwsSecret",
|
|
||||||
"Source_BitwardenCreditCardData",
|
|
||||||
"Source_BitwardenLoginCredential",
|
|
||||||
"Source_BitwardenSensitiveInformation",
|
|
||||||
"Source_Context",
|
|
||||||
"Source_Credential",
|
|
||||||
"Source_Output",
|
|
||||||
"Source_Workflow",
|
|
||||||
"Step",
|
|
||||||
"StepStatus",
|
|
||||||
"Task",
|
|
||||||
"TaskBase",
|
|
||||||
"TaskBaseExtractedInformationSchema",
|
|
||||||
"TaskBaseNavigationPayload",
|
|
||||||
"TaskBlock",
|
|
||||||
"TaskBlockDataSchema",
|
|
||||||
"TaskBlockParametersItem",
|
|
||||||
"TaskBlockParametersItem_AwsSecret",
|
|
||||||
"TaskBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"TaskBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"TaskBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"TaskBlockParametersItem_Context",
|
|
||||||
"TaskBlockParametersItem_Credential",
|
|
||||||
"TaskBlockParametersItem_Output",
|
|
||||||
"TaskBlockParametersItem_Workflow",
|
|
||||||
"TaskExtractedInformation",
|
|
||||||
"TaskExtractedInformationSchema",
|
|
||||||
"TaskGeneration",
|
|
||||||
"TaskNavigationPayload",
|
|
||||||
"TaskResponse",
|
|
||||||
"TaskResponseExtractedInformation",
|
|
||||||
"TaskRunResponse",
|
"TaskRunResponse",
|
||||||
"TaskRunResponseDataExtractionSchema",
|
|
||||||
"TaskRunStatus",
|
|
||||||
"TaskStatus",
|
|
||||||
"TaskType",
|
|
||||||
"TaskV2",
|
|
||||||
"TaskV2Block",
|
|
||||||
"TaskV2ExtractedInformationSchema",
|
|
||||||
"TaskV2Status",
|
|
||||||
"TextPromptBlock",
|
|
||||||
"TextPromptBlockParametersItem",
|
|
||||||
"TextPromptBlockParametersItem_AwsSecret",
|
|
||||||
"TextPromptBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"TextPromptBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"TextPromptBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"TextPromptBlockParametersItem_Context",
|
|
||||||
"TextPromptBlockParametersItem_Credential",
|
|
||||||
"TextPromptBlockParametersItem_Output",
|
|
||||||
"TextPromptBlockParametersItem_Workflow",
|
|
||||||
"Thought",
|
|
||||||
"ThoughtScenario",
|
|
||||||
"ThoughtType",
|
|
||||||
"TotpCode",
|
|
||||||
"UploadToS3Block",
|
|
||||||
"UrlBlock",
|
|
||||||
"UrlBlockDataSchema",
|
|
||||||
"UrlBlockParametersItem",
|
|
||||||
"UrlBlockParametersItem_AwsSecret",
|
|
||||||
"UrlBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"UrlBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"UrlBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"UrlBlockParametersItem_Context",
|
|
||||||
"UrlBlockParametersItem_Credential",
|
|
||||||
"UrlBlockParametersItem_Output",
|
|
||||||
"UrlBlockParametersItem_Workflow",
|
|
||||||
"UserDefinedError",
|
|
||||||
"ValidationBlock",
|
|
||||||
"ValidationBlockDataSchema",
|
|
||||||
"ValidationBlockParametersItem",
|
|
||||||
"ValidationBlockParametersItem_AwsSecret",
|
|
||||||
"ValidationBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"ValidationBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"ValidationBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"ValidationBlockParametersItem_Context",
|
|
||||||
"ValidationBlockParametersItem_Credential",
|
|
||||||
"ValidationBlockParametersItem_Output",
|
|
||||||
"ValidationBlockParametersItem_Workflow",
|
|
||||||
"ValidationError",
|
"ValidationError",
|
||||||
"ValidationErrorLocItem",
|
"ValidationErrorLocItem",
|
||||||
"Value",
|
"WorkflowRunRequest",
|
||||||
"WaitBlock",
|
|
||||||
"WaitBlockParametersItem",
|
|
||||||
"WaitBlockParametersItem_AwsSecret",
|
|
||||||
"WaitBlockParametersItem_BitwardenCreditCardData",
|
|
||||||
"WaitBlockParametersItem_BitwardenLoginCredential",
|
|
||||||
"WaitBlockParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"WaitBlockParametersItem_Context",
|
|
||||||
"WaitBlockParametersItem_Credential",
|
|
||||||
"WaitBlockParametersItem_Output",
|
|
||||||
"WaitBlockParametersItem_Workflow",
|
|
||||||
"Workflow",
|
|
||||||
"WorkflowDefinition",
|
|
||||||
"WorkflowDefinitionBlocksItem",
|
|
||||||
"WorkflowDefinitionBlocksItem_Action",
|
|
||||||
"WorkflowDefinitionBlocksItem_Code",
|
|
||||||
"WorkflowDefinitionBlocksItem_DownloadToS3",
|
|
||||||
"WorkflowDefinitionBlocksItem_Extraction",
|
|
||||||
"WorkflowDefinitionBlocksItem_FileDownload",
|
|
||||||
"WorkflowDefinitionBlocksItem_FileUpload",
|
|
||||||
"WorkflowDefinitionBlocksItem_FileUrlParser",
|
|
||||||
"WorkflowDefinitionBlocksItem_ForLoop",
|
|
||||||
"WorkflowDefinitionBlocksItem_GotoUrl",
|
|
||||||
"WorkflowDefinitionBlocksItem_Login",
|
|
||||||
"WorkflowDefinitionBlocksItem_Navigation",
|
|
||||||
"WorkflowDefinitionBlocksItem_PdfParser",
|
|
||||||
"WorkflowDefinitionBlocksItem_SendEmail",
|
|
||||||
"WorkflowDefinitionBlocksItem_Task",
|
|
||||||
"WorkflowDefinitionBlocksItem_TaskV2",
|
|
||||||
"WorkflowDefinitionBlocksItem_TextPrompt",
|
|
||||||
"WorkflowDefinitionBlocksItem_UploadToS3",
|
|
||||||
"WorkflowDefinitionBlocksItem_Validation",
|
|
||||||
"WorkflowDefinitionBlocksItem_Wait",
|
|
||||||
"WorkflowDefinitionParametersItem",
|
|
||||||
"WorkflowDefinitionParametersItem_AwsSecret",
|
|
||||||
"WorkflowDefinitionParametersItem_BitwardenCreditCardData",
|
|
||||||
"WorkflowDefinitionParametersItem_BitwardenLoginCredential",
|
|
||||||
"WorkflowDefinitionParametersItem_BitwardenSensitiveInformation",
|
|
||||||
"WorkflowDefinitionParametersItem_Context",
|
|
||||||
"WorkflowDefinitionParametersItem_Credential",
|
|
||||||
"WorkflowDefinitionParametersItem_Output",
|
|
||||||
"WorkflowDefinitionParametersItem_Workflow",
|
|
||||||
"WorkflowParameter",
|
|
||||||
"WorkflowParameterDefaultValue",
|
|
||||||
"WorkflowParameterType",
|
|
||||||
"WorkflowRun",
|
|
||||||
"WorkflowRunBlock",
|
|
||||||
"WorkflowRunBlockDataSchema",
|
|
||||||
"WorkflowRunBlockNavigationPayload",
|
|
||||||
"WorkflowRunResponse",
|
"WorkflowRunResponse",
|
||||||
"WorkflowRunStatus",
|
|
||||||
"WorkflowRunTimeline",
|
|
||||||
"WorkflowRunTimelineType",
|
|
||||||
"WorkflowStatus",
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .action_type import ActionType
|
|
||||||
import typing
|
|
||||||
from .action_status import ActionStatus
|
|
||||||
from .user_defined_error import UserDefinedError
|
|
||||||
from .select_option import SelectOption
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class Action(UniversalBaseModel):
|
|
||||||
action_type: ActionType
|
|
||||||
status: typing.Optional[ActionStatus] = None
|
|
||||||
action_id: typing.Optional[str] = None
|
|
||||||
source_action_id: typing.Optional[str] = None
|
|
||||||
organization_id: typing.Optional[str] = None
|
|
||||||
workflow_run_id: typing.Optional[str] = None
|
|
||||||
task_id: typing.Optional[str] = None
|
|
||||||
step_id: typing.Optional[str] = None
|
|
||||||
step_order: typing.Optional[int] = None
|
|
||||||
action_order: typing.Optional[int] = None
|
|
||||||
confidence_float: typing.Optional[float] = None
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
reasoning: typing.Optional[str] = None
|
|
||||||
intention: typing.Optional[str] = None
|
|
||||||
response: typing.Optional[str] = None
|
|
||||||
element_id: typing.Optional[str] = None
|
|
||||||
skyvern_element_hash: typing.Optional[str] = None
|
|
||||||
skyvern_element_data: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
||||||
errors: typing.Optional[typing.List[UserDefinedError]] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
file_name: typing.Optional[str] = None
|
|
||||||
file_url: typing.Optional[str] = None
|
|
||||||
download: typing.Optional[bool] = None
|
|
||||||
is_upload_file_tag: typing.Optional[bool] = None
|
|
||||||
text: typing.Optional[str] = None
|
|
||||||
option: typing.Optional[SelectOption] = None
|
|
||||||
is_checked: typing.Optional[bool] = None
|
|
||||||
verified: typing.Optional[bool] = None
|
|
||||||
created_at: typing.Optional[dt.datetime] = None
|
|
||||||
modified_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .action_block_data_schema import ActionBlockDataSchema
|
|
||||||
from .action_block_parameters_item import ActionBlockParametersItem
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class ActionBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[ActionBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[ActionBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
ActionBlockDataSchema = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]]
|
|
||||||
]
|
|
||||||
@@ -1,207 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from .value import Value
|
|
||||||
from .workflow_parameter_type import WorkflowParameterType
|
|
||||||
from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class ActionBlockParametersItem_AwsSecret(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["aws_secret"] = "aws_secret"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
aws_secret_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
aws_key: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ActionBlockParametersItem_BitwardenCreditCardData(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_credit_card_data_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_item_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ActionBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_login_credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
url_parameter_key: typing.Optional[str] = None
|
|
||||||
bitwarden_collection_id: typing.Optional[str] = None
|
|
||||||
bitwarden_item_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ActionBlockParametersItem_BitwardenSensitiveInformation(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_sensitive_information_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_identity_key: str
|
|
||||||
bitwarden_identity_fields: typing.List[str]
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ActionBlockParametersItem_Context(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["context"] = "context"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
source: "Source"
|
|
||||||
value: typing.Optional[Value] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .context_parameter import ContextParameter # noqa: E402
|
|
||||||
from .source import Source # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
class ActionBlockParametersItem_Credential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["credential"] = "credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
credential_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ActionBlockParametersItem_Output(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["output"] = "output"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
output_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ActionBlockParametersItem_Workflow(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["workflow"] = "workflow"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
workflow_parameter_id: str
|
|
||||||
workflow_parameter_type: WorkflowParameterType
|
|
||||||
workflow_id: str
|
|
||||||
default_value: typing.Optional[WorkflowParameterDefaultValue] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
ActionBlockParametersItem = typing.Union[
|
|
||||||
ActionBlockParametersItem_AwsSecret,
|
|
||||||
ActionBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
ActionBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
ActionBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
ActionBlockParametersItem_Context,
|
|
||||||
ActionBlockParametersItem_Credential,
|
|
||||||
ActionBlockParametersItem_Output,
|
|
||||||
ActionBlockParametersItem_Workflow,
|
|
||||||
]
|
|
||||||
update_forward_refs(ActionBlockParametersItem_Context)
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
from .data import Data
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class ActionResult(UniversalBaseModel):
|
|
||||||
success: bool
|
|
||||||
stop_execution_on_failure: typing.Optional[bool] = None
|
|
||||||
exception_type: typing.Optional[str] = None
|
|
||||||
exception_message: typing.Optional[str] = None
|
|
||||||
data: typing.Optional[Data] = None
|
|
||||||
step_retry_number: typing.Optional[int] = None
|
|
||||||
step_order: typing.Optional[int] = None
|
|
||||||
download_triggered: typing.Optional[bool] = None
|
|
||||||
interacted_with_sibling: typing.Optional[bool] = None
|
|
||||||
interacted_with_parent: typing.Optional[bool] = None
|
|
||||||
skip_remaining_actions: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
ActionStatus = typing.Union[typing.Literal["pending", "skipped", "failed", "completed"], typing.Any]
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
ActionType = typing.Union[
|
|
||||||
typing.Literal[
|
|
||||||
"click",
|
|
||||||
"input_text",
|
|
||||||
"upload_file",
|
|
||||||
"download_file",
|
|
||||||
"select_option",
|
|
||||||
"checkbox",
|
|
||||||
"wait",
|
|
||||||
"null_action",
|
|
||||||
"solve_captcha",
|
|
||||||
"terminate",
|
|
||||||
"complete",
|
|
||||||
"reload_page",
|
|
||||||
"extract",
|
|
||||||
],
|
|
||||||
typing.Any,
|
|
||||||
]
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
from .action_result import ActionResult
|
|
||||||
from .user_defined_error import UserDefinedError
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class AgentStepOutput(UniversalBaseModel):
|
|
||||||
"""
|
|
||||||
Output of the agent step, this is recorded in the database.
|
|
||||||
"""
|
|
||||||
|
|
||||||
action_results: typing.Optional[typing.List[ActionResult]] = None
|
|
||||||
actions_and_results: typing.Optional[typing.List[typing.List[typing.Optional[typing.Any]]]] = None
|
|
||||||
errors: typing.Optional[typing.List[UserDefinedError]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import pydantic
|
|
||||||
from .artifact_type import ArtifactType
|
|
||||||
import typing
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
|
|
||||||
|
|
||||||
class Artifact(UniversalBaseModel):
|
|
||||||
created_at: str = pydantic.Field()
|
|
||||||
"""
|
|
||||||
The creation datetime of the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
modified_at: str = pydantic.Field()
|
|
||||||
"""
|
|
||||||
The modification datetime of the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
artifact_id: str
|
|
||||||
artifact_type: ArtifactType
|
|
||||||
uri: str
|
|
||||||
task_id: typing.Optional[str] = None
|
|
||||||
step_id: typing.Optional[str] = None
|
|
||||||
workflow_run_id: typing.Optional[str] = None
|
|
||||||
workflow_run_block_id: typing.Optional[str] = None
|
|
||||||
observer_cruise_id: typing.Optional[str] = None
|
|
||||||
observer_thought_id: typing.Optional[str] = None
|
|
||||||
ai_suggestion_id: typing.Optional[str] = None
|
|
||||||
signed_url: typing.Optional[str] = None
|
|
||||||
organization_id: typing.Optional[str] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
ArtifactType = typing.Union[
|
|
||||||
typing.Literal[
|
|
||||||
"recording",
|
|
||||||
"browser_console_log",
|
|
||||||
"skyvern_log",
|
|
||||||
"skyvern_log_raw",
|
|
||||||
"screenshot",
|
|
||||||
"screenshot_llm",
|
|
||||||
"screenshot_action",
|
|
||||||
"screenshot_final",
|
|
||||||
"llm_prompt",
|
|
||||||
"llm_request",
|
|
||||||
"llm_response",
|
|
||||||
"llm_response_parsed",
|
|
||||||
"llm_response_rendered",
|
|
||||||
"visible_elements_id_css_map",
|
|
||||||
"visible_elements_id_frame_map",
|
|
||||||
"visible_elements_tree",
|
|
||||||
"visible_elements_tree_trimmed",
|
|
||||||
"visible_elements_tree_in_prompt",
|
|
||||||
"hashed_href_map",
|
|
||||||
"visible_elements_id_xpath_map",
|
|
||||||
"html",
|
|
||||||
"html_scrape",
|
|
||||||
"html_action",
|
|
||||||
"trace",
|
|
||||||
"har",
|
|
||||||
],
|
|
||||||
typing.Any,
|
|
||||||
]
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class AwsSecretParameter(UniversalBaseModel):
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
aws_secret_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
aws_key: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class BitwardenCreditCardDataParameter(UniversalBaseModel):
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_credit_card_data_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_item_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class BitwardenLoginCredentialParameter(UniversalBaseModel):
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_login_credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
url_parameter_key: typing.Optional[str] = None
|
|
||||||
bitwarden_collection_id: typing.Optional[str] = None
|
|
||||||
bitwarden_item_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class BitwardenSensitiveInformationParameter(UniversalBaseModel):
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_sensitive_information_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_identity_key: str
|
|
||||||
bitwarden_identity_fields: typing.List[str]
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
BlockType = typing.Union[
|
|
||||||
typing.Literal[
|
|
||||||
"task",
|
|
||||||
"task_v2",
|
|
||||||
"for_loop",
|
|
||||||
"code",
|
|
||||||
"text_prompt",
|
|
||||||
"download_to_s3",
|
|
||||||
"upload_to_s3",
|
|
||||||
"file_upload",
|
|
||||||
"send_email",
|
|
||||||
"file_url_parser",
|
|
||||||
"validation",
|
|
||||||
"action",
|
|
||||||
"navigation",
|
|
||||||
"extraction",
|
|
||||||
"login",
|
|
||||||
"wait",
|
|
||||||
"file_download",
|
|
||||||
"goto_url",
|
|
||||||
"pdf_parser",
|
|
||||||
],
|
|
||||||
typing.Any,
|
|
||||||
]
|
|
||||||
@@ -1,20 +1,51 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
# This file was auto-generated by Fern from our API Definition.
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
from ..core.pydantic_utilities import UniversalBaseModel
|
||||||
|
import pydantic
|
||||||
import typing
|
import typing
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class BrowserSessionResponse(UniversalBaseModel):
|
class BrowserSessionResponse(UniversalBaseModel):
|
||||||
session_id: str
|
"""
|
||||||
organization_id: str
|
Response model for browser session information.
|
||||||
runnable_type: typing.Optional[str] = None
|
"""
|
||||||
runnable_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
browser_session_id: str = pydantic.Field()
|
||||||
modified_at: dt.datetime
|
"""
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
Unique identifier for the browser session
|
||||||
|
"""
|
||||||
|
|
||||||
|
organization_id: str = pydantic.Field()
|
||||||
|
"""
|
||||||
|
ID of the organization that owns this session
|
||||||
|
"""
|
||||||
|
|
||||||
|
runnable_type: typing.Optional[str] = pydantic.Field(default=None)
|
||||||
|
"""
|
||||||
|
Type of runnable associated with this session (workflow, task etc)
|
||||||
|
"""
|
||||||
|
|
||||||
|
runnable_id: typing.Optional[str] = pydantic.Field(default=None)
|
||||||
|
"""
|
||||||
|
ID of the associated runnable
|
||||||
|
"""
|
||||||
|
|
||||||
|
created_at: dt.datetime = pydantic.Field()
|
||||||
|
"""
|
||||||
|
Timestamp when the session was created
|
||||||
|
"""
|
||||||
|
|
||||||
|
modified_at: dt.datetime = pydantic.Field()
|
||||||
|
"""
|
||||||
|
Timestamp when the session was last modified
|
||||||
|
"""
|
||||||
|
|
||||||
|
deleted_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
||||||
|
"""
|
||||||
|
Timestamp when the session was deleted, if applicable
|
||||||
|
"""
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
if IS_PYDANTIC_V2:
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .code_block_parameters_item import CodeBlockParametersItem
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class CodeBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
code: str
|
|
||||||
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,207 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from .value import Value
|
|
||||||
from .workflow_parameter_type import WorkflowParameterType
|
|
||||||
from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class CodeBlockParametersItem_AwsSecret(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["aws_secret"] = "aws_secret"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
aws_secret_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
aws_key: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class CodeBlockParametersItem_BitwardenCreditCardData(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_credit_card_data_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_item_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class CodeBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_login_credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
url_parameter_key: typing.Optional[str] = None
|
|
||||||
bitwarden_collection_id: typing.Optional[str] = None
|
|
||||||
bitwarden_item_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class CodeBlockParametersItem_BitwardenSensitiveInformation(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_sensitive_information_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_identity_key: str
|
|
||||||
bitwarden_identity_fields: typing.List[str]
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class CodeBlockParametersItem_Context(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["context"] = "context"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
source: "Source"
|
|
||||||
value: typing.Optional[Value] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .context_parameter import ContextParameter # noqa: E402
|
|
||||||
from .source import Source # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
class CodeBlockParametersItem_Credential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["credential"] = "credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
credential_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class CodeBlockParametersItem_Output(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["output"] = "output"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
output_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class CodeBlockParametersItem_Workflow(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["workflow"] = "workflow"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
workflow_parameter_id: str
|
|
||||||
workflow_parameter_type: WorkflowParameterType
|
|
||||||
workflow_id: str
|
|
||||||
default_value: typing.Optional[WorkflowParameterDefaultValue] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
CodeBlockParametersItem = typing.Union[
|
|
||||||
CodeBlockParametersItem_AwsSecret,
|
|
||||||
CodeBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
CodeBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
CodeBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
CodeBlockParametersItem_Context,
|
|
||||||
CodeBlockParametersItem_Credential,
|
|
||||||
CodeBlockParametersItem_Output,
|
|
||||||
CodeBlockParametersItem_Workflow,
|
|
||||||
]
|
|
||||||
update_forward_refs(CodeBlockParametersItem_Context)
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
from .value import Value
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class ContextParameter(UniversalBaseModel):
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
source: "Source"
|
|
||||||
value: typing.Optional[Value] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .source import Source # noqa: E402
|
|
||||||
|
|
||||||
update_forward_refs(ContextParameter)
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .credential_type import CredentialType
|
|
||||||
from .credential import Credential
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class CreateCredentialRequest(UniversalBaseModel):
|
|
||||||
name: str
|
|
||||||
credential_type: CredentialType
|
|
||||||
credential: Credential
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class CreateTaskResponse(UniversalBaseModel):
|
|
||||||
task_id: str
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
from .password_credential_response import PasswordCredentialResponse
|
|
||||||
from .credit_card_credential_response import CreditCardCredentialResponse
|
|
||||||
|
|
||||||
Credential = typing.Union[PasswordCredentialResponse, CreditCardCredentialResponse]
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class CredentialParameter(UniversalBaseModel):
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
credential_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .credential import Credential
|
|
||||||
from .credential_type import CredentialType
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class CredentialResponse(UniversalBaseModel):
|
|
||||||
credential_id: str
|
|
||||||
credential: Credential
|
|
||||||
credential_type: CredentialType
|
|
||||||
name: str
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
CredentialType = typing.Union[typing.Literal["password", "credit_card"], typing.Any]
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class CreditCardCredentialResponse(UniversalBaseModel):
|
|
||||||
last_four: str
|
|
||||||
brand: str
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
Data = typing.Union[typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str]
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class DownloadToS3Block(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
url: str
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
EntityType = typing.Union[typing.Literal["step", "task", "workflow_run", "workflow_run_block", "thought"], typing.Any]
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .extraction_block_data_schema import ExtractionBlockDataSchema
|
|
||||||
from .extraction_block_parameters_item import ExtractionBlockParametersItem
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractionBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: str
|
|
||||||
data_schema: typing.Optional[ExtractionBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[ExtractionBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
ExtractionBlockDataSchema = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]]
|
|
||||||
]
|
|
||||||
@@ -1,207 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from .value import Value
|
|
||||||
from .workflow_parameter_type import WorkflowParameterType
|
|
||||||
from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractionBlockParametersItem_AwsSecret(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["aws_secret"] = "aws_secret"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
aws_secret_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
aws_key: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractionBlockParametersItem_BitwardenCreditCardData(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_credit_card_data_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_item_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractionBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_login_credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
url_parameter_key: typing.Optional[str] = None
|
|
||||||
bitwarden_collection_id: typing.Optional[str] = None
|
|
||||||
bitwarden_item_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractionBlockParametersItem_BitwardenSensitiveInformation(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_sensitive_information_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_identity_key: str
|
|
||||||
bitwarden_identity_fields: typing.List[str]
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractionBlockParametersItem_Context(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["context"] = "context"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
source: "Source"
|
|
||||||
value: typing.Optional[Value] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .context_parameter import ContextParameter # noqa: E402
|
|
||||||
from .source import Source # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractionBlockParametersItem_Credential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["credential"] = "credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
credential_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractionBlockParametersItem_Output(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["output"] = "output"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
output_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractionBlockParametersItem_Workflow(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["workflow"] = "workflow"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
workflow_parameter_id: str
|
|
||||||
workflow_parameter_type: WorkflowParameterType
|
|
||||||
workflow_id: str
|
|
||||||
default_value: typing.Optional[WorkflowParameterDefaultValue] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
ExtractionBlockParametersItem = typing.Union[
|
|
||||||
ExtractionBlockParametersItem_AwsSecret,
|
|
||||||
ExtractionBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
ExtractionBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
ExtractionBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
ExtractionBlockParametersItem_Context,
|
|
||||||
ExtractionBlockParametersItem_Credential,
|
|
||||||
ExtractionBlockParametersItem_Output,
|
|
||||||
ExtractionBlockParametersItem_Workflow,
|
|
||||||
]
|
|
||||||
update_forward_refs(ExtractionBlockParametersItem_Context)
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .file_download_block_data_schema import FileDownloadBlockDataSchema
|
|
||||||
from .file_download_block_parameters_item import FileDownloadBlockParametersItem
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class FileDownloadBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[FileDownloadBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[FileDownloadBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
FileDownloadBlockDataSchema = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]]
|
|
||||||
]
|
|
||||||
@@ -1,207 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from .value import Value
|
|
||||||
from .workflow_parameter_type import WorkflowParameterType
|
|
||||||
from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class FileDownloadBlockParametersItem_AwsSecret(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["aws_secret"] = "aws_secret"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
aws_secret_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
aws_key: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class FileDownloadBlockParametersItem_BitwardenCreditCardData(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_credit_card_data_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_item_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class FileDownloadBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_login_credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
url_parameter_key: typing.Optional[str] = None
|
|
||||||
bitwarden_collection_id: typing.Optional[str] = None
|
|
||||||
bitwarden_item_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class FileDownloadBlockParametersItem_BitwardenSensitiveInformation(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_sensitive_information_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_identity_key: str
|
|
||||||
bitwarden_identity_fields: typing.List[str]
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class FileDownloadBlockParametersItem_Context(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["context"] = "context"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
source: "Source"
|
|
||||||
value: typing.Optional[Value] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .context_parameter import ContextParameter # noqa: E402
|
|
||||||
from .source import Source # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
class FileDownloadBlockParametersItem_Credential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["credential"] = "credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
credential_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class FileDownloadBlockParametersItem_Output(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["output"] = "output"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
output_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class FileDownloadBlockParametersItem_Workflow(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["workflow"] = "workflow"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
workflow_parameter_id: str
|
|
||||||
workflow_parameter_type: WorkflowParameterType
|
|
||||||
workflow_id: str
|
|
||||||
default_value: typing.Optional[WorkflowParameterDefaultValue] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
FileDownloadBlockParametersItem = typing.Union[
|
|
||||||
FileDownloadBlockParametersItem_AwsSecret,
|
|
||||||
FileDownloadBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
FileDownloadBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
FileDownloadBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
FileDownloadBlockParametersItem_Context,
|
|
||||||
FileDownloadBlockParametersItem_Credential,
|
|
||||||
FileDownloadBlockParametersItem_Output,
|
|
||||||
FileDownloadBlockParametersItem_Workflow,
|
|
||||||
]
|
|
||||||
update_forward_refs(FileDownloadBlockParametersItem_Context)
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import pydantic
|
|
||||||
import typing
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
|
|
||||||
|
|
||||||
class FileInfo(UniversalBaseModel):
|
|
||||||
"""
|
|
||||||
Information about a downloaded file, including URL and checksum.
|
|
||||||
"""
|
|
||||||
|
|
||||||
url: str = pydantic.Field()
|
|
||||||
"""
|
|
||||||
URL to access the file
|
|
||||||
"""
|
|
||||||
|
|
||||||
checksum: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
SHA-256 checksum of the file
|
|
||||||
"""
|
|
||||||
|
|
||||||
filename: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
Original filename
|
|
||||||
"""
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .file_type import FileType
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class FileParserBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
file_url: str
|
|
||||||
file_type: FileType = "csv"
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
FileStorageType = typing.Literal["s3"]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
FileType = typing.Literal["csv"]
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .file_storage_type import FileStorageType
|
|
||||||
import typing_extensions
|
|
||||||
from ..core.serialization import FieldMetadata
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class FileUploadBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
storage_type: typing.Optional[FileStorageType] = None
|
|
||||||
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
|
|
||||||
aws_access_key_id: typing.Optional[str] = None
|
|
||||||
aws_secret_access_key: typing.Optional[str] = None
|
|
||||||
region_name: typing.Optional[str] = None
|
|
||||||
path: typing.Optional[str] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .for_loop_block_loop_over import ForLoopBlockLoopOver
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
loop_blocks: typing.List["ForLoopBlockLoopBlocksItem"]
|
|
||||||
loop_over: typing.Optional[ForLoopBlockLoopOver] = None
|
|
||||||
loop_variable_reference: typing.Optional[str] = None
|
|
||||||
complete_if_empty: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa: E402
|
|
||||||
|
|
||||||
update_forward_refs(ForLoopBlock)
|
|
||||||
@@ -1,549 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
import typing
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
from .action_block_data_schema import ActionBlockDataSchema
|
|
||||||
from .action_block_parameters_item import ActionBlockParametersItem
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from .code_block_parameters_item import CodeBlockParametersItem
|
|
||||||
from .extraction_block_data_schema import ExtractionBlockDataSchema
|
|
||||||
from .extraction_block_parameters_item import ExtractionBlockParametersItem
|
|
||||||
from .file_download_block_data_schema import FileDownloadBlockDataSchema
|
|
||||||
from .file_download_block_parameters_item import FileDownloadBlockParametersItem
|
|
||||||
from .file_storage_type import FileStorageType
|
|
||||||
import typing_extensions
|
|
||||||
from ..core.serialization import FieldMetadata
|
|
||||||
from .file_type import FileType
|
|
||||||
from .for_loop_block_loop_over import ForLoopBlockLoopOver
|
|
||||||
from .url_block_data_schema import UrlBlockDataSchema
|
|
||||||
from .url_block_parameters_item import UrlBlockParametersItem
|
|
||||||
from .login_block_data_schema import LoginBlockDataSchema
|
|
||||||
from .login_block_parameters_item import LoginBlockParametersItem
|
|
||||||
from .navigation_block_data_schema import NavigationBlockDataSchema
|
|
||||||
from .navigation_block_parameters_item import NavigationBlockParametersItem
|
|
||||||
from .aws_secret_parameter import AwsSecretParameter
|
|
||||||
from .task_block_data_schema import TaskBlockDataSchema
|
|
||||||
from .task_block_parameters_item import TaskBlockParametersItem
|
|
||||||
from .text_prompt_block_parameters_item import TextPromptBlockParametersItem
|
|
||||||
from .validation_block_data_schema import ValidationBlockDataSchema
|
|
||||||
from .validation_block_parameters_item import ValidationBlockParametersItem
|
|
||||||
from .wait_block_parameters_item import WaitBlockParametersItem
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_Action(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["action"] = "action"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[ActionBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[ActionBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_Code(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["code"] = "code"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
code: str
|
|
||||||
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_DownloadToS3(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["download_to_s3"] = "download_to_s3"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
url: str
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_Extraction(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["extraction"] = "extraction"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: str
|
|
||||||
data_schema: typing.Optional[ExtractionBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[ExtractionBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_FileDownload(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["file_download"] = "file_download"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[FileDownloadBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[FileDownloadBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_FileUpload(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["file_upload"] = "file_upload"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
storage_type: typing.Optional[FileStorageType] = None
|
|
||||||
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
|
|
||||||
aws_access_key_id: typing.Optional[str] = None
|
|
||||||
aws_secret_access_key: typing.Optional[str] = None
|
|
||||||
region_name: typing.Optional[str] = None
|
|
||||||
path: typing.Optional[str] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_FileUrlParser(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["file_url_parser"] = "file_url_parser"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
file_url: str
|
|
||||||
file_type: FileType = "csv"
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_ForLoop(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["for_loop"] = "for_loop"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
loop_blocks: typing.List["ForLoopBlockLoopBlocksItem"]
|
|
||||||
loop_over: typing.Optional[ForLoopBlockLoopOver] = None
|
|
||||||
loop_variable_reference: typing.Optional[str] = None
|
|
||||||
complete_if_empty: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .for_loop_block import ForLoopBlock # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["goto_url"] = "goto_url"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: str
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[UrlBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[UrlBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_Login(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["login"] = "login"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[LoginBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[LoginBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_Navigation(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["navigation"] = "navigation"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: str
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[NavigationBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[NavigationBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_PdfParser(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["pdf_parser"] = "pdf_parser"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
file_url: str
|
|
||||||
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_SendEmail(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["send_email"] = "send_email"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
smtp_host: AwsSecretParameter
|
|
||||||
smtp_port: AwsSecretParameter
|
|
||||||
smtp_username: AwsSecretParameter
|
|
||||||
smtp_password: AwsSecretParameter
|
|
||||||
sender: str
|
|
||||||
recipients: typing.List[str]
|
|
||||||
subject: str
|
|
||||||
body: str
|
|
||||||
file_attachments: typing.Optional[typing.List[str]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_Task(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["task"] = "task"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[TaskBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[TaskBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_TaskV2(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["task_v2"] = "task_v2"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
prompt: str
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
max_iterations: typing.Optional[int] = None
|
|
||||||
max_steps: typing.Optional[int] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_TextPrompt(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["text_prompt"] = "text_prompt"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
llm_key: typing.Optional[str] = None
|
|
||||||
prompt: str
|
|
||||||
parameters: typing.Optional[typing.List[TextPromptBlockParametersItem]] = None
|
|
||||||
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_UploadToS3(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["upload_to_s3"] = "upload_to_s3"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
path: typing.Optional[str] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_Validation(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["validation"] = "validation"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[ValidationBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[ValidationBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopBlocksItem_Wait(UniversalBaseModel):
|
|
||||||
block_type: typing.Literal["wait"] = "wait"
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
wait_sec: int
|
|
||||||
parameters: typing.Optional[typing.List[WaitBlockParametersItem]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
ForLoopBlockLoopBlocksItem = typing.Union[
|
|
||||||
ForLoopBlockLoopBlocksItem_Action,
|
|
||||||
ForLoopBlockLoopBlocksItem_Code,
|
|
||||||
ForLoopBlockLoopBlocksItem_DownloadToS3,
|
|
||||||
ForLoopBlockLoopBlocksItem_Extraction,
|
|
||||||
ForLoopBlockLoopBlocksItem_FileDownload,
|
|
||||||
ForLoopBlockLoopBlocksItem_FileUpload,
|
|
||||||
ForLoopBlockLoopBlocksItem_FileUrlParser,
|
|
||||||
ForLoopBlockLoopBlocksItem_ForLoop,
|
|
||||||
ForLoopBlockLoopBlocksItem_GotoUrl,
|
|
||||||
ForLoopBlockLoopBlocksItem_Login,
|
|
||||||
ForLoopBlockLoopBlocksItem_Navigation,
|
|
||||||
ForLoopBlockLoopBlocksItem_PdfParser,
|
|
||||||
ForLoopBlockLoopBlocksItem_SendEmail,
|
|
||||||
ForLoopBlockLoopBlocksItem_Task,
|
|
||||||
ForLoopBlockLoopBlocksItem_TaskV2,
|
|
||||||
ForLoopBlockLoopBlocksItem_TextPrompt,
|
|
||||||
ForLoopBlockLoopBlocksItem_UploadToS3,
|
|
||||||
ForLoopBlockLoopBlocksItem_Validation,
|
|
||||||
ForLoopBlockLoopBlocksItem_Wait,
|
|
||||||
]
|
|
||||||
update_forward_refs(ForLoopBlockLoopBlocksItem_ForLoop)
|
|
||||||
@@ -1,207 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from .value import Value
|
|
||||||
from .workflow_parameter_type import WorkflowParameterType
|
|
||||||
from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopOver_AwsSecret(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["aws_secret"] = "aws_secret"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
aws_secret_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
aws_key: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopOver_BitwardenCreditCardData(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_credit_card_data_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_item_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopOver_BitwardenLoginCredential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_login_credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
url_parameter_key: typing.Optional[str] = None
|
|
||||||
bitwarden_collection_id: typing.Optional[str] = None
|
|
||||||
bitwarden_item_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopOver_BitwardenSensitiveInformation(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_sensitive_information_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_identity_key: str
|
|
||||||
bitwarden_identity_fields: typing.List[str]
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopOver_Context(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["context"] = "context"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
source: "Source"
|
|
||||||
value: typing.Optional[Value] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .context_parameter import ContextParameter # noqa: E402
|
|
||||||
from .source import Source # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopOver_Credential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["credential"] = "credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
credential_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopOver_Output(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["output"] = "output"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
output_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class ForLoopBlockLoopOver_Workflow(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["workflow"] = "workflow"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
workflow_parameter_id: str
|
|
||||||
workflow_parameter_type: WorkflowParameterType
|
|
||||||
workflow_id: str
|
|
||||||
default_value: typing.Optional[WorkflowParameterDefaultValue] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
ForLoopBlockLoopOver = typing.Union[
|
|
||||||
ForLoopBlockLoopOver_AwsSecret,
|
|
||||||
ForLoopBlockLoopOver_BitwardenCreditCardData,
|
|
||||||
ForLoopBlockLoopOver_BitwardenLoginCredential,
|
|
||||||
ForLoopBlockLoopOver_BitwardenSensitiveInformation,
|
|
||||||
ForLoopBlockLoopOver_Context,
|
|
||||||
ForLoopBlockLoopOver_Credential,
|
|
||||||
ForLoopBlockLoopOver_Output,
|
|
||||||
ForLoopBlockLoopOver_Workflow,
|
|
||||||
]
|
|
||||||
update_forward_refs(ForLoopBlockLoopOver_Context)
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
from .organization_auth_token import OrganizationAuthToken
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class GetOrganizationApiKeysResponse(UniversalBaseModel):
|
|
||||||
api_keys: typing.List[OrganizationAuthToken]
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
from .organization import Organization
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class GetOrganizationsResponse(UniversalBaseModel):
|
|
||||||
organizations: typing.List[Organization]
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .login_block_data_schema import LoginBlockDataSchema
|
|
||||||
from .login_block_parameters_item import LoginBlockParametersItem
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class LoginBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[LoginBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[LoginBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
LoginBlockDataSchema = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]]
|
|
||||||
]
|
|
||||||
@@ -1,207 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from .value import Value
|
|
||||||
from .workflow_parameter_type import WorkflowParameterType
|
|
||||||
from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class LoginBlockParametersItem_AwsSecret(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["aws_secret"] = "aws_secret"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
aws_secret_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
aws_key: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class LoginBlockParametersItem_BitwardenCreditCardData(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_credit_card_data_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_item_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class LoginBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_login_credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
url_parameter_key: typing.Optional[str] = None
|
|
||||||
bitwarden_collection_id: typing.Optional[str] = None
|
|
||||||
bitwarden_item_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class LoginBlockParametersItem_BitwardenSensitiveInformation(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_sensitive_information_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_identity_key: str
|
|
||||||
bitwarden_identity_fields: typing.List[str]
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class LoginBlockParametersItem_Context(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["context"] = "context"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
source: "Source"
|
|
||||||
value: typing.Optional[Value] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .context_parameter import ContextParameter # noqa: E402
|
|
||||||
from .source import Source # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
class LoginBlockParametersItem_Credential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["credential"] = "credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
credential_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class LoginBlockParametersItem_Output(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["output"] = "output"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
output_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class LoginBlockParametersItem_Workflow(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["workflow"] = "workflow"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
workflow_parameter_id: str
|
|
||||||
workflow_parameter_type: WorkflowParameterType
|
|
||||||
workflow_id: str
|
|
||||||
default_value: typing.Optional[WorkflowParameterDefaultValue] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
LoginBlockParametersItem = typing.Union[
|
|
||||||
LoginBlockParametersItem_AwsSecret,
|
|
||||||
LoginBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
LoginBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
LoginBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
LoginBlockParametersItem_Context,
|
|
||||||
LoginBlockParametersItem_Credential,
|
|
||||||
LoginBlockParametersItem_Output,
|
|
||||||
LoginBlockParametersItem_Workflow,
|
|
||||||
]
|
|
||||||
update_forward_refs(LoginBlockParametersItem_Context)
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .navigation_block_data_schema import NavigationBlockDataSchema
|
|
||||||
from .navigation_block_parameters_item import NavigationBlockParametersItem
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class NavigationBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: str
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[NavigationBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[NavigationBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
NavigationBlockDataSchema = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]]
|
|
||||||
]
|
|
||||||
@@ -1,207 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from .value import Value
|
|
||||||
from .workflow_parameter_type import WorkflowParameterType
|
|
||||||
from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class NavigationBlockParametersItem_AwsSecret(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["aws_secret"] = "aws_secret"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
aws_secret_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
aws_key: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class NavigationBlockParametersItem_BitwardenCreditCardData(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_credit_card_data_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_item_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class NavigationBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_login_credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
url_parameter_key: typing.Optional[str] = None
|
|
||||||
bitwarden_collection_id: typing.Optional[str] = None
|
|
||||||
bitwarden_item_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class NavigationBlockParametersItem_BitwardenSensitiveInformation(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_sensitive_information_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_identity_key: str
|
|
||||||
bitwarden_identity_fields: typing.List[str]
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class NavigationBlockParametersItem_Context(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["context"] = "context"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
source: "Source"
|
|
||||||
value: typing.Optional[Value] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .context_parameter import ContextParameter # noqa: E402
|
|
||||||
from .source import Source # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
class NavigationBlockParametersItem_Credential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["credential"] = "credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
credential_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class NavigationBlockParametersItem_Output(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["output"] = "output"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
output_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class NavigationBlockParametersItem_Workflow(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["workflow"] = "workflow"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
workflow_parameter_id: str
|
|
||||||
workflow_parameter_type: WorkflowParameterType
|
|
||||||
workflow_id: str
|
|
||||||
default_value: typing.Optional[WorkflowParameterDefaultValue] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
NavigationBlockParametersItem = typing.Union[
|
|
||||||
NavigationBlockParametersItem_AwsSecret,
|
|
||||||
NavigationBlockParametersItem_BitwardenCreditCardData,
|
|
||||||
NavigationBlockParametersItem_BitwardenLoginCredential,
|
|
||||||
NavigationBlockParametersItem_BitwardenSensitiveInformation,
|
|
||||||
NavigationBlockParametersItem_Context,
|
|
||||||
NavigationBlockParametersItem_Credential,
|
|
||||||
NavigationBlockParametersItem_Output,
|
|
||||||
NavigationBlockParametersItem_Workflow,
|
|
||||||
]
|
|
||||||
update_forward_refs(NavigationBlockParametersItem_Context)
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class NonEmptyCreditCardCredential(UniversalBaseModel):
|
|
||||||
card_number: str
|
|
||||||
card_cvv: str
|
|
||||||
card_exp_month: str
|
|
||||||
card_exp_year: str
|
|
||||||
card_brand: str
|
|
||||||
card_holder_name: str
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class NonEmptyPasswordCredential(UniversalBaseModel):
|
|
||||||
password: str
|
|
||||||
username: str
|
|
||||||
totp: typing.Optional[str] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
OrderBy = typing.Union[typing.Literal["created_at", "modified_at"], typing.Any]
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class Organization(UniversalBaseModel):
|
|
||||||
organization_id: str
|
|
||||||
organization_name: str
|
|
||||||
webhook_callback_url: typing.Optional[str] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
max_retries_per_step: typing.Optional[int] = None
|
|
||||||
domain: typing.Optional[str] = None
|
|
||||||
bw_organization_id: typing.Optional[str] = None
|
|
||||||
bw_collection_ids: typing.Optional[typing.List[str]] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .organization_auth_token_type import OrganizationAuthTokenType
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class OrganizationAuthToken(UniversalBaseModel):
|
|
||||||
id: str
|
|
||||||
organization_id: str
|
|
||||||
token_type: OrganizationAuthTokenType = "api"
|
|
||||||
token: str
|
|
||||||
valid: bool
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
OrganizationAuthTokenType = typing.Literal["api"]
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class OutputParameter(UniversalBaseModel):
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
output_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class PasswordCredentialResponse(UniversalBaseModel):
|
|
||||||
username: str
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class PdfParserBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
file_url: str
|
|
||||||
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -4,12 +4,12 @@ import typing
|
|||||||
|
|
||||||
ProxyLocation = typing.Union[
|
ProxyLocation = typing.Union[
|
||||||
typing.Literal[
|
typing.Literal[
|
||||||
|
"RESIDENTIAL",
|
||||||
"US-CA",
|
"US-CA",
|
||||||
"US-NY",
|
"US-NY",
|
||||||
"US-TX",
|
"US-TX",
|
||||||
"US-FL",
|
"US-FL",
|
||||||
"US-WA",
|
"US-WA",
|
||||||
"RESIDENTIAL",
|
|
||||||
"RESIDENTIAL_ES",
|
"RESIDENTIAL_ES",
|
||||||
"RESIDENTIAL_IE",
|
"RESIDENTIAL_IE",
|
||||||
"RESIDENTIAL_GB",
|
"RESIDENTIAL_GB",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import typing
|
import typing
|
||||||
|
|
||||||
TaskStatus = typing.Union[
|
RunStatus = typing.Union[
|
||||||
typing.Literal["created", "queued", "running", "timed_out", "failed", "terminated", "completed", "canceled"],
|
typing.Literal["created", "queued", "running", "timed_out", "failed", "terminated", "completed", "canceled"],
|
||||||
typing.Any,
|
typing.Any,
|
||||||
]
|
]
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class RunWorkflowResponse(UniversalBaseModel):
|
|
||||||
workflow_id: str
|
|
||||||
workflow_run_id: str
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class SelectOption(UniversalBaseModel):
|
|
||||||
label: typing.Optional[str] = None
|
|
||||||
value: typing.Optional[str] = None
|
|
||||||
index: typing.Optional[int] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .aws_secret_parameter import AwsSecretParameter
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class SendEmailBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
smtp_host: AwsSecretParameter
|
|
||||||
smtp_port: AwsSecretParameter
|
|
||||||
smtp_username: AwsSecretParameter
|
|
||||||
smtp_password: AwsSecretParameter
|
|
||||||
sender: str
|
|
||||||
recipients: typing.List[str]
|
|
||||||
subject: str
|
|
||||||
body: str
|
|
||||||
file_attachments: typing.Optional[typing.List[str]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
SortDirection = typing.Union[typing.Literal["asc", "desc"], typing.Any]
|
|
||||||
@@ -1,206 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
from .workflow_parameter_type import WorkflowParameterType
|
|
||||||
from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|
||||||
import datetime as dt
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
from .value import Value
|
|
||||||
from ..core.pydantic_utilities import update_forward_refs
|
|
||||||
|
|
||||||
|
|
||||||
class Source_Workflow(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["workflow"] = "workflow"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
workflow_parameter_id: str
|
|
||||||
workflow_parameter_type: WorkflowParameterType
|
|
||||||
workflow_id: str
|
|
||||||
default_value: typing.Optional[WorkflowParameterDefaultValue] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class Source_Context(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["context"] = "context"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
source: "Source"
|
|
||||||
value: typing.Optional[Value] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
from .context_parameter import ContextParameter # noqa: E402
|
|
||||||
|
|
||||||
|
|
||||||
class Source_AwsSecret(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["aws_secret"] = "aws_secret"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
aws_secret_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
aws_key: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class Source_BitwardenLoginCredential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_login_credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
url_parameter_key: typing.Optional[str] = None
|
|
||||||
bitwarden_collection_id: typing.Optional[str] = None
|
|
||||||
bitwarden_item_id: typing.Optional[str] = None
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class Source_BitwardenSensitiveInformation(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_sensitive_information_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_identity_key: str
|
|
||||||
bitwarden_identity_fields: typing.List[str]
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class Source_BitwardenCreditCardData(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
bitwarden_credit_card_data_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
bitwarden_client_id_aws_secret_key: str
|
|
||||||
bitwarden_client_secret_aws_secret_key: str
|
|
||||||
bitwarden_master_password_aws_secret_key: str
|
|
||||||
bitwarden_collection_id: str
|
|
||||||
bitwarden_item_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class Source_Output(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["output"] = "output"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
output_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
class Source_Credential(UniversalBaseModel):
|
|
||||||
parameter_type: typing.Literal["credential"] = "credential"
|
|
||||||
key: str
|
|
||||||
description: typing.Optional[str] = None
|
|
||||||
credential_parameter_id: str
|
|
||||||
workflow_id: str
|
|
||||||
credential_id: str
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
deleted_at: typing.Optional[dt.datetime] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
|
|
||||||
|
|
||||||
Source = typing.Union[
|
|
||||||
Source_Workflow,
|
|
||||||
Source_Context,
|
|
||||||
Source_AwsSecret,
|
|
||||||
Source_BitwardenLoginCredential,
|
|
||||||
Source_BitwardenSensitiveInformation,
|
|
||||||
Source_BitwardenCreditCardData,
|
|
||||||
Source_Output,
|
|
||||||
Source_Credential,
|
|
||||||
]
|
|
||||||
update_forward_refs(Source_Context)
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import datetime as dt
|
|
||||||
from .step_status import StepStatus
|
|
||||||
import typing
|
|
||||||
from .agent_step_output import AgentStepOutput
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class Step(UniversalBaseModel):
|
|
||||||
created_at: dt.datetime
|
|
||||||
modified_at: dt.datetime
|
|
||||||
task_id: str
|
|
||||||
step_id: str
|
|
||||||
status: StepStatus
|
|
||||||
output: typing.Optional[AgentStepOutput] = None
|
|
||||||
order: int
|
|
||||||
is_last: bool
|
|
||||||
retry_index: typing.Optional[int] = None
|
|
||||||
organization_id: typing.Optional[str] = None
|
|
||||||
input_token_count: typing.Optional[int] = None
|
|
||||||
output_token_count: typing.Optional[int] = None
|
|
||||||
reasoning_token_count: typing.Optional[int] = None
|
|
||||||
cached_token_count: typing.Optional[int] = None
|
|
||||||
step_cost: typing.Optional[float] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
StepStatus = typing.Union[typing.Literal["created", "running", "failed", "completed", "canceled"], typing.Any]
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
from .task_navigation_payload import TaskNavigationPayload
|
|
||||||
from .proxy_location import ProxyLocation
|
|
||||||
from .task_extracted_information_schema import TaskExtractedInformationSchema
|
|
||||||
from .task_type import TaskType
|
|
||||||
import datetime as dt
|
|
||||||
from .task_status import TaskStatus
|
|
||||||
from .task_extracted_information import TaskExtractedInformation
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
|
|
||||||
|
|
||||||
class Task(UniversalBaseModel):
|
|
||||||
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The title of the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
url: str = pydantic.Field()
|
|
||||||
"""
|
|
||||||
Starting URL for the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
webhook_callback_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The URL to call when the task is completed.
|
|
||||||
"""
|
|
||||||
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The user's goal for the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
data_extraction_goal: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The user's goal for data extraction.
|
|
||||||
"""
|
|
||||||
|
|
||||||
navigation_payload: typing.Optional[TaskNavigationPayload] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The user's details needed to achieve the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The mapping of error codes and their descriptions.
|
|
||||||
"""
|
|
||||||
|
|
||||||
proxy_location: typing.Optional[ProxyLocation] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The location of the proxy to use for the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
extracted_information_schema: typing.Optional[TaskExtractedInformationSchema] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The requested schema of the extracted information.
|
|
||||||
"""
|
|
||||||
|
|
||||||
complete_criterion: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
Criterion to complete
|
|
||||||
"""
|
|
||||||
|
|
||||||
terminate_criterion: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
Criterion to terminate
|
|
||||||
"""
|
|
||||||
|
|
||||||
task_type: typing.Optional[TaskType] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The type of the task
|
|
||||||
"""
|
|
||||||
|
|
||||||
application: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The application for which the task is running
|
|
||||||
"""
|
|
||||||
|
|
||||||
created_at: dt.datetime = pydantic.Field()
|
|
||||||
"""
|
|
||||||
The creation datetime of the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
modified_at: dt.datetime = pydantic.Field()
|
|
||||||
"""
|
|
||||||
The modification datetime of the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
task_id: str = pydantic.Field()
|
|
||||||
"""
|
|
||||||
The ID of the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
status: TaskStatus = pydantic.Field()
|
|
||||||
"""
|
|
||||||
The status of the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
extracted_information: typing.Optional[TaskExtractedInformation] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The extracted information from the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
failure_reason: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The reason for the task failure.
|
|
||||||
"""
|
|
||||||
|
|
||||||
organization_id: typing.Optional[str] = None
|
|
||||||
workflow_run_id: typing.Optional[str] = None
|
|
||||||
order: typing.Optional[int] = None
|
|
||||||
retry: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
errors: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
import typing
|
|
||||||
import pydantic
|
|
||||||
from .task_base_navigation_payload import TaskBaseNavigationPayload
|
|
||||||
from .proxy_location import ProxyLocation
|
|
||||||
from .task_base_extracted_information_schema import TaskBaseExtractedInformationSchema
|
|
||||||
from .task_type import TaskType
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
|
|
||||||
|
|
||||||
class TaskBase(UniversalBaseModel):
|
|
||||||
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The title of the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
url: str = pydantic.Field()
|
|
||||||
"""
|
|
||||||
Starting URL for the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
webhook_callback_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The URL to call when the task is completed.
|
|
||||||
"""
|
|
||||||
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The user's goal for the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
data_extraction_goal: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The user's goal for data extraction.
|
|
||||||
"""
|
|
||||||
|
|
||||||
navigation_payload: typing.Optional[TaskBaseNavigationPayload] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The user's details needed to achieve the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The mapping of error codes and their descriptions.
|
|
||||||
"""
|
|
||||||
|
|
||||||
proxy_location: typing.Optional[ProxyLocation] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The location of the proxy to use for the task.
|
|
||||||
"""
|
|
||||||
|
|
||||||
extracted_information_schema: typing.Optional[TaskBaseExtractedInformationSchema] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The requested schema of the extracted information.
|
|
||||||
"""
|
|
||||||
|
|
||||||
complete_criterion: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
Criterion to complete
|
|
||||||
"""
|
|
||||||
|
|
||||||
terminate_criterion: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
Criterion to terminate
|
|
||||||
"""
|
|
||||||
|
|
||||||
task_type: typing.Optional[TaskType] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The type of the task
|
|
||||||
"""
|
|
||||||
|
|
||||||
application: typing.Optional[str] = pydantic.Field(default=None)
|
|
||||||
"""
|
|
||||||
The application for which the task is running
|
|
||||||
"""
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
TaskBaseExtractedInformationSchema = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
|
||||||
]
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
TaskBaseNavigationPayload = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
|
||||||
]
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
from ..core.pydantic_utilities import UniversalBaseModel
|
|
||||||
from .context_parameter import ContextParameter
|
|
||||||
from .output_parameter import OutputParameter
|
|
||||||
import typing
|
|
||||||
from .task_block_data_schema import TaskBlockDataSchema
|
|
||||||
from .task_block_parameters_item import TaskBlockParametersItem
|
|
||||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class TaskBlock(UniversalBaseModel):
|
|
||||||
label: str
|
|
||||||
output_parameter: OutputParameter
|
|
||||||
continue_on_failure: typing.Optional[bool] = None
|
|
||||||
task_type: typing.Optional[str] = None
|
|
||||||
url: typing.Optional[str] = None
|
|
||||||
title: typing.Optional[str] = None
|
|
||||||
complete_criterion: typing.Optional[str] = None
|
|
||||||
terminate_criterion: typing.Optional[str] = None
|
|
||||||
navigation_goal: typing.Optional[str] = None
|
|
||||||
data_extraction_goal: typing.Optional[str] = None
|
|
||||||
data_schema: typing.Optional[TaskBlockDataSchema] = None
|
|
||||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
||||||
max_retries: typing.Optional[int] = None
|
|
||||||
max_steps_per_run: typing.Optional[int] = None
|
|
||||||
parameters: typing.Optional[typing.List[TaskBlockParametersItem]] = None
|
|
||||||
complete_on_download: typing.Optional[bool] = None
|
|
||||||
download_suffix: typing.Optional[str] = None
|
|
||||||
totp_verification_url: typing.Optional[str] = None
|
|
||||||
totp_identifier: typing.Optional[str] = None
|
|
||||||
cache_actions: typing.Optional[bool] = None
|
|
||||||
complete_verification: typing.Optional[bool] = None
|
|
||||||
|
|
||||||
if IS_PYDANTIC_V2:
|
|
||||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
||||||
else:
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
frozen = True
|
|
||||||
smart_union = True
|
|
||||||
extra = pydantic.Extra.allow
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file was auto-generated by Fern from our API Definition.
|
|
||||||
|
|
||||||
import typing
|
|
||||||
|
|
||||||
TaskBlockDataSchema = typing.Union[
|
|
||||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]]
|
|
||||||
]
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user