mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-05-01 21:20:19 +00:00
update autogenerated client sdk (#2010)
This commit is contained in:
parent
13b0d314a8
commit
4e7dd87f99
94 changed files with 3691 additions and 5149 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"organization": "skyverndocs",
|
||||
"organization": "skyvern",
|
||||
"version": "0.56.29"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,83 @@
|
|||
"version": "1.0.0"
|
||||
},
|
||||
"paths": {
|
||||
"/v1/tasks": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"agent"
|
||||
],
|
||||
"summary": "Run Task",
|
||||
"operationId": "run_task_v1_tasks_post",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"in": "header",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "X-Api-Key"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "authorization",
|
||||
"in": "header",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Authorization"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TaskRunRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TaskRunResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-fern-sdk-group-name": "agent",
|
||||
"x-fern-sdk-method-name": "run_task"
|
||||
}
|
||||
},
|
||||
"/api/v1/webhook": {
|
||||
"post": {
|
||||
"tags": [
|
||||
|
|
@ -2650,6 +2727,13 @@
|
|||
"title": "FileParserBlockYAML",
|
||||
"type": "object"
|
||||
},
|
||||
"FileStorageType": {
|
||||
"enum": [
|
||||
"s3"
|
||||
],
|
||||
"title": "FileStorageType",
|
||||
"type": "string"
|
||||
},
|
||||
"FileType": {
|
||||
"enum": [
|
||||
"csv"
|
||||
|
|
@ -2657,6 +2741,89 @@
|
|||
"title": "FileType",
|
||||
"type": "string"
|
||||
},
|
||||
"FileUploadBlockYAML": {
|
||||
"properties": {
|
||||
"block_type": {
|
||||
"const": "file_upload",
|
||||
"default": "file_upload",
|
||||
"title": "Block Type",
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"title": "Label",
|
||||
"type": "string"
|
||||
},
|
||||
"continue_on_failure": {
|
||||
"default": false,
|
||||
"title": "Continue On Failure",
|
||||
"type": "boolean"
|
||||
},
|
||||
"storage_type": {
|
||||
"$ref": "#/$defs/FileStorageType",
|
||||
"default": "s3"
|
||||
},
|
||||
"s3_bucket": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "S3 Bucket"
|
||||
},
|
||||
"aws_access_key_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Aws Access Key Id"
|
||||
},
|
||||
"aws_secret_access_key": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Aws Secret Access Key"
|
||||
},
|
||||
"region_name": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Region Name"
|
||||
},
|
||||
"path": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Path"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"label"
|
||||
],
|
||||
"title": "FileUploadBlockYAML",
|
||||
"type": "object"
|
||||
},
|
||||
"ForLoopBlockYAML": {
|
||||
"properties": {
|
||||
"block_type": {
|
||||
|
|
@ -2695,6 +2862,9 @@
|
|||
{
|
||||
"$ref": "#/$defs/UploadToS3BlockYAML"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/FileUploadBlockYAML"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/SendEmailBlockYAML"
|
||||
},
|
||||
|
|
@ -3795,6 +3965,7 @@
|
|||
"download_to_s3": "#/$defs/DownloadToS3BlockYAML",
|
||||
"extraction": "#/$defs/ExtractionBlockYAML",
|
||||
"file_download": "#/$defs/FileDownloadBlockYAML",
|
||||
"file_upload": "#/$defs/FileUploadBlockYAML",
|
||||
"file_url_parser": "#/$defs/FileParserBlockYAML",
|
||||
"for_loop": "#/$defs/ForLoopBlockYAML",
|
||||
"goto_url": "#/$defs/UrlBlockYAML",
|
||||
|
|
@ -3830,6 +4001,9 @@
|
|||
{
|
||||
"$ref": "#/$defs/UploadToS3BlockYAML"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/FileUploadBlockYAML"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/SendEmailBlockYAML"
|
||||
},
|
||||
|
|
@ -5023,6 +5197,13 @@
|
|||
"title": "FileParserBlockYAML",
|
||||
"type": "object"
|
||||
},
|
||||
"FileStorageType": {
|
||||
"enum": [
|
||||
"s3"
|
||||
],
|
||||
"title": "FileStorageType",
|
||||
"type": "string"
|
||||
},
|
||||
"FileType": {
|
||||
"enum": [
|
||||
"csv"
|
||||
|
|
@ -5030,6 +5211,89 @@
|
|||
"title": "FileType",
|
||||
"type": "string"
|
||||
},
|
||||
"FileUploadBlockYAML": {
|
||||
"properties": {
|
||||
"block_type": {
|
||||
"const": "file_upload",
|
||||
"default": "file_upload",
|
||||
"title": "Block Type",
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"title": "Label",
|
||||
"type": "string"
|
||||
},
|
||||
"continue_on_failure": {
|
||||
"default": false,
|
||||
"title": "Continue On Failure",
|
||||
"type": "boolean"
|
||||
},
|
||||
"storage_type": {
|
||||
"$ref": "#/$defs/FileStorageType",
|
||||
"default": "s3"
|
||||
},
|
||||
"s3_bucket": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "S3 Bucket"
|
||||
},
|
||||
"aws_access_key_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Aws Access Key Id"
|
||||
},
|
||||
"aws_secret_access_key": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Aws Secret Access Key"
|
||||
},
|
||||
"region_name": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Region Name"
|
||||
},
|
||||
"path": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Path"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"label"
|
||||
],
|
||||
"title": "FileUploadBlockYAML",
|
||||
"type": "object"
|
||||
},
|
||||
"ForLoopBlockYAML": {
|
||||
"properties": {
|
||||
"block_type": {
|
||||
|
|
@ -5068,6 +5332,9 @@
|
|||
{
|
||||
"$ref": "#/$defs/UploadToS3BlockYAML"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/FileUploadBlockYAML"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/SendEmailBlockYAML"
|
||||
},
|
||||
|
|
@ -6168,6 +6435,7 @@
|
|||
"download_to_s3": "#/$defs/DownloadToS3BlockYAML",
|
||||
"extraction": "#/$defs/ExtractionBlockYAML",
|
||||
"file_download": "#/$defs/FileDownloadBlockYAML",
|
||||
"file_upload": "#/$defs/FileUploadBlockYAML",
|
||||
"file_url_parser": "#/$defs/FileParserBlockYAML",
|
||||
"for_loop": "#/$defs/ForLoopBlockYAML",
|
||||
"goto_url": "#/$defs/UrlBlockYAML",
|
||||
|
|
@ -6203,6 +6471,9 @@
|
|||
{
|
||||
"$ref": "#/$defs/UploadToS3BlockYAML"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/FileUploadBlockYAML"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/SendEmailBlockYAML"
|
||||
},
|
||||
|
|
@ -7006,7 +7277,7 @@
|
|||
"/api/v1/browser_sessions/{browser_session_id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"browser"
|
||||
"session"
|
||||
],
|
||||
"summary": "Get Browser Session",
|
||||
"operationId": "get_browser_session_api_v1_browser_sessions__browser_session_id__get",
|
||||
|
|
@ -7075,14 +7346,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"x-fern-sdk-group-name": "browser",
|
||||
"x-fern-sdk-group-name": "session",
|
||||
"x-fern-sdk-method-name": "get_browser_session"
|
||||
}
|
||||
},
|
||||
"/api/v1/browser_sessions": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"browser"
|
||||
"session"
|
||||
],
|
||||
"summary": "Get Browser Sessions",
|
||||
"description": "Get all active browser sessions for the organization",
|
||||
|
|
@ -7147,12 +7418,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"x-fern-sdk-group-name": "browser",
|
||||
"x-fern-sdk-group-name": "session",
|
||||
"x-fern-sdk-method-name": "get_browser_sessions"
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"browser"
|
||||
"session"
|
||||
],
|
||||
"summary": "Create Browser Session",
|
||||
"operationId": "create_browser_session_api_v1_browser_sessions_post",
|
||||
|
|
@ -7212,14 +7483,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"x-fern-sdk-group-name": "browser",
|
||||
"x-fern-sdk-group-name": "session",
|
||||
"x-fern-sdk-method-name": "create_browser_session"
|
||||
}
|
||||
},
|
||||
"/api/v1/browser_sessions/{session_id}/close": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"browser"
|
||||
"session"
|
||||
],
|
||||
"summary": "Close Browser Session",
|
||||
"operationId": "close_browser_session_api_v1_browser_sessions__session_id__close_post",
|
||||
|
|
@ -7288,7 +7559,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"x-fern-sdk-group-name": "browser",
|
||||
"x-fern-sdk-group-name": "session",
|
||||
"x-fern-sdk-method-name": "close_browser_session"
|
||||
}
|
||||
},
|
||||
|
|
@ -7487,8 +7758,11 @@
|
|||
},
|
||||
"/api/v1/totp": {
|
||||
"post": {
|
||||
"summary": "Save Totp Code",
|
||||
"operationId": "save_totp_code_api_v1_totp_post",
|
||||
"tags": [
|
||||
"agent"
|
||||
],
|
||||
"summary": "Send Totp Code",
|
||||
"operationId": "send_totp_code_api_v1_totp_post",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-api-key",
|
||||
|
|
@ -7554,7 +7828,9 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-fern-sdk-group-name": "agent",
|
||||
"x-fern-sdk-method-name": "send_totp_code"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -8874,6 +9150,7 @@
|
|||
"text_prompt",
|
||||
"download_to_s3",
|
||||
"upload_to_s3",
|
||||
"file_upload",
|
||||
"send_email",
|
||||
"file_url_parser",
|
||||
"validation",
|
||||
|
|
@ -9887,6 +10164,13 @@
|
|||
],
|
||||
"title": "FileParserBlock"
|
||||
},
|
||||
"FileStorageType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"s3"
|
||||
],
|
||||
"title": "FileStorageType"
|
||||
},
|
||||
"FileType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
|
@ -9894,6 +10178,93 @@
|
|||
],
|
||||
"title": "FileType"
|
||||
},
|
||||
"FileUploadBlock": {
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"title": "Label"
|
||||
},
|
||||
"block_type": {
|
||||
"type": "string",
|
||||
"const": "file_upload",
|
||||
"title": "Block Type",
|
||||
"default": "file_upload"
|
||||
},
|
||||
"output_parameter": {
|
||||
"$ref": "#/components/schemas/OutputParameter"
|
||||
},
|
||||
"continue_on_failure": {
|
||||
"type": "boolean",
|
||||
"title": "Continue On Failure",
|
||||
"default": false
|
||||
},
|
||||
"storage_type": {
|
||||
"$ref": "#/components/schemas/FileStorageType",
|
||||
"default": "s3"
|
||||
},
|
||||
"s3_bucket": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "S3 Bucket"
|
||||
},
|
||||
"aws_access_key_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Aws Access Key Id"
|
||||
},
|
||||
"aws_secret_access_key": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Aws Secret Access Key"
|
||||
},
|
||||
"region_name": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Region Name"
|
||||
},
|
||||
"path": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Path"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"required": [
|
||||
"label",
|
||||
"output_parameter"
|
||||
],
|
||||
"title": "FileUploadBlock"
|
||||
},
|
||||
"ForLoopBlock": {
|
||||
"properties": {
|
||||
"label": {
|
||||
|
|
@ -9970,6 +10341,9 @@
|
|||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/TaskV2Block"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/FileUploadBlock"
|
||||
}
|
||||
],
|
||||
"discriminator": {
|
||||
|
|
@ -9980,6 +10354,7 @@
|
|||
"download_to_s3": "#/components/schemas/DownloadToS3Block",
|
||||
"extraction": "#/components/schemas/ExtractionBlock",
|
||||
"file_download": "#/components/schemas/FileDownloadBlock",
|
||||
"file_upload": "#/components/schemas/FileUploadBlock",
|
||||
"file_url_parser": "#/components/schemas/FileParserBlock",
|
||||
"for_loop": "#/components/schemas/ForLoopBlock",
|
||||
"goto_url": "#/components/schemas/UrlBlock",
|
||||
|
|
@ -12835,6 +13210,149 @@
|
|||
],
|
||||
"title": "TaskResponse"
|
||||
},
|
||||
"TaskRunRequest": {
|
||||
"properties": {
|
||||
"goal": {
|
||||
"type": "string",
|
||||
"title": "Goal"
|
||||
},
|
||||
"url": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Url"
|
||||
},
|
||||
"title": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Title"
|
||||
},
|
||||
"engine": {
|
||||
"$ref": "#/components/schemas/RunEngine",
|
||||
"default": "skyvern-1.0"
|
||||
},
|
||||
"proxy_location": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ProxyLocation"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"data_extraction_schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"items": {
|
||||
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Data Extraction Schema"
|
||||
},
|
||||
"error_code_mapping": {
|
||||
"anyOf": [
|
||||
{
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Error Code Mapping"
|
||||
},
|
||||
"max_steps": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Max Steps"
|
||||
},
|
||||
"webhook_url": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Webhook Url"
|
||||
},
|
||||
"totp_identifier": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Totp Identifier"
|
||||
},
|
||||
"totp_url": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Totp Url"
|
||||
},
|
||||
"browser_session_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Browser Session Id"
|
||||
},
|
||||
"publish_workflow": {
|
||||
"type": "boolean",
|
||||
"title": "Publish Workflow",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"required": [
|
||||
"goal"
|
||||
],
|
||||
"title": "TaskRunRequest"
|
||||
},
|
||||
"TaskRunResponse": {
|
||||
"properties": {
|
||||
"run_id": {
|
||||
|
|
@ -12958,6 +13476,26 @@
|
|||
],
|
||||
"title": "Error Code Mapping"
|
||||
},
|
||||
"data_extraction_schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"items": {
|
||||
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Data Extraction Schema"
|
||||
},
|
||||
"title": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
|
@ -14648,6 +15186,9 @@
|
|||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/TaskV2Block"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/FileUploadBlock"
|
||||
}
|
||||
],
|
||||
"discriminator": {
|
||||
|
|
@ -14658,6 +15199,7 @@
|
|||
"download_to_s3": "#/components/schemas/DownloadToS3Block",
|
||||
"extraction": "#/components/schemas/ExtractionBlock",
|
||||
"file_download": "#/components/schemas/FileDownloadBlock",
|
||||
"file_upload": "#/components/schemas/FileUploadBlock",
|
||||
"file_url_parser": "#/components/schemas/FileParserBlock",
|
||||
"for_loop": "#/components/schemas/ForLoopBlock",
|
||||
"goto_url": "#/components/schemas/UrlBlock",
|
||||
|
|
@ -15611,6 +16153,14 @@
|
|||
{
|
||||
"url": "https://api.skyvern.com",
|
||||
"x-fern-server-name": "Production"
|
||||
},
|
||||
{
|
||||
"url": "https://api-staging.skyvern.com",
|
||||
"x-fern-server-name": "Staging"
|
||||
},
|
||||
{
|
||||
"url": "http://localhost:8000",
|
||||
"x-fern-server-name": "Development"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -10,16 +10,13 @@ from .types import (
|
|||
ActionBlockParametersItem_BitwardenLoginCredential,
|
||||
ActionBlockParametersItem_BitwardenSensitiveInformation,
|
||||
ActionBlockParametersItem_Context,
|
||||
ActionBlockParametersItem_Credential,
|
||||
ActionBlockParametersItem_Output,
|
||||
ActionBlockParametersItem_Workflow,
|
||||
ActionResult,
|
||||
ActionResultData,
|
||||
ActionStatus,
|
||||
ActionType,
|
||||
AgentStepOutput,
|
||||
AiSuggestionBase,
|
||||
AiSuggestionBaseOutput,
|
||||
AiSuggestionType,
|
||||
Artifact,
|
||||
ArtifactType,
|
||||
AwsSecretParameter,
|
||||
|
|
@ -35,19 +32,18 @@ from .types import (
|
|||
CodeBlockParametersItem_BitwardenLoginCredential,
|
||||
CodeBlockParametersItem_BitwardenSensitiveInformation,
|
||||
CodeBlockParametersItem_Context,
|
||||
CodeBlockParametersItem_Credential,
|
||||
CodeBlockParametersItem_Output,
|
||||
CodeBlockParametersItem_Workflow,
|
||||
ContextParameter,
|
||||
ContextParameterSource,
|
||||
ContextParameterSource_AwsSecret,
|
||||
ContextParameterSource_BitwardenCreditCardData,
|
||||
ContextParameterSource_BitwardenLoginCredential,
|
||||
ContextParameterSource_BitwardenSensitiveInformation,
|
||||
ContextParameterSource_Context,
|
||||
ContextParameterSource_Output,
|
||||
ContextParameterSource_Workflow,
|
||||
ContextParameterValue,
|
||||
CreateCredentialRequest,
|
||||
CreateTaskResponse,
|
||||
Credential,
|
||||
CredentialParameter,
|
||||
CredentialResponse,
|
||||
CredentialType,
|
||||
CreditCardCredentialResponse,
|
||||
Data,
|
||||
DownloadToS3Block,
|
||||
EntityType,
|
||||
ExtractionBlock,
|
||||
|
|
@ -58,6 +54,7 @@ from .types import (
|
|||
ExtractionBlockParametersItem_BitwardenLoginCredential,
|
||||
ExtractionBlockParametersItem_BitwardenSensitiveInformation,
|
||||
ExtractionBlockParametersItem_Context,
|
||||
ExtractionBlockParametersItem_Credential,
|
||||
ExtractionBlockParametersItem_Output,
|
||||
ExtractionBlockParametersItem_Workflow,
|
||||
FileDownloadBlock,
|
||||
|
|
@ -68,10 +65,14 @@ from .types import (
|
|||
FileDownloadBlockParametersItem_BitwardenLoginCredential,
|
||||
FileDownloadBlockParametersItem_BitwardenSensitiveInformation,
|
||||
FileDownloadBlockParametersItem_Context,
|
||||
FileDownloadBlockParametersItem_Credential,
|
||||
FileDownloadBlockParametersItem_Output,
|
||||
FileDownloadBlockParametersItem_Workflow,
|
||||
FileInfo,
|
||||
FileParserBlock,
|
||||
FileStorageType,
|
||||
FileType,
|
||||
FileUploadBlock,
|
||||
ForLoopBlock,
|
||||
ForLoopBlockLoopBlocksItem,
|
||||
ForLoopBlockLoopBlocksItem_Action,
|
||||
|
|
@ -79,6 +80,7 @@ from .types import (
|
|||
ForLoopBlockLoopBlocksItem_DownloadToS3,
|
||||
ForLoopBlockLoopBlocksItem_Extraction,
|
||||
ForLoopBlockLoopBlocksItem_FileDownload,
|
||||
ForLoopBlockLoopBlocksItem_FileUpload,
|
||||
ForLoopBlockLoopBlocksItem_FileUrlParser,
|
||||
ForLoopBlockLoopBlocksItem_ForLoop,
|
||||
ForLoopBlockLoopBlocksItem_GotoUrl,
|
||||
|
|
@ -98,6 +100,7 @@ from .types import (
|
|||
ForLoopBlockLoopOver_BitwardenLoginCredential,
|
||||
ForLoopBlockLoopOver_BitwardenSensitiveInformation,
|
||||
ForLoopBlockLoopOver_Context,
|
||||
ForLoopBlockLoopOver_Credential,
|
||||
ForLoopBlockLoopOver_Output,
|
||||
ForLoopBlockLoopOver_Workflow,
|
||||
GetOrganizationApiKeysResponse,
|
||||
|
|
@ -111,6 +114,7 @@ from .types import (
|
|||
LoginBlockParametersItem_BitwardenLoginCredential,
|
||||
LoginBlockParametersItem_BitwardenSensitiveInformation,
|
||||
LoginBlockParametersItem_Context,
|
||||
LoginBlockParametersItem_Credential,
|
||||
LoginBlockParametersItem_Output,
|
||||
LoginBlockParametersItem_Workflow,
|
||||
NavigationBlock,
|
||||
|
|
@ -121,25 +125,34 @@ from .types import (
|
|||
NavigationBlockParametersItem_BitwardenLoginCredential,
|
||||
NavigationBlockParametersItem_BitwardenSensitiveInformation,
|
||||
NavigationBlockParametersItem_Context,
|
||||
NavigationBlockParametersItem_Credential,
|
||||
NavigationBlockParametersItem_Output,
|
||||
NavigationBlockParametersItem_Workflow,
|
||||
ObserverTask,
|
||||
ObserverTaskOutput,
|
||||
ObserverTaskStatus,
|
||||
ObserverThought,
|
||||
ObserverThoughtScenario,
|
||||
ObserverThoughtType,
|
||||
NonEmptyCreditCardCredential,
|
||||
NonEmptyPasswordCredential,
|
||||
OrderBy,
|
||||
Organization,
|
||||
OrganizationAuthToken,
|
||||
OrganizationAuthTokenType,
|
||||
Output,
|
||||
OutputParameter,
|
||||
PasswordCredentialResponse,
|
||||
PdfParserBlock,
|
||||
ProxyLocation,
|
||||
RunEngine,
|
||||
RunWorkflowResponse,
|
||||
SelectOption,
|
||||
SendEmailBlock,
|
||||
SortDirection,
|
||||
Source,
|
||||
Source_AwsSecret,
|
||||
Source_BitwardenCreditCardData,
|
||||
Source_BitwardenLoginCredential,
|
||||
Source_BitwardenSensitiveInformation,
|
||||
Source_Context,
|
||||
Source_Credential,
|
||||
Source_Output,
|
||||
Source_Workflow,
|
||||
Step,
|
||||
StepStatus,
|
||||
Task,
|
||||
|
|
@ -154,6 +167,7 @@ from .types import (
|
|||
TaskBlockParametersItem_BitwardenLoginCredential,
|
||||
TaskBlockParametersItem_BitwardenSensitiveInformation,
|
||||
TaskBlockParametersItem_Context,
|
||||
TaskBlockParametersItem_Credential,
|
||||
TaskBlockParametersItem_Output,
|
||||
TaskBlockParametersItem_Workflow,
|
||||
TaskExtractedInformation,
|
||||
|
|
@ -162,9 +176,15 @@ from .types import (
|
|||
TaskNavigationPayload,
|
||||
TaskResponse,
|
||||
TaskResponseExtractedInformation,
|
||||
TaskRunResponse,
|
||||
TaskRunResponseDataExtractionSchema,
|
||||
TaskRunStatus,
|
||||
TaskStatus,
|
||||
TaskType,
|
||||
TaskV2,
|
||||
TaskV2Block,
|
||||
TaskV2ExtractedInformationSchema,
|
||||
TaskV2Status,
|
||||
TextPromptBlock,
|
||||
TextPromptBlockParametersItem,
|
||||
TextPromptBlockParametersItem_AwsSecret,
|
||||
|
|
@ -172,8 +192,12 @@ from .types import (
|
|||
TextPromptBlockParametersItem_BitwardenLoginCredential,
|
||||
TextPromptBlockParametersItem_BitwardenSensitiveInformation,
|
||||
TextPromptBlockParametersItem_Context,
|
||||
TextPromptBlockParametersItem_Credential,
|
||||
TextPromptBlockParametersItem_Output,
|
||||
TextPromptBlockParametersItem_Workflow,
|
||||
Thought,
|
||||
ThoughtScenario,
|
||||
ThoughtType,
|
||||
TotpCode,
|
||||
UploadToS3Block,
|
||||
UrlBlock,
|
||||
|
|
@ -184,6 +208,7 @@ from .types import (
|
|||
UrlBlockParametersItem_BitwardenLoginCredential,
|
||||
UrlBlockParametersItem_BitwardenSensitiveInformation,
|
||||
UrlBlockParametersItem_Context,
|
||||
UrlBlockParametersItem_Credential,
|
||||
UrlBlockParametersItem_Output,
|
||||
UrlBlockParametersItem_Workflow,
|
||||
UserDefinedError,
|
||||
|
|
@ -195,10 +220,12 @@ from .types import (
|
|||
ValidationBlockParametersItem_BitwardenLoginCredential,
|
||||
ValidationBlockParametersItem_BitwardenSensitiveInformation,
|
||||
ValidationBlockParametersItem_Context,
|
||||
ValidationBlockParametersItem_Credential,
|
||||
ValidationBlockParametersItem_Output,
|
||||
ValidationBlockParametersItem_Workflow,
|
||||
ValidationError,
|
||||
ValidationErrorLocItem,
|
||||
Value,
|
||||
WaitBlock,
|
||||
WaitBlockParametersItem,
|
||||
WaitBlockParametersItem_AwsSecret,
|
||||
|
|
@ -206,6 +233,7 @@ from .types import (
|
|||
WaitBlockParametersItem_BitwardenLoginCredential,
|
||||
WaitBlockParametersItem_BitwardenSensitiveInformation,
|
||||
WaitBlockParametersItem_Context,
|
||||
WaitBlockParametersItem_Credential,
|
||||
WaitBlockParametersItem_Output,
|
||||
WaitBlockParametersItem_Workflow,
|
||||
Workflow,
|
||||
|
|
@ -216,6 +244,7 @@ from .types import (
|
|||
WorkflowDefinitionBlocksItem_DownloadToS3,
|
||||
WorkflowDefinitionBlocksItem_Extraction,
|
||||
WorkflowDefinitionBlocksItem_FileDownload,
|
||||
WorkflowDefinitionBlocksItem_FileUpload,
|
||||
WorkflowDefinitionBlocksItem_FileUrlParser,
|
||||
WorkflowDefinitionBlocksItem_ForLoop,
|
||||
WorkflowDefinitionBlocksItem_GotoUrl,
|
||||
|
|
@ -235,6 +264,7 @@ from .types import (
|
|||
WorkflowDefinitionParametersItem_BitwardenLoginCredential,
|
||||
WorkflowDefinitionParametersItem_BitwardenSensitiveInformation,
|
||||
WorkflowDefinitionParametersItem_Context,
|
||||
WorkflowDefinitionParametersItem_Credential,
|
||||
WorkflowDefinitionParametersItem_Output,
|
||||
WorkflowDefinitionParametersItem_Workflow,
|
||||
WorkflowParameter,
|
||||
|
|
@ -244,16 +274,23 @@ from .types import (
|
|||
WorkflowRunBlock,
|
||||
WorkflowRunBlockDataSchema,
|
||||
WorkflowRunBlockNavigationPayload,
|
||||
WorkflowRunBlockOutput,
|
||||
WorkflowRunStatus,
|
||||
WorkflowRunResponse,
|
||||
WorkflowRunStatus,
|
||||
WorkflowRunTimeline,
|
||||
WorkflowRunTimelineType,
|
||||
WorkflowStatus,
|
||||
)
|
||||
from .errors import UnprocessableEntityError
|
||||
from . import agent, server
|
||||
from .agent import TaskRequestExtractedInformationSchema, TaskRequestNavigationPayload
|
||||
from . import agent, server, session
|
||||
from .agent import (
|
||||
AgentGetRunsResponseItem,
|
||||
AgentRunTaskV2RequestXMaxIterationsOverride,
|
||||
AgentRunTaskV2RequestXMaxStepsOverride,
|
||||
TaskRequestExtractedInformationSchema,
|
||||
TaskRequestNavigationPayload,
|
||||
TaskRunRequestDataExtractionSchema,
|
||||
TaskV2RequestExtractedInformationSchema,
|
||||
)
|
||||
from .client import AsyncSkyvern, Skyvern
|
||||
from .environment import SkyvernEnvironment
|
||||
from .version import __version__
|
||||
|
|
@ -268,16 +305,16 @@ __all__ = [
|
|||
"ActionBlockParametersItem_BitwardenLoginCredential",
|
||||
"ActionBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"ActionBlockParametersItem_Context",
|
||||
"ActionBlockParametersItem_Credential",
|
||||
"ActionBlockParametersItem_Output",
|
||||
"ActionBlockParametersItem_Workflow",
|
||||
"ActionResult",
|
||||
"ActionResultData",
|
||||
"ActionStatus",
|
||||
"ActionType",
|
||||
"AgentGetRunsResponseItem",
|
||||
"AgentRunTaskV2RequestXMaxIterationsOverride",
|
||||
"AgentRunTaskV2RequestXMaxStepsOverride",
|
||||
"AgentStepOutput",
|
||||
"AiSuggestionBase",
|
||||
"AiSuggestionBaseOutput",
|
||||
"AiSuggestionType",
|
||||
"Artifact",
|
||||
"ArtifactType",
|
||||
"AsyncSkyvern",
|
||||
|
|
@ -294,19 +331,18 @@ __all__ = [
|
|||
"CodeBlockParametersItem_BitwardenLoginCredential",
|
||||
"CodeBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"CodeBlockParametersItem_Context",
|
||||
"CodeBlockParametersItem_Credential",
|
||||
"CodeBlockParametersItem_Output",
|
||||
"CodeBlockParametersItem_Workflow",
|
||||
"ContextParameter",
|
||||
"ContextParameterSource",
|
||||
"ContextParameterSource_AwsSecret",
|
||||
"ContextParameterSource_BitwardenCreditCardData",
|
||||
"ContextParameterSource_BitwardenLoginCredential",
|
||||
"ContextParameterSource_BitwardenSensitiveInformation",
|
||||
"ContextParameterSource_Context",
|
||||
"ContextParameterSource_Output",
|
||||
"ContextParameterSource_Workflow",
|
||||
"ContextParameterValue",
|
||||
"CreateCredentialRequest",
|
||||
"CreateTaskResponse",
|
||||
"Credential",
|
||||
"CredentialParameter",
|
||||
"CredentialResponse",
|
||||
"CredentialType",
|
||||
"CreditCardCredentialResponse",
|
||||
"Data",
|
||||
"DownloadToS3Block",
|
||||
"EntityType",
|
||||
"ExtractionBlock",
|
||||
|
|
@ -317,6 +353,7 @@ __all__ = [
|
|||
"ExtractionBlockParametersItem_BitwardenLoginCredential",
|
||||
"ExtractionBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"ExtractionBlockParametersItem_Context",
|
||||
"ExtractionBlockParametersItem_Credential",
|
||||
"ExtractionBlockParametersItem_Output",
|
||||
"ExtractionBlockParametersItem_Workflow",
|
||||
"FileDownloadBlock",
|
||||
|
|
@ -327,10 +364,14 @@ __all__ = [
|
|||
"FileDownloadBlockParametersItem_BitwardenLoginCredential",
|
||||
"FileDownloadBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"FileDownloadBlockParametersItem_Context",
|
||||
"FileDownloadBlockParametersItem_Credential",
|
||||
"FileDownloadBlockParametersItem_Output",
|
||||
"FileDownloadBlockParametersItem_Workflow",
|
||||
"FileInfo",
|
||||
"FileParserBlock",
|
||||
"FileStorageType",
|
||||
"FileType",
|
||||
"FileUploadBlock",
|
||||
"ForLoopBlock",
|
||||
"ForLoopBlockLoopBlocksItem",
|
||||
"ForLoopBlockLoopBlocksItem_Action",
|
||||
|
|
@ -338,6 +379,7 @@ __all__ = [
|
|||
"ForLoopBlockLoopBlocksItem_DownloadToS3",
|
||||
"ForLoopBlockLoopBlocksItem_Extraction",
|
||||
"ForLoopBlockLoopBlocksItem_FileDownload",
|
||||
"ForLoopBlockLoopBlocksItem_FileUpload",
|
||||
"ForLoopBlockLoopBlocksItem_FileUrlParser",
|
||||
"ForLoopBlockLoopBlocksItem_ForLoop",
|
||||
"ForLoopBlockLoopBlocksItem_GotoUrl",
|
||||
|
|
@ -357,6 +399,7 @@ __all__ = [
|
|||
"ForLoopBlockLoopOver_BitwardenLoginCredential",
|
||||
"ForLoopBlockLoopOver_BitwardenSensitiveInformation",
|
||||
"ForLoopBlockLoopOver_Context",
|
||||
"ForLoopBlockLoopOver_Credential",
|
||||
"ForLoopBlockLoopOver_Output",
|
||||
"ForLoopBlockLoopOver_Workflow",
|
||||
"GetOrganizationApiKeysResponse",
|
||||
|
|
@ -370,6 +413,7 @@ __all__ = [
|
|||
"LoginBlockParametersItem_BitwardenLoginCredential",
|
||||
"LoginBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"LoginBlockParametersItem_Context",
|
||||
"LoginBlockParametersItem_Credential",
|
||||
"LoginBlockParametersItem_Output",
|
||||
"LoginBlockParametersItem_Workflow",
|
||||
"NavigationBlock",
|
||||
|
|
@ -380,27 +424,36 @@ __all__ = [
|
|||
"NavigationBlockParametersItem_BitwardenLoginCredential",
|
||||
"NavigationBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"NavigationBlockParametersItem_Context",
|
||||
"NavigationBlockParametersItem_Credential",
|
||||
"NavigationBlockParametersItem_Output",
|
||||
"NavigationBlockParametersItem_Workflow",
|
||||
"ObserverTask",
|
||||
"ObserverTaskOutput",
|
||||
"ObserverTaskStatus",
|
||||
"ObserverThought",
|
||||
"ObserverThoughtScenario",
|
||||
"ObserverThoughtType",
|
||||
"NonEmptyCreditCardCredential",
|
||||
"NonEmptyPasswordCredential",
|
||||
"OrderBy",
|
||||
"Organization",
|
||||
"OrganizationAuthToken",
|
||||
"OrganizationAuthTokenType",
|
||||
"Output",
|
||||
"OutputParameter",
|
||||
"PasswordCredentialResponse",
|
||||
"PdfParserBlock",
|
||||
"ProxyLocation",
|
||||
"RunEngine",
|
||||
"RunWorkflowResponse",
|
||||
"SelectOption",
|
||||
"SendEmailBlock",
|
||||
"Skyvern",
|
||||
"SkyvernEnvironment",
|
||||
"SortDirection",
|
||||
"Source",
|
||||
"Source_AwsSecret",
|
||||
"Source_BitwardenCreditCardData",
|
||||
"Source_BitwardenLoginCredential",
|
||||
"Source_BitwardenSensitiveInformation",
|
||||
"Source_Context",
|
||||
"Source_Credential",
|
||||
"Source_Output",
|
||||
"Source_Workflow",
|
||||
"Step",
|
||||
"StepStatus",
|
||||
"Task",
|
||||
|
|
@ -415,6 +468,7 @@ __all__ = [
|
|||
"TaskBlockParametersItem_BitwardenLoginCredential",
|
||||
"TaskBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"TaskBlockParametersItem_Context",
|
||||
"TaskBlockParametersItem_Credential",
|
||||
"TaskBlockParametersItem_Output",
|
||||
"TaskBlockParametersItem_Workflow",
|
||||
"TaskExtractedInformation",
|
||||
|
|
@ -425,9 +479,17 @@ __all__ = [
|
|||
"TaskRequestNavigationPayload",
|
||||
"TaskResponse",
|
||||
"TaskResponseExtractedInformation",
|
||||
"TaskRunRequestDataExtractionSchema",
|
||||
"TaskRunResponse",
|
||||
"TaskRunResponseDataExtractionSchema",
|
||||
"TaskRunStatus",
|
||||
"TaskStatus",
|
||||
"TaskType",
|
||||
"TaskV2",
|
||||
"TaskV2Block",
|
||||
"TaskV2ExtractedInformationSchema",
|
||||
"TaskV2RequestExtractedInformationSchema",
|
||||
"TaskV2Status",
|
||||
"TextPromptBlock",
|
||||
"TextPromptBlockParametersItem",
|
||||
"TextPromptBlockParametersItem_AwsSecret",
|
||||
|
|
@ -435,8 +497,12 @@ __all__ = [
|
|||
"TextPromptBlockParametersItem_BitwardenLoginCredential",
|
||||
"TextPromptBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"TextPromptBlockParametersItem_Context",
|
||||
"TextPromptBlockParametersItem_Credential",
|
||||
"TextPromptBlockParametersItem_Output",
|
||||
"TextPromptBlockParametersItem_Workflow",
|
||||
"Thought",
|
||||
"ThoughtScenario",
|
||||
"ThoughtType",
|
||||
"TotpCode",
|
||||
"UnprocessableEntityError",
|
||||
"UploadToS3Block",
|
||||
|
|
@ -448,6 +514,7 @@ __all__ = [
|
|||
"UrlBlockParametersItem_BitwardenLoginCredential",
|
||||
"UrlBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"UrlBlockParametersItem_Context",
|
||||
"UrlBlockParametersItem_Credential",
|
||||
"UrlBlockParametersItem_Output",
|
||||
"UrlBlockParametersItem_Workflow",
|
||||
"UserDefinedError",
|
||||
|
|
@ -459,10 +526,12 @@ __all__ = [
|
|||
"ValidationBlockParametersItem_BitwardenLoginCredential",
|
||||
"ValidationBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"ValidationBlockParametersItem_Context",
|
||||
"ValidationBlockParametersItem_Credential",
|
||||
"ValidationBlockParametersItem_Output",
|
||||
"ValidationBlockParametersItem_Workflow",
|
||||
"ValidationError",
|
||||
"ValidationErrorLocItem",
|
||||
"Value",
|
||||
"WaitBlock",
|
||||
"WaitBlockParametersItem",
|
||||
"WaitBlockParametersItem_AwsSecret",
|
||||
|
|
@ -470,6 +539,7 @@ __all__ = [
|
|||
"WaitBlockParametersItem_BitwardenLoginCredential",
|
||||
"WaitBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"WaitBlockParametersItem_Context",
|
||||
"WaitBlockParametersItem_Credential",
|
||||
"WaitBlockParametersItem_Output",
|
||||
"WaitBlockParametersItem_Workflow",
|
||||
"Workflow",
|
||||
|
|
@ -480,6 +550,7 @@ __all__ = [
|
|||
"WorkflowDefinitionBlocksItem_DownloadToS3",
|
||||
"WorkflowDefinitionBlocksItem_Extraction",
|
||||
"WorkflowDefinitionBlocksItem_FileDownload",
|
||||
"WorkflowDefinitionBlocksItem_FileUpload",
|
||||
"WorkflowDefinitionBlocksItem_FileUrlParser",
|
||||
"WorkflowDefinitionBlocksItem_ForLoop",
|
||||
"WorkflowDefinitionBlocksItem_GotoUrl",
|
||||
|
|
@ -499,6 +570,7 @@ __all__ = [
|
|||
"WorkflowDefinitionParametersItem_BitwardenLoginCredential",
|
||||
"WorkflowDefinitionParametersItem_BitwardenSensitiveInformation",
|
||||
"WorkflowDefinitionParametersItem_Context",
|
||||
"WorkflowDefinitionParametersItem_Credential",
|
||||
"WorkflowDefinitionParametersItem_Output",
|
||||
"WorkflowDefinitionParametersItem_Workflow",
|
||||
"WorkflowParameter",
|
||||
|
|
@ -508,13 +580,13 @@ __all__ = [
|
|||
"WorkflowRunBlock",
|
||||
"WorkflowRunBlockDataSchema",
|
||||
"WorkflowRunBlockNavigationPayload",
|
||||
"WorkflowRunBlockOutput",
|
||||
"WorkflowRunStatus",
|
||||
"WorkflowRunResponse",
|
||||
"WorkflowRunStatus",
|
||||
"WorkflowRunTimeline",
|
||||
"WorkflowRunTimelineType",
|
||||
"WorkflowStatus",
|
||||
"__version__",
|
||||
"agent",
|
||||
"server",
|
||||
"session",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,21 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from .types import TaskRequestExtractedInformationSchema, TaskRequestNavigationPayload
|
||||
from .types import (
|
||||
AgentGetRunsResponseItem,
|
||||
AgentRunTaskV2RequestXMaxIterationsOverride,
|
||||
AgentRunTaskV2RequestXMaxStepsOverride,
|
||||
TaskRequestExtractedInformationSchema,
|
||||
TaskRequestNavigationPayload,
|
||||
TaskRunRequestDataExtractionSchema,
|
||||
TaskV2RequestExtractedInformationSchema,
|
||||
)
|
||||
|
||||
__all__ = ["TaskRequestExtractedInformationSchema", "TaskRequestNavigationPayload"]
|
||||
__all__ = [
|
||||
"AgentGetRunsResponseItem",
|
||||
"AgentRunTaskV2RequestXMaxIterationsOverride",
|
||||
"AgentRunTaskV2RequestXMaxStepsOverride",
|
||||
"TaskRequestExtractedInformationSchema",
|
||||
"TaskRequestNavigationPayload",
|
||||
"TaskRunRequestDataExtractionSchema",
|
||||
"TaskV2RequestExtractedInformationSchema",
|
||||
]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,19 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from .agent_get_runs_response_item import AgentGetRunsResponseItem
|
||||
from .agent_run_task_v2request_x_max_iterations_override import AgentRunTaskV2RequestXMaxIterationsOverride
|
||||
from .agent_run_task_v2request_x_max_steps_override import AgentRunTaskV2RequestXMaxStepsOverride
|
||||
from .task_request_extracted_information_schema import TaskRequestExtractedInformationSchema
|
||||
from .task_request_navigation_payload import TaskRequestNavigationPayload
|
||||
from .task_run_request_data_extraction_schema import TaskRunRequestDataExtractionSchema
|
||||
from .task_v2request_extracted_information_schema import TaskV2RequestExtractedInformationSchema
|
||||
|
||||
__all__ = ["TaskRequestExtractedInformationSchema", "TaskRequestNavigationPayload"]
|
||||
__all__ = [
|
||||
"AgentGetRunsResponseItem",
|
||||
"AgentRunTaskV2RequestXMaxIterationsOverride",
|
||||
"AgentRunTaskV2RequestXMaxStepsOverride",
|
||||
"TaskRequestExtractedInformationSchema",
|
||||
"TaskRequestNavigationPayload",
|
||||
"TaskRunRequestDataExtractionSchema",
|
||||
"TaskV2RequestExtractedInformationSchema",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
# 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]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
AgentRunTaskV2RequestXMaxIterationsOverride = typing.Union[int, str]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
AgentRunTaskV2RequestXMaxStepsOverride = typing.Union[int, str]
|
||||
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
import typing
|
||||
|
||||
ObserverTaskOutput = typing.Union[
|
||||
TaskRunRequestDataExtractionSchema = typing.Union[
|
||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
||||
]
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# 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
|
||||
]
|
||||
|
|
@ -4,11 +4,13 @@ import typing
|
|||
from .environment import SkyvernEnvironment
|
||||
import httpx
|
||||
from .core.client_wrapper import SyncClientWrapper
|
||||
from .server.client import ServerClient
|
||||
from .agent.client import AgentClient
|
||||
from .server.client import ServerClient
|
||||
from .session.client import SessionClient
|
||||
from .core.client_wrapper import AsyncClientWrapper
|
||||
from .server.client import AsyncServerClient
|
||||
from .agent.client import AsyncAgentClient
|
||||
from .server.client import AsyncServerClient
|
||||
from .session.client import AsyncSessionClient
|
||||
|
||||
|
||||
class Skyvern:
|
||||
|
|
@ -29,6 +31,8 @@ class Skyvern:
|
|||
|
||||
|
||||
|
||||
api_key : typing.Optional[str]
|
||||
authorization : typing.Optional[str]
|
||||
timeout : typing.Optional[float]
|
||||
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
|
||||
|
||||
|
|
@ -40,9 +44,12 @@ class Skyvern:
|
|||
|
||||
Examples
|
||||
--------
|
||||
from skyverndocs import Skyvern
|
||||
from skyvern import Skyvern
|
||||
|
||||
client = Skyvern()
|
||||
client = Skyvern(
|
||||
api_key="YOUR_API_KEY",
|
||||
authorization="YOUR_AUTHORIZATION",
|
||||
)
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
|
|
@ -50,6 +57,8 @@ class Skyvern:
|
|||
*,
|
||||
base_url: typing.Optional[str] = None,
|
||||
environment: SkyvernEnvironment = SkyvernEnvironment.PRODUCTION,
|
||||
api_key: typing.Optional[str] = None,
|
||||
authorization: typing.Optional[str] = None,
|
||||
timeout: typing.Optional[float] = None,
|
||||
follow_redirects: typing.Optional[bool] = True,
|
||||
httpx_client: typing.Optional[httpx.Client] = None,
|
||||
|
|
@ -57,6 +66,8 @@ class Skyvern:
|
|||
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
|
||||
self._client_wrapper = SyncClientWrapper(
|
||||
base_url=_get_base_url(base_url=base_url, environment=environment),
|
||||
api_key=api_key,
|
||||
authorization=authorization,
|
||||
httpx_client=httpx_client
|
||||
if httpx_client is not None
|
||||
else httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
|
||||
|
|
@ -64,8 +75,9 @@ class Skyvern:
|
|||
else httpx.Client(timeout=_defaulted_timeout),
|
||||
timeout=_defaulted_timeout,
|
||||
)
|
||||
self.server = ServerClient(client_wrapper=self._client_wrapper)
|
||||
self.agent = AgentClient(client_wrapper=self._client_wrapper)
|
||||
self.server = ServerClient(client_wrapper=self._client_wrapper)
|
||||
self.session = SessionClient(client_wrapper=self._client_wrapper)
|
||||
|
||||
|
||||
class AsyncSkyvern:
|
||||
|
|
@ -86,6 +98,8 @@ class AsyncSkyvern:
|
|||
|
||||
|
||||
|
||||
api_key : typing.Optional[str]
|
||||
authorization : typing.Optional[str]
|
||||
timeout : typing.Optional[float]
|
||||
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
|
||||
|
||||
|
|
@ -97,9 +111,12 @@ class AsyncSkyvern:
|
|||
|
||||
Examples
|
||||
--------
|
||||
from skyverndocs import AsyncSkyvern
|
||||
from skyvern import AsyncSkyvern
|
||||
|
||||
client = AsyncSkyvern()
|
||||
client = AsyncSkyvern(
|
||||
api_key="YOUR_API_KEY",
|
||||
authorization="YOUR_AUTHORIZATION",
|
||||
)
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
|
|
@ -107,6 +124,8 @@ class AsyncSkyvern:
|
|||
*,
|
||||
base_url: typing.Optional[str] = None,
|
||||
environment: SkyvernEnvironment = SkyvernEnvironment.PRODUCTION,
|
||||
api_key: typing.Optional[str] = None,
|
||||
authorization: typing.Optional[str] = None,
|
||||
timeout: typing.Optional[float] = None,
|
||||
follow_redirects: typing.Optional[bool] = True,
|
||||
httpx_client: typing.Optional[httpx.AsyncClient] = None,
|
||||
|
|
@ -114,6 +133,8 @@ class AsyncSkyvern:
|
|||
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
|
||||
self._client_wrapper = AsyncClientWrapper(
|
||||
base_url=_get_base_url(base_url=base_url, environment=environment),
|
||||
api_key=api_key,
|
||||
authorization=authorization,
|
||||
httpx_client=httpx_client
|
||||
if httpx_client is not None
|
||||
else httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
|
||||
|
|
@ -121,8 +142,9 @@ class AsyncSkyvern:
|
|||
else httpx.AsyncClient(timeout=_defaulted_timeout),
|
||||
timeout=_defaulted_timeout,
|
||||
)
|
||||
self.server = AsyncServerClient(client_wrapper=self._client_wrapper)
|
||||
self.agent = AsyncAgentClient(client_wrapper=self._client_wrapper)
|
||||
self.server = AsyncServerClient(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:
|
||||
|
|
|
|||
|
|
@ -7,7 +7,16 @@ from .http_client import AsyncHttpClient
|
|||
|
||||
|
||||
class BaseClientWrapper:
|
||||
def __init__(self, *, base_url: str, timeout: typing.Optional[float] = None):
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
api_key: typing.Optional[str] = None,
|
||||
authorization: typing.Optional[str] = None,
|
||||
base_url: str,
|
||||
timeout: typing.Optional[float] = None,
|
||||
):
|
||||
self._api_key = api_key
|
||||
self._authorization = authorization
|
||||
self._base_url = base_url
|
||||
self._timeout = timeout
|
||||
|
||||
|
|
@ -15,8 +24,12 @@ class BaseClientWrapper:
|
|||
headers: typing.Dict[str, str] = {
|
||||
"X-Fern-Language": "Python",
|
||||
"X-Fern-SDK-Name": "skyvern",
|
||||
"X-Fern-SDK-Version": "0.1.56",
|
||||
"X-Fern-SDK-Version": "0.1.65",
|
||||
}
|
||||
if self._api_key is not None:
|
||||
headers["x-api-key"] = self._api_key
|
||||
if self._authorization is not None:
|
||||
headers["authorization"] = self._authorization
|
||||
return headers
|
||||
|
||||
def get_base_url(self) -> str:
|
||||
|
|
@ -27,8 +40,16 @@ class BaseClientWrapper:
|
|||
|
||||
|
||||
class SyncClientWrapper(BaseClientWrapper):
|
||||
def __init__(self, *, base_url: str, timeout: typing.Optional[float] = None, httpx_client: httpx.Client):
|
||||
super().__init__(base_url=base_url, timeout=timeout)
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
api_key: typing.Optional[str] = None,
|
||||
authorization: typing.Optional[str] = None,
|
||||
base_url: str,
|
||||
timeout: typing.Optional[float] = None,
|
||||
httpx_client: httpx.Client,
|
||||
):
|
||||
super().__init__(api_key=api_key, authorization=authorization, base_url=base_url, timeout=timeout)
|
||||
self.httpx_client = HttpClient(
|
||||
httpx_client=httpx_client,
|
||||
base_headers=self.get_headers,
|
||||
|
|
@ -38,8 +59,16 @@ class SyncClientWrapper(BaseClientWrapper):
|
|||
|
||||
|
||||
class AsyncClientWrapper(BaseClientWrapper):
|
||||
def __init__(self, *, base_url: str, timeout: typing.Optional[float] = None, httpx_client: httpx.AsyncClient):
|
||||
super().__init__(base_url=base_url, timeout=timeout)
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
api_key: typing.Optional[str] = None,
|
||||
authorization: typing.Optional[str] = None,
|
||||
base_url: str,
|
||||
timeout: typing.Optional[float] = None,
|
||||
httpx_client: httpx.AsyncClient,
|
||||
):
|
||||
super().__init__(api_key=api_key, authorization=authorization, base_url=base_url, timeout=timeout)
|
||||
self.httpx_client = AsyncHttpClient(
|
||||
httpx_client=httpx_client,
|
||||
base_headers=self.get_headers,
|
||||
|
|
|
|||
|
|
@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float:
|
|||
|
||||
|
||||
def _should_retry(response: httpx.Response) -> bool:
|
||||
retriable_400s = [429, 408, 409]
|
||||
return response.status_code >= 500 or response.status_code in retriable_400s
|
||||
retryable_400s = [429, 408, 409]
|
||||
return response.status_code >= 500 or response.status_code in retryable_400s
|
||||
|
||||
|
||||
def remove_omit_from_dict(
|
||||
|
|
@ -183,7 +183,7 @@ class HttpClient:
|
|||
files: typing.Optional[typing.Dict[str, typing.Optional[typing.Union[File, typing.List[File]]]]] = None,
|
||||
headers: typing.Optional[typing.Dict[str, typing.Any]] = None,
|
||||
request_options: typing.Optional[RequestOptions] = None,
|
||||
retries: int = 0,
|
||||
retries: int = 2,
|
||||
omit: typing.Optional[typing.Any] = None,
|
||||
) -> httpx.Response:
|
||||
base_url = self.get_base_url(base_url)
|
||||
|
|
@ -269,7 +269,7 @@ class HttpClient:
|
|||
files: typing.Optional[typing.Dict[str, typing.Optional[typing.Union[File, typing.List[File]]]]] = None,
|
||||
headers: typing.Optional[typing.Dict[str, typing.Any]] = None,
|
||||
request_options: typing.Optional[RequestOptions] = None,
|
||||
retries: int = 0,
|
||||
retries: int = 2,
|
||||
omit: typing.Optional[typing.Any] = None,
|
||||
) -> typing.Iterator[httpx.Response]:
|
||||
base_url = self.get_base_url(base_url)
|
||||
|
|
@ -359,7 +359,7 @@ class AsyncHttpClient:
|
|||
files: typing.Optional[typing.Dict[str, typing.Optional[typing.Union[File, typing.List[File]]]]] = None,
|
||||
headers: typing.Optional[typing.Dict[str, typing.Any]] = None,
|
||||
request_options: typing.Optional[RequestOptions] = None,
|
||||
retries: int = 0,
|
||||
retries: int = 2,
|
||||
omit: typing.Optional[typing.Any] = None,
|
||||
) -> httpx.Response:
|
||||
base_url = self.get_base_url(base_url)
|
||||
|
|
@ -445,7 +445,7 @@ class AsyncHttpClient:
|
|||
files: typing.Optional[typing.Dict[str, typing.Optional[typing.Union[File, typing.List[File]]]]] = None,
|
||||
headers: typing.Optional[typing.Dict[str, typing.Any]] = None,
|
||||
request_options: typing.Optional[RequestOptions] = None,
|
||||
retries: int = 0,
|
||||
retries: int = 2,
|
||||
omit: typing.Optional[typing.Any] = None,
|
||||
) -> typing.AsyncIterator[httpx.Response]:
|
||||
base_url = self.get_base_url(base_url)
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ def to_jsonable_with_fallback(
|
|||
class UniversalBaseModel(pydantic.BaseModel):
|
||||
if IS_PYDANTIC_V2:
|
||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
||||
# Allow fields begining with `model_` to be used in the model
|
||||
# Allow fields beginning with `model_` to be used in the model
|
||||
protected_namespaces=(),
|
||||
) # type: ignore # Pydantic v2
|
||||
|
||||
|
|
@ -128,7 +128,7 @@ class UniversalBaseModel(pydantic.BaseModel):
|
|||
Override the default dict method to `exclude_unset` by default. This function patches
|
||||
`exclude_unset` to work include fields within non-None default values.
|
||||
"""
|
||||
# Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2
|
||||
# Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2
|
||||
# Pydantic V1's .dict can be extremely slow, so we do not want to call it twice.
|
||||
#
|
||||
# We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models
|
||||
|
|
|
|||
|
|
@ -5,3 +5,5 @@ import enum
|
|||
|
||||
class SkyvernEnvironment(enum.Enum):
|
||||
PRODUCTION = "https://api.skyvern.com"
|
||||
STAGING = "https://api-staging.skyvern.com"
|
||||
DEVELOPMENT = "http://localhost:8000"
|
||||
|
|
|
|||
|
|
@ -1,15 +1,23 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from ..core.client_wrapper import SyncClientWrapper
|
||||
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):
|
||||
|
|
@ -39,9 +47,12 @@ class ServerClient:
|
|||
|
||||
Examples
|
||||
--------
|
||||
from skyverndocs import Skyvern
|
||||
from skyvern import Skyvern
|
||||
|
||||
client = Skyvern()
|
||||
client = Skyvern(
|
||||
api_key="YOUR_API_KEY",
|
||||
authorization="YOUR_AUTHORIZATION",
|
||||
)
|
||||
client.server.webhook()
|
||||
"""
|
||||
_response = self._client_wrapper.httpx_client.request(
|
||||
|
|
@ -77,7 +88,7 @@ class ServerClient:
|
|||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
||||
|
||||
def check_status(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.Optional[typing.Any]:
|
||||
def heartbeat(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.Optional[typing.Any]:
|
||||
"""
|
||||
Check if the server is running.
|
||||
|
||||
|
|
@ -93,10 +104,13 @@ class ServerClient:
|
|||
|
||||
Examples
|
||||
--------
|
||||
from skyverndocs import Skyvern
|
||||
from skyvern import Skyvern
|
||||
|
||||
client = Skyvern()
|
||||
client.server.check_status()
|
||||
client = Skyvern(
|
||||
api_key="YOUR_API_KEY",
|
||||
authorization="YOUR_AUTHORIZATION",
|
||||
)
|
||||
client.server.heartbeat()
|
||||
"""
|
||||
_response = self._client_wrapper.httpx_client.request(
|
||||
"api/v1/heartbeat",
|
||||
|
|
@ -117,6 +131,237 @@ class ServerClient:
|
|||
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):
|
||||
|
|
@ -148,9 +393,12 @@ class AsyncServerClient:
|
|||
--------
|
||||
import asyncio
|
||||
|
||||
from skyverndocs import AsyncSkyvern
|
||||
from skyvern import AsyncSkyvern
|
||||
|
||||
client = AsyncSkyvern()
|
||||
client = AsyncSkyvern(
|
||||
api_key="YOUR_API_KEY",
|
||||
authorization="YOUR_AUTHORIZATION",
|
||||
)
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
|
|
@ -192,7 +440,7 @@ class AsyncServerClient:
|
|||
raise ApiError(status_code=_response.status_code, body=_response.text)
|
||||
raise ApiError(status_code=_response.status_code, body=_response_json)
|
||||
|
||||
async def check_status(
|
||||
async def heartbeat(
|
||||
self, *, request_options: typing.Optional[RequestOptions] = None
|
||||
) -> typing.Optional[typing.Any]:
|
||||
"""
|
||||
|
|
@ -212,13 +460,16 @@ class AsyncServerClient:
|
|||
--------
|
||||
import asyncio
|
||||
|
||||
from skyverndocs import AsyncSkyvern
|
||||
from skyvern import AsyncSkyvern
|
||||
|
||||
client = AsyncSkyvern()
|
||||
client = AsyncSkyvern(
|
||||
api_key="YOUR_API_KEY",
|
||||
authorization="YOUR_AUTHORIZATION",
|
||||
)
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
await client.server.check_status()
|
||||
await client.server.heartbeat()
|
||||
|
||||
|
||||
asyncio.run(main())
|
||||
|
|
@ -241,3 +492,268 @@ class AsyncServerClient:
|
|||
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)
|
||||
|
|
|
|||
2
skyvern/client/session/__init__.py
Normal file
2
skyvern/client/session/__init__.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
499
skyvern/client/session/client.py
Normal file
499
skyvern/client/session/client.py
Normal file
|
|
@ -0,0 +1,499 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from ..core.client_wrapper import SyncClientWrapper
|
||||
import typing
|
||||
from ..core.request_options import RequestOptions
|
||||
from ..types.browser_session_response import BrowserSessionResponse
|
||||
from ..core.jsonable_encoder import jsonable_encoder
|
||||
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 ..core.client_wrapper import AsyncClientWrapper
|
||||
|
||||
|
||||
class SessionClient:
|
||||
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
||||
self._client_wrapper = client_wrapper
|
||||
|
||||
def get_browser_session(
|
||||
self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
||||
) -> BrowserSessionResponse:
|
||||
"""
|
||||
Parameters
|
||||
----------
|
||||
browser_session_id : str
|
||||
|
||||
request_options : typing.Optional[RequestOptions]
|
||||
Request-specific configuration.
|
||||
|
||||
Returns
|
||||
-------
|
||||
BrowserSessionResponse
|
||||
Successful Response
|
||||
|
||||
Examples
|
||||
--------
|
||||
from skyvern import Skyvern
|
||||
|
||||
client = Skyvern(
|
||||
api_key="YOUR_API_KEY",
|
||||
authorization="YOUR_AUTHORIZATION",
|
||||
)
|
||||
client.session.get_browser_session(
|
||||
browser_session_id="browser_session_id",
|
||||
)
|
||||
"""
|
||||
_response = self._client_wrapper.httpx_client.request(
|
||||
f"api/v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
|
||||
method="GET",
|
||||
request_options=request_options,
|
||||
)
|
||||
try:
|
||||
if 200 <= _response.status_code < 300:
|
||||
return typing.cast(
|
||||
BrowserSessionResponse,
|
||||
parse_obj_as(
|
||||
type_=BrowserSessionResponse, # 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_browser_sessions(
|
||||
self, *, request_options: typing.Optional[RequestOptions] = None
|
||||
) -> typing.List[BrowserSessionResponse]:
|
||||
"""
|
||||
Get all active browser sessions for the organization
|
||||
|
||||
Parameters
|
||||
----------
|
||||
request_options : typing.Optional[RequestOptions]
|
||||
Request-specific configuration.
|
||||
|
||||
Returns
|
||||
-------
|
||||
typing.List[BrowserSessionResponse]
|
||||
Successful Response
|
||||
|
||||
Examples
|
||||
--------
|
||||
from skyvern import Skyvern
|
||||
|
||||
client = Skyvern(
|
||||
api_key="YOUR_API_KEY",
|
||||
authorization="YOUR_AUTHORIZATION",
|
||||
)
|
||||
client.session.get_browser_sessions()
|
||||
"""
|
||||
_response = self._client_wrapper.httpx_client.request(
|
||||
"api/v1/browser_sessions",
|
||||
method="GET",
|
||||
request_options=request_options,
|
||||
)
|
||||
try:
|
||||
if 200 <= _response.status_code < 300:
|
||||
return typing.cast(
|
||||
typing.List[BrowserSessionResponse],
|
||||
parse_obj_as(
|
||||
type_=typing.List[BrowserSessionResponse], # 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 create_browser_session(
|
||||
self, *, request_options: typing.Optional[RequestOptions] = None
|
||||
) -> BrowserSessionResponse:
|
||||
"""
|
||||
Parameters
|
||||
----------
|
||||
request_options : typing.Optional[RequestOptions]
|
||||
Request-specific configuration.
|
||||
|
||||
Returns
|
||||
-------
|
||||
BrowserSessionResponse
|
||||
Successful Response
|
||||
|
||||
Examples
|
||||
--------
|
||||
from skyvern import Skyvern
|
||||
|
||||
client = Skyvern(
|
||||
api_key="YOUR_API_KEY",
|
||||
authorization="YOUR_AUTHORIZATION",
|
||||
)
|
||||
client.session.create_browser_session()
|
||||
"""
|
||||
_response = self._client_wrapper.httpx_client.request(
|
||||
"api/v1/browser_sessions",
|
||||
method="POST",
|
||||
request_options=request_options,
|
||||
)
|
||||
try:
|
||||
if 200 <= _response.status_code < 300:
|
||||
return typing.cast(
|
||||
BrowserSessionResponse,
|
||||
parse_obj_as(
|
||||
type_=BrowserSessionResponse, # 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 close_browser_session(
|
||||
self, session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
||||
) -> typing.Optional[typing.Any]:
|
||||
"""
|
||||
Parameters
|
||||
----------
|
||||
session_id : 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.session.close_browser_session(
|
||||
session_id="session_id",
|
||||
)
|
||||
"""
|
||||
_response = self._client_wrapper.httpx_client.request(
|
||||
f"api/v1/browser_sessions/{jsonable_encoder(session_id)}/close",
|
||||
method="POST",
|
||||
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)
|
||||
|
||||
|
||||
class AsyncSessionClient:
|
||||
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
||||
self._client_wrapper = client_wrapper
|
||||
|
||||
async def get_browser_session(
|
||||
self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
||||
) -> BrowserSessionResponse:
|
||||
"""
|
||||
Parameters
|
||||
----------
|
||||
browser_session_id : str
|
||||
|
||||
request_options : typing.Optional[RequestOptions]
|
||||
Request-specific configuration.
|
||||
|
||||
Returns
|
||||
-------
|
||||
BrowserSessionResponse
|
||||
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.session.get_browser_session(
|
||||
browser_session_id="browser_session_id",
|
||||
)
|
||||
|
||||
|
||||
asyncio.run(main())
|
||||
"""
|
||||
_response = await self._client_wrapper.httpx_client.request(
|
||||
f"api/v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
|
||||
method="GET",
|
||||
request_options=request_options,
|
||||
)
|
||||
try:
|
||||
if 200 <= _response.status_code < 300:
|
||||
return typing.cast(
|
||||
BrowserSessionResponse,
|
||||
parse_obj_as(
|
||||
type_=BrowserSessionResponse, # 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_browser_sessions(
|
||||
self, *, request_options: typing.Optional[RequestOptions] = None
|
||||
) -> typing.List[BrowserSessionResponse]:
|
||||
"""
|
||||
Get all active browser sessions for the organization
|
||||
|
||||
Parameters
|
||||
----------
|
||||
request_options : typing.Optional[RequestOptions]
|
||||
Request-specific configuration.
|
||||
|
||||
Returns
|
||||
-------
|
||||
typing.List[BrowserSessionResponse]
|
||||
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.session.get_browser_sessions()
|
||||
|
||||
|
||||
asyncio.run(main())
|
||||
"""
|
||||
_response = await self._client_wrapper.httpx_client.request(
|
||||
"api/v1/browser_sessions",
|
||||
method="GET",
|
||||
request_options=request_options,
|
||||
)
|
||||
try:
|
||||
if 200 <= _response.status_code < 300:
|
||||
return typing.cast(
|
||||
typing.List[BrowserSessionResponse],
|
||||
parse_obj_as(
|
||||
type_=typing.List[BrowserSessionResponse], # 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 create_browser_session(
|
||||
self, *, request_options: typing.Optional[RequestOptions] = None
|
||||
) -> BrowserSessionResponse:
|
||||
"""
|
||||
Parameters
|
||||
----------
|
||||
request_options : typing.Optional[RequestOptions]
|
||||
Request-specific configuration.
|
||||
|
||||
Returns
|
||||
-------
|
||||
BrowserSessionResponse
|
||||
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.session.create_browser_session()
|
||||
|
||||
|
||||
asyncio.run(main())
|
||||
"""
|
||||
_response = await self._client_wrapper.httpx_client.request(
|
||||
"api/v1/browser_sessions",
|
||||
method="POST",
|
||||
request_options=request_options,
|
||||
)
|
||||
try:
|
||||
if 200 <= _response.status_code < 300:
|
||||
return typing.cast(
|
||||
BrowserSessionResponse,
|
||||
parse_obj_as(
|
||||
type_=BrowserSessionResponse, # 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 close_browser_session(
|
||||
self, session_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
||||
) -> typing.Optional[typing.Any]:
|
||||
"""
|
||||
Parameters
|
||||
----------
|
||||
session_id : 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.session.close_browser_session(
|
||||
session_id="session_id",
|
||||
)
|
||||
|
||||
|
||||
asyncio.run(main())
|
||||
"""
|
||||
_response = await self._client_wrapper.httpx_client.request(
|
||||
f"api/v1/browser_sessions/{jsonable_encoder(session_id)}/close",
|
||||
method="POST",
|
||||
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)
|
||||
|
|
@ -10,17 +10,14 @@ from .action_block_parameters_item import (
|
|||
ActionBlockParametersItem_BitwardenLoginCredential,
|
||||
ActionBlockParametersItem_BitwardenSensitiveInformation,
|
||||
ActionBlockParametersItem_Context,
|
||||
ActionBlockParametersItem_Credential,
|
||||
ActionBlockParametersItem_Output,
|
||||
ActionBlockParametersItem_Workflow,
|
||||
)
|
||||
from .action_result import ActionResult
|
||||
from .action_result_data import ActionResultData
|
||||
from .action_status import ActionStatus
|
||||
from .action_type import ActionType
|
||||
from .agent_step_output import AgentStepOutput
|
||||
from .ai_suggestion_base import AiSuggestionBase
|
||||
from .ai_suggestion_base_output import AiSuggestionBaseOutput
|
||||
from .ai_suggestion_type import AiSuggestionType
|
||||
from .artifact import Artifact
|
||||
from .artifact_type import ArtifactType
|
||||
from .aws_secret_parameter import AwsSecretParameter
|
||||
|
|
@ -37,23 +34,20 @@ from .code_block_parameters_item import (
|
|||
CodeBlockParametersItem_BitwardenLoginCredential,
|
||||
CodeBlockParametersItem_BitwardenSensitiveInformation,
|
||||
CodeBlockParametersItem_Context,
|
||||
CodeBlockParametersItem_Credential,
|
||||
CodeBlockParametersItem_Output,
|
||||
CodeBlockParametersItem_Workflow,
|
||||
)
|
||||
from .context_parameter import ContextParameter
|
||||
from .context_parameter_source import (
|
||||
ContextParameterSource,
|
||||
ContextParameterSource_AwsSecret,
|
||||
ContextParameterSource_BitwardenCreditCardData,
|
||||
ContextParameterSource_BitwardenLoginCredential,
|
||||
ContextParameterSource_BitwardenSensitiveInformation,
|
||||
ContextParameterSource_Context,
|
||||
ContextParameterSource_Output,
|
||||
ContextParameterSource_Workflow,
|
||||
)
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
from .create_credential_request import CreateCredentialRequest
|
||||
from .create_task_response import CreateTaskResponse
|
||||
from .download_to_s_3_block import DownloadToS3Block
|
||||
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
|
||||
|
|
@ -64,6 +58,7 @@ from .extraction_block_parameters_item import (
|
|||
ExtractionBlockParametersItem_BitwardenLoginCredential,
|
||||
ExtractionBlockParametersItem_BitwardenSensitiveInformation,
|
||||
ExtractionBlockParametersItem_Context,
|
||||
ExtractionBlockParametersItem_Credential,
|
||||
ExtractionBlockParametersItem_Output,
|
||||
ExtractionBlockParametersItem_Workflow,
|
||||
)
|
||||
|
|
@ -76,11 +71,15 @@ from .file_download_block_parameters_item import (
|
|||
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,
|
||||
|
|
@ -89,6 +88,7 @@ from .for_loop_block_loop_blocks_item import (
|
|||
ForLoopBlockLoopBlocksItem_DownloadToS3,
|
||||
ForLoopBlockLoopBlocksItem_Extraction,
|
||||
ForLoopBlockLoopBlocksItem_FileDownload,
|
||||
ForLoopBlockLoopBlocksItem_FileUpload,
|
||||
ForLoopBlockLoopBlocksItem_FileUrlParser,
|
||||
ForLoopBlockLoopBlocksItem_ForLoop,
|
||||
ForLoopBlockLoopBlocksItem_GotoUrl,
|
||||
|
|
@ -110,6 +110,7 @@ from .for_loop_block_loop_over import (
|
|||
ForLoopBlockLoopOver_BitwardenLoginCredential,
|
||||
ForLoopBlockLoopOver_BitwardenSensitiveInformation,
|
||||
ForLoopBlockLoopOver_Context,
|
||||
ForLoopBlockLoopOver_Credential,
|
||||
ForLoopBlockLoopOver_Output,
|
||||
ForLoopBlockLoopOver_Workflow,
|
||||
)
|
||||
|
|
@ -125,6 +126,7 @@ from .login_block_parameters_item import (
|
|||
LoginBlockParametersItem_BitwardenLoginCredential,
|
||||
LoginBlockParametersItem_BitwardenSensitiveInformation,
|
||||
LoginBlockParametersItem_Context,
|
||||
LoginBlockParametersItem_Credential,
|
||||
LoginBlockParametersItem_Output,
|
||||
LoginBlockParametersItem_Workflow,
|
||||
)
|
||||
|
|
@ -137,26 +139,37 @@ from .navigation_block_parameters_item import (
|
|||
NavigationBlockParametersItem_BitwardenLoginCredential,
|
||||
NavigationBlockParametersItem_BitwardenSensitiveInformation,
|
||||
NavigationBlockParametersItem_Context,
|
||||
NavigationBlockParametersItem_Credential,
|
||||
NavigationBlockParametersItem_Output,
|
||||
NavigationBlockParametersItem_Workflow,
|
||||
)
|
||||
from .observer_task import ObserverTask
|
||||
from .observer_task_output import ObserverTaskOutput
|
||||
from .observer_task_status import ObserverTaskStatus
|
||||
from .observer_thought import ObserverThought
|
||||
from .observer_thought_scenario import ObserverThoughtScenario
|
||||
from .observer_thought_type import ObserverThoughtType
|
||||
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_parameter import OutputParameter
|
||||
from .password_credential_response import PasswordCredentialResponse
|
||||
from .pdf_parser_block import PdfParserBlock
|
||||
from .proxy_location import ProxyLocation
|
||||
from .run_engine import RunEngine
|
||||
from .run_workflow_response import RunWorkflowResponse
|
||||
from .select_option import SelectOption
|
||||
from .send_email_block import SendEmailBlock
|
||||
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
|
||||
|
|
@ -172,6 +185,7 @@ from .task_block_parameters_item import (
|
|||
TaskBlockParametersItem_BitwardenLoginCredential,
|
||||
TaskBlockParametersItem_BitwardenSensitiveInformation,
|
||||
TaskBlockParametersItem_Context,
|
||||
TaskBlockParametersItem_Credential,
|
||||
TaskBlockParametersItem_Output,
|
||||
TaskBlockParametersItem_Workflow,
|
||||
)
|
||||
|
|
@ -181,9 +195,15 @@ 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_data_extraction_schema import TaskRunResponseDataExtractionSchema
|
||||
from .task_run_status import TaskRunStatus
|
||||
from .task_status import TaskStatus
|
||||
from .task_type import TaskType
|
||||
from .task_v_2_block import TaskV2Block
|
||||
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,
|
||||
|
|
@ -192,11 +212,15 @@ from .text_prompt_block_parameters_item import (
|
|||
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_s_3_block import UploadToS3Block
|
||||
from .upload_to_s3block import UploadToS3Block
|
||||
from .url_block import UrlBlock
|
||||
from .url_block_data_schema import UrlBlockDataSchema
|
||||
from .url_block_parameters_item import (
|
||||
|
|
@ -206,6 +230,7 @@ from .url_block_parameters_item import (
|
|||
UrlBlockParametersItem_BitwardenLoginCredential,
|
||||
UrlBlockParametersItem_BitwardenSensitiveInformation,
|
||||
UrlBlockParametersItem_Context,
|
||||
UrlBlockParametersItem_Credential,
|
||||
UrlBlockParametersItem_Output,
|
||||
UrlBlockParametersItem_Workflow,
|
||||
)
|
||||
|
|
@ -219,11 +244,13 @@ from .validation_block_parameters_item import (
|
|||
ValidationBlockParametersItem_BitwardenLoginCredential,
|
||||
ValidationBlockParametersItem_BitwardenSensitiveInformation,
|
||||
ValidationBlockParametersItem_Context,
|
||||
ValidationBlockParametersItem_Credential,
|
||||
ValidationBlockParametersItem_Output,
|
||||
ValidationBlockParametersItem_Workflow,
|
||||
)
|
||||
from .validation_error import ValidationError
|
||||
from .validation_error_loc_item import ValidationErrorLocItem
|
||||
from .value import Value
|
||||
from .wait_block import WaitBlock
|
||||
from .wait_block_parameters_item import (
|
||||
WaitBlockParametersItem,
|
||||
|
|
@ -232,6 +259,7 @@ from .wait_block_parameters_item import (
|
|||
WaitBlockParametersItem_BitwardenLoginCredential,
|
||||
WaitBlockParametersItem_BitwardenSensitiveInformation,
|
||||
WaitBlockParametersItem_Context,
|
||||
WaitBlockParametersItem_Credential,
|
||||
WaitBlockParametersItem_Output,
|
||||
WaitBlockParametersItem_Workflow,
|
||||
)
|
||||
|
|
@ -244,6 +272,7 @@ from .workflow_definition_blocks_item import (
|
|||
WorkflowDefinitionBlocksItem_DownloadToS3,
|
||||
WorkflowDefinitionBlocksItem_Extraction,
|
||||
WorkflowDefinitionBlocksItem_FileDownload,
|
||||
WorkflowDefinitionBlocksItem_FileUpload,
|
||||
WorkflowDefinitionBlocksItem_FileUrlParser,
|
||||
WorkflowDefinitionBlocksItem_ForLoop,
|
||||
WorkflowDefinitionBlocksItem_GotoUrl,
|
||||
|
|
@ -265,6 +294,7 @@ from .workflow_definition_parameters_item import (
|
|||
WorkflowDefinitionParametersItem_BitwardenLoginCredential,
|
||||
WorkflowDefinitionParametersItem_BitwardenSensitiveInformation,
|
||||
WorkflowDefinitionParametersItem_Context,
|
||||
WorkflowDefinitionParametersItem_Credential,
|
||||
WorkflowDefinitionParametersItem_Output,
|
||||
WorkflowDefinitionParametersItem_Workflow,
|
||||
)
|
||||
|
|
@ -275,9 +305,8 @@ 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_block_output import WorkflowRunBlockOutput
|
||||
from .workflow_run_response import WorkflowRunResponse
|
||||
from .workflow_run_status import WorkflowRunStatus
|
||||
from .workflow_run_status_response import WorkflowRunResponse
|
||||
from .workflow_run_timeline import WorkflowRunTimeline
|
||||
from .workflow_run_timeline_type import WorkflowRunTimelineType
|
||||
from .workflow_status import WorkflowStatus
|
||||
|
|
@ -292,16 +321,13 @@ __all__ = [
|
|||
"ActionBlockParametersItem_BitwardenLoginCredential",
|
||||
"ActionBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"ActionBlockParametersItem_Context",
|
||||
"ActionBlockParametersItem_Credential",
|
||||
"ActionBlockParametersItem_Output",
|
||||
"ActionBlockParametersItem_Workflow",
|
||||
"ActionResult",
|
||||
"ActionResultData",
|
||||
"ActionStatus",
|
||||
"ActionType",
|
||||
"AgentStepOutput",
|
||||
"AiSuggestionBase",
|
||||
"AiSuggestionBaseOutput",
|
||||
"AiSuggestionType",
|
||||
"Artifact",
|
||||
"ArtifactType",
|
||||
"AwsSecretParameter",
|
||||
|
|
@ -317,19 +343,18 @@ __all__ = [
|
|||
"CodeBlockParametersItem_BitwardenLoginCredential",
|
||||
"CodeBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"CodeBlockParametersItem_Context",
|
||||
"CodeBlockParametersItem_Credential",
|
||||
"CodeBlockParametersItem_Output",
|
||||
"CodeBlockParametersItem_Workflow",
|
||||
"ContextParameter",
|
||||
"ContextParameterSource",
|
||||
"ContextParameterSource_AwsSecret",
|
||||
"ContextParameterSource_BitwardenCreditCardData",
|
||||
"ContextParameterSource_BitwardenLoginCredential",
|
||||
"ContextParameterSource_BitwardenSensitiveInformation",
|
||||
"ContextParameterSource_Context",
|
||||
"ContextParameterSource_Output",
|
||||
"ContextParameterSource_Workflow",
|
||||
"ContextParameterValue",
|
||||
"CreateCredentialRequest",
|
||||
"CreateTaskResponse",
|
||||
"Credential",
|
||||
"CredentialParameter",
|
||||
"CredentialResponse",
|
||||
"CredentialType",
|
||||
"CreditCardCredentialResponse",
|
||||
"Data",
|
||||
"DownloadToS3Block",
|
||||
"EntityType",
|
||||
"ExtractionBlock",
|
||||
|
|
@ -340,6 +365,7 @@ __all__ = [
|
|||
"ExtractionBlockParametersItem_BitwardenLoginCredential",
|
||||
"ExtractionBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"ExtractionBlockParametersItem_Context",
|
||||
"ExtractionBlockParametersItem_Credential",
|
||||
"ExtractionBlockParametersItem_Output",
|
||||
"ExtractionBlockParametersItem_Workflow",
|
||||
"FileDownloadBlock",
|
||||
|
|
@ -350,10 +376,14 @@ __all__ = [
|
|||
"FileDownloadBlockParametersItem_BitwardenLoginCredential",
|
||||
"FileDownloadBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"FileDownloadBlockParametersItem_Context",
|
||||
"FileDownloadBlockParametersItem_Credential",
|
||||
"FileDownloadBlockParametersItem_Output",
|
||||
"FileDownloadBlockParametersItem_Workflow",
|
||||
"FileInfo",
|
||||
"FileParserBlock",
|
||||
"FileStorageType",
|
||||
"FileType",
|
||||
"FileUploadBlock",
|
||||
"ForLoopBlock",
|
||||
"ForLoopBlockLoopBlocksItem",
|
||||
"ForLoopBlockLoopBlocksItem_Action",
|
||||
|
|
@ -361,6 +391,7 @@ __all__ = [
|
|||
"ForLoopBlockLoopBlocksItem_DownloadToS3",
|
||||
"ForLoopBlockLoopBlocksItem_Extraction",
|
||||
"ForLoopBlockLoopBlocksItem_FileDownload",
|
||||
"ForLoopBlockLoopBlocksItem_FileUpload",
|
||||
"ForLoopBlockLoopBlocksItem_FileUrlParser",
|
||||
"ForLoopBlockLoopBlocksItem_ForLoop",
|
||||
"ForLoopBlockLoopBlocksItem_GotoUrl",
|
||||
|
|
@ -380,6 +411,7 @@ __all__ = [
|
|||
"ForLoopBlockLoopOver_BitwardenLoginCredential",
|
||||
"ForLoopBlockLoopOver_BitwardenSensitiveInformation",
|
||||
"ForLoopBlockLoopOver_Context",
|
||||
"ForLoopBlockLoopOver_Credential",
|
||||
"ForLoopBlockLoopOver_Output",
|
||||
"ForLoopBlockLoopOver_Workflow",
|
||||
"GetOrganizationApiKeysResponse",
|
||||
|
|
@ -393,6 +425,7 @@ __all__ = [
|
|||
"LoginBlockParametersItem_BitwardenLoginCredential",
|
||||
"LoginBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"LoginBlockParametersItem_Context",
|
||||
"LoginBlockParametersItem_Credential",
|
||||
"LoginBlockParametersItem_Output",
|
||||
"LoginBlockParametersItem_Workflow",
|
||||
"NavigationBlock",
|
||||
|
|
@ -403,25 +436,34 @@ __all__ = [
|
|||
"NavigationBlockParametersItem_BitwardenLoginCredential",
|
||||
"NavigationBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"NavigationBlockParametersItem_Context",
|
||||
"NavigationBlockParametersItem_Credential",
|
||||
"NavigationBlockParametersItem_Output",
|
||||
"NavigationBlockParametersItem_Workflow",
|
||||
"ObserverTask",
|
||||
"ObserverTaskOutput",
|
||||
"ObserverTaskStatus",
|
||||
"ObserverThought",
|
||||
"ObserverThoughtScenario",
|
||||
"ObserverThoughtType",
|
||||
"NonEmptyCreditCardCredential",
|
||||
"NonEmptyPasswordCredential",
|
||||
"OrderBy",
|
||||
"Organization",
|
||||
"OrganizationAuthToken",
|
||||
"OrganizationAuthTokenType",
|
||||
"Output",
|
||||
"OutputParameter",
|
||||
"PasswordCredentialResponse",
|
||||
"PdfParserBlock",
|
||||
"ProxyLocation",
|
||||
"RunEngine",
|
||||
"RunWorkflowResponse",
|
||||
"SelectOption",
|
||||
"SendEmailBlock",
|
||||
"SortDirection",
|
||||
"Source",
|
||||
"Source_AwsSecret",
|
||||
"Source_BitwardenCreditCardData",
|
||||
"Source_BitwardenLoginCredential",
|
||||
"Source_BitwardenSensitiveInformation",
|
||||
"Source_Context",
|
||||
"Source_Credential",
|
||||
"Source_Output",
|
||||
"Source_Workflow",
|
||||
"Step",
|
||||
"StepStatus",
|
||||
"Task",
|
||||
|
|
@ -436,6 +478,7 @@ __all__ = [
|
|||
"TaskBlockParametersItem_BitwardenLoginCredential",
|
||||
"TaskBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"TaskBlockParametersItem_Context",
|
||||
"TaskBlockParametersItem_Credential",
|
||||
"TaskBlockParametersItem_Output",
|
||||
"TaskBlockParametersItem_Workflow",
|
||||
"TaskExtractedInformation",
|
||||
|
|
@ -444,9 +487,15 @@ __all__ = [
|
|||
"TaskNavigationPayload",
|
||||
"TaskResponse",
|
||||
"TaskResponseExtractedInformation",
|
||||
"TaskRunResponse",
|
||||
"TaskRunResponseDataExtractionSchema",
|
||||
"TaskRunStatus",
|
||||
"TaskStatus",
|
||||
"TaskType",
|
||||
"TaskV2",
|
||||
"TaskV2Block",
|
||||
"TaskV2ExtractedInformationSchema",
|
||||
"TaskV2Status",
|
||||
"TextPromptBlock",
|
||||
"TextPromptBlockParametersItem",
|
||||
"TextPromptBlockParametersItem_AwsSecret",
|
||||
|
|
@ -454,8 +503,12 @@ __all__ = [
|
|||
"TextPromptBlockParametersItem_BitwardenLoginCredential",
|
||||
"TextPromptBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"TextPromptBlockParametersItem_Context",
|
||||
"TextPromptBlockParametersItem_Credential",
|
||||
"TextPromptBlockParametersItem_Output",
|
||||
"TextPromptBlockParametersItem_Workflow",
|
||||
"Thought",
|
||||
"ThoughtScenario",
|
||||
"ThoughtType",
|
||||
"TotpCode",
|
||||
"UploadToS3Block",
|
||||
"UrlBlock",
|
||||
|
|
@ -466,6 +519,7 @@ __all__ = [
|
|||
"UrlBlockParametersItem_BitwardenLoginCredential",
|
||||
"UrlBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"UrlBlockParametersItem_Context",
|
||||
"UrlBlockParametersItem_Credential",
|
||||
"UrlBlockParametersItem_Output",
|
||||
"UrlBlockParametersItem_Workflow",
|
||||
"UserDefinedError",
|
||||
|
|
@ -477,10 +531,12 @@ __all__ = [
|
|||
"ValidationBlockParametersItem_BitwardenLoginCredential",
|
||||
"ValidationBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"ValidationBlockParametersItem_Context",
|
||||
"ValidationBlockParametersItem_Credential",
|
||||
"ValidationBlockParametersItem_Output",
|
||||
"ValidationBlockParametersItem_Workflow",
|
||||
"ValidationError",
|
||||
"ValidationErrorLocItem",
|
||||
"Value",
|
||||
"WaitBlock",
|
||||
"WaitBlockParametersItem",
|
||||
"WaitBlockParametersItem_AwsSecret",
|
||||
|
|
@ -488,6 +544,7 @@ __all__ = [
|
|||
"WaitBlockParametersItem_BitwardenLoginCredential",
|
||||
"WaitBlockParametersItem_BitwardenSensitiveInformation",
|
||||
"WaitBlockParametersItem_Context",
|
||||
"WaitBlockParametersItem_Credential",
|
||||
"WaitBlockParametersItem_Output",
|
||||
"WaitBlockParametersItem_Workflow",
|
||||
"Workflow",
|
||||
|
|
@ -498,6 +555,7 @@ __all__ = [
|
|||
"WorkflowDefinitionBlocksItem_DownloadToS3",
|
||||
"WorkflowDefinitionBlocksItem_Extraction",
|
||||
"WorkflowDefinitionBlocksItem_FileDownload",
|
||||
"WorkflowDefinitionBlocksItem_FileUpload",
|
||||
"WorkflowDefinitionBlocksItem_FileUrlParser",
|
||||
"WorkflowDefinitionBlocksItem_ForLoop",
|
||||
"WorkflowDefinitionBlocksItem_GotoUrl",
|
||||
|
|
@ -517,6 +575,7 @@ __all__ = [
|
|||
"WorkflowDefinitionParametersItem_BitwardenLoginCredential",
|
||||
"WorkflowDefinitionParametersItem_BitwardenSensitiveInformation",
|
||||
"WorkflowDefinitionParametersItem_Context",
|
||||
"WorkflowDefinitionParametersItem_Credential",
|
||||
"WorkflowDefinitionParametersItem_Output",
|
||||
"WorkflowDefinitionParametersItem_Workflow",
|
||||
"WorkflowParameter",
|
||||
|
|
@ -526,9 +585,8 @@ __all__ = [
|
|||
"WorkflowRunBlock",
|
||||
"WorkflowRunBlockDataSchema",
|
||||
"WorkflowRunBlockNavigationPayload",
|
||||
"WorkflowRunBlockOutput",
|
||||
"WorkflowRunStatus",
|
||||
"WorkflowRunResponse",
|
||||
"WorkflowRunStatus",
|
||||
"WorkflowRunTimeline",
|
||||
"WorkflowRunTimelineType",
|
||||
"WorkflowStatus",
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ class Action(UniversalBaseModel):
|
|||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -9,7 +8,6 @@ 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 ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class ActionBlock(UniversalBaseModel):
|
||||
|
|
@ -33,6 +31,7 @@ class ActionBlock(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -42,6 +41,3 @@ class ActionBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, ActionBlock=ActionBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class ActionBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class ActionBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class ActionBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # 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):
|
||||
|
|
@ -178,8 +200,8 @@ ActionBlockParametersItem = typing.Union[
|
|||
ActionBlockParametersItem_BitwardenLoginCredential,
|
||||
ActionBlockParametersItem_BitwardenSensitiveInformation,
|
||||
ActionBlockParametersItem_Context,
|
||||
ActionBlockParametersItem_Credential,
|
||||
ActionBlockParametersItem_Output,
|
||||
ActionBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, ActionBlockParametersItem_Context=ActionBlockParametersItem_Context)
|
||||
update_forward_refs(ActionBlockParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
from ..core.pydantic_utilities import UniversalBaseModel
|
||||
import typing
|
||||
from .action_result_data import ActionResultData
|
||||
from .data import Data
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ class ActionResult(UniversalBaseModel):
|
|||
stop_execution_on_failure: typing.Optional[bool] = None
|
||||
exception_type: typing.Optional[str] = None
|
||||
exception_message: typing.Optional[str] = None
|
||||
data: typing.Optional[ActionResultData] = 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
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
AiSuggestionBaseOutput = typing.Union[typing.Dict[str, typing.Optional[typing.Any]], str]
|
||||
|
|
@ -15,8 +15,9 @@ class BitwardenLoginCredentialParameter(UniversalBaseModel):
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ BlockType = typing.Union[
|
|||
"text_prompt",
|
||||
"download_to_s3",
|
||||
"upload_to_s3",
|
||||
"file_upload",
|
||||
"send_email",
|
||||
"file_url_parser",
|
||||
"validation",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -8,7 +7,6 @@ import typing
|
|||
from .code_block_parameters_item import CodeBlockParametersItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class CodeBlock(UniversalBaseModel):
|
||||
|
|
@ -26,6 +24,3 @@ class CodeBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, CodeBlock=CodeBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class CodeBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class CodeBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class CodeBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # 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):
|
||||
|
|
@ -178,8 +200,8 @@ CodeBlockParametersItem = typing.Union[
|
|||
CodeBlockParametersItem_BitwardenLoginCredential,
|
||||
CodeBlockParametersItem_BitwardenSensitiveInformation,
|
||||
CodeBlockParametersItem_Context,
|
||||
CodeBlockParametersItem_Credential,
|
||||
CodeBlockParametersItem_Output,
|
||||
CodeBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, CodeBlockParametersItem_Context=CodeBlockParametersItem_Context)
|
||||
update_forward_refs(CodeBlockParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
from __future__ import annotations
|
||||
from ..core.pydantic_utilities import UniversalBaseModel
|
||||
import typing
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
from .value import Value
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
|
@ -12,8 +12,8 @@ from ..core.pydantic_utilities import update_forward_refs
|
|||
class ContextParameter(UniversalBaseModel):
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -25,6 +25,6 @@ class ContextParameter(UniversalBaseModel):
|
|||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
from .context_parameter_source import ContextParameterSource # noqa: E402
|
||||
from .source import Source # noqa: E402
|
||||
|
||||
update_forward_refs(ContextParameter)
|
||||
|
|
|
|||
23
skyvern/client/types/create_credential_request.py
Normal file
23
skyvern/client/types/create_credential_request.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# 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
|
||||
7
skyvern/client/types/credential.py
Normal file
7
skyvern/client/types/credential.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# 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]
|
||||
27
skyvern/client/types/credential_parameter.py
Normal file
27
skyvern/client/types/credential_parameter.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# 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
|
||||
24
skyvern/client/types/credential_response.py
Normal file
24
skyvern/client/types/credential_response.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# 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
|
||||
5
skyvern/client/types/credential_type.py
Normal file
5
skyvern/client/types/credential_type.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
CredentialType = typing.Union[typing.Literal["password", "credit_card"], typing.Any]
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from ..core.pydantic_utilities import UniversalBaseModel
|
||||
import typing
|
||||
from .ai_suggestion_base_output import AiSuggestionBaseOutput
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import typing
|
||||
import pydantic
|
||||
|
||||
|
||||
class AiSuggestionBase(UniversalBaseModel):
|
||||
output: typing.Optional[AiSuggestionBaseOutput] = None
|
||||
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
|
||||
5
skyvern/client/types/data.py
Normal file
5
skyvern/client/types/data.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# 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]
|
||||
|
|
@ -2,6 +2,4 @@
|
|||
|
||||
import typing
|
||||
|
||||
EntityType = typing.Union[
|
||||
typing.Literal["step", "task", "workflow_run", "workflow_run_block", "observer_thought"], typing.Any
|
||||
]
|
||||
EntityType = typing.Union[typing.Literal["step", "task", "workflow_run", "workflow_run_block", "thought"], typing.Any]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -9,7 +8,6 @@ from .extraction_block_data_schema import ExtractionBlockDataSchema
|
|||
from .extraction_block_parameters_item import ExtractionBlockParametersItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class ExtractionBlock(UniversalBaseModel):
|
||||
|
|
@ -33,6 +31,7 @@ class ExtractionBlock(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -42,6 +41,3 @@ class ExtractionBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, ExtractionBlock=ExtractionBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class ExtractionBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel)
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class ExtractionBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class ExtractionBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # 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):
|
||||
|
|
@ -178,8 +200,8 @@ ExtractionBlockParametersItem = typing.Union[
|
|||
ExtractionBlockParametersItem_BitwardenLoginCredential,
|
||||
ExtractionBlockParametersItem_BitwardenSensitiveInformation,
|
||||
ExtractionBlockParametersItem_Context,
|
||||
ExtractionBlockParametersItem_Credential,
|
||||
ExtractionBlockParametersItem_Output,
|
||||
ExtractionBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, ExtractionBlockParametersItem_Context=ExtractionBlockParametersItem_Context)
|
||||
update_forward_refs(ExtractionBlockParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -9,7 +8,6 @@ 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
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class FileDownloadBlock(UniversalBaseModel):
|
||||
|
|
@ -33,6 +31,7 @@ class FileDownloadBlock(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -42,6 +41,3 @@ class FileDownloadBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, FileDownloadBlock=FileDownloadBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class FileDownloadBlockParametersItem_BitwardenLoginCredential(UniversalBaseMode
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class FileDownloadBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class FileDownloadBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # 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):
|
||||
|
|
@ -178,8 +200,8 @@ FileDownloadBlockParametersItem = typing.Union[
|
|||
FileDownloadBlockParametersItem_BitwardenLoginCredential,
|
||||
FileDownloadBlockParametersItem_BitwardenSensitiveInformation,
|
||||
FileDownloadBlockParametersItem_Context,
|
||||
FileDownloadBlockParametersItem_Credential,
|
||||
FileDownloadBlockParametersItem_Output,
|
||||
FileDownloadBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, FileDownloadBlockParametersItem_Context=FileDownloadBlockParametersItem_Context)
|
||||
update_forward_refs(FileDownloadBlockParametersItem_Context)
|
||||
|
|
|
|||
36
skyvern/client/types/file_info.py
Normal file
36
skyvern/client/types/file_info.py
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# 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
|
||||
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
import typing
|
||||
|
||||
AiSuggestionType = typing.Literal["data_schema"]
|
||||
FileStorageType = typing.Literal["s3"]
|
||||
31
skyvern/client/types/file_upload_block.py
Normal file
31
skyvern/client/types/file_upload_block.py
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# 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
|
||||
|
|
@ -32,5 +32,4 @@ class ForLoopBlock(UniversalBaseModel):
|
|||
|
||||
from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa: E402
|
||||
|
||||
update_forward_refs(ContextParameter, ForLoopBlock=ForLoopBlock)
|
||||
update_forward_refs(ForLoopBlock)
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ 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
|
||||
|
|
@ -54,6 +57,7 @@ class ForLoopBlockLoopBlocksItem_Action(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -122,6 +126,7 @@ class ForLoopBlockLoopBlocksItem_Extraction(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -155,6 +160,29 @@ class ForLoopBlockLoopBlocksItem_FileDownload(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -229,6 +257,7 @@ class ForLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -262,6 +291,7 @@ class ForLoopBlockLoopBlocksItem_Login(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -295,6 +325,7 @@ class ForLoopBlockLoopBlocksItem_Navigation(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -371,6 +402,7 @@ class ForLoopBlockLoopBlocksItem_Task(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -392,6 +424,7 @@ class ForLoopBlockLoopBlocksItem_TaskV2(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -462,6 +495,7 @@ class ForLoopBlockLoopBlocksItem_Validation(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -497,6 +531,7 @@ ForLoopBlockLoopBlocksItem = typing.Union[
|
|||
ForLoopBlockLoopBlocksItem_DownloadToS3,
|
||||
ForLoopBlockLoopBlocksItem_Extraction,
|
||||
ForLoopBlockLoopBlocksItem_FileDownload,
|
||||
ForLoopBlockLoopBlocksItem_FileUpload,
|
||||
ForLoopBlockLoopBlocksItem_FileUrlParser,
|
||||
ForLoopBlockLoopBlocksItem_ForLoop,
|
||||
ForLoopBlockLoopBlocksItem_GotoUrl,
|
||||
|
|
@ -511,17 +546,4 @@ ForLoopBlockLoopBlocksItem = typing.Union[
|
|||
ForLoopBlockLoopBlocksItem_Validation,
|
||||
ForLoopBlockLoopBlocksItem_Wait,
|
||||
]
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_Action=ForLoopBlockLoopBlocksItem_Action)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_Code=ForLoopBlockLoopBlocksItem_Code)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_Extraction=ForLoopBlockLoopBlocksItem_Extraction)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_FileDownload=ForLoopBlockLoopBlocksItem_FileDownload)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_ForLoop=ForLoopBlockLoopBlocksItem_ForLoop)
|
||||
update_forward_refs(ForLoopBlock, ForLoopBlockLoopBlocksItem_ForLoop=ForLoopBlockLoopBlocksItem_ForLoop)
|
||||
update_forward_refs(ForLoopBlockLoopBlocksItem_ForLoop)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_GotoUrl=ForLoopBlockLoopBlocksItem_GotoUrl)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_Login=ForLoopBlockLoopBlocksItem_Login)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_Navigation=ForLoopBlockLoopBlocksItem_Navigation)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_Task=ForLoopBlockLoopBlocksItem_Task)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_TextPrompt=ForLoopBlockLoopBlocksItem_TextPrompt)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_Validation=ForLoopBlockLoopBlocksItem_Validation)
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopBlocksItem_Wait=ForLoopBlockLoopBlocksItem_Wait)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class ForLoopBlockLoopOver_BitwardenLoginCredential(UniversalBaseModel):
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class ForLoopBlockLoopOver_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class ForLoopBlockLoopOver_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # 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):
|
||||
|
|
@ -178,8 +200,8 @@ ForLoopBlockLoopOver = typing.Union[
|
|||
ForLoopBlockLoopOver_BitwardenLoginCredential,
|
||||
ForLoopBlockLoopOver_BitwardenSensitiveInformation,
|
||||
ForLoopBlockLoopOver_Context,
|
||||
ForLoopBlockLoopOver_Credential,
|
||||
ForLoopBlockLoopOver_Output,
|
||||
ForLoopBlockLoopOver_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, ForLoopBlockLoopOver_Context=ForLoopBlockLoopOver_Context)
|
||||
update_forward_refs(ForLoopBlockLoopOver_Context)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -9,7 +8,6 @@ from .login_block_data_schema import LoginBlockDataSchema
|
|||
from .login_block_parameters_item import LoginBlockParametersItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class LoginBlock(UniversalBaseModel):
|
||||
|
|
@ -33,6 +31,7 @@ class LoginBlock(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -42,6 +41,3 @@ class LoginBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, LoginBlock=LoginBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class LoginBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class LoginBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class LoginBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # 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):
|
||||
|
|
@ -178,8 +200,8 @@ LoginBlockParametersItem = typing.Union[
|
|||
LoginBlockParametersItem_BitwardenLoginCredential,
|
||||
LoginBlockParametersItem_BitwardenSensitiveInformation,
|
||||
LoginBlockParametersItem_Context,
|
||||
LoginBlockParametersItem_Credential,
|
||||
LoginBlockParametersItem_Output,
|
||||
LoginBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, LoginBlockParametersItem_Context=LoginBlockParametersItem_Context)
|
||||
update_forward_refs(LoginBlockParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -9,7 +8,6 @@ from .navigation_block_data_schema import NavigationBlockDataSchema
|
|||
from .navigation_block_parameters_item import NavigationBlockParametersItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class NavigationBlock(UniversalBaseModel):
|
||||
|
|
@ -33,6 +31,7 @@ class NavigationBlock(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -42,6 +41,3 @@ class NavigationBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, NavigationBlock=NavigationBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class NavigationBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel)
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class NavigationBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class NavigationBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # 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):
|
||||
|
|
@ -178,8 +200,8 @@ NavigationBlockParametersItem = typing.Union[
|
|||
NavigationBlockParametersItem_BitwardenLoginCredential,
|
||||
NavigationBlockParametersItem_BitwardenSensitiveInformation,
|
||||
NavigationBlockParametersItem_Context,
|
||||
NavigationBlockParametersItem_Credential,
|
||||
NavigationBlockParametersItem_Output,
|
||||
NavigationBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, NavigationBlockParametersItem_Context=NavigationBlockParametersItem_Context)
|
||||
update_forward_refs(NavigationBlockParametersItem_Context)
|
||||
|
|
|
|||
24
skyvern/client/types/non_empty_credit_card_credential.py
Normal file
24
skyvern/client/types/non_empty_credit_card_credential.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# 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
|
||||
21
skyvern/client/types/non_empty_password_credential.py
Normal file
21
skyvern/client/types/non_empty_password_credential.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# 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
|
||||
|
||||
ObserverThoughtType = typing.Union[typing.Literal["plan", "metadata", "user_goal_check", "internal_plan"], typing.Any]
|
||||
5
skyvern/client/types/output.py
Normal file
5
skyvern/client/types/output.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
Output = typing.Union[typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str]
|
||||
19
skyvern/client/types/password_credential_response.py
Normal file
19
skyvern/client/types/password_credential_response.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# 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
|
||||
|
|
@ -16,6 +16,11 @@ ProxyLocation = typing.Union[
|
|||
"RESIDENTIAL_IN",
|
||||
"RESIDENTIAL_JP",
|
||||
"RESIDENTIAL_FR",
|
||||
"RESIDENTIAL_DE",
|
||||
"RESIDENTIAL_NZ",
|
||||
"RESIDENTIAL_ZA",
|
||||
"RESIDENTIAL_AR",
|
||||
"RESIDENTIAL_ISP",
|
||||
"NONE",
|
||||
],
|
||||
typing.Any,
|
||||
|
|
|
|||
5
skyvern/client/types/run_engine.py
Normal file
5
skyvern/client/types/run_engine.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
RunEngine = typing.Union[typing.Literal["skyvern-1.0", "skyvern-2.0"], typing.Any]
|
||||
|
|
@ -8,11 +8,11 @@ from .workflow_parameter_default_value import WorkflowParameterDefaultValue
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
from .value import Value
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class ContextParameterSource_Workflow(UniversalBaseModel):
|
||||
class Source_Workflow(UniversalBaseModel):
|
||||
parameter_type: typing.Literal["workflow"] = "workflow"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
|
|
@ -34,12 +34,12 @@ class ContextParameterSource_Workflow(UniversalBaseModel):
|
|||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
class ContextParameterSource_Context(UniversalBaseModel):
|
||||
class Source_Context(UniversalBaseModel):
|
||||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -54,7 +54,7 @@ class ContextParameterSource_Context(UniversalBaseModel):
|
|||
from .context_parameter import ContextParameter # noqa: E402
|
||||
|
||||
|
||||
class ContextParameterSource_AwsSecret(UniversalBaseModel):
|
||||
class Source_AwsSecret(UniversalBaseModel):
|
||||
parameter_type: typing.Literal["aws_secret"] = "aws_secret"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
|
|
@ -75,7 +75,7 @@ class ContextParameterSource_AwsSecret(UniversalBaseModel):
|
|||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
class ContextParameterSource_BitwardenLoginCredential(UniversalBaseModel):
|
||||
class Source_BitwardenLoginCredential(UniversalBaseModel):
|
||||
parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
|
|
@ -84,8 +84,9 @@ class ContextParameterSource_BitwardenLoginCredential(UniversalBaseModel):
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -100,7 +101,7 @@ class ContextParameterSource_BitwardenLoginCredential(UniversalBaseModel):
|
|||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
class ContextParameterSource_BitwardenSensitiveInformation(UniversalBaseModel):
|
||||
class Source_BitwardenSensitiveInformation(UniversalBaseModel):
|
||||
parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
|
|
@ -126,7 +127,7 @@ class ContextParameterSource_BitwardenSensitiveInformation(UniversalBaseModel):
|
|||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
class ContextParameterSource_BitwardenCreditCardData(UniversalBaseModel):
|
||||
class Source_BitwardenCreditCardData(UniversalBaseModel):
|
||||
parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
|
|
@ -151,7 +152,7 @@ class ContextParameterSource_BitwardenCreditCardData(UniversalBaseModel):
|
|||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
class ContextParameterSource_Output(UniversalBaseModel):
|
||||
class Source_Output(UniversalBaseModel):
|
||||
parameter_type: typing.Literal["output"] = "output"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
|
|
@ -171,14 +172,35 @@ class ContextParameterSource_Output(UniversalBaseModel):
|
|||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
ContextParameterSource = typing.Union[
|
||||
ContextParameterSource_Workflow,
|
||||
ContextParameterSource_Context,
|
||||
ContextParameterSource_AwsSecret,
|
||||
ContextParameterSource_BitwardenLoginCredential,
|
||||
ContextParameterSource_BitwardenSensitiveInformation,
|
||||
ContextParameterSource_BitwardenCreditCardData,
|
||||
ContextParameterSource_Output,
|
||||
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(ContextParameter, ContextParameterSource_Context=ContextParameterSource_Context)
|
||||
update_forward_refs(ContextParameterSource_Context)
|
||||
update_forward_refs(Source_Context)
|
||||
|
|
@ -22,6 +22,8 @@ class Step(UniversalBaseModel):
|
|||
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:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -9,7 +8,6 @@ from .task_block_data_schema import TaskBlockDataSchema
|
|||
from .task_block_parameters_item import TaskBlockParametersItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class TaskBlock(UniversalBaseModel):
|
||||
|
|
@ -33,6 +31,7 @@ class TaskBlock(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -42,6 +41,3 @@ class TaskBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, TaskBlock=TaskBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class TaskBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class TaskBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class TaskBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # noqa: E402
|
||||
from .source import Source # noqa: E402
|
||||
|
||||
|
||||
class TaskBlockParametersItem_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 TaskBlockParametersItem_Output(UniversalBaseModel):
|
||||
|
|
@ -178,8 +200,8 @@ TaskBlockParametersItem = typing.Union[
|
|||
TaskBlockParametersItem_BitwardenLoginCredential,
|
||||
TaskBlockParametersItem_BitwardenSensitiveInformation,
|
||||
TaskBlockParametersItem_Context,
|
||||
TaskBlockParametersItem_Credential,
|
||||
TaskBlockParametersItem_Output,
|
||||
TaskBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, TaskBlockParametersItem_Context=TaskBlockParametersItem_Context)
|
||||
update_forward_refs(TaskBlockParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ from .task_status import TaskStatus
|
|||
import datetime as dt
|
||||
import typing
|
||||
from .task_response_extracted_information import TaskResponseExtractedInformation
|
||||
from .file_info import FileInfo
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
|
||||
|
|
@ -21,6 +22,7 @@ class TaskResponse(UniversalBaseModel):
|
|||
screenshot_url: typing.Optional[str] = None
|
||||
recording_url: typing.Optional[str] = None
|
||||
browser_console_log_url: typing.Optional[str] = None
|
||||
downloaded_files: typing.Optional[typing.List[FileInfo]] = None
|
||||
downloaded_file_urls: typing.Optional[typing.List[str]] = None
|
||||
failure_reason: typing.Optional[str] = None
|
||||
errors: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
|
||||
|
|
|
|||
41
skyvern/client/types/task_run_response.py
Normal file
41
skyvern/client/types/task_run_response.py
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from ..core.pydantic_utilities import UniversalBaseModel
|
||||
import typing
|
||||
from .run_engine import RunEngine
|
||||
from .task_run_status import TaskRunStatus
|
||||
from .output import Output
|
||||
from .proxy_location import ProxyLocation
|
||||
from .task_run_response_data_extraction_schema import TaskRunResponseDataExtractionSchema
|
||||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
|
||||
|
||||
class TaskRunResponse(UniversalBaseModel):
|
||||
run_id: str
|
||||
engine: typing.Optional[RunEngine] = None
|
||||
status: TaskRunStatus
|
||||
goal: typing.Optional[str] = None
|
||||
url: typing.Optional[str] = None
|
||||
output: typing.Optional[Output] = None
|
||||
failure_reason: typing.Optional[str] = None
|
||||
webhook_url: typing.Optional[str] = None
|
||||
totp_identifier: typing.Optional[str] = None
|
||||
totp_url: typing.Optional[str] = None
|
||||
proxy_location: typing.Optional[ProxyLocation] = None
|
||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
||||
data_extraction_schema: typing.Optional[TaskRunResponseDataExtractionSchema] = None
|
||||
title: typing.Optional[str] = None
|
||||
max_steps: typing.Optional[int] = 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
|
||||
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
import typing
|
||||
|
||||
WorkflowRunBlockOutput = typing.Union[
|
||||
TaskRunResponseDataExtractionSchema = typing.Union[
|
||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
||||
]
|
||||
8
skyvern/client/types/task_run_status.py
Normal file
8
skyvern/client/types/task_run_status.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
TaskRunStatus = typing.Union[
|
||||
typing.Literal["created", "queued", "running", "timed_out", "failed", "terminated", "completed", "canceled"],
|
||||
typing.Any,
|
||||
]
|
||||
|
|
@ -1,18 +1,19 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from ..core.pydantic_utilities import UniversalBaseModel
|
||||
from .observer_task_status import ObserverTaskStatus
|
||||
from .task_v2status import TaskV2Status
|
||||
import typing
|
||||
from .observer_task_output import ObserverTaskOutput
|
||||
from .output import Output
|
||||
from .proxy_location import ProxyLocation
|
||||
from .task_v2extracted_information_schema import TaskV2ExtractedInformationSchema
|
||||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
|
||||
|
||||
class ObserverTask(UniversalBaseModel):
|
||||
class TaskV2(UniversalBaseModel):
|
||||
task_id: str
|
||||
status: ObserverTaskStatus
|
||||
status: TaskV2Status
|
||||
organization_id: typing.Optional[str] = None
|
||||
workflow_run_id: typing.Optional[str] = None
|
||||
workflow_id: typing.Optional[str] = None
|
||||
|
|
@ -20,11 +21,13 @@ class ObserverTask(UniversalBaseModel):
|
|||
prompt: typing.Optional[str] = None
|
||||
url: typing.Optional[str] = None
|
||||
summary: typing.Optional[str] = None
|
||||
output: typing.Optional[ObserverTaskOutput] = None
|
||||
output: typing.Optional[Output] = None
|
||||
totp_verification_url: typing.Optional[str] = None
|
||||
totp_identifier: typing.Optional[str] = None
|
||||
proxy_location: typing.Optional[ProxyLocation] = None
|
||||
webhook_callback_url: typing.Optional[str] = None
|
||||
extracted_information_schema: typing.Optional[TaskV2ExtractedInformationSchema] = None
|
||||
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
||||
created_at: dt.datetime
|
||||
modified_at: dt.datetime
|
||||
|
||||
|
|
@ -16,6 +16,7 @@ class TaskV2Block(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
import typing
|
||||
|
||||
ActionResultData = typing.Union[
|
||||
TaskV2ExtractedInformationSchema = typing.Union[
|
||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
||||
]
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import typing
|
||||
|
||||
ObserverTaskStatus = typing.Union[
|
||||
TaskV2Status = typing.Union[
|
||||
typing.Literal["created", "queued", "running", "failed", "terminated", "canceled", "timed_out", "completed"],
|
||||
typing.Any,
|
||||
]
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -8,7 +7,6 @@ import typing
|
|||
from .text_prompt_block_parameters_item import TextPromptBlockParametersItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class TextPromptBlock(UniversalBaseModel):
|
||||
|
|
@ -28,6 +26,3 @@ class TextPromptBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, TextPromptBlock=TextPromptBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class TextPromptBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel)
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class TextPromptBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class TextPromptBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # noqa: E402
|
||||
from .source import Source # noqa: E402
|
||||
|
||||
|
||||
class TextPromptBlockParametersItem_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 TextPromptBlockParametersItem_Output(UniversalBaseModel):
|
||||
|
|
@ -178,8 +200,8 @@ TextPromptBlockParametersItem = typing.Union[
|
|||
TextPromptBlockParametersItem_BitwardenLoginCredential,
|
||||
TextPromptBlockParametersItem_BitwardenSensitiveInformation,
|
||||
TextPromptBlockParametersItem_Context,
|
||||
TextPromptBlockParametersItem_Credential,
|
||||
TextPromptBlockParametersItem_Output,
|
||||
TextPromptBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, TextPromptBlockParametersItem_Context=TextPromptBlockParametersItem_Context)
|
||||
update_forward_refs(TextPromptBlockParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
from ..core.pydantic_utilities import UniversalBaseModel
|
||||
import typing
|
||||
from .observer_thought_type import ObserverThoughtType
|
||||
from .observer_thought_scenario import ObserverThoughtScenario
|
||||
from .thought_type import ThoughtType
|
||||
from .thought_scenario import ThoughtScenario
|
||||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
|
||||
|
||||
class ObserverThought(UniversalBaseModel):
|
||||
class Thought(UniversalBaseModel):
|
||||
thought_id: str
|
||||
task_id: str
|
||||
organization_id: typing.Optional[str] = None
|
||||
|
|
@ -21,11 +21,13 @@ class ObserverThought(UniversalBaseModel):
|
|||
observation: typing.Optional[str] = None
|
||||
thought: typing.Optional[str] = None
|
||||
answer: typing.Optional[str] = None
|
||||
thought_type: typing.Optional[ObserverThoughtType] = None
|
||||
thought_scenario: typing.Optional[ObserverThoughtScenario] = None
|
||||
thought_type: typing.Optional[ThoughtType] = None
|
||||
thought_scenario: typing.Optional[ThoughtScenario] = None
|
||||
output: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = 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
|
||||
thought_cost: typing.Optional[float] = None
|
||||
created_at: dt.datetime
|
||||
modified_at: dt.datetime
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import typing
|
||||
|
||||
ObserverThoughtScenario = typing.Union[
|
||||
ThoughtScenario = typing.Union[
|
||||
typing.Literal[
|
||||
"generate_plan",
|
||||
"user_goal_check",
|
||||
5
skyvern/client/types/thought_type.py
Normal file
5
skyvern/client/types/thought_type.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
ThoughtType = typing.Union[typing.Literal["plan", "metadata", "user_goal_check", "internal_plan"], typing.Any]
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -9,7 +8,6 @@ from .url_block_data_schema import UrlBlockDataSchema
|
|||
from .url_block_parameters_item import UrlBlockParametersItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class UrlBlock(UniversalBaseModel):
|
||||
|
|
@ -33,6 +31,7 @@ class UrlBlock(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -42,6 +41,3 @@ class UrlBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, UrlBlock=UrlBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class UrlBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class UrlBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class UrlBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # noqa: E402
|
||||
from .source import Source # noqa: E402
|
||||
|
||||
|
||||
class UrlBlockParametersItem_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 UrlBlockParametersItem_Output(UniversalBaseModel):
|
||||
|
|
@ -178,8 +200,8 @@ UrlBlockParametersItem = typing.Union[
|
|||
UrlBlockParametersItem_BitwardenLoginCredential,
|
||||
UrlBlockParametersItem_BitwardenSensitiveInformation,
|
||||
UrlBlockParametersItem_Context,
|
||||
UrlBlockParametersItem_Credential,
|
||||
UrlBlockParametersItem_Output,
|
||||
UrlBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, UrlBlockParametersItem_Context=UrlBlockParametersItem_Context)
|
||||
update_forward_refs(UrlBlockParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -9,7 +8,6 @@ from .validation_block_data_schema import ValidationBlockDataSchema
|
|||
from .validation_block_parameters_item import ValidationBlockParametersItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class ValidationBlock(UniversalBaseModel):
|
||||
|
|
@ -33,6 +31,7 @@ class ValidationBlock(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -42,6 +41,3 @@ class ValidationBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, ValidationBlock=ValidationBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class ValidationBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel)
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class ValidationBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class ValidationBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # noqa: E402
|
||||
from .source import Source # noqa: E402
|
||||
|
||||
|
||||
class ValidationBlockParametersItem_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 ValidationBlockParametersItem_Output(UniversalBaseModel):
|
||||
|
|
@ -178,8 +200,8 @@ ValidationBlockParametersItem = typing.Union[
|
|||
ValidationBlockParametersItem_BitwardenLoginCredential,
|
||||
ValidationBlockParametersItem_BitwardenSensitiveInformation,
|
||||
ValidationBlockParametersItem_Context,
|
||||
ValidationBlockParametersItem_Credential,
|
||||
ValidationBlockParametersItem_Output,
|
||||
ValidationBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, ValidationBlockParametersItem_Context=ValidationBlockParametersItem_Context)
|
||||
update_forward_refs(ValidationBlockParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
import typing
|
||||
|
||||
ContextParameterValue = typing.Union[
|
||||
Value = typing.Union[
|
||||
str, int, float, bool, typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]]
|
||||
]
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
# 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
|
||||
|
|
@ -8,7 +7,6 @@ import typing
|
|||
from .wait_block_parameters_item import WaitBlockParametersItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class WaitBlock(UniversalBaseModel):
|
||||
|
|
@ -26,6 +24,3 @@ class WaitBlock(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, WaitBlock=WaitBlock)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class WaitBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class WaitBlockParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class WaitBlockParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # noqa: E402
|
||||
from .source import Source # noqa: E402
|
||||
|
||||
|
||||
class WaitBlockParametersItem_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 WaitBlockParametersItem_Output(UniversalBaseModel):
|
||||
|
|
@ -178,8 +200,8 @@ WaitBlockParametersItem = typing.Union[
|
|||
WaitBlockParametersItem_BitwardenLoginCredential,
|
||||
WaitBlockParametersItem_BitwardenSensitiveInformation,
|
||||
WaitBlockParametersItem_Context,
|
||||
WaitBlockParametersItem_Credential,
|
||||
WaitBlockParametersItem_Output,
|
||||
WaitBlockParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, WaitBlockParametersItem_Context=WaitBlockParametersItem_Context)
|
||||
update_forward_refs(WaitBlockParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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 .for_loop_block import ForLoopBlock
|
||||
|
|
@ -11,7 +10,6 @@ from .workflow_status import WorkflowStatus
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class Workflow(UniversalBaseModel):
|
||||
|
|
@ -41,7 +39,3 @@ class Workflow(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, Workflow=Workflow)
|
||||
update_forward_refs(ForLoopBlock, Workflow=Workflow)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# 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 .for_loop_block import ForLoopBlock
|
||||
|
|
@ -9,7 +8,6 @@ from .workflow_definition_parameters_item import WorkflowDefinitionParametersIte
|
|||
from .workflow_definition_blocks_item import WorkflowDefinitionBlocksItem
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ..core.pydantic_utilities import update_forward_refs
|
||||
|
||||
|
||||
class WorkflowDefinition(UniversalBaseModel):
|
||||
|
|
@ -24,7 +22,3 @@ class WorkflowDefinition(UniversalBaseModel):
|
|||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
update_forward_refs(ContextParameter, WorkflowDefinition=WorkflowDefinition)
|
||||
update_forward_refs(ForLoopBlock, WorkflowDefinition=WorkflowDefinition)
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ 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
|
||||
|
|
@ -54,6 +57,7 @@ class WorkflowDefinitionBlocksItem_Action(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -122,6 +126,7 @@ class WorkflowDefinitionBlocksItem_Extraction(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -155,6 +160,29 @@ class WorkflowDefinitionBlocksItem_FileDownload(UniversalBaseModel):
|
|||
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 WorkflowDefinitionBlocksItem_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
|
||||
|
|
@ -230,6 +258,7 @@ class WorkflowDefinitionBlocksItem_GotoUrl(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -263,6 +292,7 @@ class WorkflowDefinitionBlocksItem_Login(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -296,6 +326,7 @@ class WorkflowDefinitionBlocksItem_Navigation(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -372,6 +403,7 @@ class WorkflowDefinitionBlocksItem_Task(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -393,6 +425,7 @@ class WorkflowDefinitionBlocksItem_TaskV2(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -463,6 +496,7 @@ class WorkflowDefinitionBlocksItem_Validation(UniversalBaseModel):
|
|||
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
|
||||
|
|
@ -498,6 +532,7 @@ WorkflowDefinitionBlocksItem = typing.Union[
|
|||
WorkflowDefinitionBlocksItem_DownloadToS3,
|
||||
WorkflowDefinitionBlocksItem_Extraction,
|
||||
WorkflowDefinitionBlocksItem_FileDownload,
|
||||
WorkflowDefinitionBlocksItem_FileUpload,
|
||||
WorkflowDefinitionBlocksItem_FileUrlParser,
|
||||
WorkflowDefinitionBlocksItem_ForLoop,
|
||||
WorkflowDefinitionBlocksItem_GotoUrl,
|
||||
|
|
@ -512,19 +547,4 @@ WorkflowDefinitionBlocksItem = typing.Union[
|
|||
WorkflowDefinitionBlocksItem_Validation,
|
||||
WorkflowDefinitionBlocksItem_Wait,
|
||||
]
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_Action=WorkflowDefinitionBlocksItem_Action)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_Code=WorkflowDefinitionBlocksItem_Code)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_Extraction=WorkflowDefinitionBlocksItem_Extraction)
|
||||
update_forward_refs(
|
||||
ContextParameter, WorkflowDefinitionBlocksItem_FileDownload=WorkflowDefinitionBlocksItem_FileDownload
|
||||
)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_ForLoop=WorkflowDefinitionBlocksItem_ForLoop)
|
||||
update_forward_refs(ForLoopBlock, WorkflowDefinitionBlocksItem_ForLoop=WorkflowDefinitionBlocksItem_ForLoop)
|
||||
update_forward_refs(WorkflowDefinitionBlocksItem_ForLoop)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_GotoUrl=WorkflowDefinitionBlocksItem_GotoUrl)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_Login=WorkflowDefinitionBlocksItem_Login)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_Navigation=WorkflowDefinitionBlocksItem_Navigation)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_Task=WorkflowDefinitionBlocksItem_Task)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_TextPrompt=WorkflowDefinitionBlocksItem_TextPrompt)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_Validation=WorkflowDefinitionBlocksItem_Validation)
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionBlocksItem_Wait=WorkflowDefinitionBlocksItem_Wait)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import typing
|
|||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from .context_parameter_value import ContextParameterValue
|
||||
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
|
||||
|
|
@ -67,8 +67,9 @@ class WorkflowDefinitionParametersItem_BitwardenLoginCredential(UniversalBaseMod
|
|||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
url_parameter_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
|
||||
|
|
@ -113,8 +114,8 @@ class WorkflowDefinitionParametersItem_Context(UniversalBaseModel):
|
|||
parameter_type: typing.Literal["context"] = "context"
|
||||
key: str
|
||||
description: typing.Optional[str] = None
|
||||
source: "ContextParameterSource"
|
||||
value: typing.Optional[ContextParameterValue] = 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
|
||||
|
|
@ -127,7 +128,28 @@ class WorkflowDefinitionParametersItem_Context(UniversalBaseModel):
|
|||
|
||||
|
||||
from .context_parameter import ContextParameter # noqa: E402
|
||||
from .context_parameter_source import ContextParameterSource # noqa: E402
|
||||
from .source import Source # noqa: E402
|
||||
|
||||
|
||||
class WorkflowDefinitionParametersItem_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 WorkflowDefinitionParametersItem_Output(UniversalBaseModel):
|
||||
|
|
@ -178,8 +200,8 @@ WorkflowDefinitionParametersItem = typing.Union[
|
|||
WorkflowDefinitionParametersItem_BitwardenLoginCredential,
|
||||
WorkflowDefinitionParametersItem_BitwardenSensitiveInformation,
|
||||
WorkflowDefinitionParametersItem_Context,
|
||||
WorkflowDefinitionParametersItem_Credential,
|
||||
WorkflowDefinitionParametersItem_Output,
|
||||
WorkflowDefinitionParametersItem_Workflow,
|
||||
]
|
||||
update_forward_refs(ContextParameter, WorkflowDefinitionParametersItem_Context=WorkflowDefinitionParametersItem_Context)
|
||||
update_forward_refs(WorkflowDefinitionParametersItem_Context)
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
import typing
|
||||
|
||||
WorkflowParameterType = typing.Union[
|
||||
typing.Literal["string", "integer", "float", "boolean", "json", "file_url"], typing.Any
|
||||
typing.Literal["string", "integer", "float", "boolean", "json", "file_url", "credential_id"], typing.Any
|
||||
]
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ class WorkflowRun(UniversalBaseModel):
|
|||
totp_identifier: typing.Optional[str] = None
|
||||
failure_reason: typing.Optional[str] = None
|
||||
parent_workflow_run_id: typing.Optional[str] = None
|
||||
workflow_title: typing.Optional[str] = None
|
||||
created_at: dt.datetime
|
||||
modified_at: dt.datetime
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
from ..core.pydantic_utilities import UniversalBaseModel
|
||||
import typing
|
||||
from .block_type import BlockType
|
||||
from .workflow_run_block_output import WorkflowRunBlockOutput
|
||||
from .output import Output
|
||||
from .workflow_run_block_navigation_payload import WorkflowRunBlockNavigationPayload
|
||||
from .workflow_run_block_data_schema import WorkflowRunBlockDataSchema
|
||||
from .action import Action
|
||||
|
|
@ -22,7 +22,7 @@ class WorkflowRunBlock(UniversalBaseModel):
|
|||
block_type: BlockType
|
||||
label: typing.Optional[str] = None
|
||||
status: typing.Optional[str] = None
|
||||
output: typing.Optional[WorkflowRunBlockOutput] = None
|
||||
output: typing.Optional[Output] = None
|
||||
continue_on_failure: typing.Optional[bool] = None
|
||||
failure_reason: typing.Optional[str] = None
|
||||
task_id: typing.Optional[str] = None
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ from .workflow_run_status import WorkflowRunStatus
|
|||
import typing
|
||||
from .proxy_location import ProxyLocation
|
||||
import datetime as dt
|
||||
from .observer_task import ObserverTask
|
||||
from .file_info import FileInfo
|
||||
from .task_v2 import TaskV2
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
|
||||
|
|
@ -24,11 +25,13 @@ class WorkflowRunResponse(UniversalBaseModel):
|
|||
parameters: typing.Dict[str, typing.Optional[typing.Any]]
|
||||
screenshot_urls: typing.Optional[typing.List[str]] = None
|
||||
recording_url: typing.Optional[str] = None
|
||||
downloaded_files: typing.Optional[typing.List[FileInfo]] = None
|
||||
downloaded_file_urls: typing.Optional[typing.List[str]] = None
|
||||
outputs: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
||||
total_steps: typing.Optional[int] = None
|
||||
total_cost: typing.Optional[float] = None
|
||||
observer_task: typing.Optional[ObserverTask] = None
|
||||
task_v2: typing.Optional[TaskV2] = None
|
||||
workflow_title: typing.Optional[str] = None
|
||||
|
||||
if IS_PYDANTIC_V2:
|
||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
||||
|
|
@ -5,7 +5,7 @@ from ..core.pydantic_utilities import UniversalBaseModel
|
|||
from .workflow_run_timeline_type import WorkflowRunTimelineType
|
||||
import typing
|
||||
from .workflow_run_block import WorkflowRunBlock
|
||||
from .observer_thought import ObserverThought
|
||||
from .thought import Thought
|
||||
import datetime as dt
|
||||
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
|
|
@ -15,7 +15,7 @@ from ..core.pydantic_utilities import update_forward_refs
|
|||
class WorkflowRunTimeline(UniversalBaseModel):
|
||||
type: WorkflowRunTimelineType
|
||||
block: typing.Optional[WorkflowRunBlock] = None
|
||||
thought: typing.Optional[ObserverThought] = None
|
||||
thought: typing.Optional[Thought] = None
|
||||
children: typing.Optional[typing.List["WorkflowRunTimeline"]] = None
|
||||
created_at: dt.datetime
|
||||
modified_at: dt.datetime
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue