{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-workflowservice-describe-workflow-execution-response-schema.json",
  "title": "workflowservice.DescribeWorkflowExecutionResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-jobs-api-openapi.yml#/components/schemas/workflowservice.DescribeWorkflowExecutionResponse",
  "type": "object",
  "properties": {
    "callbacks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/workflow.CallbackInfo"
      }
    },
    "execution_config": {
      "$ref": "#/$defs/workflow.WorkflowExecutionConfig"
    },
    "pending_activities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/workflow.PendingActivityInfo"
      }
    },
    "pending_children": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/workflow.PendingChildExecutionInfo"
      }
    },
    "pending_nexus_operations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/workflow.PendingNexusOperationInfo"
      }
    },
    "pending_workflow_task": {
      "$ref": "#/$defs/workflow.PendingWorkflowTaskInfo"
    },
    "workflow_execution_info": {
      "$ref": "#/$defs/workflow.WorkflowExecutionInfo"
    },
    "workflow_extended_info": {
      "$ref": "#/$defs/workflow.WorkflowExecutionExtendedInfo"
    }
  },
  "$defs": {
    "activity.ActivityOptions": {
      "type": "object",
      "properties": {
        "heartbeat_timeout": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "retry_policy": {
          "$ref": "#/$defs/common.RetryPolicy"
        },
        "schedule_to_close_timeout": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "schedule_to_start_timeout": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "start_to_close_timeout": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "task_queue": {
          "$ref": "#/$defs/taskqueue.TaskQueue"
        }
      },
      "description": "Current activity options. May be different from the one used to start the activity."
    },
    "common.ActivityType": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "common.Callback": {
      "type": "object",
      "properties": {
        "links": {
          "description": "Links associated with the callback. It can be used to link to underlying resources of the\ncallback.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/common.Link"
          }
        },
        "variant": {
          "description": "Types that are valid to be assigned to Variant:\n\n\t*Callback_Nexus_\n\t*Callback_Internal_"
        }
      },
      "description": "Information on how this callback should be invoked (e.g. its URL and type)."
    },
    "common.Link": {
      "type": "object",
      "properties": {
        "variant": {
          "description": "Types that are valid to be assigned to Variant:\n\n\t*Link_WorkflowEvent_\n\t*Link_BatchJob_"
        }
      }
    },
    "common.Memo": {
      "type": "object",
      "properties": {
        "fields": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/common.Payload"
          }
        }
      }
    },
    "common.Payload": {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        }
      },
      "description": "Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of\nerrors originating in user code which might contain sensitive information.\nThe `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto\nmessage.\n\nSDK authors:\n- The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:\n  - Uses a JSON object to represent `{ message, stack_trace }`.\n  - Overwrites the original message with \"Encoded failure\" to indicate that more information could be extracted.\n  - Overwrites the original stack_trace with an empty string.\n  - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed\n    by the user-provided PayloadCodec\n\n- If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.\n(-- api-linter: core::0203::optional=disabled --)"
    },
    "common.Payloads": {
      "type": "object",
      "properties": {
        "payloads": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/common.Payload"
          }
        }
      }
    },
    "common.Priority": {
      "type": "object",
      "properties": {
        "fairness_key": {
          "description": "Fairness key is a short string that's used as a key for a fairness\nbalancing mechanism. It may correspond to a tenant id, or to a fixed\nstring like \"high\" or \"low\". The default is the empty string.\n\nThe fairness mechanism attempts to dispatch tasks for a given key in\nproportion to its weight. For example, using a thousand distinct tenant\nids, each with a weight of 1.0 (the default) will result in each tenant\ngetting a roughly equal share of task dispatch throughput.\n\n(Note: this does not imply equal share of worker capacity! Fairness\ndecisions are made based on queue statistics, not\ncurrent worker load.)\n\nAs another example, using keys \"high\" and \"low\" with weight 9.0 and 1.0\nrespectively will prefer dispatching \"high\" tasks over \"low\" tasks at a\n9:1 ratio, while allowing either key to use all worker capacity if the\nother is not present.\n\nAll fairness mechanisms, including rate limits, are best-effort and\nprobabilistic. The results may not match what a \"perfect\" algorithm with\ninfinite resources would produce. The more unique keys are used, the less\naccurate the results will be.\n\nFairness keys are limited to 64 bytes.",
          "type": "string"
        },
        "fairness_weight": {
          "description": "Fairness weight for a task can come from multiple sources for\nflexibility. From highest to lowest precedence:\n 1. Weights for a small set of keys can be overridden in task queue\n    configuration with an API.\n 2. It can be attached to the workflow/activity in this field.\n 3. The default weight of 1.0 will be used.\n\nWeight values are clamped to the range [0.001, 1000].",
          "type": "number"
        },
        "priority_key": {
          "description": "Priority key is a positive integer from 1 to n, where smaller integers\ncorrespond to higher priorities (tasks run sooner). In general, tasks in\na queue should be processed in close to priority order, although small\ndeviations are possible.\n\nThe maximum priority value (minimum priority) is determined by server\nconfiguration, and defaults to 5.\n\nIf priority is not present (or zero), then the effective priority will be\nthe default priority, which is calculated by (min+max)/2. With the\ndefault max of 5, and min of 1, that comes out to 3.",
          "type": "integer"
        }
      },
      "description": "Priority metadata"
    },
    "common.RetryPolicy": {
      "type": "object",
      "properties": {
        "backoff_coefficient": {
          "description": "Coefficient used to calculate the next retry interval.\nThe next retry interval is previous interval multiplied by the coefficient.\nMust be 1 or larger.",
          "type": "number"
        },
        "initial_interval": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "maximum_attempts": {
          "description": "Maximum number of attempts. When exceeded the retries stop even if not expired yet.\n1 disables retries. 0 means unlimited (up to the timeouts)",
          "type": "integer"
        },
        "maximum_interval": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "non_retryable_error_types": {
          "description": "Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that\nthis is not a substring match, the error *type* (not message) must match exactly.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "common.SearchAttributes": {
      "type": "object",
      "properties": {
        "indexed_fields": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/common.Payload"
          }
        }
      }
    },
    "common.WorkerVersionStamp": {
      "type": "object",
      "properties": {
        "build_id": {
          "description": "An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this\nmessage is included in requests which previously used that.",
          "type": "string"
        },
        "use_versioning": {
          "description": "If set, the worker is opting in to worker versioning. Otherwise, this is used only as a\nmarker for workflow reset points and the BuildIDs search attribute.",
          "type": "boolean"
        }
      },
      "description": "If set, the most recent worker version stamp that appeared in a workflow task completion\nDeprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto."
    },
    "common.WorkflowExecution": {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string"
        },
        "workflow_id": {
          "type": "string"
        }
      },
      "description": "Contains information about the root workflow execution.\nThe root workflow execution is defined as follows:\n1. A workflow without parent workflow is its own root workflow.\n2. A workflow that has a parent workflow has the same root workflow as its parent workflow.\nNote: workflows continued as new or reseted may or may not have parents, check examples below.\n\nExamples:\n\n\tScenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.\n\t  - The root workflow of all three workflows is W1.\n\tScenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.\n\t  - The root workflow of all three workflows is W1.\n\tScenario 3: Workflow W1 continued as new W2.\n\t  - The root workflow of W1 is W1 and the root workflow of W2 is W2.\n\tScenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3\n\t  - The root workflow of all three workflows is W1.\n\tScenario 5: Workflow W1 is reseted, creating W2.\n\t  - The root workflow of W1 is W1 and the root workflow of W2 is W2."
    },
    "common.WorkflowType": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "deployment.Deployment": {
      "type": "object",
      "properties": {
        "build_id": {
          "description": "Build ID changes with each version of the worker when the worker program code and/or config\nchanges.",
          "type": "string"
        },
        "series_name": {
          "description": "Different versions of the same worker service/application are related together by having a\nshared series name.\nOut of all deployments of a series, one can be designated as the current deployment, which\nreceives new workflow executions and new tasks of workflows with\n`VERSIONING_BEHAVIOR_AUTO_UPGRADE` versioning behavior.",
          "type": "string"
        }
      },
      "description": "The worker deployment that completed the last workflow task of this workflow execution. Must\nbe present if `behavior` is set. Absent value means no workflow task is completed, or the\nlast workflow task was completed by an unversioned worker. Unversioned workers may still send\na deployment value which will be stored here, so the right way to check if an execution is\nversioned if an execution is versioned or not is via the `behavior` field.\nNote that `deployment` is overridden by `versioning_override` if the latter is present.\nDeprecated. Use `deployment_version`.\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto."
    },
    "durationpb.Duration": {
      "type": "object",
      "properties": {
        "nanos": {
          "description": "Signed fractions of a second at nanosecond resolution of the span\nof time. Durations less than one second are represented with a 0\n`seconds` field and a positive or negative `nanos` field. For durations\nof one second or more, a non-zero value for the `nanos` field must be\nof the same sign as the `seconds` field. Must be from -999,999,999\nto +999,999,999 inclusive.",
          "type": "integer"
        },
        "seconds": {
          "description": "Signed seconds of the span of time. Must be from -315,576,000,000\nto +315,576,000,000 inclusive. Note: these bounds are computed from:\n60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years",
          "type": "integer"
        }
      },
      "description": "Limits time an activity task can stay in a task queue before a worker picks it up. This\ntimeout is always non retryable, as all a retry would achieve is to put it back into the same\nqueue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not\nspecified.\n\n(-- api-linter: core::0140::prepositions=disabled\n\n\taip.dev/not-precedent: \"to\" is used to indicate interval. --)"
    },
    "enums.EventType": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        13,
        14,
        15,
        16,
        17,
        18,
        19,
        20,
        21,
        22,
        23,
        24,
        25,
        26,
        27,
        28,
        29,
        30,
        31,
        32,
        33,
        34,
        35,
        36,
        37,
        38,
        39,
        40,
        47,
        41,
        42,
        43,
        44,
        45,
        46,
        48,
        49,
        50,
        51,
        52,
        53,
        54,
        55,
        56,
        57
      ],
      "x-enum-varnames": [
        "EVENT_TYPE_UNSPECIFIED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_FAILED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT",
        "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED",
        "EVENT_TYPE_WORKFLOW_TASK_STARTED",
        "EVENT_TYPE_WORKFLOW_TASK_COMPLETED",
        "EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT",
        "EVENT_TYPE_WORKFLOW_TASK_FAILED",
        "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED",
        "EVENT_TYPE_ACTIVITY_TASK_STARTED",
        "EVENT_TYPE_ACTIVITY_TASK_COMPLETED",
        "EVENT_TYPE_ACTIVITY_TASK_FAILED",
        "EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT",
        "EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED",
        "EVENT_TYPE_ACTIVITY_TASK_CANCELED",
        "EVENT_TYPE_TIMER_STARTED",
        "EVENT_TYPE_TIMER_FIRED",
        "EVENT_TYPE_TIMER_CANCELED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED",
        "EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED",
        "EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED",
        "EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED",
        "EVENT_TYPE_MARKER_RECORDED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW",
        "EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED",
        "EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED",
        "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED",
        "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED",
        "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED",
        "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED",
        "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT",
        "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED",
        "EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED",
        "EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED",
        "EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED",
        "EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES",
        "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ADMITTED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED",
        "EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY",
        "EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY",
        "EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED",
        "EVENT_TYPE_NEXUS_OPERATION_SCHEDULED",
        "EVENT_TYPE_NEXUS_OPERATION_STARTED",
        "EVENT_TYPE_NEXUS_OPERATION_COMPLETED",
        "EVENT_TYPE_NEXUS_OPERATION_FAILED",
        "EVENT_TYPE_NEXUS_OPERATION_CANCELED",
        "EVENT_TYPE_NEXUS_OPERATION_TIMED_OUT",
        "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED",
        "EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED",
        "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED",
        "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_FAILED"
      ],
      "description": "The event type of the history event generated by the request."
    },
    "enums.NexusOperationCancellationState": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "x-enum-varnames": [
        "NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED",
        "NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED",
        "NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF",
        "NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED",
        "NEXUS_OPERATION_CANCELLATION_STATE_FAILED",
        "NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT",
        "NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED"
      ]
    },
    "enums.ParentClosePolicy": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3
      ],
      "x-enum-varnames": [
        "PARENT_CLOSE_POLICY_UNSPECIFIED",
        "PARENT_CLOSE_POLICY_TERMINATE",
        "PARENT_CLOSE_POLICY_ABANDON",
        "PARENT_CLOSE_POLICY_REQUEST_CANCEL"
      ],
      "description": "Default: PARENT_CLOSE_POLICY_TERMINATE."
    },
    "enums.PendingActivityState": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5
      ],
      "x-enum-varnames": [
        "PENDING_ACTIVITY_STATE_UNSPECIFIED",
        "PENDING_ACTIVITY_STATE_SCHEDULED",
        "PENDING_ACTIVITY_STATE_STARTED",
        "PENDING_ACTIVITY_STATE_CANCEL_REQUESTED",
        "PENDING_ACTIVITY_STATE_PAUSED",
        "PENDING_ACTIVITY_STATE_PAUSE_REQUESTED"
      ]
    },
    "enums.PendingNexusOperationState": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3,
        4
      ],
      "x-enum-varnames": [
        "PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED",
        "PENDING_NEXUS_OPERATION_STATE_SCHEDULED",
        "PENDING_NEXUS_OPERATION_STATE_BACKING_OFF",
        "PENDING_NEXUS_OPERATION_STATE_STARTED",
        "PENDING_NEXUS_OPERATION_STATE_BLOCKED"
      ]
    },
    "enums.PendingWorkflowTaskState": {
      "type": "integer",
      "enum": [
        0,
        1,
        2
      ],
      "x-enum-varnames": [
        "PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED",
        "PENDING_WORKFLOW_TASK_STATE_SCHEDULED",
        "PENDING_WORKFLOW_TASK_STATE_STARTED"
      ]
    },
    "enums.TaskQueueKind": {
      "type": "integer",
      "enum": [
        0,
        1,
        2
      ],
      "x-enum-varnames": [
        "TASK_QUEUE_KIND_UNSPECIFIED",
        "TASK_QUEUE_KIND_NORMAL",
        "TASK_QUEUE_KIND_STICKY"
      ],
      "description": "Default: TASK_QUEUE_KIND_NORMAL."
    },
    "enums.VersioningBehavior": {
      "type": "integer",
      "enum": [
        0,
        1,
        2
      ],
      "x-enum-varnames": [
        "VERSIONING_BEHAVIOR_UNSPECIFIED",
        "VERSIONING_BEHAVIOR_PINNED",
        "VERSIONING_BEHAVIOR_AUTO_UPGRADE"
      ],
      "description": "Versioning behavior determines how the server should treat this execution when workers are\nupgraded. When present it means this workflow execution is versioned; UNSPECIFIED means\nunversioned. See the comments in `VersioningBehavior` enum for more info about different\nbehaviors.\nThis field is first set after an execution completes its first workflow task on a versioned\nworker, and set again on completion of every subsequent workflow task.\nFor child workflows of Pinned parents, this will be set to Pinned (along with `deployment_version`) when\nthe the child starts so that child's first workflow task goes to the same Version as the\nparent. After the first workflow task, it depends on the child workflow itself if it wants\nto stay pinned or become unpinned (according to Versioning Behavior set in the worker).\nNote that `behavior` is overridden by `versioning_override` if the latter is present."
    },
    "enums.WorkflowExecutionStatus": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7
      ],
      "x-enum-varnames": [
        "WORKFLOW_EXECUTION_STATUS_UNSPECIFIED",
        "WORKFLOW_EXECUTION_STATUS_RUNNING",
        "WORKFLOW_EXECUTION_STATUS_COMPLETED",
        "WORKFLOW_EXECUTION_STATUS_FAILED",
        "WORKFLOW_EXECUTION_STATUS_CANCELED",
        "WORKFLOW_EXECUTION_STATUS_TERMINATED",
        "WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW",
        "WORKFLOW_EXECUTION_STATUS_TIMED_OUT"
      ]
    },
    "failure.Failure": {
      "type": "object",
      "properties": {
        "cause": {
          "$ref": "#/$defs/failure.Failure"
        },
        "encoded_attributes": {
          "$ref": "#/$defs/common.Payload"
        },
        "failureInfo": {
          "description": "Types that are valid to be assigned to FailureInfo:\n\n\t*Failure_ApplicationFailureInfo\n\t*Failure_TimeoutFailureInfo\n\t*Failure_CanceledFailureInfo\n\t*Failure_TerminatedFailureInfo\n\t*Failure_ServerFailureInfo\n\t*Failure_ResetWorkflowFailureInfo\n\t*Failure_ActivityFailureInfo\n\t*Failure_ChildWorkflowExecutionFailureInfo\n\t*Failure_NexusOperationExecutionFailureInfo\n\t*Failure_NexusHandlerFailureInfo"
        },
        "message": {
          "type": "string"
        },
        "source": {
          "description": "The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK\nIn some SDKs this is used to rehydrate the stack trace into an exception object.",
          "type": "string"
        },
        "stack_trace": {
          "type": "string"
        }
      },
      "description": "The last attempt's failure, if any."
    },
    "go_temporal_io_api_deployment_v1.WorkerDeploymentVersion": {
      "type": "object",
      "properties": {
        "build_id": {
          "description": "A unique identifier for this Version within the Deployment it is a part of.\nNot necessarily unique within the namespace.\nThe combination of `deployment_name` and `build_id` uniquely identifies this\nVersion within the namespace, because Deployment names are unique within a namespace.",
          "type": "string"
        },
        "deployment_name": {
          "description": "Identifies the Worker Deployment this Version is part of.",
          "type": "string"
        }
      },
      "description": "The Worker Deployment Version that completed the last workflow task of this workflow execution.\nAn absent value means no workflow task is completed, or the workflow is unversioned.\nIf present, and `behavior` is UNSPECIFIED, the last task of this workflow execution was completed\nby a worker that is not using versioning but _is_ passing Deployment Name and Build ID.\n\nFor child workflows of Pinned parents, this will be set to the parent's Pinned Version when\nthe child starts, so that the child's first workflow task goes to the same Version as the parent.\nNote that if `versioning_override.behavior` is PINNED then `versioning_override.pinned_version`\nwill override this value."
    },
    "go_temporal_io_api_enums_v1.CallbackState": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "x-enum-varnames": [
        "CALLBACK_STATE_UNSPECIFIED",
        "CALLBACK_STATE_STANDBY",
        "CALLBACK_STATE_SCHEDULED",
        "CALLBACK_STATE_BACKING_OFF",
        "CALLBACK_STATE_FAILED",
        "CALLBACK_STATE_SUCCEEDED",
        "CALLBACK_STATE_BLOCKED"
      ]
    },
    "sdk.UserMetadata": {
      "type": "object",
      "properties": {
        "details": {
          "$ref": "#/$defs/common.Payload"
        },
        "summary": {
          "$ref": "#/$defs/common.Payload"
        }
      },
      "description": "Metadata on the event. This is often carried over from commands and client calls. Most events\nwon't have this information, and how this information is used is dependent upon the interface\nthat reads it.\n\nCurrent well-known uses:\n  - workflow_execution_started_event_attributes - summary and details from start workflow.\n  - timer_started_event_attributes - summary represents an identifier for the timer for use by\n    user interfaces."
    },
    "taskqueue.TaskQueue": {
      "type": "object",
      "properties": {
        "kind": {
          "$ref": "#/$defs/enums.TaskQueueKind"
        },
        "name": {
          "type": "string"
        },
        "normal_name": {
          "description": "Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of\nthe normal task queue that the sticky worker is running on.",
          "type": "string"
        }
      }
    },
    "timestamppb.Timestamp": {
      "type": "object",
      "properties": {
        "nanos": {
          "description": "Non-negative fractions of a second at nanosecond resolution. Negative\nsecond values with fractions must still have non-negative nanos values\nthat count forward in time. Must be from 0 to 999,999,999\ninclusive.",
          "type": "integer"
        },
        "seconds": {
          "description": "Represents seconds of UTC time since Unix epoch\n1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to\n9999-12-31T23:59:59Z inclusive.",
          "type": "integer"
        }
      },
      "description": "original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.\nHeartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command\nIn this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds\nsome threshold, the workflow task will be forced timeout."
    },
    "workflow.CallbackInfo": {
      "type": "object",
      "properties": {
        "attempt": {
          "description": "The number of attempts made to deliver the callback.\nThis number represents a minimum bound since the attempt is incremented after the callback request completes.",
          "type": "integer"
        },
        "blocked_reason": {
          "description": "If the state is BLOCKED, blocked reason provides additional information.",
          "type": "string"
        },
        "callback": {
          "$ref": "#/$defs/common.Callback"
        },
        "last_attempt_complete_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "last_attempt_failure": {
          "$ref": "#/$defs/failure.Failure"
        },
        "next_attempt_schedule_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "registration_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "state": {
          "$ref": "#/$defs/go_temporal_io_api_enums_v1.CallbackState"
        },
        "trigger": {
          "$ref": "#/$defs/workflow.CallbackInfo_Trigger"
        }
      }
    },
    "workflow.CallbackInfo_Trigger": {
      "type": "object",
      "properties": {
        "variant": {
          "description": "Types that are valid to be assigned to Variant:\n\n\t*CallbackInfo_Trigger_WorkflowClosed"
        }
      },
      "description": "Trigger for this callback."
    },
    "workflow.DeploymentTransition": {
      "type": "object",
      "properties": {
        "deployment": {
          "$ref": "#/$defs/deployment.Deployment"
        }
      },
      "description": "When present, indicates the workflow is transitioning to a different deployment. Can\nindicate one of the following transitions: unversioned -> versioned, versioned -> versioned\non a different deployment, or versioned -> unversioned.\nNot applicable to workflows with PINNED behavior.\nWhen a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically\nstart a transition to the task queue's current deployment if the task queue's current\ndeployment is different from the workflow's deployment.\nIf the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those\ntasks will be redirected to the task queue's current deployment. As soon as a poller from\nthat deployment is available to receive the task, the workflow will automatically start a\ntransition to that deployment and continue execution there.\nA deployment transition can only exist while there is a pending or started workflow task.\nOnce the pending workflow task completes on the transition's target deployment, the\ntransition completes and the workflow's `deployment` and `behavior` fields are updated per\nthe worker's task completion response.\nPending activities will not start new attempts during a transition. Once the transition is\ncompleted, pending activities will start their next attempt on the new deployment.\nDeprecated. Use version_transition.\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto."
    },
    "workflow.DeploymentVersionTransition": {
      "type": "object",
      "properties": {
        "deployment_version": {
          "$ref": "#/$defs/go_temporal_io_api_deployment_v1.WorkerDeploymentVersion"
        },
        "version": {
          "description": "Deprecated. Use `deployment_version`.\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto.",
          "type": "string"
        }
      },
      "description": "When present, indicates the workflow is transitioning to a different deployment version\n(which may belong to the same deployment name or another). Can indicate one of the following\ntransitions: unversioned -> versioned, versioned -> versioned\non a different deployment version, or versioned -> unversioned.\nNot applicable to workflows with PINNED behavior.\nWhen a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically\nstart a transition to the task queue's current version if the task queue's current version is\ndifferent from the workflow's current deployment version.\nIf the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those\ntasks will be redirected to the task queue's current version. As soon as a poller from\nthat deployment version is available to receive the task, the workflow will automatically\nstart a transition to that version and continue execution there.\nA version transition can only exist while there is a pending or started workflow task.\nOnce the pending workflow task completes on the transition's target version, the\ntransition completes and the workflow's `behavior`, and `deployment_version` fields are updated per the\nworker's task completion response.\nPending activities will not start new attempts during a transition. Once the transition is\ncompleted, pending activities will start their next attempt on the new version."
    },
    "workflow.NexusOperationCancellationInfo": {
      "type": "object",
      "properties": {
        "attempt": {
          "description": "The number of attempts made to deliver the cancel operation request.\nThis number represents a minimum bound since the attempt is incremented after the request completes.",
          "type": "integer"
        },
        "blocked_reason": {
          "description": "If the state is BLOCKED, blocked reason provides additional information.",
          "type": "string"
        },
        "last_attempt_complete_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "last_attempt_failure": {
          "$ref": "#/$defs/failure.Failure"
        },
        "next_attempt_schedule_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "requested_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "state": {
          "$ref": "#/$defs/enums.NexusOperationCancellationState"
        }
      }
    },
    "workflow.PendingActivityInfo": {
      "type": "object",
      "properties": {
        "activity_id": {
          "type": "string"
        },
        "activity_options": {
          "$ref": "#/$defs/activity.ActivityOptions"
        },
        "activity_type": {
          "$ref": "#/$defs/common.ActivityType"
        },
        "assignedBuildId": {
          "description": "Absence of `assigned_build_id` generally means this task is on an \"unversioned\" task queue.\nIn rare cases, it can also mean that the task queue is versioned but we failed to write activity's\nindependently-assigned build ID to the database. This case heals automatically once the task is dispatched.\nDeprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]\n\nTypes that are valid to be assigned to AssignedBuildId:\n\n\t*PendingActivityInfo_UseWorkflowBuildId\n\t*PendingActivityInfo_LastIndependentlyAssignedBuildId"
        },
        "attempt": {
          "type": "integer"
        },
        "current_retry_interval": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "expiration_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "heartbeat_details": {
          "$ref": "#/$defs/common.Payloads"
        },
        "last_attempt_complete_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "last_deployment": {
          "$ref": "#/$defs/deployment.Deployment"
        },
        "last_deployment_version": {
          "$ref": "#/$defs/go_temporal_io_api_deployment_v1.WorkerDeploymentVersion"
        },
        "last_failure": {
          "$ref": "#/$defs/failure.Failure"
        },
        "last_heartbeat_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "last_started_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "last_worker_deployment_version": {
          "description": "The Worker Deployment Version this activity was dispatched to most recently.\nDeprecated. Use `last_deployment_version`.\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto.",
          "type": "string"
        },
        "last_worker_identity": {
          "type": "string"
        },
        "last_worker_version_stamp": {
          "$ref": "#/$defs/common.WorkerVersionStamp"
        },
        "maximum_attempts": {
          "type": "integer"
        },
        "next_attempt_schedule_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "pause_info": {
          "$ref": "#/$defs/workflow.PendingActivityInfo_PauseInfo"
        },
        "paused": {
          "description": "Indicates if activity is paused.",
          "type": "boolean"
        },
        "priority": {
          "$ref": "#/$defs/common.Priority"
        },
        "scheduled_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "state": {
          "$ref": "#/$defs/enums.PendingActivityState"
        }
      }
    },
    "workflow.PendingActivityInfo_PauseInfo": {
      "type": "object",
      "properties": {
        "pause_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "pausedBy": {
          "description": "Types that are valid to be assigned to PausedBy:\n\n\t*PendingActivityInfo_PauseInfo_Manual_\n\t*PendingActivityInfo_PauseInfo_Rule_"
        }
      }
    },
    "workflow.PendingChildExecutionInfo": {
      "type": "object",
      "properties": {
        "initiated_id": {
          "type": "integer"
        },
        "parent_close_policy": {
          "$ref": "#/$defs/enums.ParentClosePolicy"
        },
        "run_id": {
          "type": "string"
        },
        "workflow_id": {
          "type": "string"
        },
        "workflow_type_name": {
          "type": "string"
        }
      }
    },
    "workflow.PendingNexusOperationInfo": {
      "type": "object",
      "properties": {
        "attempt": {
          "description": "The number of attempts made to deliver the start operation request.\nThis number represents a minimum bound since the attempt is incremented after the request completes.",
          "type": "integer"
        },
        "blocked_reason": {
          "description": "If the state is BLOCKED, blocked reason provides additional information.",
          "type": "string"
        },
        "cancellation_info": {
          "$ref": "#/$defs/workflow.NexusOperationCancellationInfo"
        },
        "endpoint": {
          "description": "Endpoint name.\nResolved to a URL via the cluster's endpoint registry.",
          "type": "string"
        },
        "last_attempt_complete_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "last_attempt_failure": {
          "$ref": "#/$defs/failure.Failure"
        },
        "next_attempt_schedule_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "operation": {
          "description": "Operation name.",
          "type": "string"
        },
        "operation_id": {
          "description": "Operation ID. Only set for asynchronous operations after a successful StartOperation call.\n\nDeprecated. Renamed to operation_token.\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto.",
          "type": "string"
        },
        "operation_token": {
          "description": "Operation token. Only set for asynchronous operations after a successful StartOperation call.",
          "type": "string"
        },
        "schedule_to_close_timeout": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "scheduled_event_id": {
          "description": "The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the\nDescribeWorkflowExecution response with workflow history.",
          "type": "integer"
        },
        "scheduled_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "service": {
          "description": "Service name.",
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/enums.PendingNexusOperationState"
        }
      }
    },
    "workflow.PendingWorkflowTaskInfo": {
      "type": "object",
      "properties": {
        "attempt": {
          "type": "integer"
        },
        "original_scheduled_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "scheduled_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "started_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "state": {
          "$ref": "#/$defs/enums.PendingWorkflowTaskState"
        }
      }
    },
    "workflow.RequestIdInfo": {
      "type": "object",
      "properties": {
        "buffered": {
          "description": "Indicate if the request is still buffered. If so, the event ID is not known and its value\nwill be an invalid event ID.",
          "type": "boolean"
        },
        "event_id": {
          "description": "The event id of the history event generated by the request. It's possible the event ID is not\nknown (unflushed buffered event). In this case, the value will be zero or a negative value,\nrepresenting an invalid ID.",
          "type": "integer"
        },
        "event_type": {
          "$ref": "#/$defs/enums.EventType"
        }
      }
    },
    "workflow.ResetPointInfo": {
      "type": "object",
      "properties": {
        "binary_checksum": {
          "description": "Deprecated. A worker binary version identifier.\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto.",
          "type": "string"
        },
        "build_id": {
          "description": "Worker build id.",
          "type": "string"
        },
        "create_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "expire_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "first_workflow_task_completed_id": {
          "description": "Event ID of the first WorkflowTaskCompleted event processed by this worker build.",
          "type": "integer"
        },
        "resettable": {
          "description": "false if the reset point has pending childWFs/reqCancels/signalExternals.",
          "type": "boolean"
        },
        "run_id": {
          "description": "The first run ID in the execution chain that was touched by this worker build.",
          "type": "string"
        }
      }
    },
    "workflow.ResetPoints": {
      "type": "object",
      "properties": {
        "points": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/workflow.ResetPointInfo"
          }
        }
      }
    },
    "workflow.VersioningOverride": {
      "type": "object",
      "properties": {
        "behavior": {
          "$ref": "#/$defs/enums.VersioningBehavior"
        },
        "deployment": {
          "$ref": "#/$defs/deployment.Deployment"
        },
        "override": {
          "description": "Indicates whether to override the workflow to be AutoUpgrade or Pinned.\n\nTypes that are valid to be assigned to Override:\n\n\t*VersioningOverride_Pinned\n\t*VersioningOverride_AutoUpgrade"
        },
        "pinned_version": {
          "description": "Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`.\nIdentifies the worker deployment version to pin the workflow to, in the format\n\"<deployment_name>.<build_id>\".\nDeprecated. Use `override.pinned.version`.\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto.",
          "type": "string"
        }
      },
      "description": "Present if user has set an execution-specific versioning override. This override takes\nprecedence over SDK-sent `behavior` (and `version` when override is PINNED). An\noverride can be set when starting a new execution, as well as afterwards by calling the\n`UpdateWorkflowExecutionOptions` API.\nPinned overrides are automatically inherited by child workflows, continue-as-new workflows,\nworkflow retries, and cron workflows."
    },
    "workflow.WorkflowExecutionConfig": {
      "type": "object",
      "properties": {
        "default_workflow_task_timeout": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "task_queue": {
          "$ref": "#/$defs/taskqueue.TaskQueue"
        },
        "user_metadata": {
          "$ref": "#/$defs/sdk.UserMetadata"
        },
        "workflow_execution_timeout": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "workflow_run_timeout": {
          "$ref": "#/$defs/durationpb.Duration"
        }
      }
    },
    "workflow.WorkflowExecutionExtendedInfo": {
      "type": "object",
      "properties": {
        "cancel_requested": {
          "description": "indicates if the workflow received a cancel request",
          "type": "boolean"
        },
        "execution_expiration_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "last_reset_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "original_start_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "request_id_infos": {
          "description": "Request ID information (eg: history event information associated with the request ID).\nNote: It only contains request IDs from StartWorkflowExecution requests, including indirect\ncalls (eg: if SignalWithStartWorkflowExecution starts a new workflow, then the request ID is\nused in the StartWorkflowExecution request).",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/workflow.RequestIdInfo"
          }
        },
        "reset_run_id": {
          "description": "Reset Run ID points to the new run when this execution is reset. If the execution is reset multiple times, it points to the latest run.",
          "type": "string"
        },
        "run_expiration_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        }
      }
    },
    "workflow.WorkflowExecutionInfo": {
      "type": "object",
      "properties": {
        "assigned_build_id": {
          "description": "The currently assigned build ID for this execution. Presence of this value means worker versioning is used\nfor this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules\nwhen the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled\nagain, the assigned build ID may change according to the latest versioning rules.\nAssigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to\nthis execution.\nDeprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto.",
          "type": "string"
        },
        "auto_reset_points": {
          "$ref": "#/$defs/workflow.ResetPoints"
        },
        "close_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "execution": {
          "$ref": "#/$defs/common.WorkflowExecution"
        },
        "execution_duration": {
          "$ref": "#/$defs/durationpb.Duration"
        },
        "execution_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "first_run_id": {
          "description": "The first run ID in the execution chain.\nExecutions created via the following operations are considered to be in the same chain\n- ContinueAsNew\n- Workflow Retry\n- Workflow Reset\n- Cron Schedule",
          "type": "string"
        },
        "history_length": {
          "type": "integer"
        },
        "history_size_bytes": {
          "type": "integer"
        },
        "inherited_build_id": {
          "description": "Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead\nof using the assignment rules.\nDeprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto.",
          "type": "string"
        },
        "memo": {
          "$ref": "#/$defs/common.Memo"
        },
        "most_recent_worker_version_stamp": {
          "$ref": "#/$defs/common.WorkerVersionStamp"
        },
        "parent_execution": {
          "$ref": "#/$defs/common.WorkflowExecution"
        },
        "parent_namespace_id": {
          "type": "string"
        },
        "priority": {
          "$ref": "#/$defs/common.Priority"
        },
        "root_execution": {
          "$ref": "#/$defs/common.WorkflowExecution"
        },
        "search_attributes": {
          "$ref": "#/$defs/common.SearchAttributes"
        },
        "start_time": {
          "$ref": "#/$defs/timestamppb.Timestamp"
        },
        "state_transition_count": {
          "type": "integer"
        },
        "status": {
          "$ref": "#/$defs/enums.WorkflowExecutionStatus"
        },
        "task_queue": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/common.WorkflowType"
        },
        "versioning_info": {
          "$ref": "#/$defs/workflow.WorkflowExecutionVersioningInfo"
        },
        "worker_deployment_name": {
          "description": "The name of Worker Deployment that completed the most recent workflow task.\nExperimental. Worker Deployments are experimental and might change in the future.",
          "type": "string"
        }
      }
    },
    "workflow.WorkflowExecutionVersioningInfo": {
      "type": "object",
      "properties": {
        "behavior": {
          "$ref": "#/$defs/enums.VersioningBehavior"
        },
        "deployment": {
          "$ref": "#/$defs/deployment.Deployment"
        },
        "deployment_transition": {
          "$ref": "#/$defs/workflow.DeploymentTransition"
        },
        "deployment_version": {
          "$ref": "#/$defs/go_temporal_io_api_deployment_v1.WorkerDeploymentVersion"
        },
        "version": {
          "description": "Deprecated. Use `deployment_version`.\n\nDeprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto.",
          "type": "string"
        },
        "version_transition": {
          "$ref": "#/$defs/workflow.DeploymentVersionTransition"
        },
        "versioning_override": {
          "$ref": "#/$defs/workflow.VersioningOverride"
        }
      },
      "description": "Absent value means the workflow execution is not versioned. When present, the execution might\nbe versioned or unversioned, depending on `versioning_info.behavior` and `versioning_info.versioning_override`.\nExperimental. Versioning info is experimental and might change in the future."
    }
  }
}