{
  "swagger": "2.0",
  "info": {
    "title": "Signingflow API",
    "description": "Methods published in the API reference. Healthcheck, service status, and the calls used by signing presets and the agent.",
    "version": "v1"
  },
  "schemes": [
    "https"
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "tags": [
    {
      "name": "Status"
    },
    {
      "name": "Envelope"
    },
    {
      "name": "EnvelopeService"
    },
    {
      "name": "Storage"
    },
    {
      "name": "Template, Envelope"
    },
    {
      "name": "IAM"
    },
    {
      "name": "Creator"
    },
    {
      "name": "Workflow"
    },
    {
      "name": "Event"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "summary": "Healthcheck",
        "description": "Reports that this API process is serving. The caller does not sign in. An Authorization header is ignored. status is SERVING when this process answered. Each caller address can make 300 calls per minute.\n\nTrace codes for this method: 20012 The caller exceeded the rate limit. 20013 The resource is temporarily unavailable.",
        "operationId": "StatusService_Healthcheck",
        "responses": {
          "200": {
            "description": "This API process is serving.",
            "schema": {
              "$ref": "#/definitions/v1HealthcheckResponse"
            },
            "examples": {
              "application/json": {
                "status": "SERVING"
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 20012. The caller exceeded 300 calls per minute.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/status/20012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "503": {
            "description": "HTTP 503. UNAVAILABLE. Trace code 20013. The method is temporarily disabled.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 14,
                "message": "Resource unavailable.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "resource temporarily disabled",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20013"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/status/20013:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "tags": [
          "Status"
        ],
        "x-trace-codes": [
          "20012 The caller exceeded the rate limit. ResourceExhausted.",
          "20013 The resource is temporarily unavailable. Unavailable."
        ]
      }
    },
    "/v1/serviceStatus": {
      "get": {
        "summary": "Service status",
        "description": "Lists the same services as the status page and the current status of each one. The caller does not sign in. An Authorization header is ignored. overall is the combined status. services includes every service the status page lists. Each item has slug name description and status. status is operational degraded down maintenance or unknown. History bars are not included. Each caller address can make 300 calls per minute. A failure to read the status page returns HTTP 503.\n\nTrace codes for this method: 20012 The caller exceeded the rate limit. 20013 The resource is temporarily unavailable. 47201 The status page could not be read.",
        "operationId": "StatusService_ServiceStatus",
        "responses": {
          "200": {
            "description": "The status page services. The list includes every service on that page. This sample shows two of them.",
            "schema": {
              "$ref": "#/definitions/v1ServiceStatusResponse"
            },
            "examples": {
              "application/json": {
                "overall": "operational",
                "services": [
                  {
                    "slug": "website",
                    "name": "Website",
                    "description": "The Signingflow site is responding.",
                    "status": "operational"
                  },
                  {
                    "slug": "signing",
                    "name": "Document signing",
                    "description": "The signing service is responding.",
                    "status": "operational"
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 20012. The caller exceeded 300 calls per minute.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/status/20012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "503": {
            "description": "HTTP 503. UNAVAILABLE. Trace code 47201. The status page could not be read. Trace code 20013 means the method is temporarily disabled.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 14,
                "message": "Resource unavailable.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "resource temporarily disabled",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47201"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/status/47201:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "tags": [
          "Status"
        ],
        "x-trace-codes": [
          "20012 The caller exceeded the rate limit. ResourceExhausted.",
          "20013 The resource is temporarily unavailable. Unavailable.",
          "47201 The status page could not be read. Unavailable."
        ]
      }
    },
    "/v1/envelopes": {
      "post": {
        "summary": "Create an envelope",
        "description": "Creates an envelope. Send display_name and documents.attachments.storage_id. storage_id is an acknowledged storage id. HTTP 201 returns the new envelope. The new id is envelope.name. category.uid must be a UUID when it is sent. A repeated idempotency_key returns ALREADY_EXISTS and does not create another envelope.\n\nTrace codes for this method: 43010 display_name is missing or category.uid is not a UUID, 43011 the guest trial has no envelope quota left, 43012 reading the create-envelope feature setting failed, 43013 creating envelopes is turned off for this workspace, 43014 personal and org workspaces need balance rows before quota checks and debits, 43015 preparing the personal workspace balance failed, 43016 reading the monthly envelope quota failed, 43017 quota exhausted, 43018 the sharing policy does not allow this recipient domain, 43019 reading the sharing policy failed, 43020 the idempotency key is present and matches the expected value, 43021 reading the storages for the documents failed, 43022 no document names a storage id, 43023 referenced by the envelope documents, 43024 storage exhausted, 43025 a storage id on a document was not found, 43026 the storage account for reading the file is missing, 43027 create storage client, 43028 creating a temporary file for the uploaded document failed, 43029 reading the uploaded file failed, 43030 copying the uploaded file failed, 43031 closing the temporary file failed, 43032 reading pages from the uploaded file failed, 43033 reading the page extraction response failed, 43034 page extraction of the uploaded file failed, 43035 saving the page extraction result failed, 43036 resolve signing / regulatory / auth / evidence layers for the selected bundle (draft state), 43037 saving the envelope failed, 43038 saving an envelope audit trail failed, 43039 saving a document failed, 43040 saving an attachment failed, 43041 saving a document audit trail failed, 43042 saving an extracted field failed, 43043 reading a document by its external correlation identifier failed, 43044 saving the linked document record failed, 43045 saving the document activity failed, 43046 saving the document send record failed, 43047 saving the document send target failed, 43048 saving a completion archive failed, 43049 marshal the archive output settings to the datatypes.JSON, 43050 saving the envelope archive settings failed, 43051 quota/storage debits persist before the handler returns, 43052 saving the thumbnail task failed, 43053 queueing the thumbnail job failed, 43054 the new envelope was not found, 43055 reading the new envelope failed, 43056 building the envelope index failed, 43057 saving an envelope index row failed, 43058 doc index does not exist create it, 43059 writing the response header failed, 45238 the compliance check rejected the request, 46031 Indonesian Certified Electronic Signature can include 1 document",
        "operationId": "EnvelopeService_AddEnvelope",
        "responses": {
          "201": {
            "description": "The new envelope. The record has more fields than this example.",
            "schema": {},
            "examples": {
              "application/json": {
                "name": "envelopes/6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                "displayName": "Mutual NDA",
                "progressStatus": "DRAFT"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 43010 display_name is missing or category.uid is not a UUID. Trace code 43022 no document names a storage id. Trace code 43025 a storage id on a document was not found. FAILED_PRECONDITION. Trace code 43013 creating envelopes is turned off for this workspace.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43010"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43010:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 43018 the sharing policy does not allow this recipient domain.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43018"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43018:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 43054 the new envelope was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43054"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43054:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ALREADY_EXISTS. Trace code 43020 when the idempotency key is present and matches the expected value.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 6,
                "message": "Already exists.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "already exists",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43020"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43020:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 43011 the guest trial has no envelope quota left. Trace code 43017 when quota exhausted. Trace code 43024 when storage exhausted.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43011"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43011:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 43012 reading the create-envelope feature setting failed. Trace code 43014 when personal and org workspaces need balance rows before quota checks and debits. Trace code 43015 preparing the personal workspace balance failed. Trace code 43016 reading the monthly envelope quota failed. Trace code 43019 reading the sharing policy failed. Trace code 43021 reading the storages for the documents failed. Trace code 43023 when referenced by the envelope documents. Trace code 43026 the storage account for reading the file is missing. Trace code 43027 when create storage client. Trace code 43028 creating a temporary file for the uploaded document failed. Trace code 43029 reading the uploaded file failed. Trace code 43030 copying the uploaded file failed. Trace code 43031 closing the temporary file failed. Trace code 43032 reading pages from the uploaded file failed. Trace code 43033 reading the page extraction response failed. Trace code 43034 page extraction of the uploaded file failed. Trace code 43035 saving the page extraction result failed. Trace code 43036 when resolve signing / regulatory / auth / evidence layers for the selected bundle (draft state). Trace code 43037 saving the envelope failed. Trace code 43038 saving an envelope audit trail failed. Trace code 43039 saving a document failed. Trace code 43040 saving an attachment failed. Trace code 43041 saving a document audit trail failed. Trace code 43042 saving an extracted field failed. Trace code 43043 reading a document by its external correlation identifier failed. Trace code 43044 saving the linked document record failed. Trace code 43045 saving the document activity failed. Trace code 43046 saving the document send record failed. Trace code 43047 saving the document send target failed. Trace code 43048 saving a completion archive failed. Trace code 43049 when marshal the archive output settings to the datatypes.JSON. Trace code 43050 saving the envelope archive settings failed. Trace code 43051 when quota/storage debits persist before the handler returns. Trace code 43052 saving the thumbnail task failed. Trace code 43053 queueing the thumbnail job failed. Trace code 43055 reading the new envelope failed. Trace code 43056 building the envelope index failed. Trace code 43057 saving an envelope index row failed. Trace code 43058 when doc index does not exist create it. Trace code 43059 writing the response header failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "description": "Request for\n[EnvelopeService.AddEnvelope][dreamflow.v1.EnvelopeService.AddEnvelope]\nmethod.",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1AddEnvelopeRequest"
            }
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "43010 display_name is missing or category.uid is not a UUID. InvalidArgument.",
          "43011 the guest trial has no envelope quota left. ResourceExhausted.",
          "43012 reading the create-envelope feature setting failed. Internal.",
          "43013 creating envelopes is turned off for this workspace. FailedPrecondition.",
          "43014 personal and org workspaces need balance rows before quota checks and debits. Internal.",
          "43015 preparing the personal workspace balance failed. Internal.",
          "43016 reading the monthly envelope quota failed. Internal.",
          "43017 quota exhausted. ResourceExhausted.",
          "43018 the sharing policy does not allow this recipient domain. PermissionDenied.",
          "43019 reading the sharing policy failed. Internal.",
          "43020 the idempotency key is present and matches the expected value. AlreadyExists.",
          "43021 reading the storages for the documents failed. Internal.",
          "43022 no document names a storage id. InvalidArgument.",
          "43023 referenced by the envelope documents. Internal.",
          "43024 storage exhausted. ResourceExhausted.",
          "43025 a storage id on a document was not found. InvalidArgument.",
          "43026 the storage account for reading the file is missing. Internal.",
          "43027 create storage client. Internal.",
          "43028 creating a temporary file for the uploaded document failed. Internal.",
          "43029 reading the uploaded file failed. Internal.",
          "43030 copying the uploaded file failed. Internal.",
          "43031 closing the temporary file failed. Internal.",
          "43032 reading pages from the uploaded file failed. Internal.",
          "43033 reading the page extraction response failed. Internal.",
          "43034 page extraction of the uploaded file failed. Internal.",
          "43035 saving the page extraction result failed. Internal.",
          "43036 resolve signing / regulatory / auth / evidence layers for the selected bundle (draft state). Internal.",
          "43037 saving the envelope failed. Internal.",
          "43038 saving an envelope audit trail failed. Internal.",
          "43039 saving a document failed. Internal.",
          "43040 saving an attachment failed. Internal.",
          "43041 saving a document audit trail failed. Internal.",
          "43042 saving an extracted field failed. Internal.",
          "43043 reading a document by its external correlation identifier failed. Internal.",
          "43044 saving the linked document record failed. Internal.",
          "43045 saving the document activity failed. Internal.",
          "43046 saving the document send record failed. Internal.",
          "43047 saving the document send target failed. Internal.",
          "43048 saving a completion archive failed. Internal.",
          "43049 marshal the archive output settings to the datatypes.JSON. Internal.",
          "43050 saving the envelope archive settings failed. Internal.",
          "43051 quota/storage debits persist before the handler returns. Internal.",
          "43052 saving the thumbnail task failed. Internal.",
          "43053 queueing the thumbnail job failed. Internal.",
          "43054 the new envelope was not found. NotFound.",
          "43055 reading the new envelope failed. Internal.",
          "43056 building the envelope index failed. Internal.",
          "43057 saving an envelope index row failed. Internal.",
          "43058 doc index does not exist create it. Internal.",
          "43059 writing the response header failed. Internal."
        ],
        "x-workflow": {
          "bodyShape": [
            {
              "pointer": "envelope.documents",
              "port": "storage",
              "shape": "storage_attachments"
            }
          ],
          "cardinality": "once",
          "consumes": [
            {
              "pointer": "envelope.documents",
              "port": "storage",
              "required": true,
              "resource": "api.dreamflow.com/Storage"
            }
          ],
          "defaults": [
            {
              "merge": "csv",
              "pointer": "read_mask",
              "value": "documents"
            },
            {
              "pointer": "envelope.mode",
              "value": "ONLY_ME",
              "when": "emeterai"
            },
            {
              "force": true,
              "pointer": "envelope.compliance.profile",
              "value": "INDONESIA_PSRE",
              "when": "emeterai"
            }
          ],
          "effect": "write",
          "produces": [
            {
              "pointer": "envelope.name",
              "port": "envelope",
              "resource": "api.dreamflow.com/Envelope"
            }
          ]
        },
        "x-also-at": {
          "method": "POST",
          "path": "/v1/envelopes:addEnvelope"
        }
      }
    },
    "/v1/envelopes:send": {
      "post": {
        "summary": "Create and send an envelope in one request",
        "description": "Creates an envelope from one PDF, adds the recipients and their fields, and sends it. Give the PDF as content (base64, at most 3 MB), as a public https url (at most 25 MB), or as the storage_id of an acknowledged upload. Each recipient signs; fields are placed in PDF points from the top-left of a page. With no fields the signer places the signature. A test key creates the envelope in sandbox, where nothing is charged. A repeated idempotency_key returns ALREADY_EXISTS and does not send again. Only the standard signing profile is available here. The same checks, credits and webhooks apply as for AddEnvelope, UpdateEnvelope and SendEnvelope, so their trace codes can also be returned. It spends what AddEnvelope then SendEnvelope would: the application's create rule plus its send rule (by default one Envelope API credit).\n\nTrace codes for this method: 10002 the idempotency key was already used, 46200 the request fields are invalid, 46201 the document needs exactly one of storage_id, content and url, 46202 content is not a PDF or is larger than 3 MB, 46203 url is not a public https address, 46204 the file at url could not be fetched, is not a PDF or is larger than 25 MB, 46205 a field names an unknown recipient, an unknown kind or a bad position, 46206 only the standard signing profile can be sent in one call, 46207 reading a saved idempotency key failed, 46208 writing the file to storage failed, 46209 saving the page sizes of the file failed, 46210 the envelope service returned no envelope, 46211 writing the response header failed, 46212 storage_id is not a UUID, 46213 a field is on a page the PDF does not have, 46214 the new envelope has no document, 46215 the sent envelope could not be read back, 46216 the new storage could not be read back",
        "operationId": "EnvelopeService_SendDocument",
        "responses": {
          "201": {
            "description": "The envelope was created and sent. envelope is the sent envelope with its documents and recipients.",
            "schema": {},
            "examples": {
              "application/json": {
                "envelope": {
                  "name": "envelopes/7a0e4bd2-3f5c-4f1b-9a51-2d1f0c8e9b10",
                  "uid": "7a0e4bd2-3f5c-4f1b-9a51-2d1f0c8e9b10",
                  "displayName": "Service agreement"
                },
                "sendTime": "2026-11-23T03:00:00Z"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 46200 when the request fields are invalid. Trace code 46201 when the document needs exactly one of storage_id, content and url. Trace code 46202 when content is not a PDF or is larger than 3 MB. Trace code 46203 when url is not a public https address. Trace code 46205 when a field names an unknown recipient, an unknown kind or a bad position. Trace code 46212 when storage_id is not a UUID. Trace code 46213 when a field is on a page the PDF does not have. FAILED_PRECONDITION. Trace code 46204 when the file at url could not be fetched. Trace code 46206 when a signing profile other than standard is asked for.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46201"
                    }
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ALREADY_EXISTS. Trace code 10002 when the idempotency key was already used.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 6,
                "message": "Already Exists.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "idempotency key already processed",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "10002"
                    }
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "description": "Request for\n[EnvelopeService.SendDocument][dreamflow.v1.EnvelopeService.SendDocument].",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1SendDocumentRequest"
            }
          }
        ],
        "tags": [
          "EnvelopeService"
        ],
        "x-trace-codes": [
          "10002 the idempotency key was already used. AlreadyExists.",
          "46200 the request fields are invalid. InvalidArgument.",
          "46201 the document needs exactly one of storage_id, content and url. InvalidArgument.",
          "46202 content is not a PDF or is larger than 3 MB. InvalidArgument.",
          "46203 url is not a public https address. InvalidArgument.",
          "46204 the file at url could not be fetched, is not a PDF or is larger than 25 MB. FailedPrecondition.",
          "46205 a field names an unknown recipient, an unknown kind or a bad position. InvalidArgument.",
          "46206 only the standard signing profile can be sent in one call. FailedPrecondition.",
          "46207 reading a saved idempotency key failed. Internal.",
          "46208 writing the file to storage failed. Internal.",
          "46209 saving the page sizes of the file failed. Internal.",
          "46210 the envelope service returned no envelope. Internal.",
          "46211 writing the response header failed. Internal.",
          "46212 storage_id is not a UUID. InvalidArgument.",
          "46213 a field is on a page the PDF does not have. InvalidArgument.",
          "46214 the new envelope has no document. Internal.",
          "46215 the sent envelope could not be read back. Internal.",
          "46216 the new storage could not be read back. Internal."
        ]
      }
    },
    "/v1/{envelope.name}": {
      "patch": {
        "summary": "Update an envelope",
        "description": "Updates one envelope. envelope.name is envelopes/{uuid}. Send the fields to change on envelope. The response is the envelope after the update.\n\nTrace codes for this method: 44062 name is not envelopes/{uuid}, 44063 envelope not found, 44064 reading the envelope failed, 44065 reading the documents failed, 44066 reading the participants failed, 44067 reading the fields failed, 44068 envelope cannot be updated, 44069 the caller is not a participant or the owner, 44070 the request fields are invalid, 44071 the sharing policy does not allow this recipient domain, 44072 reading the advanced workflow feature setting failed, 44073 advanced workflow is turned off for this workspace, 44074 the workspace policy does not allow this recipient role or signing order, 44075 reading the workflow policy failed, 44076 reading the sharing policy failed, 44077 get existing participants, 44078 get existing participant groups, 44079 get existing participant fields (include soft-deleted rows so reused IDs update instead of duplicate INSERT), 44080 get existing supplemental actions, 44081 get existing carbon copies, 44082 get existing completion archives, 44083 get existing lifecycles, 44084 get existing lifecycle reminders, 44085 get existing lifecycle reminder recurrences, 44086 get existing lifecycle reminder channels, 44087 get existing lifecycle reminder targets, 44088 otherwise return false, 44089 saving a participant group failed, 44090 saving a new participant group failed, 44091 update participant, 44092 update participant, 44093 create participant, 44094 get participant field ID, 44095 participant not found, 44096 reading a participant failed, 44097 set used participant field ID, 44098 update participant field, 44099 create participant field (savepoint lets us recover from concurrent duplicate INSERT), 44100 saving a field failed, 44101 marking an imported field done failed, 44102 marking imported fields deleted failed, 44103 get participant data, 44104 update participant supplemental action, 44105 saving a supplemental action audit trail failed, 44106 delete participant supplemental action, 44107 create participant supplemental action, 44108 saving a supplemental action audit trail failed, 44109 update carbon copy, 44110 saving a carbon copy event failed, 44111 create carbon copy, 44112 saving a new carbon copy event failed, 44113 saving a completion archive failed, 44114 saving a new completion archive failed, 44115 update existing lifecycle, 44116 create new lifecycle, 44117 update or create lifecycle reminders, 44118 update existing lifecycle reminder, 44119 create new lifecycle reminder, 44120 the notification policy does not allow this reminder channel, 44121 update existing lifecycle reminder channel, 44122 create new lifecycle reminder channel, 44123 create new lifecycle reminder target, 44124 update unused participant as deleted, 44125 update unused participant group as deleted, 44126 update unused participant field as deleted, 44127 update unused carbon copy as deleted, 44128 delete unused carbon copy events, 44129 deleting unused completion archives failed, 44130 update unused lifecycle reminder as deleted, 44131 update unused lifecycle reminder recurrence as deleted, 44132 update unused lifecycle reminder channel as deleted, 44133 update unused lifecycle reminder target as deleted, 44134 envelope not found, 44135 reading the envelope failed, 44136 reading the documents failed, 44137 reading the participants failed, 44138 reading the fields failed, 44139 saving the envelope progress failed, 44140 writing the response header failed, 44211 reading whether approval content is frozen failed, 44212 approval content is frozen, 45309 the compliance check rejected the request, 46022 the document is not on this envelope",
        "operationId": "EnvelopeService_UpdateEnvelope",
        "responses": {
          "200": {
            "description": "The envelope after the update. The record has more fields.",
            "schema": {
              "$ref": "#/definitions/v1Envelope"
            },
            "examples": {
              "application/json": {
                "name": "envelopes/00000000-0000-0000-0000-000000000000",
                "displayName": "Mutual NDA"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 44062 when name is not envelopes/{uuid}. Trace code 44070 when the request fields are invalid. Trace code 44094 when get participant field ID. FAILED_PRECONDITION. Trace code 44068 when envelope cannot be updated. Trace code 44073 advanced workflow is turned off for this workspace. Trace code 44212 approval content is frozen.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44062"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44062:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 44071 the sharing policy does not allow this recipient domain. Trace code 44074 when the workspace policy does not allow this recipient role or signing order. Trace code 44117 when update or create lifecycle reminders.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44071"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44071:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 44063 when envelope not found. Trace code 44095 when participant not found. Trace code 44134 when envelope not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44063"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44063:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 44064 reading the envelope failed. Trace code 44065 reading the documents failed. Trace code 44066 reading the participants failed. Trace code 44067 reading the fields failed. Trace code 44069 the caller is not a participant or the owner. Trace code 44072 reading the advanced workflow feature setting failed. Trace code 44075 reading the workflow policy failed. Trace code 44076 reading the sharing policy failed. Trace code 44077 when get existing participants. Trace code 44078 when get existing participant groups. Trace code 44079 when get existing participant fields (include soft-deleted rows so reused IDs update instead of duplicate INSERT). Trace code 44080 when get existing supplemental actions. Trace code 44081 when get existing carbon copies. Trace code 44082 when get existing completion archives. Trace code 44083 when get existing lifecycles. Trace code 44084 when get existing lifecycle reminders. Trace code 44085 when get existing lifecycle reminder recurrences. Trace code 44086 when get existing lifecycle reminder channels. Trace code 44087 when get existing lifecycle reminder targets. Trace code 44088 when otherwise return false. Trace code 44089 saving a participant group failed. Trace code 44090 saving a new participant group failed. Trace code 44091 when update participant. Trace code 44092 when update participant. Trace code 44093 when create participant. Trace code 44096 reading a participant failed. Trace code 44097 when set used participant field ID. Trace code 44098 when update participant field. Trace code 44099 when create participant field (savepoint lets us recover from concurrent duplicate INSERT). Trace code 44100 saving a field failed. Trace code 44101 marking an imported field done failed. Trace code 44102 marking imported fields deleted failed. Trace code 44103 when get participant data. Trace code 44104 when update participant supplemental action. Trace code 44105 saving a supplemental action audit trail failed. Trace code 44106 when delete participant supplemental action. Trace code 44107 when create participant supplemental action. Trace code 44108 saving a supplemental action audit trail failed. Trace code 44109 when update carbon copy. Trace code 44110 saving a carbon copy event failed. Trace code 44111 when create carbon copy. Trace code 44112 saving a new carbon copy event failed. Trace code 44113 saving a completion archive failed. Trace code 44114 saving a new completion archive failed. Trace code 44115 when update existing lifecycle. Trace code 44116 when create new lifecycle. Trace code 44118 when update existing lifecycle reminder. Trace code 44119 when create new lifecycle reminder. Trace code 44121 when update existing lifecycle reminder channel. Trace code 44122 when create new lifecycle reminder channel. Trace code 44123 when create new lifecycle reminder target. Trace code 44124 when update unused participant as deleted. Trace code 44125 when update unused participant group as deleted. Trace code 44126 when update unused participant field as deleted. Trace code 44127 when update unused carbon copy as deleted. Trace code 44128 when delete unused carbon copy events. Trace code 44129 deleting unused completion archives failed. Trace code 44130 when update unused lifecycle reminder as deleted. Trace code 44131 when update unused lifecycle reminder recurrence as deleted. Trace code 44132 when update unused lifecycle reminder channel as deleted. Trace code 44133 when update unused lifecycle reminder target as deleted. Trace code 44135 reading the envelope failed. Trace code 44136 reading the documents failed. Trace code 44137 reading the participants failed. Trace code 44138 reading the fields failed. Trace code 44139 saving the envelope progress failed. Trace code 44140 writing the response header failed. Trace code 44211 reading whether approval content is frozen failed. INTERNAL. Trace code 45309 when the compliance check rejected the request.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44064"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44064:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "envelope.name",
            "description": "Identifier.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "envelope",
            "description": "Required.\n\nThe [Doc][dreamflow.v1.Envelope]\nto update.",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "uid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Required.\n\nThe fully qualified resource id of the\nThe [Doc][dreamflow.v1.Envelope] id to view.",
                  "readOnly": true
                },
                "key": {
                  "type": "string",
                  "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
                  "readOnly": true
                },
                "owner": {
                  "$ref": "#/definitions/v1EnvelopeOwner",
                  "description": "Output only.\n\nThe owner of the envelope.",
                  "readOnly": true
                },
                "displayName": {
                  "type": "string",
                  "description": "Required. Input only. The envelope display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nExample: Mutual NDA"
                },
                "description": {
                  "type": "string",
                  "description": "Optional. Input only. The doc additional description.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
                },
                "kind": {
                  "$ref": "#/definitions/docenvelopev1Kind",
                  "description": "Required. Input only.\n\nThe kind of envelope."
                },
                "category": {
                  "$ref": "#/definitions/v1EnvelopeCategory",
                  "description": "Required. Input only.\n\nThe envelope category."
                },
                "documents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1EnvelopeDocument"
                  },
                  "description": "Documents to create with the envelope.\n\nEach document needs display_name and at least one attachments.storage_id.\nstorage_id is the id of storage that has already been acknowledged."
                },
                "permission": {
                  "$ref": "#/definitions/v1EnvelopePermission",
                  "description": "Output only.\n\nThe permission of the envelope.",
                  "readOnly": true
                },
                "participants": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1EnvelopeParticipant"
                  },
                  "description": "Output only.\n\nThe envelope participants.",
                  "readOnly": true
                },
                "carbonCopies": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1EnvelopeCarbonCopy"
                  },
                  "description": "Output only.\n\nThe envelope carbon copies.",
                  "readOnly": true
                },
                "carbonCopyEvent": {
                  "$ref": "#/definitions/v1EnvelopeCarbonCopyEvent",
                  "description": "Output only.\n\nThe envelope carbon copy event.",
                  "readOnly": true
                },
                "lifeCycles": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1EnvelopeLifeCycle"
                  },
                  "description": "Output only.\n\nThe envelope lifecycles.",
                  "readOnly": true
                },
                "fieldConditionalRule": {
                  "$ref": "#/definitions/v1EnvelopeFieldConditionalRule",
                  "description": "Output only.\n\nThe envelope field conditional rule.",
                  "readOnly": true
                },
                "riskAnalysis": {
                  "$ref": "#/definitions/v1EnvelopeRiskAnalysis",
                  "description": "Output only.\n\nThe envelope risk analysis.",
                  "readOnly": true
                },
                "attributes": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1EnvelopeAttribute"
                  },
                  "description": "Output only.\n\nThe envelope attributes.",
                  "readOnly": true
                },
                "relationships": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1EnvelopeRelationship"
                  },
                  "description": "Output only.\n\nThe envelope relationships.",
                  "readOnly": true
                },
                "signingDeadlineAndReminder": {
                  "$ref": "#/definitions/v1EnvelopeSigningDeadlineAndReminder",
                  "description": "Output only.\n\nThe envelope signing deadline and reminder.",
                  "readOnly": true
                },
                "escalation": {
                  "$ref": "#/definitions/v1EnvelopeEscalation",
                  "description": "Input only.\n\nThe envelope escalation."
                },
                "externalCorrelationIdentifier": {
                  "type": "string",
                  "description": "Optional.\n\nThe envelope external correlation identifier."
                },
                "externalCorrelationSource": {
                  "type": "string",
                  "description": "Optional.\n\nThe envelope external correlation source."
                },
                "externalCorrelationType": {
                  "type": "string",
                  "description": "Optional.\n\nThe envelope external correlation type."
                },
                "thumbnailUri": {
                  "type": "string",
                  "description": "Output only.\n\nThe envelope thumbnail uri.",
                  "readOnly": true
                },
                "thumbnailOrientation": {
                  "type": "string",
                  "description": "Output only.\n\nThe envelope thumbnail orientation.",
                  "readOnly": true
                },
                "thumbnailRotation": {
                  "type": "integer",
                  "format": "int32",
                  "description": "Required. Input only. The envelope thumbnail rotation.",
                  "readOnly": true
                },
                "condition": {
                  "$ref": "#/definitions/docenvelopev1Condition",
                  "description": "Output only.\n\nCondition is an enumeration representing the various condition of a envelope.",
                  "readOnly": true
                },
                "state": {
                  "$ref": "#/definitions/docenvelopev1State",
                  "description": "Output only.\n\nState is an enumeration representing the various stages of a envelope lifecycle.",
                  "readOnly": true
                },
                "progress": {
                  "$ref": "#/definitions/v1EnvelopeProgressStatus",
                  "description": "Output only.\n\nThe envelope progress.",
                  "readOnly": true
                },
                "rejectBy": {
                  "$ref": "#/definitions/v1EnvelopeRejector",
                  "description": "Output only.\n\nThe envelope rejector.",
                  "readOnly": true
                },
                "recentActivities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1EnvelopeRecentActivity"
                  },
                  "description": "Output only.\n\nThe envelope recent activities.",
                  "readOnly": true
                },
                "rejectReason": {
                  "type": "string",
                  "description": "Output only.\n\nThe envelope reject reason.",
                  "readOnly": true
                },
                "rejectOtherReason": {
                  "type": "string",
                  "description": "Output only.\n\nThe envelope reject other reason.",
                  "readOnly": true
                },
                "nextAction": {
                  "type": "string",
                  "description": "Output only.\n\nThe next action of the envelope.",
                  "readOnly": true
                },
                "mode": {
                  "type": "string",
                  "description": "Required. Input only.\n\nThe envelope mode."
                },
                "navigation": {
                  "$ref": "#/definitions/v1EnvelopeNavigation",
                  "description": "Output only.\n\nThe envelope navigation.",
                  "readOnly": true
                },
                "seen": {
                  "type": "boolean",
                  "description": "Output only.\n\nThe envelope is seen.",
                  "readOnly": true
                },
                "createTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Output only.\n\nThe Timestamp of when the `Envelope` was created.",
                  "readOnly": true
                },
                "updateTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Output only.\n\nThe Timestamp of when the `Envelope` was updated.",
                  "readOnly": true
                },
                "sentTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Output only.\n\nThe Timestamp of when the `Envelope` was sent.",
                  "readOnly": true
                },
                "deliveryTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Output only.\n\nThe Timestamp of when the `Envelope` was delivered.",
                  "readOnly": true
                },
                "signTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Output only.\n\nThe Timestamp of when the `Envelope` was signed.",
                  "readOnly": true
                },
                "rejectTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Output only.\n\nThe Timestamp of when the `Envelope` was rejected.",
                  "readOnly": true
                },
                "completeTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Output only.\n\nThe Timestamp of when the `Envelope` was completed.",
                  "readOnly": true
                },
                "purgeTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Output only.\n\nThe Timestamp of when the `Envelope` was deleted.",
                  "readOnly": true
                },
                "sendStep": {
                  "$ref": "#/definitions/v1EnvelopeSendStep",
                  "description": "Optional. Input only.\n\nSend step outputs and destination configuration."
                },
                "completionArchives": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1EnvelopeCompletionArchive"
                  },
                  "description": "Output only.\n\nCompletion archive outputs configured for this envelope.",
                  "readOnly": true
                },
                "completionArchiveEnabled": {
                  "type": "boolean",
                  "description": "Output only.\n\nWhether completion archive is enabled for this envelope.",
                  "readOnly": true
                },
                "completionArchiveProviderName": {
                  "type": "string",
                  "description": "Output only.\n\nCompletion archive provider name.\nPossible values:\n- \"GOOGLE_DRIVE\"\n- \"MICROSOFT_ONE_DRIVE\"\n- \"MICROSOFT_SHARE_POINT\"",
                  "readOnly": true
                },
                "completionArchiveOutputMode": {
                  "type": "string",
                  "description": "Output only.\n\nCompletion archive output mode.\nPossible values:\n- \"COMBINED_FOLDER\"\n- \"BY_OUTPUT_TYPE\"\n- \"BY_ENVELOPE\"",
                  "readOnly": true
                },
                "completionArchiveOutputSettings": {
                  "$ref": "#/definitions/v1EnvelopeCompletionArchiveOutputSettings",
                  "description": "Output only.\n\nCompletion archive output settings.",
                  "readOnly": true
                },
                "completionArchiveFolderNameTemplate": {
                  "type": "string",
                  "description": "Output only.\n\nFolder naming template used when archive output mode is BY_ENVELOPE.\nPossible values:\n- \"ENVELOPE_NAME\"\n- \"ENVELOPE_ID\"\n- \"COMPLETED_DATE\"\n- \"DOCUMENT_NAME\"\n- \"SENDER\"\n- \"CUSTOM\"",
                  "readOnly": true
                },
                "completionArchiveFolderNameCustom": {
                  "type": "string",
                  "description": "Output only.\n\nCustom folder naming template when completion_archive_folder_name_template\nis \"CUSTOM\". Supports tokens such as {{Envelope Name}}, {{Envelope ID}},\n{{Recipient Name}}, {{Completed Date}}, and {{Document Name}}.",
                  "readOnly": true
                },
                "etag": {
                  "type": "string",
                  "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
                },
                "template": {
                  "type": "string",
                  "description": "Output only.\n\nThe fully qualified resource name of the source\n[Template][dreamflow.v1.Template] this envelope was created from.\nFormat: templates/{uuid.v4}.\nEmpty when the envelope was not created from a template.",
                  "readOnly": true
                },
                "templateVersion": {
                  "type": "integer",
                  "format": "int32",
                  "description": "Output only.\n\nThe template version snapshotted when the envelope was created from a\ntemplate. Zero when the envelope was not created from a template.",
                  "readOnly": true
                },
                "retention": {
                  "$ref": "#/definitions/v1EnvelopeRetention",
                  "description": "Output only.\n\nThe retention status of the envelope, computed from the workspace's\nretention policy. Present only when the envelope is queued for retention.",
                  "readOnly": true
                },
                "compliance": {
                  "$ref": "#/definitions/v1EnvelopeCompliance",
                  "description": "Optional. Input only.\n\nThe envelope compliance profile: the electronic-signature legal framework\napplied to the envelope. Empty means the compliance profile has not been\nselected yet (\"Decide Later\")."
                },
                "resolvedCompliance": {
                  "$ref": "#/definitions/v1EnvelopeResolvedCompliance",
                  "description": "Output only. Resolved signing profile layers after workspace policy and bundle expansion.",
                  "readOnly": true
                },
                "archiveSummary": {
                  "$ref": "#/definitions/v1EnvelopeArchiveSummary",
                  "description": "Output only.\n\nArchive metadata for envelopes in the Archived directory: who archived,\nwhere copies were sent, and external export status when applicable.",
                  "readOnly": true
                },
                "docFolder": {
                  "$ref": "#/definitions/v1EnvelopeDocFolder",
                  "description": "Output only.\n\nPersonal doc folder assignment for this envelope in the current workspace.",
                  "readOnly": true
                },
                "userParticipantType": {
                  "type": "string",
                  "description": "Output only.\n\nThe actor's doc_indexes.user_participant_type for this list row.\nValid values: SENDER, RECIPIENT, INVITED.",
                  "readOnly": true
                },
                "invitationBranding": {
                  "$ref": "#/definitions/v1EnvelopeInvitationBranding",
                  "description": "Optional.\n\nInvitation email branding chosen when preparing the envelope (brand kit or custom email theme)."
                },
                "hasKeptDigitalSignature": {
                  "type": "boolean",
                  "description": "Output only.\n\nTrue when at least one document kept a digital signature that was already in the uploaded PDF.",
                  "readOnly": true
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1EnvelopeTag"
                  },
                  "description": "Output only.\n\nThe flat tags applied to this envelope, in assignment (request) order.",
                  "readOnly": true
                },
                "emeteraiStampOnly": {
                  "type": "boolean",
                  "description": "Optional.\n\nFor a self-sign envelope (mode ONLY_ME): finish by placing e-Meterai only, with no signature.\nUnset leaves the stored choice as it is. A signature, initial, seal, or stamp field turns it off.\nExample: true."
                },
                "templateSendDataSource": {
                  "$ref": "#/definitions/v1TemplateSendDataSource",
                  "description": "Output only.\n\nThe spreadsheet a template bulk send read its rows from. Empty when the\nenvelope was not sent from a template with a data source.",
                  "readOnly": true
                },
                "templateSendSession": {
                  "$ref": "#/definitions/v1TemplateSendSessionSummary",
                  "description": "Output only.\n\nCounts for one template send session. Set only on the rows of the send\nsessions list (progress.blocking_issue is TEMPLATE_SEND_SESSION); progress\nholds the copy total and the completed copies.",
                  "readOnly": true
                },
                "bouncedEmails": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Output only.\n\nRecipient addresses the mail provider reported as a permanent bounce for\nthis envelope's emails, lowercased. Set on the copies of a send session\n(directory templateSessionCopies). Emails sent before bounce tracking\nstarted are not counted.\nExample: [\"finance@ptsinarjaya.com\"].",
                  "readOnly": true
                },
                "scheduledSendTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Output only.\n\nWhen a scheduled send will go out. Empty when the envelope is not scheduled.\nA scheduled envelope stays a draft until then; editing it cancels the schedule.",
                  "readOnly": true
                }
              },
              "description": "The [Doc][dreamflow.v1.Envelope]\nto update.",
              "title": "Required.",
              "required": [
                "uid",
                "displayName",
                "description",
                "kind",
                "category",
                "mode"
              ]
            }
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "44062 name is not envelopes/{uuid}. InvalidArgument.",
          "44063 envelope not found. NotFound.",
          "44064 reading the envelope failed. Internal.",
          "44065 reading the documents failed. Internal.",
          "44066 reading the participants failed. Internal.",
          "44067 reading the fields failed. Internal.",
          "44068 envelope cannot be updated. FailedPrecondition.",
          "44069 the caller is not a participant or the owner. Internal.",
          "44070 the request fields are invalid. InvalidArgument.",
          "44071 the sharing policy does not allow this recipient domain. PermissionDenied.",
          "44072 reading the advanced workflow feature setting failed. Internal.",
          "44073 advanced workflow is turned off for this workspace. FailedPrecondition.",
          "44074 the workspace policy does not allow this recipient role or signing order. PermissionDenied.",
          "44075 reading the workflow policy failed. Internal.",
          "44076 reading the sharing policy failed. Internal.",
          "44077 get existing participants. Internal.",
          "44078 get existing participant groups. Internal.",
          "44079 get existing participant fields (include soft-deleted rows so reused IDs update instead of duplicate INSERT). Internal.",
          "44080 get existing supplemental actions. Internal.",
          "44081 get existing carbon copies. Internal.",
          "44082 get existing completion archives. Internal.",
          "44083 get existing lifecycles. Internal.",
          "44084 get existing lifecycle reminders. Internal.",
          "44085 get existing lifecycle reminder recurrences. Internal.",
          "44086 get existing lifecycle reminder channels. Internal.",
          "44087 get existing lifecycle reminder targets. Internal.",
          "44088 otherwise return false. Internal.",
          "44089 saving a participant group failed. Internal.",
          "44090 saving a new participant group failed. Internal.",
          "44091 update participant. Internal.",
          "44092 update participant. Internal.",
          "44093 create participant. Internal.",
          "44094 get participant field ID. InvalidArgument.",
          "44095 participant not found. NotFound.",
          "44096 reading a participant failed. Internal.",
          "44097 set used participant field ID. Internal.",
          "44098 update participant field. Internal.",
          "44099 create participant field (savepoint lets us recover from concurrent duplicate INSERT). Internal.",
          "44100 saving a field failed. Internal.",
          "44101 marking an imported field done failed. Internal.",
          "44102 marking imported fields deleted failed. Internal.",
          "44103 get participant data. Internal.",
          "44104 update participant supplemental action. Internal.",
          "44105 saving a supplemental action audit trail failed. Internal.",
          "44106 delete participant supplemental action. Internal.",
          "44107 create participant supplemental action. Internal.",
          "44108 saving a supplemental action audit trail failed. Internal.",
          "44109 update carbon copy. Internal.",
          "44110 saving a carbon copy event failed. Internal.",
          "44111 create carbon copy. Internal.",
          "44112 saving a new carbon copy event failed. Internal.",
          "44113 saving a completion archive failed. Internal.",
          "44114 saving a new completion archive failed. Internal.",
          "44115 update existing lifecycle. Internal.",
          "44116 create new lifecycle. Internal.",
          "44117 update or create lifecycle reminders. PermissionDenied.",
          "44118 update existing lifecycle reminder. Internal.",
          "44119 create new lifecycle reminder. Internal.",
          "44120 the notification policy does not allow this reminder channel. PermissionDenied.",
          "44121 update existing lifecycle reminder channel. Internal.",
          "44122 create new lifecycle reminder channel. Internal.",
          "44123 create new lifecycle reminder target. Internal.",
          "44124 update unused participant as deleted. Internal.",
          "44125 update unused participant group as deleted. Internal.",
          "44126 update unused participant field as deleted. Internal.",
          "44127 update unused carbon copy as deleted. Internal.",
          "44128 delete unused carbon copy events. Internal.",
          "44129 deleting unused completion archives failed. Internal.",
          "44130 update unused lifecycle reminder as deleted. Internal.",
          "44131 update unused lifecycle reminder recurrence as deleted. Internal.",
          "44132 update unused lifecycle reminder channel as deleted. Internal.",
          "44133 update unused lifecycle reminder target as deleted. Internal.",
          "44134 envelope not found. NotFound.",
          "44135 reading the envelope failed. Internal.",
          "44136 reading the documents failed. Internal.",
          "44137 reading the participants failed. Internal.",
          "44138 reading the fields failed. Internal.",
          "44139 saving the envelope progress failed. Internal.",
          "44140 writing the response header failed. Internal.",
          "44211 reading whether approval content is frozen failed. Internal.",
          "44212 approval content is frozen. FailedPrecondition.",
          "45309 the compliance check rejected the request. Unknown."
        ],
        "x-workflow": {
          "bodyShape": [
            {
              "pointer": "documents",
              "shape": "emeterai_fields",
              "when": "emeterai"
            }
          ],
          "cardinality": "many",
          "consumes": [
            {
              "pointer": "envelope.name",
              "port": "envelope",
              "required": true,
              "resource": "api.dreamflow.com/Envelope"
            }
          ],
          "defaults": [
            {
              "pointer": "mode",
              "value": "ONLY_ME",
              "when": "emeterai"
            },
            {
              "force": true,
              "pointer": "compliance.profile",
              "value": "INDONESIA_PSRE",
              "when": "emeterai"
            }
          ],
          "effect": "write",
          "produces": [
            {
              "pointer": "name",
              "port": "envelope",
              "resource": "api.dreamflow.com/Envelope"
            }
          ]
        }
      }
    },
    "/v1/{envelope.name}:fillForm": {
      "post": {
        "summary": "Fill an envelope form",
        "description": "Writes the caller's fields on one envelope. envelope.name is envelopes/{uuid}. Send If-None-Match with the etag from view. signing_reason is required for an FDA Part 11 envelope. A repeated idempotency_key does not fill the form again. When awaiting_psre_otp is true, call Authorize my PSrE stamp with psre_stamp_id. When remote_signing_url is set, send the signer to that URL. An empty remote_signing_url is still a success.\n\nTrace codes for this method: 43460 name is not envelopes/{uuid}, 43461 reading a saved idempotency key failed, 43462 envelope not found, 43463 reading the envelope failed, 43464 get all doc sents, 43465 reading the participants failed, 43466 reading the fields failed, 43467 the ETag does not match, 43468 envelope cannot be fill form, 43469 participants may be stored by email (e.g. power forms) with a null user id, 43470 access passcode must be verified before signing, 43471 identity verification must be completed before signing, 43472 saving the compliance snapshot failed, 43473 reading the signing compliance rules failed, 43474 current actor cannot take action to fill form, 43475 reading the emeterai feature setting failed, 43476 emeterai is turned off for this workspace, 43477 before fill-form prepares the PDF and starts the stamp batch, 43478 the PSrE certificate is missing or not active, 43479 when no valid confirmation proof exists reject the fill form, 43480 signatures are turned off for this workspace, 43481 sTAMP fields also submit inline stamp images the same way; electronic_stamp_mode gates stampers separately, 43482 stamps are turned off for this workspace, 43483 stamps are limited to admins and owners, 43484 service account is not set, 43485 failed to create storage client, 43486 failed to get storage, 43487 failed to get object reader, 43488 failed to duplicate object as backup, 43489 failed to copy object reader to temporary file, 43490 writing the temporary signed file failed, 43491 failed to fill form envelope, 43492 failed to create temporary file for filling form response body, 43493 failed to write filling form response body to temporary file, 43494 failed to sync filling form response body to temporary file, 43495 failed to fill form envelope, 43496 failed to write to storage, 43497 saving the signed file failed, 43498 save envelope audit trails, 43499 save doc sent audit trails, 43500 saving a signature field failed, 43501 saving the participant failed, 43502 saving the envelope failed, 43503 reading the envelope index failed, 43504 building the envelope index failed, 43505 saving an envelope index row failed, 43506 doc index does not exist create it, 43507 psre: no signing participant found for retail stamp, 43508 starting the PSrE stamp failed, 43509 No OTP needed — finalize participant and kick e-Meterai when ready, 43510 reading the envelope failed, 43511 get all doc sents, 43512 child rows are partitioned by request_date. Use the same bound as envelope view, 43513 envelope not found, 43514 saving the completion audit trail failed, 43515 envelope not found, 43516 saving the envelope failed, 43517 queueing the emeterai charge failed, 43518 writing the response header failed, 43519 queueing the PSrE charge failed, 44213 reading whether recipient signing is blocked failed, 44214 recipient signing is blocked until approval finishes, 45253 the compliance check rejected the request",
        "operationId": "EnvelopeService_FillFormEnvelope",
        "responses": {
          "200": {
            "description": "The form was written. fill_form_time is when it finished. awaiting_psre_otp true means call Authorize my PSrE stamp with psre_stamp_id. A set remote_signing_url is where the signer continues. An empty remote_signing_url is still a success.",
            "schema": {
              "$ref": "#/definitions/v1FillFormEnvelopeResponse"
            },
            "examples": {
              "application/json": {
                "fillFormTime": "2026-11-11T03:00:00Z",
                "awaitingPsreOtp": true,
                "psreStampId": "8a0b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
                "psreSpecimenKind": "signature",
                "psreOtpEmailMasked": "j***@example.com",
                "remoteSigningUrl": ""
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 43460 when name is not envelopes/{uuid}. FAILED_PRECONDITION. Trace code 43467 when the ETag does not match. Trace code 43468 when envelope cannot be fill form. Trace code 43470 when access passcode must be verified before signing. Trace code 43471 when identity verification must be completed before signing. Trace code 43476 emeterai is turned off for this workspace. Trace code 43478 the PSrE certificate is missing or not active. Trace code 43507 when psre: no signing participant found for retail stamp. Trace code 43508 starting the PSrE stamp failed. Trace code 44214 recipient signing is blocked until approval finishes.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43460"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43460:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 43474 when current actor cannot take action to fill form. Trace code 43479 when when no valid confirmation proof exists reject the fill form. Trace code 43480 signatures are turned off for this workspace. Trace code 43481 when sTAMP fields also submit inline stamp images the same way; electronic_stamp_mode gates stampers separately. Trace code 43482 stamps are turned off for this workspace. Trace code 43483 stamps are limited to admins and owners.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43474"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43474:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 43462 when envelope not found. Trace code 43513 when envelope not found. Trace code 43515 when envelope not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43462"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43462:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 43461 reading a saved idempotency key failed. Trace code 43463 reading the envelope failed. Trace code 43464 when get all doc sents. Trace code 43465 reading the participants failed. Trace code 43466 reading the fields failed. Trace code 43469 when participants may be stored by email (e.g. power forms) with a null user id. Trace code 43472 saving the compliance snapshot failed. Trace code 43473 reading the signing compliance rules failed. Trace code 43475 reading the emeterai feature setting failed. Trace code 43477 when before fill-form prepares the PDF and starts the stamp batch. Trace code 43484 when service account is not set. Trace code 43485 when failed to create storage client. Trace code 43486 when failed to get storage. Trace code 43487 when failed to get object reader. Trace code 43488 when failed to duplicate object as backup. Trace code 43489 when failed to copy object reader to temporary file. Trace code 43490 writing the temporary signed file failed. Trace code 43491 when failed to fill form envelope. Trace code 43492 when failed to create temporary file for filling form response body. Trace code 43493 when failed to write filling form response body to temporary file. Trace code 43494 when failed to sync filling form response body to temporary file. Trace code 43495 when failed to fill form envelope. Trace code 43496 when failed to write to storage. Trace code 43497 saving the signed file failed. Trace code 43498 when save envelope audit trails. Trace code 43499 when save doc sent audit trails. Trace code 43500 saving a signature field failed. Trace code 43501 saving the participant failed. Trace code 43502 saving the envelope failed. Trace code 43503 reading the envelope index failed. Trace code 43504 building the envelope index failed. Trace code 43505 saving an envelope index row failed. Trace code 43506 when doc index does not exist create it. Trace code 43509 when No OTP needed — finalize participant and kick e-Meterai when ready. Trace code 43510 reading the envelope failed. Trace code 43511 when get all doc sents. Trace code 43512 when child rows are partitioned by request_date. Use the same bound as envelope view. Trace code 43514 saving the completion audit trail failed. Trace code 43516 saving the envelope failed. Trace code 43517 queueing the emeterai charge failed. Trace code 43518 writing the response header failed. Trace code 43519 queueing the PSrE charge failed. Trace code 44213 reading whether recipient signing is blocked failed. INTERNAL. Trace code 45253 when the compliance check rejected the request.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43461"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43461:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "envelope.name",
            "description": "Identifier.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "envelope": {
                  "type": "object",
                  "properties": {
                    "uid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Required.\n\nThe fully qualified resource id of the\nThe [Doc][dreamflow.v1.Envelope] id to view.",
                      "readOnly": true
                    },
                    "key": {
                      "type": "string",
                      "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
                      "readOnly": true
                    },
                    "owner": {
                      "$ref": "#/definitions/v1EnvelopeOwner",
                      "description": "Output only.\n\nThe owner of the envelope.",
                      "readOnly": true
                    },
                    "displayName": {
                      "type": "string",
                      "description": "Required. Input only. The envelope display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nExample: Mutual NDA"
                    },
                    "description": {
                      "type": "string",
                      "description": "Optional. Input only. The doc additional description.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
                    },
                    "kind": {
                      "$ref": "#/definitions/docenvelopev1Kind",
                      "description": "Required. Input only.\n\nThe kind of envelope."
                    },
                    "category": {
                      "$ref": "#/definitions/v1EnvelopeCategory",
                      "description": "Required. Input only.\n\nThe envelope category."
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/definitions/v1EnvelopeDocument"
                      },
                      "description": "Documents to create with the envelope.\n\nEach document needs display_name and at least one attachments.storage_id.\nstorage_id is the id of storage that has already been acknowledged."
                    },
                    "permission": {
                      "$ref": "#/definitions/v1EnvelopePermission",
                      "description": "Output only.\n\nThe permission of the envelope.",
                      "readOnly": true
                    },
                    "participants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/definitions/v1EnvelopeParticipant"
                      },
                      "description": "Output only.\n\nThe envelope participants.",
                      "readOnly": true
                    },
                    "carbonCopies": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/definitions/v1EnvelopeCarbonCopy"
                      },
                      "description": "Output only.\n\nThe envelope carbon copies.",
                      "readOnly": true
                    },
                    "carbonCopyEvent": {
                      "$ref": "#/definitions/v1EnvelopeCarbonCopyEvent",
                      "description": "Output only.\n\nThe envelope carbon copy event.",
                      "readOnly": true
                    },
                    "lifeCycles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/definitions/v1EnvelopeLifeCycle"
                      },
                      "description": "Output only.\n\nThe envelope lifecycles.",
                      "readOnly": true
                    },
                    "fieldConditionalRule": {
                      "$ref": "#/definitions/v1EnvelopeFieldConditionalRule",
                      "description": "Output only.\n\nThe envelope field conditional rule.",
                      "readOnly": true
                    },
                    "riskAnalysis": {
                      "$ref": "#/definitions/v1EnvelopeRiskAnalysis",
                      "description": "Output only.\n\nThe envelope risk analysis.",
                      "readOnly": true
                    },
                    "attributes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/definitions/v1EnvelopeAttribute"
                      },
                      "description": "Output only.\n\nThe envelope attributes.",
                      "readOnly": true
                    },
                    "relationships": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/definitions/v1EnvelopeRelationship"
                      },
                      "description": "Output only.\n\nThe envelope relationships.",
                      "readOnly": true
                    },
                    "signingDeadlineAndReminder": {
                      "$ref": "#/definitions/v1EnvelopeSigningDeadlineAndReminder",
                      "description": "Output only.\n\nThe envelope signing deadline and reminder.",
                      "readOnly": true
                    },
                    "escalation": {
                      "$ref": "#/definitions/v1EnvelopeEscalation",
                      "description": "Input only.\n\nThe envelope escalation."
                    },
                    "externalCorrelationIdentifier": {
                      "type": "string",
                      "description": "Optional.\n\nThe envelope external correlation identifier."
                    },
                    "externalCorrelationSource": {
                      "type": "string",
                      "description": "Optional.\n\nThe envelope external correlation source."
                    },
                    "externalCorrelationType": {
                      "type": "string",
                      "description": "Optional.\n\nThe envelope external correlation type."
                    },
                    "thumbnailUri": {
                      "type": "string",
                      "description": "Output only.\n\nThe envelope thumbnail uri.",
                      "readOnly": true
                    },
                    "thumbnailOrientation": {
                      "type": "string",
                      "description": "Output only.\n\nThe envelope thumbnail orientation.",
                      "readOnly": true
                    },
                    "thumbnailRotation": {
                      "type": "integer",
                      "format": "int32",
                      "description": "Required. Input only. The envelope thumbnail rotation.",
                      "readOnly": true
                    },
                    "condition": {
                      "$ref": "#/definitions/docenvelopev1Condition",
                      "description": "Output only.\n\nCondition is an enumeration representing the various condition of a envelope.",
                      "readOnly": true
                    },
                    "state": {
                      "$ref": "#/definitions/docenvelopev1State",
                      "description": "Output only.\n\nState is an enumeration representing the various stages of a envelope lifecycle.",
                      "readOnly": true
                    },
                    "progress": {
                      "$ref": "#/definitions/v1EnvelopeProgressStatus",
                      "description": "Output only.\n\nThe envelope progress.",
                      "readOnly": true
                    },
                    "rejectBy": {
                      "$ref": "#/definitions/v1EnvelopeRejector",
                      "description": "Output only.\n\nThe envelope rejector.",
                      "readOnly": true
                    },
                    "recentActivities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/definitions/v1EnvelopeRecentActivity"
                      },
                      "description": "Output only.\n\nThe envelope recent activities.",
                      "readOnly": true
                    },
                    "rejectReason": {
                      "type": "string",
                      "description": "Output only.\n\nThe envelope reject reason.",
                      "readOnly": true
                    },
                    "rejectOtherReason": {
                      "type": "string",
                      "description": "Output only.\n\nThe envelope reject other reason.",
                      "readOnly": true
                    },
                    "nextAction": {
                      "type": "string",
                      "description": "Output only.\n\nThe next action of the envelope.",
                      "readOnly": true
                    },
                    "mode": {
                      "type": "string",
                      "description": "Required. Input only.\n\nThe envelope mode."
                    },
                    "navigation": {
                      "$ref": "#/definitions/v1EnvelopeNavigation",
                      "description": "Output only.\n\nThe envelope navigation.",
                      "readOnly": true
                    },
                    "seen": {
                      "type": "boolean",
                      "description": "Output only.\n\nThe envelope is seen.",
                      "readOnly": true
                    },
                    "createTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Output only.\n\nThe Timestamp of when the `Envelope` was created.",
                      "readOnly": true
                    },
                    "updateTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Output only.\n\nThe Timestamp of when the `Envelope` was updated.",
                      "readOnly": true
                    },
                    "sentTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Output only.\n\nThe Timestamp of when the `Envelope` was sent.",
                      "readOnly": true
                    },
                    "deliveryTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Output only.\n\nThe Timestamp of when the `Envelope` was delivered.",
                      "readOnly": true
                    },
                    "signTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Output only.\n\nThe Timestamp of when the `Envelope` was signed.",
                      "readOnly": true
                    },
                    "rejectTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Output only.\n\nThe Timestamp of when the `Envelope` was rejected.",
                      "readOnly": true
                    },
                    "completeTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Output only.\n\nThe Timestamp of when the `Envelope` was completed.",
                      "readOnly": true
                    },
                    "purgeTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Output only.\n\nThe Timestamp of when the `Envelope` was deleted.",
                      "readOnly": true
                    },
                    "sendStep": {
                      "$ref": "#/definitions/v1EnvelopeSendStep",
                      "description": "Optional. Input only.\n\nSend step outputs and destination configuration."
                    },
                    "completionArchives": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/definitions/v1EnvelopeCompletionArchive"
                      },
                      "description": "Output only.\n\nCompletion archive outputs configured for this envelope.",
                      "readOnly": true
                    },
                    "completionArchiveEnabled": {
                      "type": "boolean",
                      "description": "Output only.\n\nWhether completion archive is enabled for this envelope.",
                      "readOnly": true
                    },
                    "completionArchiveProviderName": {
                      "type": "string",
                      "description": "Output only.\n\nCompletion archive provider name.\nPossible values:\n- \"GOOGLE_DRIVE\"\n- \"MICROSOFT_ONE_DRIVE\"\n- \"MICROSOFT_SHARE_POINT\"",
                      "readOnly": true
                    },
                    "completionArchiveOutputMode": {
                      "type": "string",
                      "description": "Output only.\n\nCompletion archive output mode.\nPossible values:\n- \"COMBINED_FOLDER\"\n- \"BY_OUTPUT_TYPE\"\n- \"BY_ENVELOPE\"",
                      "readOnly": true
                    },
                    "completionArchiveOutputSettings": {
                      "$ref": "#/definitions/v1EnvelopeCompletionArchiveOutputSettings",
                      "description": "Output only.\n\nCompletion archive output settings.",
                      "readOnly": true
                    },
                    "completionArchiveFolderNameTemplate": {
                      "type": "string",
                      "description": "Output only.\n\nFolder naming template used when archive output mode is BY_ENVELOPE.\nPossible values:\n- \"ENVELOPE_NAME\"\n- \"ENVELOPE_ID\"\n- \"COMPLETED_DATE\"\n- \"DOCUMENT_NAME\"\n- \"SENDER\"\n- \"CUSTOM\"",
                      "readOnly": true
                    },
                    "completionArchiveFolderNameCustom": {
                      "type": "string",
                      "description": "Output only.\n\nCustom folder naming template when completion_archive_folder_name_template\nis \"CUSTOM\". Supports tokens such as {{Envelope Name}}, {{Envelope ID}},\n{{Recipient Name}}, {{Completed Date}}, and {{Document Name}}.",
                      "readOnly": true
                    },
                    "etag": {
                      "type": "string",
                      "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
                    },
                    "template": {
                      "type": "string",
                      "description": "Output only.\n\nThe fully qualified resource name of the source\n[Template][dreamflow.v1.Template] this envelope was created from.\nFormat: templates/{uuid.v4}.\nEmpty when the envelope was not created from a template.",
                      "readOnly": true
                    },
                    "templateVersion": {
                      "type": "integer",
                      "format": "int32",
                      "description": "Output only.\n\nThe template version snapshotted when the envelope was created from a\ntemplate. Zero when the envelope was not created from a template.",
                      "readOnly": true
                    },
                    "retention": {
                      "$ref": "#/definitions/v1EnvelopeRetention",
                      "description": "Output only.\n\nThe retention status of the envelope, computed from the workspace's\nretention policy. Present only when the envelope is queued for retention.",
                      "readOnly": true
                    },
                    "compliance": {
                      "$ref": "#/definitions/v1EnvelopeCompliance",
                      "description": "Optional. Input only.\n\nThe envelope compliance profile: the electronic-signature legal framework\napplied to the envelope. Empty means the compliance profile has not been\nselected yet (\"Decide Later\")."
                    },
                    "resolvedCompliance": {
                      "$ref": "#/definitions/v1EnvelopeResolvedCompliance",
                      "description": "Output only. Resolved signing profile layers after workspace policy and bundle expansion.",
                      "readOnly": true
                    },
                    "archiveSummary": {
                      "$ref": "#/definitions/v1EnvelopeArchiveSummary",
                      "description": "Output only.\n\nArchive metadata for envelopes in the Archived directory: who archived,\nwhere copies were sent, and external export status when applicable.",
                      "readOnly": true
                    },
                    "docFolder": {
                      "$ref": "#/definitions/v1EnvelopeDocFolder",
                      "description": "Output only.\n\nPersonal doc folder assignment for this envelope in the current workspace.",
                      "readOnly": true
                    },
                    "userParticipantType": {
                      "type": "string",
                      "description": "Output only.\n\nThe actor's doc_indexes.user_participant_type for this list row.\nValid values: SENDER, RECIPIENT, INVITED.",
                      "readOnly": true
                    },
                    "invitationBranding": {
                      "$ref": "#/definitions/v1EnvelopeInvitationBranding",
                      "description": "Optional.\n\nInvitation email branding chosen when preparing the envelope (brand kit or custom email theme)."
                    },
                    "hasKeptDigitalSignature": {
                      "type": "boolean",
                      "description": "Output only.\n\nTrue when at least one document kept a digital signature that was already in the uploaded PDF.",
                      "readOnly": true
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/definitions/v1EnvelopeTag"
                      },
                      "description": "Output only.\n\nThe flat tags applied to this envelope, in assignment (request) order.",
                      "readOnly": true
                    },
                    "emeteraiStampOnly": {
                      "type": "boolean",
                      "description": "Optional.\n\nFor a self-sign envelope (mode ONLY_ME): finish by placing e-Meterai only, with no signature.\nUnset leaves the stored choice as it is. A signature, initial, seal, or stamp field turns it off.\nExample: true."
                    },
                    "templateSendDataSource": {
                      "$ref": "#/definitions/v1TemplateSendDataSource",
                      "description": "Output only.\n\nThe spreadsheet a template bulk send read its rows from. Empty when the\nenvelope was not sent from a template with a data source.",
                      "readOnly": true
                    },
                    "templateSendSession": {
                      "$ref": "#/definitions/v1TemplateSendSessionSummary",
                      "description": "Output only.\n\nCounts for one template send session. Set only on the rows of the send\nsessions list (progress.blocking_issue is TEMPLATE_SEND_SESSION); progress\nholds the copy total and the completed copies.",
                      "readOnly": true
                    },
                    "bouncedEmails": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Output only.\n\nRecipient addresses the mail provider reported as a permanent bounce for\nthis envelope's emails, lowercased. Set on the copies of a send session\n(directory templateSessionCopies). Emails sent before bounce tracking\nstarted are not counted.\nExample: [\"finance@ptsinarjaya.com\"].",
                      "readOnly": true
                    },
                    "scheduledSendTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Output only.\n\nWhen a scheduled send will go out. Empty when the envelope is not scheduled.\nA scheduled envelope stays a draft until then; editing it cancels the schedule.",
                      "readOnly": true
                    }
                  },
                  "description": "The [Doc][dreamflow.v1.Envelope]\nto fill form.",
                  "title": "Required."
                },
                "signingReason": {
                  "type": "string",
                  "description": "Optional. Input only.\n\nSigner-entered signing reason for FDA Part 11 envelopes (required server-side)."
                },
                "idempotencyKey": {
                  "type": "string",
                  "description": "Optional. Input only.\n\nIdempotency key to support idempotency.\nThis request is only idempotent if a `idempotency_key` is provided."
                }
              },
              "description": "Request for\n[EnvelopeService.FillFormEnvelope][dreamflow.v1.EnvelopeService.FillFormEnvelope]\nmethod.",
              "required": [
                "uid",
                "displayName",
                "description",
                "kind",
                "category",
                "mode"
              ]
            }
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "43460 name is not envelopes/{uuid}. InvalidArgument.",
          "43461 reading a saved idempotency key failed. Internal.",
          "43462 envelope not found. NotFound.",
          "43463 reading the envelope failed. Internal.",
          "43464 get all doc sents. Internal.",
          "43465 reading the participants failed. Internal.",
          "43466 reading the fields failed. Internal.",
          "43467 the ETag does not match. FailedPrecondition.",
          "43468 envelope cannot be fill form. FailedPrecondition.",
          "43469 participants may be stored by email (e.g. power forms) with a null user id. Internal.",
          "43470 access passcode must be verified before signing. FailedPrecondition.",
          "43471 identity verification must be completed before signing. FailedPrecondition.",
          "43472 saving the compliance snapshot failed. Internal.",
          "43473 reading the signing compliance rules failed. Internal.",
          "43474 current actor cannot take action to fill form. PermissionDenied.",
          "43475 reading the emeterai feature setting failed. Internal.",
          "43476 emeterai is turned off for this workspace. FailedPrecondition.",
          "43477 before fill-form prepares the PDF and starts the stamp batch. Internal.",
          "43478 the PSrE certificate is missing or not active. FailedPrecondition.",
          "43479 when no valid confirmation proof exists reject the fill form. PermissionDenied.",
          "43480 signatures are turned off for this workspace. PermissionDenied.",
          "43481 sTAMP fields also submit inline stamp images the same way; electronic_stamp_mode gates stampers separately. PermissionDenied.",
          "43482 stamps are turned off for this workspace. PermissionDenied.",
          "43483 stamps are limited to admins and owners. PermissionDenied.",
          "43484 service account is not set. Internal.",
          "43485 failed to create storage client. Internal.",
          "43486 failed to get storage. Internal.",
          "43487 failed to get object reader. Internal.",
          "43488 failed to duplicate object as backup. Internal.",
          "43489 failed to copy object reader to temporary file. Internal.",
          "43490 writing the temporary signed file failed. Internal.",
          "43491 failed to fill form envelope. Internal.",
          "43492 failed to create temporary file for filling form response body. Internal.",
          "43493 failed to write filling form response body to temporary file. Internal.",
          "43494 failed to sync filling form response body to temporary file. Internal.",
          "43495 failed to fill form envelope. Internal.",
          "43496 failed to write to storage. Internal.",
          "43497 saving the signed file failed. Internal.",
          "43498 save envelope audit trails. Internal.",
          "43499 save doc sent audit trails. Internal.",
          "43500 saving a signature field failed. Internal.",
          "43501 saving the participant failed. Internal.",
          "43502 saving the envelope failed. Internal.",
          "43503 reading the envelope index failed. Internal.",
          "43504 building the envelope index failed. Internal.",
          "43505 saving an envelope index row failed. Internal.",
          "43506 doc index does not exist create it. Internal.",
          "43507 psre: no signing participant found for retail stamp. FailedPrecondition.",
          "43508 starting the PSrE stamp failed. FailedPrecondition.",
          "43509 No OTP needed — finalize participant and kick e-Meterai when ready. Internal.",
          "43510 reading the envelope failed. Internal.",
          "43511 get all doc sents. Internal.",
          "43512 child rows are partitioned by request_date. Use the same bound as envelope view. Internal.",
          "43513 envelope not found. NotFound.",
          "43514 saving the completion audit trail failed. Internal.",
          "43515 envelope not found. NotFound.",
          "43516 saving the envelope failed. Internal.",
          "43517 queueing the emeterai charge failed. Internal.",
          "43518 writing the response header failed. Internal.",
          "43519 queueing the PSrE charge failed. Internal.",
          "44213 reading whether recipient signing is blocked failed. Internal.",
          "44214 recipient signing is blocked until approval finishes. FailedPrecondition.",
          "45253 the compliance check rejected the request. Unknown."
        ],
        "x-workflow": {
          "cardinality": "once",
          "consumes": [
            {
              "pointer": "envelope.name",
              "port": "envelope",
              "required": true,
              "resource": "api.dreamflow.com/Envelope"
            },
            {
              "pointer": "challenge_id",
              "port": "confirmation.passed"
            },
            {
              "pointer": "status",
              "port": "kyc.ready"
            }
          ],
          "effect": "irreversible",
          "gate": {
            "kind": "otp.psre",
            "resend": "IAMService_ResendMyPsreStampOtp",
            "role": "open",
            "skip": {
              "equals": false,
              "pointer": "awaiting_psre_otp"
            },
            "when": "psre"
          },
          "produces": [
            {
              "pointer": "envelope.name",
              "port": "envelope",
              "resource": "api.dreamflow.com/Envelope"
            },
            {
              "pointer": "psre_stamp_id",
              "port": "psre.otp",
              "when": "psre"
            }
          ],
          "reconcile": {
            "operationId": "EnvelopeService_ViewEnvelope",
            "port": "envelope"
          }
        }
      }
    },
    "/v1/{name}": {
      "get": {
        "summary": "View an envelope",
        "description": "Returns one envelope. name is envelopes/{uuid}. Send If-None-Match when you have an etag. HTTP 304 has an empty body when that etag still matches. read_mask selects the fields on the envelope.\n\nTrace codes for this method: 44172 name is not envelopes/{uuid}, 44173 writing the not-modified response header failed, 44176 envelope not found, 44177 reading the envelope failed, 44178 failing the view with HTTP 499, 44179 reading the audit trail failed, 44180 reading the documents failed, 44181 reading the document participants fields and attachments failed, 44182 load envelope attributes for scope panel and playbook-aware consumers, 44183 reading the envelope index failed, 44184 reading the view-documents feature setting failed, 44185 viewing documents is turned off for this workspace, 44186 get notifications, 44187 building the envelope index failed, 44188 remove doc index, 44189 saving an envelope index row failed, 44190 doc index does not exist create it, 44191 envelope not found, 44192 reading the envelope failed, 44193 fetch doc info from storage, 44194 update doc sent attachment, 44195 saving the page-extraction task failed, 44196 queueing document embedding failed, 44197 saving the embedding task failed, 44198 create audit trails, 44199 saving the thumbnail task failed, 44200 writing the response header failed",
        "operationId": "EnvelopeService_ViewEnvelope",
        "responses": {
          "200": {
            "description": "The envelope. The record has more fields. Send the returned etag as If-None-Match on the next view.",
            "schema": {
              "$ref": "#/definitions/v1Envelope",
              "required": [
                "envelope"
              ]
            },
            "examples": {
              "application/json": {
                "name": "envelopes/00000000-0000-0000-0000-000000000000",
                "displayName": "Mutual NDA"
              }
            }
          },
          "304": {
            "description": "HTTP 304. The If-None-Match etag still matches. The body is empty.",
            "schema": {}
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 44172 when name is not envelopes/{uuid}. FAILED_PRECONDITION. Trace code 44185 viewing documents is turned off for this workspace.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44172"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44172:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 44176 when envelope not found. Trace code 44191 when envelope not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44176"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44176:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 44173 when writing the not-modified response header failed. Trace code 44177 reading the envelope failed. Trace code 44178 when failing the view with HTTP 499. Trace code 44179 reading the audit trail failed. Trace code 44180 reading the documents failed. Trace code 44181 reading the document participants fields and attachments failed. Trace code 44182 when load envelope attributes for scope panel and playbook-aware consumers. Trace code 44183 reading the envelope index failed. Trace code 44184 reading the view-documents feature setting failed. Trace code 44186 when get notifications. Trace code 44187 building the envelope index failed. Trace code 44188 when remove doc index. Trace code 44189 saving an envelope index row failed. Trace code 44190 when doc index does not exist create it. Trace code 44192 reading the envelope failed. Trace code 44193 when fetch doc info from storage. Trace code 44194 when update doc sent attachment. Trace code 44195 saving the page-extraction task failed. Trace code 44196 queueing document embedding failed. Trace code 44197 saving the embedding task failed. Trace code 44198 when create audit trails. Trace code 44199 saving the thumbnail task failed. Trace code 44200 writing the response header failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44173"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44173:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "sourceMask",
            "description": "Optional.\n\nField paths read from the stored envelope before the response is built. The query name is sourceMask.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "readMask",
            "description": "Optional.\n\nField paths included in the response. The query name is readMask.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "etag",
            "description": "Optional.\n\nThe handler reads the If-None-Match header, not this field.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "shareToken",
            "description": "Optional.\n\nToken for an anyone-with-the-link share. The query name is shareToken.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "44172 name is not envelopes/{uuid}. InvalidArgument.",
          "44173 writing the not-modified response header failed. Internal.",
          "44176 envelope not found. NotFound.",
          "44177 reading the envelope failed. Internal.",
          "44178 failing the view with HTTP 499. Internal.",
          "44179 reading the audit trail failed. Internal.",
          "44180 reading the documents failed. Internal.",
          "44181 reading the document participants fields and attachments failed. Internal.",
          "44182 load envelope attributes for scope panel and playbook-aware consumers. Internal.",
          "44183 reading the envelope index failed. Internal.",
          "44184 reading the view-documents feature setting failed. Internal.",
          "44185 viewing documents is turned off for this workspace. FailedPrecondition.",
          "44186 get notifications. Internal.",
          "44187 building the envelope index failed. Internal.",
          "44188 remove doc index. Internal.",
          "44189 saving an envelope index row failed. Internal.",
          "44190 doc index does not exist create it. Internal.",
          "44191 envelope not found. NotFound.",
          "44192 reading the envelope failed. Internal.",
          "44193 fetch doc info from storage. Internal.",
          "44194 update doc sent attachment. Internal.",
          "44195 saving the page-extraction task failed. Internal.",
          "44196 queueing document embedding failed. Internal.",
          "44197 saving the embedding task failed. Internal.",
          "44198 create audit trails. Internal.",
          "44199 saving the thumbnail task failed. Internal.",
          "44200 writing the response header failed. Internal."
        ],
        "x-workflow": {
          "cardinality": "many",
          "consumes": [
            {
              "pointer": "name",
              "port": "envelope",
              "required": true,
              "resource": "api.dreamflow.com/Envelope"
            }
          ],
          "defaults": [
            {
              "merge": "csv",
              "pointer": "read_mask",
              "value": "documents"
            }
          ],
          "effect": "read",
          "produces": [
            {
              "pointer": "envelope.name",
              "port": "envelope",
              "resource": "api.dreamflow.com/Envelope"
            },
            {
              "pointer": "envelope.documents.participants.options.identity_verification_status",
              "port": "kyc.status"
            }
          ]
        },
        "x-also-at": {
          "method": "GET",
          "path": "/v1/{name}:view"
        }
      }
    },
    "/v1/{name}/signing-links": {
      "post": {
        "summary": "Create an embedded signing link",
        "description": "Returns a signing link for one recipient of a sent envelope, to open in an iframe or a new window in your own app. The link works for that envelope and that recipient only, and expires after expires_in_seconds (default 900, at most 86400). Load https://{app-host}/embed/signingflow-embed.js and call Signingflow.mountSigning(element, { url }) to get ready, signed and declined events. Only the standard signing profile can be signed this way. A link made with a test key opens the sandbox envelope only.\n\nTrace codes for this method: 46240 the request fields are invalid, 46241 reading the envelope failed, 46242 the envelope was not found, 46243 the envelope is not sent, or is already completed, declined, expired or retracted, 46244 embedded signing is available for the standard signing profile only, 46245 reading the recipients failed, 46246 the recipient is not a signer of this envelope, 46247 the recipient has already signed or declined, 46248 creating the signing link failed, 46249 saving the signing link failed, 46250 writing the response header failed",
        "operationId": "EnvelopeService_CreateEnvelopeSigningLink",
        "responses": {
          "200": {
            "description": "The link. Give it to the recipient's browser only; do not log or store it.",
            "schema": {
              "$ref": "#/definitions/v1CreateEnvelopeSigningLinkResponse"
            },
            "examples": {
              "application/json": {
                "url": "https://app.signingflow.com/sign/envelopes/7a0e4bd2-3f5c-4f1b-9a51-2d1f0c8e9b10?env=SANDBOX&magicLinkToken=...&embed=1",
                "expireTime": "2026-11-23T03:15:00Z",
                "recipientEmail": "signer@example.com"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 46240 when the request fields are invalid. FAILED_PRECONDITION. Trace code 46243 when the envelope is not sent or already finished. Trace code 46244 when the envelope uses a signing profile other than standard. Trace code 46247 when the recipient has already signed or declined.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 9,
                "message": "Failed Precondition.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request is not in a state that allows it",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46244"
                    }
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 46242 when the envelope was not found. Trace code 46246 when the recipient is not a signer of this envelope.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not Found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "resource not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46246"
                    }
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. envelopes/{uuid}, a sent envelope.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "recipientEmail": {
                  "type": "string",
                  "description": "Required. The email of the signer who will open the link."
                },
                "expiresInSeconds": {
                  "type": "integer",
                  "format": "int32",
                  "description": "Optional. Seconds until the link stops working: 60 to 86400. Default 900."
                }
              },
              "description": "Request for\n[EnvelopeService.CreateEnvelopeSigningLink][dreamflow.v1.EnvelopeService.CreateEnvelopeSigningLink].",
              "required": [
                "recipientEmail"
              ]
            }
          }
        ],
        "tags": [
          "EnvelopeService"
        ],
        "x-trace-codes": [
          "46240 the request fields are invalid. InvalidArgument.",
          "46241 reading the envelope failed. Internal.",
          "46242 the envelope was not found. NotFound.",
          "46243 the envelope is not sent, or is already completed, declined, expired or retracted. FailedPrecondition.",
          "46244 embedded signing is available for the standard signing profile only. FailedPrecondition.",
          "46245 reading the recipients failed. Internal.",
          "46246 the recipient is not a signer of this envelope. NotFound.",
          "46247 the recipient has already signed or declined. FailedPrecondition.",
          "46248 creating the signing link failed. Internal.",
          "46249 saving the signing link failed. Internal.",
          "46250 writing the response header failed. Internal."
        ],
        "x-also-at": {
          "method": "POST",
          "path": "/v1/{name}:createSigningLink"
        }
      }
    },
    "/v1/{name}/download": {
      "get": {
        "summary": "Download an envelope",
        "description": "Prepares the package for one envelope. name is envelopes/{uuid}. The response uri is a signed URL. GET that URL to download the file. download_time is when the package was prepared.\n\nTrace codes for this method: 43326 name is not envelopes/{uuid}, 43327 envelope not found, 43328 reading the envelope failed, 43329 reading the documents failed, 43330 reading the attachments failed, 43331 reading the participants failed, 43332 reading the fields failed, 43333 envelope cannot be downloadd, 43334 reading the download feature setting failed, 43335 downloading completed files is turned off for this workspace, 43336 the download policy blocks completed files, 43337 reading the download policy failed, 43338 reading the stored files failed, 43339 service account is not set, 43340 failed to create storage client, 43341 failed to create temporary file, 43342 failed to write object to zip, 43343 failed to write object to zip, 43344 failed to write object to zip, 43345 generate certificate of completion HTML, 43346 failed to generate certificate of completion, 43347 failed to generate certificate of completion, 43348 create a temporary file to store the certificate of completion, 43349 write certificate of completion to temporary file, 43350 failed to signing certificate of completion, 43351 failed to generate certificate of completion, 43352 failed to write certificate of completion to zip, 43353 failed to close zip writer, 43354 failed to validate zip file, 43355 failed to read temporary file, 43356 file is empty, 43357 failed to write object to storage, 43358 writing the package to storage failed, 43359 generate get signed URL, 43360 envelope not found, 43361 saving the download count failed, 43362 writing the response header failed",
        "operationId": "EnvelopeService_DownloadEnvelope",
        "responses": {
          "200": {
            "description": "The package is ready. uri is a signed URL. GET that URL to download the file. download_time is when the package was prepared.",
            "schema": {
              "$ref": "#/definitions/v1DownloadEnvelopeResponse"
            },
            "examples": {
              "application/json": {
                "uri": "https://storage.googleapis.com/signed/envelope.zip",
                "downloadTime": "2026-11-11T03:00:00Z"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 43326 when name is not envelopes/{uuid}. FAILED_PRECONDITION. Trace code 43333 when envelope cannot be downloadd. Trace code 43335 downloading completed files is turned off for this workspace.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43326"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43326:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 43336 the download policy blocks completed files.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43336"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43336:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 43327 when envelope not found. Trace code 43360 when envelope not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43327"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43327:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 43328 reading the envelope failed. Trace code 43329 reading the documents failed. Trace code 43330 reading the attachments failed. Trace code 43331 reading the participants failed. Trace code 43332 reading the fields failed. Trace code 43334 reading the download feature setting failed. Trace code 43337 reading the download policy failed. Trace code 43338 reading the stored files failed. Trace code 43339 when service account is not set. Trace code 43340 when failed to create storage client. Trace code 43341 when failed to create temporary file. Trace code 43342 when failed to write object to zip. Trace code 43343 when failed to write object to zip. Trace code 43344 when failed to write object to zip. Trace code 43345 when generate certificate of completion HTML. Trace code 43346 when failed to generate certificate of completion. Trace code 43347 when failed to generate certificate of completion. Trace code 43348 when create a temporary file to store the certificate of completion. Trace code 43349 when write certificate of completion to temporary file. Trace code 43350 when failed to signing certificate of completion. Trace code 43351 when failed to generate certificate of completion. Trace code 43352 when failed to write certificate of completion to zip. Trace code 43353 when failed to close zip writer. Trace code 43354 when failed to validate zip file. Trace code 43355 when failed to read temporary file. Trace code 43356 when file is empty. Trace code 43357 when failed to write object to storage. Trace code 43358 writing the package to storage failed. Trace code 43359 when generate get signed URL. Trace code 43361 saving the download count failed. Trace code 43362 writing the response header failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43328"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43328:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "readMask",
            "description": "Optional. Input only.\n\nFiles to include: original, current, signed, or certificateOfCompletion. The query name is readMask.\n(-- api-linter: core::0132::request-unknown-fields=disabled\n    aip.dev/not-precedent: We really need this field because reasons. --)",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "43326 name is not envelopes/{uuid}. InvalidArgument.",
          "43327 envelope not found. NotFound.",
          "43328 reading the envelope failed. Internal.",
          "43329 reading the documents failed. Internal.",
          "43330 reading the attachments failed. Internal.",
          "43331 reading the participants failed. Internal.",
          "43332 reading the fields failed. Internal.",
          "43333 envelope cannot be downloadd. FailedPrecondition.",
          "43334 reading the download feature setting failed. Internal.",
          "43335 downloading completed files is turned off for this workspace. FailedPrecondition.",
          "43336 the download policy blocks completed files. PermissionDenied.",
          "43337 reading the download policy failed. Internal.",
          "43338 reading the stored files failed. Internal.",
          "43339 service account is not set. Internal.",
          "43340 failed to create storage client. Internal.",
          "43341 failed to create temporary file. Internal.",
          "43342 failed to write object to zip. Internal.",
          "43343 failed to write object to zip. Internal.",
          "43344 failed to write object to zip. Internal.",
          "43345 generate certificate of completion HTML. Internal.",
          "43346 failed to generate certificate of completion. Internal.",
          "43347 failed to generate certificate of completion. Internal.",
          "43348 create a temporary file to store the certificate of completion. Internal.",
          "43349 write certificate of completion to temporary file. Internal.",
          "43350 failed to signing certificate of completion. Internal.",
          "43351 failed to generate certificate of completion. Internal.",
          "43352 failed to write certificate of completion to zip. Internal.",
          "43353 failed to close zip writer. Internal.",
          "43354 failed to validate zip file. Internal.",
          "43355 failed to read temporary file. Internal.",
          "43356 file is empty. Internal.",
          "43357 failed to write object to storage. Internal.",
          "43358 writing the package to storage failed. Internal.",
          "43359 generate get signed URL. Internal.",
          "43360 envelope not found. NotFound.",
          "43361 saving the download count failed. Internal.",
          "43362 writing the response header failed. Internal."
        ],
        "x-also-at": {
          "method": "GET",
          "path": "/v1/{name}:download"
        }
      }
    },
    "/v1/{name}/remind": {
      "post": {
        "summary": "Remind envelope signers",
        "description": "Queues a signing reminder for people who can still sign. name is envelopes/{uuid}. Send the current ETag. This does not change the automatic reminder schedule.\n\nTrace codes for this method: 46023 name is not envelopes/{uuid}, 46024 the envelope was not found, 46025 reading the envelope failed, 46026 the ETag does not match, 46027 the envelope state does not allow a reminder, 46028 reading the sent documents failed, 46029 reading the recipients failed, 46030 nobody is still waiting to sign",
        "operationId": "EnvelopeService_RemindEnvelopeSigners",
        "responses": {
          "200": {
            "description": "The reminder was queued. reminded_count is how many people can still sign. remind_time is when the reminder was queued. This does not change the automatic reminder schedule.",
            "schema": {
              "$ref": "#/definitions/v1RemindEnvelopeSignersResponse"
            },
            "examples": {
              "application/json": {
                "remindedCount": 1,
                "remindTime": "2026-11-11T03:00:00Z"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 46023 when name is not envelopes/{uuid}. FAILED_PRECONDITION. Trace code 46026 when the ETag does not match. Trace code 46027 when the envelope state does not allow a reminder. Trace code 46030 when nobody is still waiting to sign.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46023"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/46023:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 46024 when the envelope was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46024"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/46024:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 46025 when reading the envelope failed. Trace code 46028 when reading the sent documents failed. Trace code 46029 when reading the recipients failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46025"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/46025:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required.\n\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "etag": {
                  "type": "string",
                  "description": "Optional. The etag known to the client for the expected state of the envelope."
                }
              },
              "description": "Request for\n[EnvelopeService.RemindEnvelopeSigners][dreamflow.v1.EnvelopeService.RemindEnvelopeSigners]."
            }
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "46023 name is not envelopes/{uuid}. InvalidArgument.",
          "46024 the envelope was not found. NotFound.",
          "46025 reading the envelope failed. Internal.",
          "46026 the ETag does not match. FailedPrecondition.",
          "46027 the envelope state does not allow a reminder. FailedPrecondition.",
          "46028 reading the sent documents failed. Internal.",
          "46029 reading the recipients failed. Internal.",
          "46030 nobody is still waiting to sign. FailedPrecondition."
        ],
        "x-workflow": {
          "cardinality": "many",
          "consumes": [
            {
              "pointer": "name",
              "port": "envelope",
              "required": true,
              "resource": "api.dreamflow.com/Envelope"
            }
          ],
          "effect": "irreversible"
        },
        "x-also-at": {
          "method": "POST",
          "path": "/v1/{name}:remind"
        }
      }
    },
    "/v1/{name}:requestFillFormSigningConfirmation": {
      "post": {
        "summary": "Request a signing confirmation",
        "description": "Starts the extra confirmation before fill form. name is envelopes/{uuid}. method selects EMAIL, PIN, AUTHENTICATOR, or PASSKEY. required false means fill form can continue without a code. challenge_id is sent to verify. A locked response includes the retry wait and does not issue a new challenge. In sandbox an EMAIL code is not sent and nothing is charged: the code is 000000, and the skipped email is recorded as a task.\n\nTrace codes for this method: 43894 name is not envelopes/{uuid}, 43895 envelope not found, 43896 reading the envelope failed, 43897 get all doc sents, 43898 reading the participants failed, 43899 reading the fields failed, 43900 envelope cannot be fill form, 43901 participants may be stored by email (e.g. power forms) with a null user id, 43902 current actor cannot take action to fill form, 43903 sending the email confirmation code failed, 43904 build the WebAuthn instance from the relying-party configuration, 43905 begin the WebAuthn assertion, 44213 reading whether recipient signing is blocked failed, 44214 recipient signing is blocked until approval finishes",
        "operationId": "EnvelopeService_RequestFillFormEnvelopeSigningConfirmation",
        "responses": {
          "200": {
            "description": "The confirmation challenge. required false means fill form can continue. challenge_id is sent to verify. A locked challenge does not include a new code.",
            "schema": {
              "$ref": "#/definitions/v1RequestFillFormEnvelopeSigningConfirmationResponse"
            },
            "examples": {
              "application/json": {
                "required": true,
                "method": "EMAIL",
                "defaultMethod": "EMAIL",
                "availableMethods": [
                  "EMAIL"
                ],
                "challengeId": "8c1d0e2a-6b4f-4a1e-9c33-1a2b3c4d5e6f",
                "email": "s***@example.com",
                "requestTime": "2026-11-11T03:00:00Z"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 43894 when name is not envelopes/{uuid}. FAILED_PRECONDITION. Trace code 43900 when envelope cannot be fill form. Trace code 44214 recipient signing is blocked until approval finishes.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43894"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43894:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 43902 when current actor cannot take action to fill form.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43902"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43902:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 43895 when envelope not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43895"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43895:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 43896 reading the envelope failed. Trace code 43897 when get all doc sents. Trace code 43898 reading the participants failed. Trace code 43899 reading the fields failed. Trace code 43901 when participants may be stored by email (e.g. power forms) with a null user id. Trace code 43903 sending the email confirmation code failed. Trace code 43904 when build the WebAuthn instance from the relying-party configuration. Trace code 43905 when begin the WebAuthn assertion. Trace code 44213 reading whether recipient signing is blocked failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43896"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43896:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "method": {
                  "type": "string",
                  "description": "Optional. Input only.\n\nThe confirmation method to challenge. When empty, the actor's default\nsigning confirmation method is used.\nSupported values: PIN, PASSKEY, EMAIL, AUTHENTICATOR.\nPIN is a signing confirmation code, not account two-factor authentication.\nPASSKEY confirms with Face ID, Touch ID, or a security key when registered."
                },
                "resendEmailCode": {
                  "type": "boolean",
                  "description": "Optional. Input only.\n\nWhen true and the email method is active, issues a new email code after the\nresend cooldown. When false, an unexpired email challenge is returned without\nsending another message."
                }
              },
              "description": "Request for\n[EnvelopeService.RequestFillFormEnvelopeSigningConfirmation][dreamflow.v1.EnvelopeService.RequestFillFormEnvelopeSigningConfirmation]\nmethod."
            }
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "43894 name is not envelopes/{uuid}. InvalidArgument.",
          "43895 envelope not found. NotFound.",
          "43896 reading the envelope failed. Internal.",
          "43897 get all doc sents. Internal.",
          "43898 reading the participants failed. Internal.",
          "43899 reading the fields failed. Internal.",
          "43900 envelope cannot be fill form. FailedPrecondition.",
          "43901 participants may be stored by email (e.g. power forms) with a null user id. Internal.",
          "43902 current actor cannot take action to fill form. PermissionDenied.",
          "43903 sending the email confirmation code failed. Internal.",
          "43904 build the WebAuthn instance from the relying-party configuration. Internal.",
          "43905 begin the WebAuthn assertion. Internal.",
          "44213 reading whether recipient signing is blocked failed. Internal.",
          "44214 recipient signing is blocked until approval finishes. FailedPrecondition."
        ],
        "x-workflow": {
          "cardinality": "many",
          "consumes": [
            {
              "pointer": "name",
              "port": "envelope",
              "required": true,
              "resource": "api.dreamflow.com/Envelope"
            },
            {
              "pointer": "status",
              "port": "kyc.ready"
            }
          ],
          "effect": "write",
          "produces": [
            {
              "pointer": "challenge_id",
              "port": "confirmation.challenge"
            }
          ]
        }
      }
    },
    "/v1/{name}/send": {
      "post": {
        "summary": "Send an envelope",
        "description": "Sends one envelope. name is envelopes/{uuid}. Send the current ETag. A repeated idempotency_key returns ALREADY_EXISTS and does not send the envelope again.\n\nTrace codes for this method: 10002 the idempotency key was already used, 43970 name is not envelopes/{uuid}, 43971 reading a saved idempotency key failed, 43972 the envelope was not found, 43973 reading the envelope failed, 43974 reading the sent documents failed, 43975 reading the recipients failed, 43976 reading the fields on a sent document failed, 43977 the ETag does not match, 43978 the envelope status does not allow sending, 43979 reading the send feature setting failed, 43980 sending is turned off for this workspace, 43981 reading the advanced workflow feature failed, 43982 advanced workflow is turned off for this workspace, 43983 the workspace policy does not allow this recipient role or signing order, 43984 reading the workflow policy failed, 43985 reading expired verification holds failed, 43986 releasing an expired verification hold failed, 43987 preparing the organization verification balance failed, 43988 preparing the personal verification balance failed, 43989 reading the verification balance failed, 43990 reading the billing policy failed, 43991 reading the verification send preference failed, 43992 verification credits need a top-up before sending, 43993 verification credits do not cover the recipients, 43994 preparing the organization e-meterai balance failed, 43995 preparing the personal e-meterai balance failed, 43996 reading the e-meterai balance failed, 43997 the e-meterai balance does not cover this send, 43998 preparing the organization certified-signature balance failed, 43999 preparing the personal certified-signature balance failed, 44000 reading the certified-signature balance failed, 44001 the certified-signature balance does not cover this send, 44002 writing the anonymous envelope marks into the PDF failed, 44003 saving the sent envelope failed, 44004 saving the send audit record failed, 44005 reading the linked document failed, 44006 saving the document activity failed, 44007 saving the document send record failed, 44008 saving the document send target failed, 44009 debiting the send balance failed, 44010 preparing the organization e-meterai charge failed, 44011 preparing the personal e-meterai charge failed, 44012 debiting the e-meterai balance failed, 44013 preparing the organization certified-signature charge failed, 44014 preparing the personal certified-signature charge failed, 44015 debiting the certified-signature balance failed, 44016 reading the envelope indexes failed, 44017 building the envelope indexes failed, 44018 updating an envelope index failed, 44019 creating an envelope index failed, 44020 writing the response header failed, 45264 the signing profile cannot be used for this send, 45265 a recipient does not meet the signing profile authentication, 45266 saving the signing profile snapshot failed, 45267 a recipient does not meet the signing profile authentication after send, 45268 saving the signing profile snapshot after send failed, 46016 the approval request is invalid, 46017 the approval record was not found, 46018 the caller cannot send while approval is required, 46019 the envelope state does not allow this approval action, 46020 saving the approval failed, 46263 send_time is less than 5 minutes or more than 90 days ahead, 46264 saving the schedule failed, 46270 the person scheduling the send has no user id.",
        "operationId": "EnvelopeService_SendEnvelope",
        "responses": {
          "200": {
            "description": "The envelope was sent. send_time is when the send finished. A later view returns the sent envelope.",
            "schema": {
              "$ref": "#/definitions/v1SendEnvelopeResponse"
            },
            "examples": {
              "application/json": {
                "sendTime": "2026-11-11T03:00:00Z"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 43970 when name is not envelopes/{uuid}. Trace code 46016 when the approval request is invalid. FAILED_PRECONDITION. Trace code 43977 when the ETag does not match. Trace code 43978 when the envelope status does not allow sending. Trace code 43980 when sending is turned off for this workspace. Trace code 43982 when advanced workflow is turned off for this workspace. Trace code 43992 when verification credits need a top-up before sending. Trace code 45264 when the signing profile cannot be used for this send. Trace code 45265 when a recipient does not meet the signing profile authentication. Trace code 45266 when saving the signing profile snapshot failed. Trace code 45267 when a recipient does not meet the signing profile authentication after send. Trace code 45268 when saving the signing profile snapshot after send failed. Trace code 46019 when the envelope state does not allow this approval action.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43970"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43970:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 43983 when the workspace policy does not allow this recipient role or signing order. Trace code 46018 when the caller cannot send while approval is required.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43983"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43983:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 43972 when the envelope was not found. Trace code 46017 when the approval record was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43972"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43972:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ALREADY_EXISTS. Trace code 10002 when the idempotency key was already used.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 6,
                "message": "Already exists.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "already exists",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "10002"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/10002:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 43993 when verification credits do not cover the recipients. Trace code 43997 when the e-meterai balance does not cover this send. Trace code 44001 when the certified-signature balance does not cover this send.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not enough balance to perform the requested operation.",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43993"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43993:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 43971 when reading a saved idempotency key failed. Trace code 43973 when reading the envelope failed. Trace code 43974 when reading the sent documents failed. Trace code 43975 when reading the recipients failed. Trace code 43976 when reading the fields on a sent document failed. Trace code 43979 when reading the send feature setting failed. Trace code 43981 when reading the advanced workflow feature failed. Trace code 43984 when reading the workflow policy failed. Trace code 43985 when reading expired verification holds failed. Trace code 43986 when releasing an expired verification hold failed. Trace code 43987 when preparing the organization verification balance failed. Trace code 43988 when preparing the personal verification balance failed. Trace code 43989 when reading the verification balance failed. Trace code 43990 when reading the billing policy failed. Trace code 43991 when reading the verification send preference failed. Trace code 43994 when preparing the organization e-meterai balance failed. Trace code 43995 when preparing the personal e-meterai balance failed. Trace code 43996 when reading the e-meterai balance failed. Trace code 43998 when preparing the organization certified-signature balance failed. Trace code 43999 when preparing the personal certified-signature balance failed. Trace code 44000 when reading the certified-signature balance failed. Trace code 44002 when writing the anonymous envelope marks into the PDF failed. Trace code 44003 when saving the sent envelope failed. Trace code 44004 when saving the send audit record failed. Trace code 44005 when reading the linked document failed. Trace code 44006 when saving the document activity failed. Trace code 44007 when saving the document send record failed. Trace code 44008 when saving the document send target failed. Trace code 44009 when debiting the send balance failed. Trace code 44010 when preparing the organization e-meterai charge failed. Trace code 44011 when preparing the personal e-meterai charge failed. Trace code 44012 when debiting the e-meterai balance failed. Trace code 44013 when preparing the organization certified-signature charge failed. Trace code 44014 when preparing the personal certified-signature charge failed. Trace code 44015 when debiting the certified-signature balance failed. Trace code 44016 when reading the envelope indexes failed. Trace code 44017 when building the envelope indexes failed. Trace code 44018 when updating an envelope index failed. Trace code 44019 when creating an envelope index failed. Trace code 44020 when writing the response header failed. Trace code 46020 when saving the approval failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43971"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43971:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "etag": {
                  "type": "string",
                  "description": "Optional. Input only.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
                },
                "idempotencyKey": {
                  "type": "string",
                  "description": "Optional. Input only.\n\nIdempotency key to support idempotency.\nThis request is only idempotent if a `idempotency_key` is provided."
                },
                "sendTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Optional. Input only.\n\nSchedules the send instead of sending now. Must be at least 5 minutes and at\nmost 90 days ahead. Every send check runs now; the envelope stays a draft and\ngoes out at this time. Editing it before then cancels the schedule.\nExample: \"2026-11-25T02:00:00Z\"."
                }
              },
              "description": "Request for\n[EnvelopeService.SendEnvelope][dreamflow.v1.EnvelopeService.SendEnvelope]\nmethod."
            }
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "10002 the idempotency key was already used. AlreadyExists.",
          "43970 name is not envelopes/{uuid}. InvalidArgument.",
          "43971 reading a saved idempotency key failed. Internal.",
          "43972 the envelope was not found. NotFound.",
          "43973 reading the envelope failed. Internal.",
          "43974 reading the sent documents failed. Internal.",
          "43975 reading the recipients failed. Internal.",
          "43976 reading the fields on a sent document failed. Internal.",
          "43977 the ETag does not match. FailedPrecondition.",
          "43978 the envelope status does not allow sending. FailedPrecondition.",
          "43979 reading the send feature setting failed. Internal.",
          "43980 sending is turned off for this workspace. FailedPrecondition.",
          "43981 reading the advanced workflow feature failed. Internal.",
          "43982 advanced workflow is turned off for this workspace. FailedPrecondition.",
          "43983 the workspace policy does not allow this recipient role or signing order. PermissionDenied.",
          "43984 reading the workflow policy failed. Internal.",
          "43985 reading expired verification holds failed. Internal.",
          "43986 releasing an expired verification hold failed. Internal.",
          "43987 preparing the organization verification balance failed. Internal.",
          "43988 preparing the personal verification balance failed. Internal.",
          "43989 reading the verification balance failed. Internal.",
          "43990 reading the billing policy failed. Internal.",
          "43991 reading the verification send preference failed. Internal.",
          "43992 verification credits need a top-up before sending. FailedPrecondition.",
          "43993 verification credits do not cover the recipients. ResourceExhausted.",
          "43994 preparing the organization e-meterai balance failed. Internal.",
          "43995 preparing the personal e-meterai balance failed. Internal.",
          "43996 reading the e-meterai balance failed. Internal.",
          "43997 the e-meterai balance does not cover this send. ResourceExhausted.",
          "43998 preparing the organization certified-signature balance failed. Internal.",
          "43999 preparing the personal certified-signature balance failed. Internal.",
          "44000 reading the certified-signature balance failed. Internal.",
          "44001 the certified-signature balance does not cover this send. ResourceExhausted.",
          "44002 writing the anonymous envelope marks into the PDF failed. Internal.",
          "44003 saving the sent envelope failed. Internal.",
          "44004 saving the send audit record failed. Internal.",
          "44005 reading the linked document failed. Internal.",
          "44006 saving the document activity failed. Internal.",
          "44007 saving the document send record failed. Internal.",
          "44008 saving the document send target failed. Internal.",
          "44009 debiting the send balance failed. Internal.",
          "44010 preparing the organization e-meterai charge failed. Internal.",
          "44011 preparing the personal e-meterai charge failed. Internal.",
          "44012 debiting the e-meterai balance failed. Internal.",
          "44013 preparing the organization certified-signature charge failed. Internal.",
          "44014 preparing the personal certified-signature charge failed. Internal.",
          "44015 debiting the certified-signature balance failed. Internal.",
          "44016 reading the envelope indexes failed. Internal.",
          "44017 building the envelope indexes failed. Internal.",
          "44018 updating an envelope index failed. Internal.",
          "44019 creating an envelope index failed. Internal.",
          "44020 writing the response header failed. Internal.",
          "45264 the signing profile cannot be used for this send. FailedPrecondition.",
          "45265 a recipient does not meet the signing profile authentication. FailedPrecondition.",
          "45266 saving the signing profile snapshot failed. FailedPrecondition.",
          "45267 a recipient does not meet the signing profile authentication after send. FailedPrecondition.",
          "45268 saving the signing profile snapshot after send failed. FailedPrecondition.",
          "46016 the approval request is invalid. InvalidArgument.",
          "46017 the approval record was not found. NotFound.",
          "46018 the caller cannot send while approval is required. PermissionDenied.",
          "46019 the envelope state does not allow this approval action. FailedPrecondition.",
          "46020 saving the approval failed. Internal.",
          "46263 send_time is less than 5 minutes or more than 90 days ahead. InvalidArgument.",
          "46264 saving the schedule failed. Internal.",
          "46270 the person scheduling the send has no user id. Internal."
        ],
        "x-workflow": {
          "cardinality": "once",
          "consumes": [
            {
              "pointer": "name",
              "port": "envelope",
              "required": true,
              "resource": "api.dreamflow.com/Envelope"
            }
          ],
          "effect": "irreversible",
          "produces": [
            {
              "pointer": "name",
              "port": "envelope",
              "resource": "api.dreamflow.com/Envelope"
            }
          ],
          "reconcile": {
            "check": {
              "pointer": "envelope.sent_time",
              "present": true
            },
            "operationId": "EnvelopeService_ViewEnvelope",
            "port": "envelope"
          }
        },
        "x-also-at": {
          "method": "POST",
          "path": "/v1/{name}:send"
        }
      }
    },
    "/v1/{name}/simulate": {
      "post": {
        "summary": "Simulate a signer event in sandbox",
        "description": "Plays VIEWED, SIGNED, DECLINED or EXPIRED on a sent sandbox envelope for one recipient (by email), without a real signer. The envelope and recipient change as for the real event, and the same webhooks are sent: RECIPIENT_VIEWED; RECIPIENT_SIGNED with DOC_ENVELOPE_SIGNED, or DOC_ENVELOPE_COMPLETED when the last signer signs; DOC_ENVELOPE_REJECTED; DOC_ENVELOPE_EXPIRED. A simulated signature does not change the PDF. Only a test key (sf_test_) or a sandbox session can call it; nothing in live is read or changed, and no credit is used.\n\nTrace codes for this method: 46220 the request fields are invalid, 46221 simulation runs only in sandbox; use a test key, 46222 reading the envelope failed, 46223 the envelope was not found, 46224 the envelope is not sent, or is already completed, declined, expired or retracted, 46225 reading the recipients failed, 46226 the recipient is not a signer of this envelope, 46227 the recipient has already signed or declined, 46228 saving the simulated event failed, 46229 writing the response header failed",
        "operationId": "EnvelopeService_SimulateEnvelopeEvent",
        "responses": {
          "200": {
            "description": "The event was played. events lists the webhooks that were queued.",
            "schema": {
              "$ref": "#/definitions/v1SimulateEnvelopeEventResponse"
            },
            "examples": {
              "application/json": {
                "envelopeState": "COMPLETED",
                "recipientState": "COMPLETED",
                "events": [
                  "RECIPIENT_SIGNED",
                  "DOC_ENVELOPE_COMPLETED"
                ]
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 46220 when the request fields are invalid. FAILED_PRECONDITION. Trace code 46221 when the caller is in live. Trace code 46224 when the envelope is not sent or already finished. Trace code 46227 when the recipient has already signed or declined.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 9,
                "message": "Failed Precondition.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request is not in a state that allows it",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46221"
                    }
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 46223 when the envelope was not found. Trace code 46226 when the recipient is not a signer of this envelope.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not Found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "resource not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46223"
                    }
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. envelopes/{uuid}, a sent sandbox envelope.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "event": {
                  "type": "string",
                  "description": "Required. VIEWED, SIGNED, DECLINED or EXPIRED."
                },
                "recipientEmail": {
                  "type": "string",
                  "description": "The email of the signer the event is for. Required for VIEWED, SIGNED and DECLINED."
                },
                "reason": {
                  "type": "string",
                  "description": "Optional. The decline reason, for DECLINED."
                }
              },
              "description": "Request for\n[EnvelopeService.SimulateEnvelopeEvent][dreamflow.v1.EnvelopeService.SimulateEnvelopeEvent].",
              "required": [
                "event"
              ]
            }
          }
        ],
        "tags": [
          "EnvelopeService"
        ],
        "x-trace-codes": [
          "46220 the request fields are invalid. InvalidArgument.",
          "46221 simulation runs only in sandbox; use a test key. FailedPrecondition.",
          "46222 reading the envelope failed. Internal.",
          "46223 the envelope was not found. NotFound.",
          "46224 the envelope is not sent, or is already completed, declined, expired or retracted. FailedPrecondition.",
          "46225 reading the recipients failed. Internal.",
          "46226 the recipient is not a signer of this envelope. NotFound.",
          "46227 the recipient has already signed or declined. FailedPrecondition.",
          "46228 saving the simulated event failed. Internal.",
          "46229 writing the response header failed. Internal."
        ],
        "x-also-at": {
          "method": "POST",
          "path": "/v1/{name}:simulate"
        }
      }
    },
    "/v1/{name}:verifyFillFormSigningConfirmation": {
      "post": {
        "summary": "Verify a signing confirmation",
        "description": "Checks the confirmation before fill form. name is envelopes/{uuid}. Send method with challenge_id and code, or passkey_assertion for a passkey. verified true means the proof can be used on fill form. expiry_time is when that proof expires. In sandbox, 000000 passes an EMAIL or AUTHENTICATOR code. A live envelope never accepts it.\n\nTrace codes for this method: 44155 name is not envelopes/{uuid}, 44156 envelope not found, 44157 reading the envelope failed, 44158 get all doc sents, 44159 reading the participants failed, 44160 reading the fields failed, 44161 envelope cannot be fill form, 44162 participants may be stored by email (e.g. power forms) with a null user id, 44163 current actor cannot take action to fill form, 44164 while temporarily locked reject the verification with a retry hint, 44213 reading whether recipient signing is blocked failed, 44214 recipient signing is blocked until approval finishes, 45311 the compliance check rejected the request",
        "operationId": "EnvelopeService_VerifyFillFormEnvelopeSigningConfirmation",
        "responses": {
          "200": {
            "description": "The confirmation result. verified true means the proof can be used on fill form. expiry_time is when that proof expires.",
            "schema": {
              "$ref": "#/definitions/v1VerifyFillFormEnvelopeSigningConfirmationResponse"
            },
            "examples": {
              "application/json": {
                "verified": true,
                "method": "EMAIL",
                "expiryTime": "2026-11-11T03:10:00Z",
                "verifyTime": "2026-11-11T03:00:00Z"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 44155 when name is not envelopes/{uuid}. FAILED_PRECONDITION. Trace code 44161 when envelope cannot be fill form. Trace code 44214 recipient signing is blocked until approval finishes.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44155"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44155:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 44163 when current actor cannot take action to fill form.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44163"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44163:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 44156 when envelope not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44156"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44156:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 44164 when while temporarily locked reject the verification with a retry hint.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44164"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44164:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 44157 reading the envelope failed. Trace code 44158 when get all doc sents. Trace code 44159 reading the participants failed. Trace code 44160 reading the fields failed. Trace code 44162 when participants may be stored by email (e.g. power forms) with a null user id. Trace code 44213 reading whether recipient signing is blocked failed. INTERNAL. Trace code 45311 when the compliance check rejected the request.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "44157"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/44157:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "method": {
                  "type": "string",
                  "description": "Required. Input only.\n\nThe confirmation method being verified.\nSupported values: PIN, PASSKEY, EMAIL, AUTHENTICATOR."
                },
                "challengeId": {
                  "type": "string",
                  "description": "Optional. Input only.\n\nThe challenge identifier returned from\n[EnvelopeService.RequestFillFormEnvelopeSigningConfirmation] for the email\nor passkey confirmation method."
                },
                "code": {
                  "type": "string",
                  "description": "Optional. Input only.\n\nThe confirmation code for the PIN, authenticator, or email method."
                },
                "passkeyAssertion": {
                  "type": "string",
                  "description": "Optional. Input only.\n\nThe passkey assertion, serialized as JSON, for the passkey method."
                }
              },
              "description": "Request for\n[EnvelopeService.VerifyFillFormEnvelopeSigningConfirmation][dreamflow.v1.EnvelopeService.VerifyFillFormEnvelopeSigningConfirmation]\nmethod.",
              "required": [
                "method"
              ]
            }
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "44155 name is not envelopes/{uuid}. InvalidArgument.",
          "44156 envelope not found. NotFound.",
          "44157 reading the envelope failed. Internal.",
          "44158 get all doc sents. Internal.",
          "44159 reading the participants failed. Internal.",
          "44160 reading the fields failed. Internal.",
          "44161 envelope cannot be fill form. FailedPrecondition.",
          "44162 participants may be stored by email (e.g. power forms) with a null user id. Internal.",
          "44163 current actor cannot take action to fill form. PermissionDenied.",
          "44164 while temporarily locked reject the verification with a retry hint. ResourceExhausted.",
          "44213 reading whether recipient signing is blocked failed. Internal.",
          "44214 recipient signing is blocked until approval finishes. FailedPrecondition.",
          "45311 the compliance check rejected the request. Unknown."
        ],
        "x-workflow": {
          "bodyShape": [
            {
              "pointer": "method",
              "port": "confirmation.challenge",
              "read": "method",
              "shape": "copy"
            }
          ],
          "cardinality": "many",
          "consumes": [
            {
              "pointer": "name",
              "port": "envelope",
              "required": true,
              "resource": "api.dreamflow.com/Envelope"
            },
            {
              "pointer": "challenge_id",
              "port": "confirmation.challenge",
              "required": true
            }
          ],
          "effect": "write",
          "produces": [
            {
              "pointer": "challenge_id",
              "port": "confirmation.passed"
            }
          ]
        }
      }
    },
    "/v1/{parent}": {
      "get": {
        "summary": "List envelopes",
        "description": "Lists envelopes in one directory. parent is envelopes. directory is required. The lists are needAction, waitingOthers, draft, inbox, sent, sharedWithMe, templateSession, completed, archived, purged, and all. An omitted page_size returns 50. A negative page_size or a page_size above 1000 is invalid. page_token is at most 255 characters and is the base64 encoding of a decimal offset. A token that does not decode, or a negative offset, is invalid. The response envelopes identify each envelope. Each envelope has more fields.\n\nTrace codes for this method: 43588 directory is missing or page_size is negative or above 1000 or page_token is longer than 255 characters, 43589 page_token is not valid base64, 43590 page_token is not a decimal offset, 43591 where tag is not a UUID, 43592 a where or sorter field is not allowed, 43593 reading the folder for doc_folder_slug failed, 43594 reading the envelope list failed, 43595 building the envelope list failed, 43596 reading the view-documents feature failed, 43597 viewing documents is turned off for this workspace, 43598 building the envelope list failed, 46050 page_token decodes to a negative offset, 46051 reading the template send sessions failed",
        "operationId": "EnvelopeService_ListEnvelopes",
        "responses": {
          "200": {
            "description": "The envelopes in the directory. Each envelope has more fields. next_page_token is the base64 encoding of the next decimal offset. An empty next_page_token means this is the last page.",
            "schema": {
              "$ref": "#/definitions/v1ListEnvelopesResponse"
            },
            "examples": {
              "application/json": {
                "envelopes": [
                  {
                    "name": "envelopes/00000000-0000-0000-0000-000000000000",
                    "displayName": "Mutual NDA"
                  }
                ],
                "nextPageToken": "NTA="
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 43588 when directory is missing or page_size is negative or above 1000 or page_token is longer than 255 characters. Trace code 43589 when page_token is not valid base64. Trace code 43590 when page_token is not a decimal offset. Trace code 46050 when page_token decodes to a negative offset. Trace code 43591 when where tag is not a UUID. Trace code 43592 when a where or sorter field is not allowed. FAILED_PRECONDITION. Trace code 43597 when viewing documents is turned off for this workspace.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43588"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43588:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 43593 when reading the folder for doc_folder_slug failed. Trace code 43594 when reading the envelope list failed. Trace code 43595 when building the envelope list failed. Trace code 43596 when reading the view-documents feature failed. Trace code 43598 when building the envelope list failed. Trace code 46051 when reading the template send sessions failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "43593"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/envelopes/43593:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "parent",
            "description": "Required.\n\nThe parent collection. Send envelopes.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "envelopes"
          },
          {
            "name": "directory",
            "description": "Required.\n\nWhich list to return: needAction, waitingOthers, draft, inbox, sent,\nsharedWithMe, templateSession, completed, archived, purged, or all.\nExample: needAction",
            "in": "query",
            "required": true,
            "type": "string"
          },
          {
            "name": "pageSize",
            "description": "Optional.\n\nMaximum number of envelopes to return. Omitted or 0 returns 50.\nA negative value or a value above 1000 is INVALID_ARGUMENT.",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          },
          {
            "name": "pageToken",
            "description": "Optional.\n\nPage token from the previous ListEnvelopes response. It is the base64\nencoding of a decimal offset. At most 255 characters. A token that does\nnot decode, or a negative offset, is INVALID_ARGUMENT.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "where.root.operation",
            "description": "How conditions in this group should be combined (AND/OR)",
            "in": "query",
            "required": false,
            "type": "string",
            "enum": [
              "UNDEFINED_OPERATION",
              "AND_OPERATION",
              "OR_OPERATION"
            ],
            "default": "UNDEFINED_OPERATION"
          },
          {
            "name": "where.delimiter",
            "description": "Optional. Input only.\n\n'delimiter' specifies a character, or a sequence of characters,\nwhich is used to separate different components of the data within\nthe filter. This may be particularly useful when handling, parsing,\nor segmenting complex or multi-component data within the filter.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "where.condition",
            "description": "Required. Input Only.\n\nCondition enumeration is used for combining multiple filters.\nIt allows defining a logical connector between the filters, which can be either OR or AND.\n\n - UNDEFINED_CONDITION: UNDEFINED_CONDITION is the default value which typically represents the absence of a defined condition.\n - OR: OR condition implies that it is enough for either of the filter conditions to be true.\n - AND: AND condition implies that it is necessary for both filter conditions to be true.",
            "in": "query",
            "required": true,
            "type": "string",
            "enum": [
              "UNDEFINED_CONDITION",
              "OR",
              "AND"
            ],
            "default": "UNDEFINED_CONDITION"
          },
          {
            "name": "where.rangeBy",
            "description": "Optional. Input only.\n\nColumn for defining the range of values (used in conjunction with between condition)",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "where.rangeStart",
            "description": "Optional. Input only.\n\nStarting value of the desired range",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "where.rangeEnd",
            "description": "Optional. Input only.\n\nEnding value of the desired range",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sorter.sortBy",
            "description": "Optional. Input only.\n\nThe 'sort_by' field is used to specify the attribute or column by which the\noutput should be sorted. This is typically the name of the column or\nattribute against you want to sort the data.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sorter.sortOrder",
            "description": "Optional. Input only.\n\nThe 'sort_order' indicates the direction of sorting, whether it should be\nAscending (ASC) or Descending (DESC). Its value is of enum type 'SortOrder'.\n\n - ASC: 'ASC' value indicates that data should be sorted in ascending order,\nthis means from smallest to largest or from A-Z in the case of strings.\n - DESC: 'DESC' value indicates that data should be sorted in descending order,\nthis means from largest to smallest or from Z-A in the case of strings.",
            "in": "query",
            "required": false,
            "type": "string",
            "enum": [
              "ASC",
              "DESC"
            ],
            "default": "ASC"
          },
          {
            "name": "showDeleted",
            "description": "Optional. Input only.",
            "in": "query",
            "required": false,
            "type": "boolean"
          },
          {
            "name": "docFolderSlug",
            "description": "Optional. Input only.\n\nFilter envelopes by nested folder slug path (includes descendants).\nExample: home/contracts/acme-inc",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "readMask",
            "description": "Optional.\n\nRead mask is used for a more granular control over what the API returns.\n(-- api-linter: core::0132::request-unknown-fields=disabled\n    aip.dev/not-precedent: We really need this field because reasons. --)",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "filterMask",
            "description": "Optional.\n\nFilter mask is used for a more granular control over what the API filters.\n(-- api-linter: core::0132::request-unknown-fields=disabled\n    aip.dev/not-precedent: We really need this field because reasons. --)",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "43588 directory is missing or page_size is negative or above 1000 or page_token is longer than 255 characters. InvalidArgument.",
          "43589 page_token is not valid base64. InvalidArgument.",
          "43590 page_token is not a decimal offset. InvalidArgument.",
          "43591 where tag is not a UUID. InvalidArgument.",
          "43592 a where or sorter field is not allowed. InvalidArgument.",
          "43593 reading the folder for doc_folder_slug failed. Internal.",
          "43594 reading the envelope list failed. Internal.",
          "43595 building the envelope list failed. Internal.",
          "43596 reading the view-documents feature failed. Internal.",
          "43597 viewing documents is turned off for this workspace. FailedPrecondition.",
          "43598 building the envelope list failed. Internal.",
          "46050 page_token decodes to a negative offset. InvalidArgument.",
          "46051 reading the template send sessions failed. Internal."
        ]
      }
    },
    "/v1/storages:batchAcknowledgeUpload": {
      "post": {
        "summary": "Batch acknowledge storage uploads",
        "description": "Confirms each upload finished. Each returned status is ACKNOWLEDGED. A later read of each storage returns status ACKNOWLEDGED. names lists storages/{uuid}. A repeated idempotency_key returns ALREADY_EXISTS and does not return the original storages.\n\nTrace codes for this method: 34901 names is missing or idempotency_key is not a UUID, 34902 idempotency key was already used, 34903 reading the storages failed, 34904 no storage was found, 34905 queueing the scan failed, 34906 saving the scan task failed, 34907 running the scan failed, 34908 a name is not storages/{uuid}, 34909 a name is not a storage UUID",
        "operationId": "StorageService_BatchAcknowledgeUpload",
        "responses": {
          "200": {
            "description": "HTTP 200. One status per name. Each status is ACKNOWLEDGED.",
            "schema": {
              "$ref": "#/definitions/v1BatchAcknowledgeUploadResponse"
            },
            "examples": {
              "application/json": {
                "statuses": [
                  {
                    "name": "storages/6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                    "status": "ACKNOWLEDGED",
                    "acknowledgeTime": "2026-11-03T00:00:00Z"
                  }
                ]
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 34901 when names is missing or idempotency_key is not a UUID. Trace code 34908 when a name is not storages/{uuid}. Trace code 34909 when a name is not a storage UUID.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "34901"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/34901:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 20009.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20009"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/20009:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 34904 when no storage was found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "34904"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/34904:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ALREADY_EXISTS. Trace code 34902 when idempotency key was already used. The original storages are not returned.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 6,
                "message": "Already exists.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "error.already_exists.reason_idempotency_key_already_processed",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "34902"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/34902:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 34903 when reading the storages failed. Trace code 34905 when queueing the scan failed. Trace code 34906 when saving the scan task failed. Trace code 34907 when running the scan failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "34903"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/34903:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "description": "Request for\n[StorageService.BatchAcknowledgeUpload][dreamflow.storage.v1.StorageService.BatchAcknowledgeUpload]\nmethod.",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1BatchAcknowledgeUploadRequest"
            }
          }
        ],
        "tags": [
          "Storage"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "34901 names is missing or idempotency_key is not a UUID",
          "34902 idempotency key was already used",
          "34903 reading the storages failed",
          "34904 no storage was found",
          "34905 queueing the scan failed",
          "34906 saving the scan task failed",
          "34907 running the scan failed",
          "34908 a name is not storages/{uuid}",
          "34909 a name is not a storage UUID"
        ],
        "x-workflow": {
          "cardinality": "once",
          "consumes": [
            {
              "pointer": "names",
              "port": "storage",
              "required": true,
              "resource": "api.dreamflow.com/Storage"
            }
          ],
          "effect": "write",
          "produces": [
            {
              "pointer": "statuses.name",
              "port": "storage",
              "resource": "api.dreamflow.com/Storage"
            }
          ]
        }
      }
    },
    "/v1/storages:batchAddStorage": {
      "post": {
        "summary": "Batch add storages",
        "description": "Creates one pending storage per item and returns each storage with pre_signed_url. PUT each file to its own URL with Content-Type equal to its mime_type and the header x-goog-if-generation-match: 0. The default lifetime is 60 seconds. When signing one URL fails, that storage is still saved and pre_signed_url is empty. There is no trace code for the empty URL. Then call Acknowledge for each name. storages is required. An idempotency_key when set must be a UUID. A repeated idempotency_key returns ALREADY_EXISTS and does not return the original storages.\n\nTrace codes for this method: 34201 storages is missing or idempotency_key is not a UUID, 34202 idempotency key was already used, 34203 saving a storage failed, 34204 the saved storages could not be read back, 34205 reading the saved storages failed",
        "operationId": "StorageService_BatchAddStorage",
        "responses": {
          "200": {
            "description": "HTTP 200. The storages that were created. Each item includes pre_signed_url. An item whose URL could not be signed is still returned and pre_signed_url is empty. The record has more fields.",
            "schema": {
              "$ref": "#/definitions/v1BatchAddStorageResponse"
            },
            "examples": {
              "application/json": {
                "storages": [
                  {
                    "name": "storages/6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                    "uid": "6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                    "preSignedUrl": "https://example.com/upload",
                    "status": "PENDING"
                  }
                ]
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 34201 when storages is missing or idempotency_key is not a UUID.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "34201"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/34201:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 20009.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20009"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/20009:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 34204 when the saved storages could not be read back.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "34204"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/34204:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ALREADY_EXISTS. Trace code 34202 when idempotency key was already used. The original storages are not returned.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 6,
                "message": "Already exists.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "error.already_exists.reason_idempotency_key_already_processed",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "34202"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/34202:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 34203 when saving a storage failed. Trace code 34205 when reading the saved storages failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "34203"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/storages/34203:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "description": "Request for\n[StorageService.BatchAddStorage][dreamflow.storage.v1.StorageService.BatchAddStorage]\nmethod.",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1BatchAddStorageRequest"
            }
          }
        ],
        "tags": [
          "Storage"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "34201 storages is missing or idempotency_key is not a UUID",
          "34202 idempotency key was already used",
          "34203 saving a storage failed",
          "34204 the saved storages could not be read back",
          "34205 reading the saved storages failed"
        ],
        "x-workflow": {
          "cardinality": "once",
          "effect": "write",
          "produces": [
            {
              "pointer": "storages.name",
              "port": "storage",
              "resource": "api.dreamflow.com/Storage"
            }
          ]
        }
      }
    },
    "/v1/{name}/use": {
      "post": {
        "summary": "Use a template",
        "description": "Creates a draft envelope from a template. name is templates/{uuid}. The response envelope.name is the new draft. A repeated idempotency_key returns ALREADY_EXISTS and does not create another draft. read_mask selects the fields on the envelope.\n\nTrace codes for this method: 45841 name is not templates/{uuid}, 45842 the idempotency key is present and matches the expected value, 45843 template not found, 45844 reading the template failed, 45845 reading the templates feature setting failed, 45846 templates are turned off for this workspace, 45847 reading the template attachments failed, 45848 reading the template participants failed, 45849 reading the template fields failed, 45850 reading the storages for the template failed, 45851 the template attachments do not name a storage id, 45852 saving the envelope failed, 45853 saving an envelope audit trail failed, 45854 saving a document failed, 45855 saving an attachment failed, 45856 saving a document audit trail failed, 45857 saving a participant failed, 45858 saving a field failed, 45859 queueing the thumbnail job failed, 45860 saving the thumbnail task failed, 45861 the new envelope was not found, 45862 reading the new envelope failed, 45863 reading the documents failed, 45864 reading the participants failed, 45865 reading the attachments failed, 45866 building the envelope index failed, 45867 saving an envelope index row failed, 45868 doc index does not exist create it, 45869 writing the response header failed",
        "operationId": "TemplateService_UseTemplate",
        "responses": {
          "200": {
            "description": "The draft envelope created from the template. envelope.name is the new id. The record has more fields.",
            "schema": {
              "$ref": "#/definitions/v1Envelope",
              "readOnly": true
            },
            "examples": {
              "application/json": {
                "name": "envelopes/00000000-0000-0000-0000-000000000000",
                "displayName": "Mutual NDA"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 45841 when name is not templates/{uuid}.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "45841"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/templates/45841:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/templates/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 20009. The caller is authenticated and does not have permission for this call.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20009"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/templates/20009:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 45843 when template not found. Trace code 45861 the new envelope was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "45843"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/templates/45843:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ALREADY_EXISTS. Trace code 45842 when the idempotency key was already used. The original envelope is not returned.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 6,
                "message": "Already exists.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "idempotency key already processed",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "45842"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/templates/45842:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 20012.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/templates/20012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "503": {
            "description": "HTTP 503. UNAVAILABLE. Trace code 20013.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 14,
                "message": "Unavailable.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "unavailable",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20013"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/templates/20013:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required.\n\nResource name.\nFormat: templates/{uuid}.\nExample: templates/6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "templates/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "readMask": {
                  "type": "string",
                  "description": "Optional. The fields to be returned in the response."
                },
                "idempotencyKey": {
                  "type": "string",
                  "description": "Optional client token. Sending the same token again returns ALREADY_EXISTS\nand does not create a second resource. Must be a UUID when set."
                }
              },
              "description": "Body for using a template."
            }
          }
        ],
        "tags": [
          "Template, Envelope"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "45841 name is not templates/{uuid}. InvalidArgument.",
          "45842 the idempotency key is present and matches the expected value. AlreadyExists.",
          "45843 template not found. NotFound.",
          "45844 reading the template failed. Internal.",
          "45845 reading the templates feature setting failed. Internal.",
          "45846 templates are turned off for this workspace. FailedPrecondition.",
          "45847 reading the template attachments failed. Internal.",
          "45848 reading the template participants failed. Internal.",
          "45849 reading the template fields failed. Internal.",
          "45850 reading the storages for the template failed. Internal.",
          "45851 the template attachments do not name a storage id. InvalidArgument.",
          "45852 saving the envelope failed. Internal.",
          "45853 saving an envelope audit trail failed. Internal.",
          "45854 saving a document failed. Internal.",
          "45855 saving an attachment failed. Internal.",
          "45856 saving a document audit trail failed. Internal.",
          "45857 saving a participant failed. Internal.",
          "45858 saving a field failed. Internal.",
          "45859 queueing the thumbnail job failed. Internal.",
          "45860 saving the thumbnail task failed. Internal.",
          "45861 the new envelope was not found. NotFound.",
          "45862 reading the new envelope failed. Internal.",
          "45863 reading the documents failed. Internal.",
          "45864 reading the participants failed. Internal.",
          "45865 reading the attachments failed. Internal.",
          "45866 building the envelope index failed. Internal.",
          "45867 saving an envelope index row failed. Internal.",
          "45868 doc index does not exist create it. Internal.",
          "45869 writing the response header failed. Internal."
        ],
        "x-also-at": {
          "method": "POST",
          "path": "/v1/{name}:use"
        }
      }
    },
    "/v1/iam:authorizeMyPsreStamp": {
      "post": {
        "summary": "Authorize my PSrE stamp",
        "description": "Submits the one-time code for the current retail signature batch. stamp_id comes from FillFormEnvelope.psre_stamp_id. An omitted stamp_id uses the latest batch waiting for a code. otp is required when that batch is waiting. stamp.state is signing while the stamped file is still arriving, retail_complete when every specimen batch is done, or need_authorize when another batch still needs a code. stamp.uid is the id to send on the next call.\n\nTrace codes for this method: 00015 the code is empty or did not match or no batch is waiting",
        "operationId": "IAMService_AuthorizeMyPsreStamp",
        "responses": {
          "200": {
            "description": "The stamp after the code is accepted. state signing means the stamped file arrives later. state retail_complete means every specimen batch is done. state need_authorize means another batch still needs a code.",
            "schema": {
              "$ref": "#/definitions/v1ViewMyPsreStampResponse"
            },
            "examples": {
              "application/json": {
                "stamp": {
                  "uid": "8a0b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
                  "state": "signing",
                  "specimenKind": "signature",
                  "externalId": "ext-1",
                  "errorMessage": ""
                }
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 00015. The message is the cause: the code is empty, the code did not match, or no signature is waiting for a code.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "psre: that code didn’t match",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "psre_certificate",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "00015"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/iam/00015:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1AuthorizeMyPsreStampRequest"
            }
          }
        ],
        "tags": [
          "IAM"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "00015 the code is empty or did not match or no batch is waiting. Internal."
        ],
        "x-workflow": {
          "cardinality": "many",
          "consumes": [
            {
              "pointer": "stamp_id",
              "port": "psre.otp",
              "required": true
            }
          ],
          "effect": "write",
          "gate": {
            "input": [
              {
                "field": "otp",
                "required": true,
                "secret": true
              }
            ],
            "kind": "otp.psre",
            "resend": "IAMService_ResendMyPsreStampOtp",
            "role": "submit"
          }
        }
      }
    },
    "/v1/creator/drafts:start": {
      "post": {
        "summary": "Start a draft",
        "description": "Creates a draft in the workspace from catalog_template (catalogTemplates/{slug}), source_draft (drafts/{uuid}) or a blank page, then sets each entry of variables: an existing variable gets the value, a new key is created with it. Returns the draft with its content and current_version. title defaults to the catalog template title and is required otherwise. Answers HTTP 200. A repeated idempotency_key from the same workspace answers HTTP 200 with the draft the first call created instead of a second draft (its current state, so later edits show), or 404 (59558) when that draft was deleted since. Errors from CreateDraft and UpdateDraft keep their own trace codes.\n\nTrace codes for this method: 59551 a field is missing or malformed, 59552 a request with this idempotency_key is still running, 59553 reading the idempotency key failed, 59554 saving the idempotency key failed, 59555 the catalog template was not found, 59556 reading the catalog template failed, 59557 recording the idempotency key result failed, 59558 the replayed draft was not found, 59559 reading the replayed draft failed, 59560 reading the new draft content failed.",
        "operationId": "CreatorApiService_StartDraft",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1Draft"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1StartDraftRequest"
            }
          }
        ],
        "tags": [
          "Creator"
        ]
      }
    },
    "/v1/creator/{name}/outline": {
      "get": {
        "summary": "Get a draft outline",
        "description": "Returns the top-level blocks with their id, type and text in the inline markup ApplyDraftOps accepts ({{variable.key}}, [[SIGNATURE:role]], **bold**, *italic*), the roles with their field count, the variables with their values and whether the document uses them, and every field. Use the block ids as anchors for ApplyDraftOps.\n\nTrace codes for this method: 59601 name is not drafts/{uuid}, 59602 the draft was not found, 59603 reading the draft failed, 59604 the draft content could not be read.",
        "operationId": "CreatorApiService_GetDraftOutline",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1DraftOutline"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Format: drafts/{draft_id}\nExample: drafts/7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "drafts/[^/]+"
          }
        ],
        "tags": [
          "Creator"
        ]
      }
    },
    "/v1/creator/{name}/status": {
      "get": {
        "summary": "Get a draft status",
        "description": "Returns the draft state and current_version, whether the pre-send check passes, the latest render with its state and PDF link, and the envelope the draft was last sent as. envelope_status is read from the envelope service and is empty when the key cannot read envelopes.\n\nTrace codes for this method: 59851 name is not drafts/{uuid}, 59852 the draft was not found, 59853 reading the draft failed, 59854 reading the latest render failed, 59855 reading the sent envelope link failed, 59856 the draft content could not be read.",
        "operationId": "CreatorApiService_GetDraftStatus",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1DraftStatus"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Format: drafts/{draft_id}\nExample: drafts/7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "drafts/[^/]+"
          }
        ],
        "tags": [
          "Creator"
        ]
      }
    },
    "/v1/creator/{name}:applyOps": {
      "post": {
        "summary": "Edit a draft with operations",
        "description": "Applies ops in order; each op sees the changes of the ops before it. Ops: insert_blocks, replace_block, delete_block, delete_blocks, move_block, replace_text, set_block_attrs, set_variable, create_variable, add_role, set_role, add_field, update_field, comment and set_theme. Every op must succeed or nothing is saved. With validate_only the server applies the ops to a copy and returns HTTP 200 with the outline it would save and every failure, and saves nothing. Saving goes through UpdateDraft, so a new current_version is returned and UpdateDraft errors keep their trace codes. A comment op becomes a comment thread after the save.\n\nTrace codes for this method: 59651 a field is missing or malformed, 59652 the draft was not found, 59653 reading the draft failed, 59654 the draft cannot be edited (archived or deleted), 59655 base_version is not the current version, 59656 the draft content could not be read, 59657 an op failed and nothing was saved, 59658 encoding the new content failed, 59659 the new content is not a valid document.",
        "operationId": "CreatorApiService_ApplyDraftOps",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1ApplyDraftOpsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Format: drafts/{draft_id}\nExample: drafts/7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "drafts/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "ops": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  },
                  "description": "Required. 1 to 200 ops. Each is an object with \"op\" and its parameters, for\nexample {\"op\":\"set_variable\",\"key\":\"client.name\",\"value\":\"PT Maju\"} or\n{\"op\":\"insert_blocks\",\"after\":\"b_x\",\"blocks\":[{\"type\":\"paragraph\",\"text\":\"Hello {{client.name}}\"}]}."
                },
                "baseVersion": {
                  "type": "string",
                  "format": "int64",
                  "description": "Optional. The current_version the caller read. When set and the draft has\nmoved on, nothing is saved. 0 edits the current version."
                },
                "validateOnly": {
                  "type": "boolean",
                  "description": "Optional. Apply to a copy and report; save nothing."
                },
                "versionReason": {
                  "type": "string",
                  "description": "Optional. MANUAL (default) writes a snapshot; AUTOSAVE writes one at most\nevery few minutes."
                },
                "versionLabel": {
                  "type": "string",
                  "description": "Optional. A name for the snapshot. At most 120 characters."
                }
              },
              "description": "Request message for [CreatorApiService.ApplyDraftOps][dreamflow.creator.v1.CreatorApiService.ApplyDraftOps].",
              "required": [
                "ops"
              ]
            }
          }
        ],
        "tags": [
          "Creator"
        ]
      }
    },
    "/v1/creator/{name}:check": {
      "get": {
        "summary": "Check a draft before sending",
        "description": "Runs the editor's pre-send check: a variable the document uses has no value (EMPTY_VARIABLE), a role has no field (ROLE_WITHOUT_FIELDS), a field names a role that is not defined (FIELD_WITHOUT_ROLE), or the document has no field (NO_FIELDS). ready is true when issues is empty. server_render_blockers lists content RenderDraftPdf cannot lay out.\n\nTrace codes for this method: 59701 name is not drafts/{uuid}, 59702 the draft was not found, 59703 reading the draft failed, 59704 the draft content could not be read.",
        "operationId": "CreatorApiService_CheckDraft",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1CheckDraftResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Format: drafts/{draft_id}\nExample: drafts/7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "drafts/[^/]+"
          }
        ],
        "tags": [
          "Creator"
        ]
      }
    },
    "/v1/creator/{name}:renderPdf": {
      "post": {
        "summary": "Render a draft to PDF",
        "description": "Lays out the current version on the server with variables filled in, queues the PDF render and returns an operation with done false, name tasks/{id} and metadata.render as drafts/{draft_id}/renders/{render_id}. Read that render with GetDraftRender or GetDraftStatus until state is SUCCEEDED or FAILED. A succeeded render records each field's page and position for SendDraftForSignature. Drafts with pricing tables, embeds or images that are not inline must be rendered in the editor.\n\nTrace codes for this method: 59751 a field is malformed, 59752 the draft was not found, 59753 reading the draft failed, 59754 the draft cannot be rendered (archived or deleted), 59755 version is not the current version, 59756 the draft content could not be read, 59757 the draft has content the server layout cannot print, 59758 the print HTML was rejected, 59759 storing the print HTML failed, 59760 checking the version snapshot failed, 59761 saving the render failed, 59762 queueing the render failed, 59763 building the operation failed.",
        "operationId": "CreatorApiService_RenderDraftPdf",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/googlelongrunningOperation"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Format: drafts/{draft_id}\nExample: drafts/7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "drafts/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "string",
                  "format": "int64",
                  "description": "Optional. The version to render; must be current_version. 0 renders the current version."
                }
              },
              "description": "Request message for [CreatorApiService.RenderDraftPdf][dreamflow.creator.v1.CreatorApiService.RenderDraftPdf]."
            }
          }
        ],
        "tags": [
          "Creator"
        ]
      }
    },
    "/v1/creator/{name}:sendForSignature": {
      "post": {
        "summary": "Send a draft for signature",
        "description": "Builds an envelope from a succeeded render of the current version (render, or the draft's latest render when omitted) with one participant per role, sends it, and answers HTTP 201 with the envelope, its send_time and the draft (status SENT). The pre-send check must pass first. The key also needs envelope:write and envelope:send, because the envelope service creates and sends the envelope; its errors keep their own trace codes. A repeated idempotency_key from the same workspace answers HTTP 201 with the envelope the first call sent and replayed true, without sending again; send_time is empty on a replay. If the envelope service fails after the envelope was created, the draft envelope stays in the workspace and the error keeps its trace code.\n\nTrace codes for this method: 59801 a field is missing or malformed, 59802 the draft was not found, 59803 reading the draft failed, 59804 the draft has no render; call RenderDraftPdf first, 59805 the render is not a succeeded render of the current version, 59806 reading the render failed, 59807 the pre-send check failed, 59808 the draft content could not be read, 59809 recording the idempotency key result failed, 59810 reading the idempotency key failed, 59811 a request with this idempotency_key is still running, 59812 saving the idempotency key failed.",
        "operationId": "CreatorApiService_SendDraftForSignature",
        "responses": {
          "201": {
            "description": "HTTP 201. The sent envelope and the draft, now SENT. The draft has more fields. A replayed idempotency_key also answers 201, with replayed true and no send_time.",
            "schema": {},
            "examples": {
              "application/json": {
                "envelope": "envelopes/bf554d76-1c01-5d0c-a42e-376c0555b9a3",
                "envelope_uid": "bf554d76-1c01-5d0c-a42e-376c0555b9a3",
                "send_time": "2026-11-21T16:25:14.540995Z",
                "draft": {
                  "name": "drafts/7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "title": "Perjanjian Kemitraan Afiliasi",
                  "status": "SENT",
                  "current_version": "3"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Format: drafts/{draft_id}\nExample: drafts/7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "drafts/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "render": {
                  "type": "string",
                  "title": "Optional. A succeeded render of the current version. Defaults to the latest\nrender. Format: drafts/{draft_id}/renders/{render_id}"
                },
                "participants": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "$ref": "#/definitions/v1RoleParticipant"
                  },
                  "description": "Required. One participant with a name and an email per role that has a field. At most 50."
                },
                "displayName": {
                  "type": "string",
                  "description": "Optional. The envelope name. Defaults to the draft title. At most 200 characters."
                },
                "idempotencyKey": {
                  "type": "string",
                  "description": "Optional. A UUID. A repeat from the same workspace returns the first envelope."
                }
              },
              "description": "Request message for [CreatorApiService.SendDraftForSignature][dreamflow.creator.v1.CreatorApiService.SendDraftForSignature].",
              "required": [
                "participants"
              ]
            }
          }
        ],
        "tags": [
          "Creator"
        ]
      }
    },
    "/v1/{name}:cancel": {
      "post": {
        "summary": "Cancel a workflow run",
        "description": "Stops a run that has not finished. Open gates close. Steps that already ran are not undone.\n\nTrace codes for this method: 47801 name is not workflowExecutions/{uuid}, 47802 the run was not found, 47803 reading the run failed, 47804 the run already finished, 47805 the run is being advanced, 47806 cancelling the run failed.",
        "operationId": "WorkflowService_CancelWorkflowExecution",
        "responses": {
          "200": {
            "description": "The cancelled run.",
            "schema": {
              "$ref": "#/definitions/v1CancelWorkflowExecutionResponse"
            },
            "examples": {
              "application/json": {
                "workflow_execution": {
                  "name": "workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                  "state": "CANCELLED",
                  "error_code": "cancelled"
                }
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT or FAILED_PRECONDITION. Trace code 47801 when name is not workflowExecutions/{uuid}. Trace code 47804 when the run already finished.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47801"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47801:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 20009.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20009"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20009:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 47802 when the run was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47802"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47802:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ABORTED. Trace code 47805 when the run is being advanced.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 10,
                "message": "Aborted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "aborted",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47805"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47805:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 20012.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 47803 when reading the run failed. Trace code 47806 when cancelling the run failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47803"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47803:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "503": {
            "description": "HTTP 503. UNAVAILABLE. Trace code 20013.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 14,
                "message": "Unavailable.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "unavailable",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20013"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20013:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Run to cancel.\nFormat: workflowExecutions/{execution_id}\nExample: workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "workflowExecutions/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "description": "CancelWorkflowExecutionRequest names a run to cancel."
            }
          }
        ],
        "tags": [
          "Workflow"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "47801 name is not workflowExecutions/{uuid}. InvalidArgument.",
          "47802 the run was not found. NotFound.",
          "47803 reading the run failed. Internal.",
          "47804 the run already finished. FailedPrecondition.",
          "47805 the run is being advanced. Aborted.",
          "47806 cancelling the run failed. Internal."
        ]
      }
    },
    "/v1/{name}:resend": {
      "post": {
        "summary": "Resend a workflow gate code",
        "description": "Requests a new code for an open otp.psre gate and extends its expiry. For a signer gate it replaces the signer link: the old link and the signing session it opened stop working, and the new link is in the gate's hosted_url. max_resends limits manual resends.\n\nTrace codes for this method: 47701 name is not workflowExecutions/{uuid}/gates/{uuid}, 47702 the gate was not found, 47703 reading the gate failed, 47704 the gate is not open or cannot resend, 47705 no resends are left, 47706 the run is being advanced, 47707 asking for a new code failed, 47708 the code could not be sent.",
        "operationId": "WorkflowService_ResendWorkflowExecutionGate",
        "responses": {
          "200": {
            "description": "The gate with its new expiry.",
            "schema": {
              "$ref": "#/definitions/v1ResendWorkflowExecutionGateResponse"
            },
            "examples": {
              "application/json": {
                "workflow_gate": {
                  "name": "workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f/gates/5d6e7f80-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                  "kind": "otp.signing",
                  "state": "OPEN",
                  "resends": 1,
                  "max_resends": 3
                }
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT or FAILED_PRECONDITION. Trace code 47701 when name is not workflowExecutions/{uuid}/gates/{uuid}. Trace code 47704 when the gate is not open or cannot resend.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47701"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47701:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 20009.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20009"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20009:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 47702 when the gate was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47702"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47702:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ABORTED. Trace code 47706 when the run is being advanced.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 10,
                "message": "Aborted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "aborted",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47706"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47706:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 47705 when no resends are left. Platform trace code 20012.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47705"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47705:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 47703 when reading the gate failed. Trace code 47707 when asking for a new code failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47703"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47703:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "503": {
            "description": "HTTP 503. UNAVAILABLE. Trace code 47708 when the code could not be sent; the gate stays open, so try again. Platform trace code 20013.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 14,
                "message": "Unavailable.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "unavailable",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20013"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20013:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Gate that needs a new code.\nFormat: workflowExecutions/{execution_id}/gates/{gate_id}\nExample: workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f/gates/5d6e7f80-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "workflowExecutions/[^/]+/gates/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "description": "ResendWorkflowExecutionGateRequest asks for a new code."
            }
          }
        ],
        "tags": [
          "Workflow"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "47701 name is not workflowExecutions/{uuid}/gates/{uuid}. InvalidArgument.",
          "47702 the gate was not found. NotFound.",
          "47703 reading the gate failed. Internal.",
          "47704 the gate is not open or cannot resend. FailedPrecondition.",
          "47705 no resends are left. ResourceExhausted.",
          "47706 the run is being advanced. Aborted.",
          "47707 asking for a new code failed. Internal.",
          "47708 the code could not be sent. Unavailable."
        ]
      }
    },
    "/v1/{name}:run": {
      "post": {
        "summary": "Run a workflow trigger",
        "description": "Starts a run of the published workflow behind the trigger. The request body is the run input and must match the trigger inputs schema. Authenticate with an API key of the trigger's workspace; every step runs as that key, so its scopes must cover every step. idempotency_key returns the same run for the same body. wait_seconds (0 to 20) waits for the run to finish or stop at a gate before answering. The response state is PENDING, RUNNING, WAITING with gate, SUCCEEDED with output, or FAILED. Each new run is charged once (WORKFLOW_RUN balance, apicallworkflow) before it is created; an idempotent replay is not charged again, and each API step is charged like a direct API call.\n\nTrace codes for this method: 46601 name, idempotency_key, external_ref, or wait_seconds is invalid, 46602 the trigger was not found, 46603 reading the trigger failed, 46604 the trigger is disabled, 46605 the caller is not an API key, 46606 the trigger has no published version, 46607 the input does not match the trigger inputs, 46608 the API key lacks a scope a step needs, 46609 the idempotency key was used with a different input, 46610 starting the run failed, 46611 the X-Signature header is wrong, stale, or already used, 46612 the trigger rate limit was exceeded, 46613 reading the run failed, 46614 the workspace has no workflow-run balance, 46615 the workflow-run balance is used up, 46616 charging the run failed.",
        "operationId": "WorkflowService_RunWorkflowTrigger",
        "responses": {
          "200": {
            "description": "The run. state WAITING carries the open gate; SUCCEEDED carries the output.",
            "schema": {
              "$ref": "#/definitions/v1RunWorkflowTriggerResponse"
            },
            "examples": {
              "application/json": {
                "workflow_execution": {
                  "name": "workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                  "workflow_trigger": "workflowTriggers/2a5c7e90-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                  "version_number": 3,
                  "state": "WAITING",
                  "gate": {
                    "name": "workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f/gates/5d6e7f80-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                    "kind": "otp.signing",
                    "state": "OPEN",
                    "attempts_remaining": 5
                  }
                }
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT or FAILED_PRECONDITION. Trace code 46601 when name, idempotency_key, external_ref, or wait_seconds is invalid. Trace code 46604 when the trigger is disabled. Trace code 46605 when the caller is not an API key. Trace code 46606 when the trigger has no published version. Trace code 46607 when the input does not match the trigger inputs. Trace code 46614 when the workspace has no workflow-run balance.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46601"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46601:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 46608 when the API key lacks a scope a step needs. Trace code 46611 when the X-Signature header is wrong, stale, or already used. Platform trace code 20009.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46608"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46608:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 46602 when the trigger was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46602"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46602:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ALREADY_EXISTS. Trace code 46609 when the idempotency key was used with a different input.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 6,
                "message": "Already exists.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "already exists",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46609"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46609:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 46612 when the trigger rate limit was exceeded. Trace code 46615 when the workflow-run balance is used up. Platform trace code 20012.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46612"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46612:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 46603 when reading the trigger failed. Trace code 46610 when starting the run failed. Trace code 46613 when reading the run failed. Trace code 46616 when charging the run failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46603"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46603:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "503": {
            "description": "HTTP 503. UNAVAILABLE. Trace code 20013.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 14,
                "message": "Unavailable.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "unavailable",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20013"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20013:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Trigger to run.\nFormat: workflowTriggers/{trigger_id}\nExample: workflowTriggers/2a5c7e90-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "workflowTriggers/[^/]+"
          },
          {
            "name": "input",
            "description": "Optional. Run input, the HTTP request body. It must match the trigger inputs schema.\nExample: {\"storage\":[\"storages/9c4d5e40-1b3e-4c7a-9d2e-0a1b2c3d4e5f\"]}",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object"
            }
          },
          {
            "name": "idempotencyKey",
            "description": "Optional. Same key and same input return the same run. The Idempotency-Key header works too.\nFormat: 1 to 200 characters.\nExample: order-1042",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "externalRef",
            "description": "Optional. Caller reference stored on the run for filtering.\nFormat: up to 200 characters.\nExample: crm-7781",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "waitSeconds",
            "description": "Optional. Seconds to wait for the run to finish or stop at a gate before answering.\nFormat: integer from 0 to 20.\nExample: 20",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          }
        ],
        "tags": [
          "Workflow"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "46601 name, idempotency_key, external_ref, or wait_seconds is invalid. InvalidArgument.",
          "46602 the trigger was not found. NotFound.",
          "46603 reading the trigger failed. Internal.",
          "46604 the trigger is disabled. FailedPrecondition.",
          "46605 the caller is not an API key. FailedPrecondition.",
          "46606 the trigger has no published version. FailedPrecondition.",
          "46607 the input does not match the trigger inputs. InvalidArgument.",
          "46608 the API key lacks a scope a step needs. PermissionDenied.",
          "46609 the idempotency key was used with a different input. AlreadyExists.",
          "46610 starting the run failed. Internal.",
          "46611 the X-Signature header is wrong, stale, or already used. PermissionDenied.",
          "46612 the trigger rate limit was exceeded. ResourceExhausted.",
          "46613 reading the run failed. Internal.",
          "46614 the workspace has no workflow-run balance. FailedPrecondition.",
          "46615 the workflow-run balance is used up. ResourceExhausted.",
          "46616 charging the run failed. Internal."
        ]
      }
    },
    "/v1/{name}:submit": {
      "post": {
        "summary": "Submit a workflow gate",
        "description": "Passes an open gate. An OTP gate takes {code} (and method when several are offered) and runs the confirmation step; a wrong code keeps the gate open until max_attempts. A kyc gate re-checks identity. An approval gate takes {approved, comment} from a workspace member. A signer gate cannot be submitted: it passes when its signer signs. The code is never stored or logged.\n\nTrace codes for this method: 47601 name is not workflowExecutions/{uuid}/gates/{uuid}, 47602 the gate was not found, 47603 reading the gate failed, 47604 the gate is not open, 47605 the gate expired, 47606 the input does not match the gate, 47607 the run is being advanced, 47608 submitting the gate failed, 47609 only a workspace member can approve, 47610 the gate passes when its signer signs.",
        "operationId": "WorkflowService_SubmitWorkflowExecutionGate",
        "responses": {
          "200": {
            "description": "The gate after the attempt and the run.",
            "schema": {
              "$ref": "#/definitions/v1SubmitWorkflowExecutionGateResponse"
            },
            "examples": {
              "application/json": {
                "workflow_gate": {
                  "name": "workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f/gates/5d6e7f80-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                  "kind": "otp.signing",
                  "state": "PASSED",
                  "attempts": 1,
                  "attempts_remaining": 4
                },
                "passed": true
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT or FAILED_PRECONDITION. Trace code 47601 when name is not workflowExecutions/{uuid}/gates/{uuid}. Trace code 47604 when the gate is not open. Trace code 47605 when the gate expired. Trace code 47606 when the input does not match the gate. Trace code 47610 when the gate passes when its signer signs.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47601"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47601:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 47609 when only a workspace member can approve. Platform trace code 20009.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47609"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47609:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 47602 when the gate was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47602"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47602:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "409": {
            "description": "HTTP 409. ABORTED. Trace code 47607 when the run is being advanced.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 10,
                "message": "Aborted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "aborted",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47607"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47607:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 20012.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 47603 when reading the gate failed. Trace code 47608 when submitting the gate failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "47603"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/47603:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "503": {
            "description": "HTTP 503. UNAVAILABLE. Trace code 20013.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 14,
                "message": "Unavailable.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "unavailable",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20013"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20013:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Gate to pass.\nFormat: workflowExecutions/{execution_id}/gates/{gate_id}\nExample: workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f/gates/5d6e7f80-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "workflowExecutions/[^/]+/gates/[^/]+"
          },
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "input": {
                  "type": "object",
                  "title": "Optional. Gate input, matching the gate input_schema.\nExample: {\"code\":\"123456\"}"
                }
              },
              "description": "SubmitWorkflowExecutionGateRequest passes a gate."
            }
          }
        ],
        "tags": [
          "Workflow"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "47601 name is not workflowExecutions/{uuid}/gates/{uuid}. InvalidArgument.",
          "47602 the gate was not found. NotFound.",
          "47603 reading the gate failed. Internal.",
          "47604 the gate is not open. FailedPrecondition.",
          "47605 the gate expired. FailedPrecondition.",
          "47606 the input does not match the gate. InvalidArgument.",
          "47607 the run is being advanced. Aborted.",
          "47608 submitting the gate failed. Internal.",
          "47609 only a workspace member can approve. PermissionDenied.",
          "47610 the gate passes when its signer signs. FailedPrecondition."
        ]
      }
    },
    "/v1/{name}:view": {
      "get": {
        "summary": "View a workflow run",
        "description": "Returns a server run: state, node states, call attempts with redacted request and response, the open gate, the output, and the error. name is workflowExecutions/{uuid}. A workspace member or an API key of the run's workspace can read it.\n\nTrace codes for this method: 46701 name is not workflowExecutions/{uuid}, 46702 the run was not found, 46703 reading the run failed.",
        "operationId": "WorkflowService_ViewWorkflowExecution",
        "responses": {
          "200": {
            "description": "The run.",
            "schema": {
              "$ref": "#/definitions/v1ViewWorkflowExecutionResponse"
            },
            "examples": {
              "application/json": {
                "workflow_execution": {
                  "name": "workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                  "state": "SUCCEEDED",
                  "output": "{\"envelope\":\"envelopes/abc\"}",
                  "nodes": [
                    {
                      "node_id": "add",
                      "kind": "api",
                      "operation_id": "EnvelopeService_AddEnvelope",
                      "state": "SUCCEEDED",
                      "attempt": 1
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 46701 when name is not workflowExecutions/{uuid}.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46701"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46701:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 20009.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20009"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20009:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 46702 when the run was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46702"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46702:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 20012.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 46703 when reading the run failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46703"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46703:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "503": {
            "description": "HTTP 503. UNAVAILABLE. Trace code 20013.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 14,
                "message": "Unavailable.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "unavailable",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20013"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20013:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. Run to read.\nFormat: workflowExecutions/{execution_id}\nExample: workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "workflowExecutions/[^/]+"
          }
        ],
        "tags": [
          "Workflow"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "46701 name is not workflowExecutions/{uuid}. InvalidArgument.",
          "46702 the run was not found. NotFound.",
          "46703 reading the run failed. Internal."
        ]
      }
    },
    "/v1/{parent}/events": {
      "get": {
        "summary": "List workflow run events",
        "description": "Returns the run's events in order: run.started, step.succeeded, switch.evaluated, gate.opened, and so on. after_seq returns only newer events, for polling. page_size defaults to 200 and must be at most 500.\n\nTrace codes for this method: 46901 parent or after_seq is invalid or page_size is above 500, 46902 the run was not found, 46903 reading the events failed.",
        "operationId": "WorkflowService_ListWorkflowExecutionEvents",
        "responses": {
          "200": {
            "description": "Events after after_seq, oldest first.",
            "schema": {
              "$ref": "#/definitions/v1ListWorkflowExecutionEventsResponse"
            },
            "examples": {
              "application/json": {
                "events": [
                  {
                    "seq": 1,
                    "type": "run.created",
                    "payload": "{}"
                  },
                  {
                    "seq": 2,
                    "type": "run.started",
                    "payload": "{}"
                  }
                ],
                "last_seq": 2
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 46901 when parent or after_seq is invalid or page_size is above 500.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46901"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46901:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 20009.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20009"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20009:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 46902 when the run was not found.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46902"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46902:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 20012.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 46903 when reading the events failed.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "46903"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/46903:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "503": {
            "description": "HTTP 503. UNAVAILABLE. Trace code 20013.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 14,
                "message": "Unavailable.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "unavailable",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20013"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/workflows/20013:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "parent",
            "description": "Required. Run whose events to read.\nFormat: workflowExecutions/{execution_id}\nExample: workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "workflowExecutions/[^/]+"
          },
          {
            "name": "afterSeq",
            "description": "Optional. Return only events with a larger sequence number.\nFormat: integer, 0 or more.\nExample: 10",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          },
          {
            "name": "pageSize",
            "description": "Optional. Maximum number of events. The default is 200.\nFormat: integer from 1 to 500.\nExample: 200",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          }
        ],
        "tags": [
          "Workflow"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "46901 parent or after_seq is invalid or page_size is above 500. InvalidArgument.",
          "46902 the run was not found. NotFound.",
          "46903 reading the events failed. Internal."
        ]
      }
    },
    "/v1/events": {
      "get": {
        "summary": "List events",
        "description": "Lists the webhook events of the caller's workspace, newest first. Each event has its type, the object it is about, the time it happened, and payload, the exact JSON body a webhook delivery of it posts. Use it to recover a delivery your endpoint missed. types, object_id, start_time and end_time filter the page. page_size defaults to 50 and must be at most 1000. page_token is next_page_token from the previous page, the base64 encoding of a decimal cursor. With order asc the oldest come first and next_page_token is returned on every page, also an empty one, so you can poll it for new events. Events are kept for 30 days; an older start_time reads from 30 days ago. A sandbox key reads sandbox events and a live key reads live events. An API key needs the webhook:read scope.\n\nTrace codes for this method: 23801 page_size is negative or above 1000, 23802 page_token is not a base64 decimal cursor, 23803 order is not asc or desc, 23804 types has more than 20 entries or an entry is not an event type name, 23805 object_id is longer than 128 characters, 23806 start_time is after end_time, 23807 reading the events failed.",
        "operationId": "EventService_ListEvents",
        "responses": {
          "200": {
            "description": "One page of events. environment is the environment the credential reads. next_page_token is omitted on the last page, except with order asc where it is always set.",
            "schema": {
              "$ref": "#/definitions/v1ListEventsResponse"
            },
            "examples": {
              "application/json": {
                "events": [
                  {
                    "name": "events/0d6c3f1e-2a4b-4c5d-8e9f-a0b1c2d3e4f5",
                    "type": "DOC_ENVELOPE_COMPLETED",
                    "object_type": "DOC_ENVELOPE",
                    "object_id": "6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                    "payload": "{\"id\":\"6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f\",\"display_name\":\"Mutual NDA\",\"progress_status\":\"COMPLETED\"}",
                    "create_time": "2026-11-23T09:00:00Z",
                    "environment": "SANDBOX",
                    "request_id": "8c1d0e2a-6b4f-4a1e-9c33-1a2b3c4d5e6f",
                    "cursor": "MTI4"
                  }
                ],
                "next_page_token": "MTI4",
                "environment": "SANDBOX"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 23801 when page_size is negative or above 1000. Trace code 23802 when page_token is not a base64 decimal cursor. Trace code 23803 when order is not asc or desc. Trace code 23804 when types has more than 20 entries or an entry is not an event type name. Trace code 23805 when object_id is longer than 128 characters. Trace code 23806 when start_time is after end_time.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "23801"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/23801:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 20009, also when the API key lacks the webhook:read scope.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20009"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/20009:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 20012.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/20012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 23807 when reading the events failed. Platform trace code 20014 uses this same HTTP status.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "23807"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/23807:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "pageSize",
            "description": "Optional. Maximum number of events. The default is 50.\nFormat: integer from 0 to 1000. 0 uses the default.\nExample: 50",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          },
          {
            "name": "pageToken",
            "description": "Optional. next_page_token from the previous page, or cursor from an event.\nFormat: base64 encoding of a decimal cursor.\nExample: MTI4",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "types",
            "description": "Optional. Return only events of these types. At most 20 entries.\nFormat: an event type name, as webhook endpoints subscribe to it.\nExample: DOC_ENVELOPE_COMPLETED",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "objectId",
            "description": "Optional. Return only events about this object, for example one envelope.\nFormat: the object id, at most 128 characters.\nExample: 6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "startTime",
            "description": "Optional. Return only events created at or after this time. Before 30 days\nago it reads from 30 days ago.\nExample: 2026-11-22T00:00:00Z",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "date-time"
          },
          {
            "name": "endTime",
            "description": "Optional. Return only events created before this time.\nExample: 2026-11-23T00:00:00Z",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "date-time"
          },
          {
            "name": "order",
            "description": "Optional. desc returns the newest first (the default). asc returns the oldest\nfirst and always returns next_page_token, for polling.\nFormat: asc or desc.\nExample: desc",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "X-Request-Env",
            "description": "Optional. LIVE or SANDBOX. A sf_test_ or sf_live_ key already decides it; a different value is refused.",
            "in": "header",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Event"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "23801 page_size is negative or above 1000. InvalidArgument.",
          "23802 page_token is not a base64 decimal cursor. InvalidArgument.",
          "23803 order is not asc or desc. InvalidArgument.",
          "23804 types has more than 20 entries or an entry is not an event type name. InvalidArgument.",
          "23805 object_id is longer than 128 characters. InvalidArgument.",
          "23806 start_time is after end_time. InvalidArgument.",
          "23807 reading the events failed. Internal."
        ]
      }
    },
    "/v1/events/{name}": {
      "get": {
        "summary": "View an event",
        "description": "Returns one webhook event. Send GET /v1/events/{uuid}; GET /v1/{name}:view with name events/{uuid} is the same call. payload is the exact JSON body a webhook delivery of the event posts. An event of another workspace, of the other environment, or older than 30 days returns NOT_FOUND. An API key needs the webhook:read scope.\n\nTrace codes for this method: 23901 name is not events/{uuid} or a uuid, 23902 the event was not found, 23903 reading the event failed.",
        "operationId": "EventService_ViewEvent",
        "responses": {
          "200": {
            "description": "The event.",
            "schema": {
              "$ref": "#/definitions/v1Event",
              "readOnly": true
            },
            "examples": {
              "application/json": {
                "name": "events/0d6c3f1e-2a4b-4c5d-8e9f-a0b1c2d3e4f5",
                "type": "DOC_ENVELOPE_COMPLETED",
                "object_type": "DOC_ENVELOPE",
                "object_id": "6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                "payload": "{\"id\":\"6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f\",\"display_name\":\"Mutual NDA\",\"progress_status\":\"COMPLETED\"}",
                "create_time": "2026-11-23T09:00:00Z",
                "environment": "LIVE",
                "request_id": "8c1d0e2a-6b4f-4a1e-9c33-1a2b3c4d5e6f",
                "cursor": "MTI4"
              }
            }
          },
          "400": {
            "description": "HTTP 400. INVALID_ARGUMENT. Trace code 23901 when name is not events/{uuid} or a uuid.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 3,
                "message": "Invalid Arguments.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "request has invalid arguments",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "23901"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/23901:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "401": {
            "description": "HTTP 401. UNAUTHENTICATED. Trace codes 20000 through 20008 name the authorization failure.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 16,
                "message": "Unauthorized.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "no authorization provided",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20000"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/20000:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "403": {
            "description": "HTTP 403. PERMISSION_DENIED. Trace code 20009, also when the API key lacks the webhook:read scope.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 7,
                "message": "Permission denied.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "permission denied",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20009"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/20009:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "404": {
            "description": "HTTP 404. NOT_FOUND. Trace code 23902 when the event was not found in this workspace and environment, or is older than 30 days.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 5,
                "message": "Not found.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "not found",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "23902"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/23902:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "429": {
            "description": "HTTP 429. RESOURCE_EXHAUSTED. Trace code 20012.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 8,
                "message": "Resource exhausted.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "rate limit exceeded",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "20012"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/20012:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "500": {
            "description": "HTTP 500. INTERNAL. Trace code 23903 when reading the event failed. Platform trace code 20014 uses this same HTTP status.",
            "schema": {},
            "examples": {
              "application/json": {
                "code": 13,
                "message": "Internal error.",
                "details": [
                  {
                    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                    "reason": "internal error",
                    "domain": "signingflow.com",
                    "metadata": {
                      "trace_code": "23903"
                    }
                  },
                  {
                    "@type": "type.googleapis.com/google.rpc.Help",
                    "links": [
                      {
                        "description": "Trace this error",
                        "url": "https://{api-host}/v1/errors/webhooks/23903:view?request_id=4da47e18-b66b-44a0-974c-ab27ea421f27"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "Required. The event to read. On GET /v1/events/{uuid} the path segment is\nthe bare uuid, which the server reads as events/{uuid}.\nFormat: events/{uuid}\nExample: events/0d6c3f1e-2a4b-4c5d-8e9f-a0b1c2d3e4f5",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "Event"
        ],
        "produces": [
          "application/json"
        ],
        "x-trace-codes": [
          "23901 name is not events/{uuid} or a uuid. InvalidArgument.",
          "23902 the event was not found. NotFound.",
          "23903 reading the event failed. Internal."
        ],
        "x-also-at": {
          "method": "GET",
          "path": "/v1/{name}:view"
        }
      }
    }
  },
  "definitions": {
    "v1HealthcheckResponse": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "Output only. SERVING when this process answered.",
          "readOnly": true
        }
      },
      "description": "HealthcheckResponse says whether this API process answered."
    },
    "googlerpcStatus": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "format": "int32",
          "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code]."
        },
        "message": {
          "type": "string",
          "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client."
        },
        "details": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/protobufAny"
          },
          "description": "A list of messages that carry the error details.  There is a common set of\nmessage types for APIs to use."
        }
      },
      "description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors)."
    },
    "v1ServiceStatusResponse": {
      "type": "object",
      "properties": {
        "overall": {
          "type": "string",
          "description": "Output only. Combined status from the status page. operational, degraded, down, maintenance, or unknown.",
          "readOnly": true
        },
        "services": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1ServiceComponent"
          },
          "description": "Output only. Every service the status page lists.",
          "readOnly": true
        }
      },
      "description": "ServiceStatusResponse lists the services shown on the status page."
    },
    "v1Envelope": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Doc][dreamflow.v1.Envelope] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "owner": {
          "$ref": "#/definitions/v1EnvelopeOwner",
          "description": "Output only.\n\nThe owner of the envelope.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The envelope display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nExample: Mutual NDA"
        },
        "description": {
          "type": "string",
          "description": "Optional. Input only. The doc additional description.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "kind": {
          "$ref": "#/definitions/docenvelopev1Kind",
          "description": "Required. Input only.\n\nThe kind of envelope."
        },
        "category": {
          "$ref": "#/definitions/v1EnvelopeCategory",
          "description": "Required. Input only.\n\nThe envelope category."
        },
        "documents": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeDocument"
          },
          "description": "Documents to create with the envelope.\n\nEach document needs display_name and at least one attachments.storage_id.\nstorage_id is the id of storage that has already been acknowledged."
        },
        "permission": {
          "$ref": "#/definitions/v1EnvelopePermission",
          "description": "Output only.\n\nThe permission of the envelope.",
          "readOnly": true
        },
        "participants": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeParticipant"
          },
          "description": "Output only.\n\nThe envelope participants.",
          "readOnly": true
        },
        "carbonCopies": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeCarbonCopy"
          },
          "description": "Output only.\n\nThe envelope carbon copies.",
          "readOnly": true
        },
        "carbonCopyEvent": {
          "$ref": "#/definitions/v1EnvelopeCarbonCopyEvent",
          "description": "Output only.\n\nThe envelope carbon copy event.",
          "readOnly": true
        },
        "lifeCycles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeLifeCycle"
          },
          "description": "Output only.\n\nThe envelope lifecycles.",
          "readOnly": true
        },
        "fieldConditionalRule": {
          "$ref": "#/definitions/v1EnvelopeFieldConditionalRule",
          "description": "Output only.\n\nThe envelope field conditional rule.",
          "readOnly": true
        },
        "riskAnalysis": {
          "$ref": "#/definitions/v1EnvelopeRiskAnalysis",
          "description": "Output only.\n\nThe envelope risk analysis.",
          "readOnly": true
        },
        "attributes": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeAttribute"
          },
          "description": "Output only.\n\nThe envelope attributes.",
          "readOnly": true
        },
        "relationships": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeRelationship"
          },
          "description": "Output only.\n\nThe envelope relationships.",
          "readOnly": true
        },
        "signingDeadlineAndReminder": {
          "$ref": "#/definitions/v1EnvelopeSigningDeadlineAndReminder",
          "description": "Output only.\n\nThe envelope signing deadline and reminder.",
          "readOnly": true
        },
        "escalation": {
          "$ref": "#/definitions/v1EnvelopeEscalation",
          "description": "Input only.\n\nThe envelope escalation."
        },
        "externalCorrelationIdentifier": {
          "type": "string",
          "description": "Optional.\n\nThe envelope external correlation identifier."
        },
        "externalCorrelationSource": {
          "type": "string",
          "description": "Optional.\n\nThe envelope external correlation source."
        },
        "externalCorrelationType": {
          "type": "string",
          "description": "Optional.\n\nThe envelope external correlation type."
        },
        "thumbnailUri": {
          "type": "string",
          "description": "Output only.\n\nThe envelope thumbnail uri.",
          "readOnly": true
        },
        "thumbnailOrientation": {
          "type": "string",
          "description": "Output only.\n\nThe envelope thumbnail orientation.",
          "readOnly": true
        },
        "thumbnailRotation": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only. The envelope thumbnail rotation.",
          "readOnly": true
        },
        "condition": {
          "$ref": "#/definitions/docenvelopev1Condition",
          "description": "Output only.\n\nCondition is an enumeration representing the various condition of a envelope.",
          "readOnly": true
        },
        "state": {
          "$ref": "#/definitions/docenvelopev1State",
          "description": "Output only.\n\nState is an enumeration representing the various stages of a envelope lifecycle.",
          "readOnly": true
        },
        "progress": {
          "$ref": "#/definitions/v1EnvelopeProgressStatus",
          "description": "Output only.\n\nThe envelope progress.",
          "readOnly": true
        },
        "rejectBy": {
          "$ref": "#/definitions/v1EnvelopeRejector",
          "description": "Output only.\n\nThe envelope rejector.",
          "readOnly": true
        },
        "recentActivities": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeRecentActivity"
          },
          "description": "Output only.\n\nThe envelope recent activities.",
          "readOnly": true
        },
        "rejectReason": {
          "type": "string",
          "description": "Output only.\n\nThe envelope reject reason.",
          "readOnly": true
        },
        "rejectOtherReason": {
          "type": "string",
          "description": "Output only.\n\nThe envelope reject other reason.",
          "readOnly": true
        },
        "nextAction": {
          "type": "string",
          "description": "Output only.\n\nThe next action of the envelope.",
          "readOnly": true
        },
        "mode": {
          "type": "string",
          "description": "Required. Input only.\n\nThe envelope mode."
        },
        "navigation": {
          "$ref": "#/definitions/v1EnvelopeNavigation",
          "description": "Output only.\n\nThe envelope navigation.",
          "readOnly": true
        },
        "seen": {
          "type": "boolean",
          "description": "Output only.\n\nThe envelope is seen.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was created.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was updated.",
          "readOnly": true
        },
        "sentTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was sent.",
          "readOnly": true
        },
        "deliveryTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was delivered.",
          "readOnly": true
        },
        "signTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was signed.",
          "readOnly": true
        },
        "rejectTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was rejected.",
          "readOnly": true
        },
        "completeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was completed.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was deleted.",
          "readOnly": true
        },
        "sendStep": {
          "$ref": "#/definitions/v1EnvelopeSendStep",
          "description": "Optional. Input only.\n\nSend step outputs and destination configuration."
        },
        "completionArchives": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeCompletionArchive"
          },
          "description": "Output only.\n\nCompletion archive outputs configured for this envelope.",
          "readOnly": true
        },
        "completionArchiveEnabled": {
          "type": "boolean",
          "description": "Output only.\n\nWhether completion archive is enabled for this envelope.",
          "readOnly": true
        },
        "completionArchiveProviderName": {
          "type": "string",
          "description": "Output only.\n\nCompletion archive provider name.\nPossible values:\n- \"GOOGLE_DRIVE\"\n- \"MICROSOFT_ONE_DRIVE\"\n- \"MICROSOFT_SHARE_POINT\"",
          "readOnly": true
        },
        "completionArchiveOutputMode": {
          "type": "string",
          "description": "Output only.\n\nCompletion archive output mode.\nPossible values:\n- \"COMBINED_FOLDER\"\n- \"BY_OUTPUT_TYPE\"\n- \"BY_ENVELOPE\"",
          "readOnly": true
        },
        "completionArchiveOutputSettings": {
          "$ref": "#/definitions/v1EnvelopeCompletionArchiveOutputSettings",
          "description": "Output only.\n\nCompletion archive output settings.",
          "readOnly": true
        },
        "completionArchiveFolderNameTemplate": {
          "type": "string",
          "description": "Output only.\n\nFolder naming template used when archive output mode is BY_ENVELOPE.\nPossible values:\n- \"ENVELOPE_NAME\"\n- \"ENVELOPE_ID\"\n- \"COMPLETED_DATE\"\n- \"DOCUMENT_NAME\"\n- \"SENDER\"\n- \"CUSTOM\"",
          "readOnly": true
        },
        "completionArchiveFolderNameCustom": {
          "type": "string",
          "description": "Output only.\n\nCustom folder naming template when completion_archive_folder_name_template\nis \"CUSTOM\". Supports tokens such as {{Envelope Name}}, {{Envelope ID}},\n{{Recipient Name}}, {{Completed Date}}, and {{Document Name}}.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        },
        "template": {
          "type": "string",
          "description": "Output only.\n\nThe fully qualified resource name of the source\n[Template][dreamflow.v1.Template] this envelope was created from.\nFormat: templates/{uuid.v4}.\nEmpty when the envelope was not created from a template.",
          "readOnly": true
        },
        "templateVersion": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe template version snapshotted when the envelope was created from a\ntemplate. Zero when the envelope was not created from a template.",
          "readOnly": true
        },
        "retention": {
          "$ref": "#/definitions/v1EnvelopeRetention",
          "description": "Output only.\n\nThe retention status of the envelope, computed from the workspace's\nretention policy. Present only when the envelope is queued for retention.",
          "readOnly": true
        },
        "compliance": {
          "$ref": "#/definitions/v1EnvelopeCompliance",
          "description": "Optional. Input only.\n\nThe envelope compliance profile: the electronic-signature legal framework\napplied to the envelope. Empty means the compliance profile has not been\nselected yet (\"Decide Later\")."
        },
        "resolvedCompliance": {
          "$ref": "#/definitions/v1EnvelopeResolvedCompliance",
          "description": "Output only. Resolved signing profile layers after workspace policy and bundle expansion.",
          "readOnly": true
        },
        "archiveSummary": {
          "$ref": "#/definitions/v1EnvelopeArchiveSummary",
          "description": "Output only.\n\nArchive metadata for envelopes in the Archived directory: who archived,\nwhere copies were sent, and external export status when applicable.",
          "readOnly": true
        },
        "docFolder": {
          "$ref": "#/definitions/v1EnvelopeDocFolder",
          "description": "Output only.\n\nPersonal doc folder assignment for this envelope in the current workspace.",
          "readOnly": true
        },
        "userParticipantType": {
          "type": "string",
          "description": "Output only.\n\nThe actor's doc_indexes.user_participant_type for this list row.\nValid values: SENDER, RECIPIENT, INVITED.",
          "readOnly": true
        },
        "invitationBranding": {
          "$ref": "#/definitions/v1EnvelopeInvitationBranding",
          "description": "Optional.\n\nInvitation email branding chosen when preparing the envelope (brand kit or custom email theme)."
        },
        "hasKeptDigitalSignature": {
          "type": "boolean",
          "description": "Output only.\n\nTrue when at least one document kept a digital signature that was already in the uploaded PDF.",
          "readOnly": true
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeTag"
          },
          "description": "Output only.\n\nThe flat tags applied to this envelope, in assignment (request) order.",
          "readOnly": true
        },
        "emeteraiStampOnly": {
          "type": "boolean",
          "description": "Optional.\n\nFor a self-sign envelope (mode ONLY_ME): finish by placing e-Meterai only, with no signature.\nUnset leaves the stored choice as it is. A signature, initial, seal, or stamp field turns it off.\nExample: true."
        },
        "templateSendDataSource": {
          "$ref": "#/definitions/v1TemplateSendDataSource",
          "description": "Output only.\n\nThe spreadsheet a template bulk send read its rows from. Empty when the\nenvelope was not sent from a template with a data source.",
          "readOnly": true
        },
        "templateSendSession": {
          "$ref": "#/definitions/v1TemplateSendSessionSummary",
          "description": "Output only.\n\nCounts for one template send session. Set only on the rows of the send\nsessions list (progress.blocking_issue is TEMPLATE_SEND_SESSION); progress\nholds the copy total and the completed copies.",
          "readOnly": true
        },
        "bouncedEmails": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Output only.\n\nRecipient addresses the mail provider reported as a permanent bounce for\nthis envelope's emails, lowercased. Set on the copies of a send session\n(directory templateSessionCopies). Emails sent before bounce tracking\nstarted are not counted.\nExample: [\"finance@ptsinarjaya.com\"].",
          "readOnly": true
        },
        "scheduledSendTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nWhen a scheduled send will go out. Empty when the envelope is not scheduled.\nA scheduled envelope stays a draft until then; editing it cancels the schedule.",
          "readOnly": true
        }
      },
      "title": "Envelope",
      "required": [
        "uid",
        "displayName",
        "description",
        "kind",
        "category",
        "mode"
      ]
    },
    "v1AddEnvelopeRequest": {
      "type": "object",
      "example": {
        "envelope": {
          "displayName": "Mutual NDA",
          "description": "Mutual non-disclosure agreement",
          "category": {
            "uid": "8a0b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d"
          },
          "documents": [
            {
              "displayName": "Mutual NDA",
              "previousDigitalSignature": "KEEP",
              "attachments": [
                {
                  "storageId": "6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
                  "checksum": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
                }
              ],
              "participants": [
                {
                  "alternateEmail": "signer@example.com"
                }
              ]
            }
          ],
          "externalCorrelationIdentifier": "crm-1042",
          "externalCorrelationSource": "crm",
          "externalCorrelationType": "deal",
          "compliance": {
            "profile": "STANDARD"
          },
          "sendStep": {
            "destinationMode": "ONE_FOLDER",
            "folderNameTemplate": "ENVELOPE_NAME",
            "folderNameCustom": "{{Envelope Name}}",
            "outputs": [
              {
                "kind": "SIGNED_DOCUMENT",
                "enabled": true,
                "destination": {
                  "provider": "google_drive",
                  "path": "Contracts/Signed",
                  "folderId": "folder-1",
                  "folderUrl": "https://drive.google.com/drive/folders/folder-1"
                }
              }
            ]
          }
        },
        "readMask": "name,displayName,documents",
        "idempotencyKey": "8c1d0e2a-6b4f-4a1e-9c33-1a2b3c4d5e6f"
      },
      "properties": {
        "envelope": {
          "$ref": "#/definitions/v1Envelope",
          "description": "Required.\n\nThe [Envelope][dreamflow.v1.Envelope]\nto add."
        },
        "readMask": {
          "type": "string",
          "description": "Optional. Input only.\n\nRead mask is used for a more granular control over what the API returns."
        },
        "idempotencyKey": {
          "type": "string",
          "description": "Optional. Input only.\n\nIdempotency key to support idempotency.\nThis request is only idempotent if a `idempotency_key` is provided."
        }
      },
      "description": "Request for\n[EnvelopeService.AddEnvelope][dreamflow.v1.EnvelopeService.AddEnvelope]\nmethod.",
      "required": [
        "envelope"
      ]
    },
    "v1SendDocumentResponse": {
      "type": "object",
      "properties": {
        "envelope": {
          "$ref": "#/definitions/v1Envelope",
          "description": "Output only. The sent envelope.",
          "readOnly": true
        },
        "sendTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. When the send finished.",
          "readOnly": true
        }
      },
      "description": "Response for\n[EnvelopeService.SendDocument][dreamflow.v1.EnvelopeService.SendDocument]."
    },
    "v1SendDocumentRequest": {
      "type": "object",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "Required. The envelope title the recipients see."
        },
        "description": {
          "type": "string",
          "description": "Optional. The message in the signing email."
        },
        "document": {
          "$ref": "#/definitions/v1SendDocumentFile",
          "description": "Required. The PDF to send."
        },
        "recipients": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1SendDocumentRecipient"
          },
          "description": "Required. The people who sign, 1 to 20, each with a different email."
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1SendDocumentField"
          },
          "description": "Optional. Where each recipient signs or fills in. With no fields the signer places the signature."
        },
        "complianceProfile": {
          "type": "string",
          "description": "Optional. STANDARD (the default). Other signing profiles are not available in one call."
        },
        "idempotencyKey": {
          "type": "string",
          "description": "Optional. A UUID. A repeated key returns ALREADY_EXISTS and does not send again."
        }
      },
      "description": "Request for\n[EnvelopeService.SendDocument][dreamflow.v1.EnvelopeService.SendDocument].",
      "required": [
        "displayName",
        "document",
        "recipients"
      ]
    },
    "v1EnvelopeOwner": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Output only.\n\nIs a unique identifier for the resource.\nThis field must be a UTF-8 encoded string with a length limit of 36\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `uuid.v7`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "example": "John M'c Doe",
          "description": "Only alphanumeric with dots, comma, single quote, and space are allowed.",
          "maxLength": 255,
          "minLength": 2
        },
        "alternateEmail": {
          "type": "string",
          "description": "Output only.\n\nSecondary contact email. You need to provide an alternate email to create\ndifferent domains if a primary contact email already exists. Users will\nreceive a notification with credentials when you create an admin.google.com\nSecondary emails are also recovery email addresses. Alternate\nemails are optional when you create Team customers.",
          "readOnly": true
        },
        "alternatePhone": {
          "type": "string",
          "description": "Output only.\n\nThe alternate phone of the owner.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Output only.\n\nThe type of the owner.",
          "readOnly": true
        },
        "workspace": {
          "$ref": "#/definitions/v1Workspace",
          "description": "Output only.\n\nThe workspace of the owner.",
          "readOnly": true
        },
        "avatarUri": {
          "type": "string",
          "description": "Output only. Is a unique URL access for the display image.\n\nThe fully qualified url of the image avatar.\nFormat: `<domain>/files/<uuid.v7>/<uuid.v7>`",
          "readOnly": true
        }
      },
      "title": "EnvelopeOwner",
      "required": [
        "displayName"
      ]
    },
    "docenvelopev1Kind": {
      "type": "string",
      "enum": [
        "KIND_UNSPECIFIED",
        "ELECTRONIC_SIGNATURE",
        "ELECTRONIC_SUBMISSION",
        "ELECTRONIC_ENVELOPE"
      ],
      "default": "KIND_UNSPECIFIED",
      "description": "Kind is an enumeration representing the various kind of a envelope's.\nEach value corresponds to a specific kind of an envelope.\n\n - KIND_UNSPECIFIED: KIND_UNSPECIFIED indicates that the envelope kind is unknown.\n - ELECTRONIC_SIGNATURE: ELECTRONIC_SIGNATURE\n - ELECTRONIC_SUBMISSION: ELECTRONIC_SUBMISSION\n - ELECTRONIC_ENVELOPE: ELECTRONIC_ENVELOPE"
    },
    "v1EnvelopeCategory": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Resource name assigned by the server.\nFormat: envelopeCategories/{uuid}.\nExample: envelopeCategories/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Server-assigned id. UUID.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "example": "Employment",
          "description": "Name shown for the category. 2 to 255 characters.\nA sibling with the same slug under the same parent returns ALREADY_EXISTS.\nA group keeps the name it already has; changing it returns FAILED_PRECONDITION."
        },
        "description": {
          "type": "string",
          "example": "Offers and agreements",
          "description": "Optional note stored with the category. The server does not require it."
        },
        "color": {
          "type": "string",
          "example": "#2563EB",
          "description": "Required color, up to 7 characters. A typical value is a hex color such as #2563EB."
        },
        "parent": {
          "type": "string",
          "example": "envelopeCategories/8a0b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
          "description": "Parent group. Required when creating a category.\nFormat: envelopeCategories/{uuid}. The parent must be an available GROUP."
        },
        "kind": {
          "type": "string",
          "example": "LEAF",
          "description": "Tree role assigned by the server. GROUP or LEAF.\nCreate always returns LEAF. A GROUP cannot be deleted, and its display name cannot change.",
          "readOnly": true
        },
        "origin": {
          "type": "string",
          "example": "CUSTOM",
          "description": "Who created the row. SYSTEM or CUSTOM. Create always returns CUSTOM.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time the category was created.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time the category was last updated.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Concurrency token derived from the last update time. Send it on update\nor delete to reject the call when the category has changed."
        }
      },
      "description": "EnvelopeCategory is a node in the workspace category tree.\nCreate always adds a custom leaf under an existing group.",
      "required": [
        "displayName",
        "color"
      ]
    },
    "v1EnvelopeDocument": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Envelope][dreamflow.v1.Envelope] id to view.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The doc display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeDocumentAttachment"
          },
          "description": "Required. Input only. \n\nThe collection of attachments belongs to document."
        },
        "thumbnailUris": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required. Input only. \n\nThe collection of thumbnails belongs to document.",
          "readOnly": true
        },
        "thumbnailOrientation": {
          "type": "string",
          "description": "Required. Input only. \n\nThe thumbnail orientation of the document.",
          "readOnly": true
        },
        "thumbnailRotation": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only. \n\nThe thumbnail rotation of the document.",
          "readOnly": true
        },
        "participants": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeDocumentParticipant"
          },
          "description": "Required. Input only. \n\nThe collection of participants belongs to document."
        },
        "participantActionOrderGroups": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeParticipantActionOrderGroup"
          },
          "description": "Output only.\n\nThe collection of participant action order groups belongs to document.",
          "readOnly": true
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Field"
          },
          "description": "Required. Input only. \n\nThe collection of fields belongs to document."
        },
        "extractedFields": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Field"
          },
          "description": "Required. Input only. \n\nThe collection of extracted fields belongs to document."
        },
        "state": {
          "type": "string",
          "description": "Required. Input only. \n\nThe state of the document."
        },
        "supplemental": {
          "type": "boolean",
          "description": "Required. Input only. \n\nThe supplemental of the document."
        },
        "supplementalActions": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeDocumentSupplementalAction"
          },
          "description": "Required. Input only. \n\nThe collection of supplemental actions belongs to document."
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Template` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Template` was created.",
          "readOnly": true
        },
        "anonymousFields": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Field"
          },
          "description": "Output only.\n\nPreview-only overlays derived from the resolved sending policy\n(envelope ID stamp and document verification QR). Coordinates reflect\nthe current personal or organization sending settings. Not persisted and\nexcluded from update requests.",
          "readOnly": true
        },
        "previousDigitalSignature": {
          "type": "string",
          "description": "Optional.\n\nWhat to do with a digital signature already in the uploaded PDF.\nKEEP leaves it in place. REMOVE flattens it away. Empty when the PDF had none."
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeDocument",
      "required": [
        "name",
        "uid",
        "displayName",
        "attachments",
        "thumbnailUris",
        "thumbnailOrientation",
        "thumbnailRotation",
        "participants",
        "fields",
        "extractedFields",
        "state",
        "supplemental",
        "supplementalActions"
      ]
    },
    "v1EnvelopePermission": {
      "type": "object",
      "properties": {
        "view": {
          "$ref": "#/definitions/v1EnvelopePermissionView",
          "description": "Output only.\n\nThe permission for the view.",
          "readOnly": true
        },
        "contentApproval": {
          "$ref": "#/definitions/v1EnvelopePermissionForContentApprovalRequest",
          "description": "Output only.\n\nThe permission for the content approval.",
          "readOnly": true
        },
        "contentModification": {
          "$ref": "#/definitions/v1EnvelopePermissionForContentModificationRequest",
          "description": "Output only.\n\nThe permission for the content modification.",
          "readOnly": true
        },
        "fillForm": {
          "$ref": "#/definitions/v1EnvelopePermissionForFillFormRequest",
          "description": "Output only.\n\nThe permission for the fill form.",
          "readOnly": true
        },
        "review": {
          "$ref": "#/definitions/v1EnvelopePermissionForReviewRequest",
          "description": "Output only.\n\nThe permission for the review.",
          "readOnly": true
        },
        "sign": {
          "$ref": "#/definitions/v1EnvelopePermissionForSignRequest",
          "description": "Output only.\n\nThe permission for the sign.",
          "readOnly": true
        },
        "approve": {
          "$ref": "#/definitions/v1EnvelopePermissionForApproveRequest",
          "description": "Output only.\n\nThe permission for the approve.",
          "readOnly": true
        },
        "stamp": {
          "$ref": "#/definitions/v1EnvelopePermissionForStampRequest",
          "description": "Output only.\n\nThe permission for the stamp.",
          "readOnly": true
        },
        "seal": {
          "$ref": "#/definitions/v1EnvelopePermissionForSealRequest",
          "description": "Output only.\n\nThe permission for the seal.",
          "readOnly": true
        },
        "emeterai": {
          "$ref": "#/definitions/v1EnvelopePermissionForEmeteraiRequest",
          "description": "Output only.\n\nThe permission for the emeterai.",
          "readOnly": true
        },
        "rejectTheRequest": {
          "$ref": "#/definitions/v1EnvelopePermissionForRejectTheRequest",
          "description": "Output only.\n\nThe permission for the reject the request.",
          "readOnly": true
        },
        "send": {
          "$ref": "#/definitions/v1EnvelopePermissionToSend",
          "description": "Output only.\n\nThe permission for the send.",
          "readOnly": true
        },
        "retract": {
          "$ref": "#/definitions/v1EnvelopePermissionToRetract",
          "description": "Output only.\n\nThe permission for the retract.",
          "readOnly": true
        },
        "share": {
          "$ref": "#/definitions/v1EnvelopePermissionToShare",
          "description": "Output only.\n\nThe permission for the share.",
          "readOnly": true
        },
        "lock": {
          "$ref": "#/definitions/v1EnvelopePermissionToLock",
          "description": "Output only.\n\nThe permission for the lock.",
          "readOnly": true
        },
        "unlock": {
          "$ref": "#/definitions/v1EnvelopePermissionToUnlock",
          "description": "Output only.\n\nThe permission for the unlock.",
          "readOnly": true
        },
        "archive": {
          "$ref": "#/definitions/v1EnvelopePermissionToArchive",
          "description": "Output only.\n\nThe permission for the archive.",
          "readOnly": true
        },
        "unarchive": {
          "$ref": "#/definitions/v1EnvelopePermissionToUnarchive",
          "description": "Output only.\n\nThe permission for the unarchive.",
          "readOnly": true
        },
        "delete": {
          "$ref": "#/definitions/v1EnvelopePermissionToDelete",
          "description": "Output only.\n\nThe permission for the delete.",
          "readOnly": true
        },
        "undelete": {
          "$ref": "#/definitions/v1EnvelopePermissionToUndelete",
          "description": "Output only.\n\nThe permission for the undelete.",
          "readOnly": true
        },
        "askWithAi": {
          "$ref": "#/definitions/v1EnvelopePermissionToAskWithAI",
          "description": "Output only.\n\nThe permission for the ask with AI.",
          "readOnly": true
        },
        "download": {
          "$ref": "#/definitions/v1EnvelopePermissionToDownload",
          "description": "Output only.\n\nThe permission for the download.",
          "readOnly": true
        },
        "payment": {
          "$ref": "#/definitions/v1EnvelopePermissionForPaymentRequest",
          "description": "Output only.\n\nThe permission for placing a Payment field.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermission"
    },
    "v1EnvelopeParticipant": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Envelope][dreamflow.v1.Envelope] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The participant display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "alternateEmail": {
          "type": "string",
          "example": "john.doe@mail.com",
          "description": "Output only.\n\nSecondary contact email. You need to provide an alternate email to create\ndifferent domains if a primary contact email already exists. Users will\nreceive a notification with credentials when you create an admin.google.com\nSecondary emails are also recovery email addresses. Alternate\nemails are optional when you create Team customers.",
          "readOnly": true
        },
        "alternatePhone": {
          "type": "string",
          "example": "+6281234567890",
          "description": "Optional. Input only. \n\nThe participant alternate phone."
        },
        "avatarUri": {
          "type": "string",
          "description": "Output only.\n\nThe participant avatar uri.",
          "readOnly": true
        },
        "role": {
          "type": "string",
          "description": "Required. Input only. The participant role."
        },
        "type": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant type.\n\nPossible values:\n- \"PERSONAL\"\n- \"ORGANIZATION\""
        },
        "workspace": {
          "$ref": "#/definitions/v1Workspace",
          "description": "Required. Input only. The participant workspace."
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Field"
          },
          "description": "Required. Input only.\n\nThe collection of fields belongs to participant."
        },
        "actionOrderNumber": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Input only.\n\nThe Participant action order number."
        },
        "actionOrderType": {
          "type": "string",
          "description": "Optional. Input only. The participant action order.\n\nThe Participant action order type."
        },
        "state": {
          "type": "string",
          "description": "Output only.\n\nThe State of participant.",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "description": "Output only.\n\nThe Status of participant.",
          "readOnly": true
        },
        "progress": {
          "type": "string",
          "description": "Output only.\n\nThe Progress of participant.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Participant` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Participant` was created.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Participant` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeParticipant",
      "required": [
        "name",
        "uid",
        "displayName",
        "role",
        "type",
        "workspace",
        "fields"
      ]
    },
    "v1EnvelopeCarbonCopy": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nResource id.\nFormat: envelope_carbon_copies/{uuid.v4}.\nEx: envelope_carbon_copies/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Envelope][dreamflow.v1.Envelope] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The participant display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "alternateEmail": {
          "type": "string",
          "example": "john.doe@mail.com",
          "description": "Output only.\n\nSecondary contact email. You need to provide an alternate email to create\ndifferent domains if a primary contact email already exists. Users will\nreceive a notification with credentials when you create an admin.google.com\nSecondary emails are also recovery email addresses. Alternate\nemails are optional when you create Team customers.",
          "readOnly": true
        },
        "alternatePhone": {
          "type": "string",
          "example": "+6281234567890",
          "description": "Optional. Input only. \n\nThe participant alternate phone."
        },
        "avatarUri": {
          "type": "string",
          "description": "Output only.\n\nThe participant avatar uri.",
          "readOnly": true
        },
        "event": {
          "$ref": "#/definitions/v1EnvelopeCarbonCopyEvent",
          "description": "Required. Input only. \n\nThe envelope carbon copy event."
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeCarbonCopy` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeCarbonCopy` was created.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeCarbonCopy` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeCarbonCopy",
      "required": [
        "name",
        "uid",
        "displayName",
        "event"
      ]
    },
    "v1EnvelopeCarbonCopyEvent": {
      "type": "object",
      "properties": {
        "whenEnvelopeIsSent": {
          "type": "boolean",
          "description": "Required. Input only. \n\nThe when envelope is sent."
        },
        "whenEnvelopeIsCompleted": {
          "type": "boolean",
          "description": "Required. Input only. \n\nThe when envelope is completed."
        },
        "whenEnvelopeIsDeclined": {
          "type": "boolean",
          "description": "Required. Input only. \n\nThe when envelope is declined."
        },
        "whenEnvelopeIsRetracted": {
          "type": "boolean",
          "description": "Required. Input only. \n\nThe when envelope is retracted."
        },
        "whenEnvelopeIsExpired": {
          "type": "boolean",
          "description": "Required. Input only. \n\nThe when envelope is expired."
        },
        "whenRecipientCompleteTheirAction": {
          "type": "boolean",
          "description": "Required. Input only. \n\nThe recipient complete their action."
        }
      },
      "title": "EnvelopeCarbonCopyEvent",
      "required": [
        "whenEnvelopeIsSent",
        "whenEnvelopeIsCompleted",
        "whenEnvelopeIsDeclined",
        "whenEnvelopeIsRetracted",
        "whenEnvelopeIsExpired",
        "whenRecipientCompleteTheirAction"
      ]
    },
    "v1EnvelopeLifeCycle": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nResource id.\nFormat: envelope_carbon_copies/{uuid.v4}.\nEx: envelope_carbon_copies/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Envelope][dreamflow.v1.Envelope] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The lifecycle display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "kind": {
          "type": "string",
          "description": "Required. \n\nInput only. The lifecycle kind."
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "description": "Required. \n\nInput only. The lifecycle date."
        },
        "timezone": {
          "type": "string",
          "description": "Required. Input only. \n\nThe lifecycle timezone."
        },
        "reminders": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeLifeCycleReminder"
          },
          "description": "Required. Input only. \n\nThe lifecycle reminders."
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycle` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycle` was created.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycle` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeLifeCycle",
      "required": [
        "name",
        "uid",
        "displayName",
        "kind",
        "date",
        "timezone",
        "reminders"
      ]
    },
    "v1EnvelopeFieldConditionalRule": {
      "type": "object",
      "properties": {
        "rules": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeConditionalRule"
          },
          "description": "Required. Input only.\n\nIs a rules."
        }
      },
      "title": "EnvelopeFieldConditionalRule",
      "required": [
        "rules"
      ]
    },
    "v1EnvelopeRiskAnalysis": {
      "type": "object",
      "properties": {
        "riskLevel": {
          "type": "string",
          "description": "Output only.\n\nThe risk level of the `Envelope`.",
          "readOnly": true
        },
        "riskScore": {
          "type": "string",
          "description": "Output only.\n\nThe risk score of the `Envelope`.",
          "readOnly": true
        },
        "riskSeverity": {
          "type": "string",
          "description": "Output only.\n\nThe risk severity of the `Envelope`.",
          "readOnly": true
        },
        "findings": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeRiskAnalysisFinding"
          },
          "description": "Output only.\n\nThe findings of the `Envelope`.",
          "readOnly": true
        },
        "playbook": {
          "type": "string",
          "description": "Output only.\n\nPlaybook resource name when analysis used a published playbook snapshot.",
          "readOnly": true
        },
        "playbookVersion": {
          "type": "string",
          "description": "Output only.\n\nPublished playbook version label frozen for this analysis run.",
          "readOnly": true
        },
        "playbookDisplayName": {
          "type": "string",
          "description": "Output only.\n\nHuman-readable playbook display name at analysis time.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRiskAnalysis is a risk analysis for a envelope."
    },
    "v1EnvelopeAttribute": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nResource id.\nFormat: envelope_attributes/{uuid.v4}.\nEx: envelope_attributes/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [EnvelopeAttribute][dreamflow.v1.EnvelopeAttribute] id to view.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The attribute display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "key": {
          "type": "string",
          "description": "Optional. The machine attribute key (e.g. document_type)."
        },
        "value": {
          "type": "string",
          "description": "Required. The attribute value.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "valueType": {
          "type": "string",
          "description": "Required. The attribute value type.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "valueSource": {
          "type": "string",
          "description": "Required. The attribute value source.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "valueMetadata": {
          "type": "string",
          "description": "Required. The attribute value metadata JSON object.\n\nThis field must be a JSON object. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "kind": {
          "type": "string",
          "description": "Required. The attribute kind.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "status": {
          "type": "string",
          "description": "Required. The attribute status.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeAttribute` was created.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeAttribute` was last updated.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeAttribute` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeAttribute",
      "required": [
        "uid",
        "displayName",
        "value",
        "valueType",
        "valueSource",
        "valueMetadata",
        "kind",
        "status"
      ]
    },
    "v1EnvelopeRelationship": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nRelationship id.\nFormat: relationships/{uuid.v4}.\nEx: relationships/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [EnvelopeRelationship][dreamflow.v1.EnvelopeRelationship] id to view.",
          "readOnly": true
        },
        "targetEnvelopeUid": {
          "type": "string",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [EnvelopeRelationship][dreamflow.v1.EnvelopeRelationship] id to view.",
          "readOnly": true
        },
        "targetEnvelopeCreateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Required. Output only.\n\nThe Timestamp of when the target envelope was created.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The relationship display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "owner": {
          "$ref": "#/definitions/v1EnvelopeOwner",
          "description": "Required. Input only. \n\nThe relationship owner."
        },
        "thumbnailUri": {
          "type": "string",
          "description": "Required. Input only. \n\nThe relationship thumbnail uri."
        },
        "thumbnailOrientation": {
          "type": "string",
          "description": "Required. Input only. \n\nThe relationship thumbnail orientation."
        },
        "thumbnailRotation": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only. \n\nThe relationship thumbnail rotation."
        },
        "kind": {
          "type": "string",
          "description": "Required. Input only. \n\nThe relationship kind."
        },
        "direction": {
          "type": "string",
          "description": "Required. Input only. \n\nThe relationship direction."
        },
        "notes": {
          "type": "string",
          "description": "Required. Input only. \n\nThis field must be a UTF-8 encoded string with a length limit of 1024\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "status": {
          "type": "string",
          "description": "Required. Input only. \n\nThe relationship status."
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Relationship` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Relationship` was created.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeRelationship",
      "required": [
        "name",
        "uid",
        "targetEnvelopeUid",
        "targetEnvelopeCreateTime",
        "displayName",
        "owner",
        "thumbnailUri",
        "thumbnailOrientation",
        "thumbnailRotation",
        "kind",
        "direction",
        "notes",
        "status"
      ]
    },
    "v1EnvelopeSigningDeadlineAndReminder": {
      "type": "object",
      "properties": {
        "deadline": {
          "type": "string",
          "format": "date-time",
          "description": "Required. Input only.\n\nThe signing deadline of the envelope."
        },
        "pendingRecipientsOnly": {
          "type": "boolean",
          "description": "Required. Input only.\n\nPending recipients only."
        },
        "sendReminderEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nSend reminder enabled."
        },
        "sendReminderInXDays": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nSend reminder in X days."
        },
        "sendReminderEachXDays": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nSend reminder each X days."
        },
        "sendReminderMaxCount": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nSend reminder max count."
        }
      },
      "description": "EnvelopeSigningDeadlineAndReminder is the signing deadline and reminder of a envelope.",
      "required": [
        "deadline",
        "pendingRecipientsOnly",
        "sendReminderEnabled",
        "sendReminderInXDays",
        "sendReminderEachXDays",
        "sendReminderMaxCount"
      ]
    },
    "v1EnvelopeEscalation": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe escalation enabled."
        },
        "doNotEscalateOnWeekends": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe escalation do not escalate on weekends."
        },
        "stopWhenRecipientTakesAction": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe escalation stop when recipient takes action."
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeEscalationStep"
          },
          "description": "Required. Input only.\n\nThe escalation steps."
        }
      },
      "description": "EnvelopeEscalation is the escalation of a envelope.",
      "required": [
        "enabled",
        "doNotEscalateOnWeekends",
        "stopWhenRecipientTakesAction",
        "steps"
      ]
    },
    "docenvelopev1Condition": {
      "type": "string",
      "enum": [
        "CONDITION_UNSPECIFIED",
        "COMPLETED",
        "DRAFT",
        "IN_PROGRESS",
        "REJECTED",
        "RETRACTED",
        "SENT"
      ],
      "default": "CONDITION_UNSPECIFIED",
      "description": "Condition is an enumeration representing the envelope's condition.\nEach value corresponds to a specific condition of an envelope.\n\n - CONDITION_UNSPECIFIED: CONDITION_UNSPECIFIED indicates that the envelope condition is unknown.\n - COMPLETED: COMPLETED indicates that the envelope is completed.\n - DRAFT: DRAFT indicates that the envelope is in draft.\n - IN_PROGRESS: IN_PROGRESS indicates that the envelope is in progress.\n - REJECTED: REJECTED indicates that the envelope is rejected.\n - RETRACTED: RETRACTED indicates that the envelope is retracted.\n - SENT: SENT indicates that the envelope is sent."
    },
    "docenvelopev1State": {
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "AVAILABLE",
        "DELETED",
        "HIDDEN"
      ],
      "default": "STATE_UNSPECIFIED",
      "description": "State is an enumeration representing the various stages of a doc envelope's lifecycle.\nEach value corresponds to a specific state of an envelope.\n\n - STATE_UNSPECIFIED: STATE_UNSPECIFIED indicates that the envelope state is unknown.\n - AVAILABLE: AVAILABLE indicates that the envelope is available.\n - DELETED: DELETED indicates that the envelope is deleted.\n - HIDDEN: HIDDEN indicates that the envelope is hidden."
    },
    "v1EnvelopeProgressStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "Required. Output only.\n\nThe State of the envelope progress status.",
          "readOnly": true
        },
        "blockingIssue": {
          "type": "string",
          "description": "Required. Output only.\n\nThe Blocking issue of the envelope progress status.",
          "readOnly": true
        },
        "nextAction": {
          "type": "string",
          "description": "Required. Output only.\n\nThe Next action of the envelope progress status.",
          "readOnly": true
        },
        "severity": {
          "type": "string",
          "description": "Required. Output only.\n\nThe Severity of the envelope progress status.",
          "readOnly": true
        },
        "idleDays": {
          "type": "string",
          "description": "Required. Output only.\n\nThe Idle days of the envelope progress status.",
          "readOnly": true
        },
        "completedActionCount": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Output only.\n\nThe Completed action counts of the envelope progress status.",
          "readOnly": true
        },
        "totalActionCount": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Output only.\n\nThe Total action counts of the envelope progress status.",
          "readOnly": true
        },
        "completionPercentage": {
          "type": "number",
          "format": "float",
          "description": "Required. Output only.\n\nThe Completion percentage of the envelope progress status.",
          "readOnly": true
        }
      },
      "title": "EnvelopeProgressStatus",
      "required": [
        "state",
        "blockingIssue",
        "nextAction",
        "severity",
        "idleDays",
        "completedActionCount",
        "totalActionCount",
        "completionPercentage"
      ]
    },
    "v1EnvelopeRejector": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Output only.\n\nIs a unique identifier for the resource.\nThis field must be a UTF-8 encoded string with a length limit of 36\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `uuid.v7`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "example": "John M'c Doe",
          "description": "Only alphanumeric with dots, comma, single quote, and space are allowed.",
          "maxLength": 255,
          "minLength": 2
        },
        "alternateEmail": {
          "type": "string",
          "description": "Output only.\n\nSecondary contact email. You need to provide an alternate email to create\ndifferent domains if a primary contact email already exists. Users will\nreceive a notification with credentials when you create an admin.google.com\nSecondary emails are also recovery email addresses. Alternate\nemails are optional when you create Team customers.",
          "readOnly": true
        },
        "alternatePhone": {
          "type": "string",
          "description": "Output only.\n\nThe alternate phone of the owner.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Output only.\n\nThe type of the owner.",
          "readOnly": true
        },
        "workspace": {
          "$ref": "#/definitions/v1Workspace",
          "description": "Output only.\n\nThe workspace of the owner.",
          "readOnly": true
        },
        "avatarUri": {
          "type": "string",
          "description": "Output only. Is a unique URL access for the display image.\n\nThe fully qualified url of the image avatar.\nFormat: `<domain>/files/<uuid.v7>/<uuid.v7>`",
          "readOnly": true
        }
      },
      "title": "EnvelopeRejector",
      "required": [
        "displayName"
      ]
    },
    "v1EnvelopeRecentActivity": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Envelope][dreamflow.v1.Envelope] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Output only.\n\nThe display name of the `EnvelopeRecentActivity`.",
          "readOnly": true
        },
        "event": {
          "type": "string",
          "description": "Output only.\n\nThe event of the `EnvelopeRecentActivity`.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeRecentActivity` was created.",
          "readOnly": true
        },
        "userAgent": {
          "type": "string",
          "description": "Output only.\n\nThe user agent recorded when the activity happened.",
          "readOnly": true
        },
        "ipAddress": {
          "type": "string",
          "description": "Output only.\n\nThe IP address recorded when the activity happened.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "Output only.\n\nA readable place for the activity, such as city and country.",
          "readOnly": true
        },
        "latitude": {
          "type": "number",
          "format": "double",
          "description": "Output only.\n\nLatitude of the activity location.",
          "readOnly": true
        },
        "longitude": {
          "type": "number",
          "format": "double",
          "description": "Output only.\n\nLongitude of the activity location.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "description": "EnvelopeRecentActivity is a recent activity for a envelope.",
      "required": [
        "name",
        "uid"
      ]
    },
    "v1EnvelopeNavigation": {
      "type": "object",
      "properties": {
        "prevUid": {
          "type": "string",
          "format": "uuid",
          "description": "Output only.\n\nThe fully qualified resource id of the\n[Doc][dreamflow.v1.Envelope]",
          "readOnly": true
        },
        "prevDisplayName": {
          "type": "string",
          "description": "Output only.\n\nThe display name of the previous envelope.",
          "readOnly": true
        },
        "prevThumbnailUri": {
          "type": "string",
          "readOnly": true
        },
        "nextUid": {
          "type": "string",
          "format": "uuid",
          "description": "Output only.\n\nThe fully qualified resource id of the\n[Doc][dreamflow.v1.Envelope]",
          "readOnly": true
        },
        "nextDisplayName": {
          "type": "string",
          "description": "Output only.\n\nThe display name of the next envelope.",
          "readOnly": true
        },
        "nextThumbnailUri": {
          "type": "string",
          "readOnly": true
        }
      },
      "title": "EnvelopeNavigation"
    },
    "v1EnvelopeSendStep": {
      "type": "object",
      "properties": {
        "destinationMode": {
          "type": "string",
          "description": "Optional. Input only.\n\nDestination organization mode.\nPossible values:\n- \"ONE_FOLDER\"\n- \"SEPARATED_FOLDERS\"\n- \"PER_ENVELOPE\""
        },
        "outputs": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeSendStepOutput"
          },
          "description": "Required. Input only.\n\nSelected completion outputs and their destinations."
        },
        "folderNameTemplate": {
          "type": "string",
          "description": "Optional. Input only.\n\nFolder naming template used when destination_mode is \"PER_ENVELOPE\".\nPossible values:\n- \"ENVELOPE_NAME\"\n- \"ENVELOPE_ID\"\n- \"COMPLETED_DATE\"\n- \"DOCUMENT_NAME\"\n- \"CUSTOM\""
        },
        "folderNameCustom": {
          "type": "string",
          "description": "Optional. Input only.\n\nCustom folder naming template when folder_name_template is \"CUSTOM\".\nSupports tokens such as {{Envelope Name}}, {{Envelope ID}},\n{{Recipient Name}}, {{Completed Date}}, and {{Document Name}}."
        }
      },
      "description": "EnvelopeSendStep is the send step outputs and destination configuration of an envelope.",
      "required": [
        "outputs"
      ]
    },
    "v1EnvelopeCompletionArchive": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nResource id.\nFormat: envelope_completion_archives/{uuid.v4}.\nEx: envelope_completion_archives/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [EnvelopeCompletionArchive][dreamflow.v1.EnvelopeCompletionArchive] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "kind": {
          "$ref": "#/definitions/v1EnvelopeCompletionArchiveKind",
          "description": "Output only.\n\nOutput type identifier.",
          "readOnly": true
        },
        "destination": {
          "$ref": "#/definitions/v1EnvelopeSendStepDestination",
          "description": "Output only.\n\nDestination for this output.",
          "readOnly": true
        },
        "storageId": {
          "type": "string",
          "description": "Output only.\n\nStorage ID of the archived file.",
          "readOnly": true
        },
        "storageName": {
          "type": "string",
          "description": "Output only.\n\nStorage name of the archived file.",
          "readOnly": true
        },
        "storageVersion": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nStorage version of the archived file.",
          "readOnly": true
        },
        "storageChecksum": {
          "type": "string",
          "description": "Output only.\n\nStorage checksum of the archived file.",
          "readOnly": true
        },
        "storageProvider": {
          "type": "string",
          "description": "Output only.\n\nStorage provider of the archived file.",
          "readOnly": true
        },
        "storagePath": {
          "type": "string",
          "description": "Output only.\n\nStorage path of the archived file.",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "description": "Output only.\n\nStatus of the completion archive.",
          "readOnly": true
        },
        "metadata": {
          "type": "string",
          "description": "Output only.\n\nMetadata of the completion archive.",
          "readOnly": true
        },
        "destinationMode": {
          "type": "string",
          "description": "Output only.\n\nDestination organization mode.\nPossible values:\n- \"COMBINED_FOLDER\"\n- \"BY_OUTPUT_TYPE\"",
          "readOnly": true
        },
        "storageFolderId": {
          "type": "string",
          "description": "Output only.\n\nStorage folder ID of the archived file.",
          "readOnly": true
        },
        "storageFolderUrl": {
          "type": "string",
          "description": "Output only.\n\nStorage folder URL of the archived file.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeCompletionArchive` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeCompletionArchive` was created.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeCompletionArchive` was deleted.",
          "readOnly": true
        }
      },
      "description": "EnvelopeCompletionArchive is a completion archive output configured for an envelope.",
      "required": [
        "uid"
      ]
    },
    "v1EnvelopeCompletionArchiveOutputSettings": {
      "type": "object",
      "properties": {
        "signedPdf": {
          "type": "boolean",
          "description": "Required. Input only.\n\nWhether signed PDF output is enabled."
        },
        "progressWorkbook": {
          "type": "boolean",
          "description": "Required. Input only.\n\nWhether progress workbook output is enabled."
        },
        "auditTrail": {
          "type": "boolean",
          "description": "Required. Input only.\n\nWhether audit trail output is enabled."
        },
        "completionCertificate": {
          "type": "boolean",
          "description": "Required. Input only.\n\nWhether completion certificate output is enabled."
        },
        "originalSnapshot": {
          "type": "boolean",
          "description": "Required. Input only.\n\nWhether original snapshot output is enabled."
        }
      },
      "description": "EnvelopeCompletionArchiveOutputSettings is the completion archive output settings of an envelope.",
      "required": [
        "signedPdf",
        "progressWorkbook",
        "auditTrail",
        "completionCertificate",
        "originalSnapshot"
      ]
    },
    "v1EnvelopeRetention": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopeRetentionState",
          "description": "Output only.\n\nThe retention state of the envelope.",
          "readOnly": true
        },
        "dueTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe retention date: the moment the envelope became eligible for the\nretention action (anchor date plus the configured retention days).",
          "readOnly": true
        },
        "permanentTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe permanent date: when the recovery window ends after the retention\naction (due date plus the configured grace period).",
          "readOnly": true
        },
        "action": {
          "type": "string",
          "description": "Output only.\n\nThe action performed when retention expires.\nPossible values: \"ARCHIVE\", \"HIDE\", \"DELETE\", \"COLD_STORAGE\", \"WEBHOOK\".",
          "readOnly": true
        },
        "gracePeriodDays": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe recovery window in days applied after the retention action.",
          "readOnly": true
        },
        "basis": {
          "type": "string",
          "description": "Output only.\n\nThe lifecycle basis that started the retention countdown.\nPossible values: \"COMPLETED\", \"REJECTED\", \"DRAFT\", \"TRASH\".",
          "readOnly": true
        },
        "legalHold": {
          "type": "boolean",
          "description": "Output only.\n\nWhether a legal hold is currently pausing the retention timer.",
          "readOnly": true
        },
        "destination": {
          "type": "string",
          "description": "Output only.\n\nArchive destination kind from the governing retention policy.\nPossible values: \"INTERNAL_ARCHIVE\", \"CONNECTED_CLOUD\".",
          "readOnly": true
        },
        "destinationProvider": {
          "type": "string",
          "description": "Output only.\n\nConnected-cloud provider for the archive destination (e.g. GOOGLE, MICROSOFT).",
          "readOnly": true
        },
        "destinationPath": {
          "type": "string",
          "description": "Output only.\n\nHuman-readable folder path for the archive destination when configured.",
          "readOnly": true
        },
        "destinationFolderUrl": {
          "type": "string",
          "description": "Output only.\n\nFolder URL for the archive destination when configured.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRetention is the computed retention status of an envelope under the\nworkspace's retention policy."
    },
    "v1EnvelopeCompliance": {
      "type": "object",
      "properties": {
        "profile": {
          "type": "string",
          "description": "Optional.\n\nThe compliance profile bundle id selected by the creator.\nPossible values:\n- \"\" (unspecified, \"Decide Later\")\n- \"STANDARD\"\n- \"UETA_ESIGN\"\n- \"FDA_PART_11\"\n- \"INDONESIA_PSRE\"\n- \"EIDAS_ADVANCED\"\n- \"EIDAS_QUALIFIED\"\n- \"WORKSPACE_DEFAULT\""
        }
      },
      "description": "EnvelopeCompliance is the electronic-signature legal framework applied to an\nenvelope."
    },
    "v1EnvelopeResolvedCompliance": {
      "type": "object",
      "properties": {
        "selectedProfile": {
          "type": "string",
          "description": "Output only. Creator selection before send (may be WORKSPACE_DEFAULT).",
          "readOnly": true
        },
        "bundleId": {
          "type": "string",
          "description": "Output only. Effective bundle id after workspace resolution.",
          "readOnly": true
        },
        "signingProfile": {
          "type": "string",
          "description": "Output only. Signing tier (e.g. STANDARD, ADES, QES).",
          "readOnly": true
        },
        "regulatoryProfile": {
          "type": "string",
          "description": "Output only. Regulatory label (e.g. UETA_ESIGN, FDA_PART_11, EIDAS).",
          "readOnly": true
        },
        "resolvedAt": {
          "type": "string",
          "description": "Output only. When the compliance snapshot was persisted (send or finalize).",
          "readOnly": true
        },
        "source": {
          "type": "string",
          "description": "Output only. Snapshot source: FINALIZE_SETTINGS, SEND, EXPLICIT, WORKSPACE_POLICY.",
          "readOnly": true
        }
      },
      "description": "EnvelopeResolvedCompliance is the effective signing profile after resolving\nWORKSPACE_DEFAULT and applying the bundle registry (output on envelope reads)."
    },
    "v1EnvelopeArchiveSummary": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "description": "Output only.\n\nWho archived the envelope.\nPossible values: \"MANUAL\", \"RETENTION\".",
          "readOnly": true
        },
        "destination": {
          "type": "string",
          "description": "Output only.\n\nArchive destination kind snapshotted at archive time.\nPossible values: \"INTERNAL_ARCHIVE\", \"CONNECTED_CLOUD\", \"S3\", \"GCS\", \"AZURE_BLOB\".",
          "readOnly": true
        },
        "destinationProvider": {
          "type": "string",
          "description": "Output only.\n\nConnected-cloud provider for the archive destination (e.g. GOOGLE_DRIVE).",
          "readOnly": true
        },
        "destinationFolderUrl": {
          "type": "string",
          "description": "Output only.\n\nFolder URL for the archive destination when configured.",
          "readOnly": true
        },
        "exportStatus": {
          "type": "string",
          "description": "Output only.\n\nExternal copy state for connected-cloud archives.\nPossible values: \"NOT_APPLICABLE\", \"PENDING\", \"SUCCESS\", \"FAILED\".",
          "readOnly": true
        },
        "archiveTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nWhen the envelope was archived.",
          "readOnly": true
        }
      },
      "description": "EnvelopeArchiveSummary describes how an envelope entered the Archived directory."
    },
    "v1EnvelopeDocFolder": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "description": "Output only. Folder uid.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Output only. Folder display name when the folder still exists.",
          "readOnly": true
        },
        "slugPath": {
          "type": "string",
          "description": "Output only. Nested slug path used for folder filtering.",
          "readOnly": true
        },
        "missing": {
          "type": "boolean",
          "description": "Output only. True when the envelope still references a deleted folder.",
          "readOnly": true
        }
      },
      "description": "EnvelopeDocFolder is the personal doc folder an envelope is filed under."
    },
    "v1EnvelopeInvitationBranding": {
      "type": "object",
      "properties": {
        "organizationBrandId": {
          "type": "string",
          "description": "Optional.\n\nOrganization brand kit id when a saved kit is selected. Empty when using platform default or custom inline theme."
        },
        "emailConfig": {
          "type": "string",
          "description": "Optional.\n\nJSON object matching organization email_config when using a custom (unsaved) invitation theme."
        }
      },
      "description": "EnvelopeInvitationBranding selects which brand kit or custom email theme invitation emails use."
    },
    "v1EnvelopeTag": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Resource name assigned by the server.\nFormat: envelopeTags/{uuid}.\nExample: envelopeTags/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Server-assigned id. UUID.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "example": "Legal",
          "description": "Name shown for the tag. 1 to 40 characters.\nAnother active tag in the same workspace with this name returns ALREADY_EXISTS."
        },
        "description": {
          "type": "string",
          "example": "Contracts waiting for review",
          "description": "Optional note, up to 200 characters. An empty string stores no note."
        },
        "color": {
          "type": "string",
          "example": "#2563EB",
          "description": "Color from the palette: #2563EB, #4F46E5, #7C3AED, #9333EA, #DB2777,\n#475569, #0891B2, #0F766E, #B45309, #78716C.\nLowercase hex is accepted and stored uppercase. Any other value returns INVALID_ARGUMENT."
        },
        "usageCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of non-deleted envelopes this tag is currently applied to.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time the tag was created.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time the tag was last updated.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Concurrency token derived from the last update time. Send it on update\nto reject the call when the tag has changed."
        }
      },
      "description": "EnvelopeTag is a flat, workspace-scoped label that can be applied to many envelopes.",
      "required": [
        "displayName",
        "color"
      ]
    },
    "v1TemplateSendDataSource": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Source kind, for example UPLOAD_EXCEL, GOOGLE_SHEETS, or ONE_DRIVE_EXCEL."
        },
        "providerName": {
          "type": "string",
          "description": "Provider, for example UPLOAD, GOOGLE_DRIVE, or ONE_DRIVE."
        },
        "label": {
          "type": "string",
          "description": "File name shown to people."
        },
        "fileId": {
          "type": "string",
          "description": "File id at the provider. Empty for an upload."
        },
        "fileUrl": {
          "type": "string",
          "description": "Link that opens the sheet at the provider. HTTPS only. Empty for an upload."
        },
        "storageId": {
          "type": "string",
          "description": "Storage id of an uploaded workbook. Empty for a linked sheet."
        },
        "mimeType": {
          "type": "string",
          "description": "MIME type of the file."
        },
        "rowCount": {
          "type": "integer",
          "format": "int32",
          "description": "Rows read from the sheet for this send."
        }
      },
      "description": "TemplateSendDataSource is the spreadsheet behind a template send.\nAn uploaded workbook is kept in storage; a Google or Microsoft sheet is linked."
    },
    "v1TemplateSendSessionSummary": {
      "type": "object",
      "properties": {
        "declinedCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nCopies a recipient declined.\nExample: 1.",
          "readOnly": true
        },
        "endedCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nCopies that expired or were withdrawn before they were complete.\nExample: 0.",
          "readOnly": true
        },
        "waitingOnCallerCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nCopies in progress where the caller is the next to act. Always 0 for an\nAPI key, which has no person to wait on.\nExample: 1.",
          "readOnly": true
        },
        "nextExpireTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe earliest expiry among copies still in progress. Unset when no copy in\nprogress has an expiry.",
          "readOnly": true
        },
        "bouncedCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nCopies with at least one email the mail provider reported as a permanent\nbounce. Emails sent before bounce tracking started are not counted.\nExample: 3.",
          "readOnly": true
        }
      },
      "description": "TemplateSendSessionSummary counts the copies of one template send session\nthat need attention: declined, ended, waiting on the caller, and the next\ndeadline among copies still in progress."
    },
    "v1FillFormEnvelopeResponse": {
      "type": "object",
      "properties": {
        "fillFormTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was fill form.",
          "readOnly": true
        },
        "remoteSigningUrl": {
          "type": "string",
          "description": "Output only.\n\nPresent when signing requires an external TSP ceremony redirect.",
          "readOnly": true
        },
        "signingProviderSession": {
          "type": "string",
          "description": "Output only.\n\nResource name of the signing provider session when remote signing is required.\nFormat: envelopes/{envelope}/signingSessions/{session}.",
          "readOnly": true
        },
        "awaitingPsreOtp": {
          "type": "boolean",
          "description": "Output only.\n\nWhen true, Indonesian PSrE retail signing needs the email OTP before the\nparticipant is marked complete. Use authorizeMyPsreStamp / resendMyPsreStampOtp.",
          "readOnly": true
        },
        "psreStampId": {
          "type": "string",
          "description": "Output only.\n\nStamp id waiting for the EZMeterai retail OTP (psre_document_stamps.id).",
          "readOnly": true
        },
        "psreSpecimenKind": {
          "type": "string",
          "description": "Output only.\n\nSpecimen batch kind: \"signature\" or \"initial\".",
          "readOnly": true
        },
        "psreOtpEmailMasked": {
          "type": "string",
          "description": "Output only.\n\nMasked certificate email that received the retail OTP (e.g. j***@example.com).",
          "readOnly": true
        }
      },
      "description": "Response for\n[EnvelopeService.FillFormEnvelope][dreamflow.v1.EnvelopeService.FillFormEnvelope]\nmethod."
    },
    "v1CreateEnvelopeSigningLinkResponse": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "Output only. The signing page for this recipient. Treat it as a secret.",
          "readOnly": true
        },
        "expireTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. When the link stops working.",
          "readOnly": true
        },
        "recipientEmail": {
          "type": "string",
          "description": "Output only. The recipient the link is for.",
          "readOnly": true
        }
      },
      "description": "Response for\n[EnvelopeService.CreateEnvelopeSigningLink][dreamflow.v1.EnvelopeService.CreateEnvelopeSigningLink]."
    },
    "v1DownloadEnvelopeResponse": {
      "type": "object",
      "properties": {
        "uri": {
          "type": "string",
          "description": "Required.\n\nThe URI of the `Envelope` to download."
        },
        "downloadTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was downloaded.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "description": "Response for\n[EnvelopeService.DownloadEnvelope][dreamflow.v1.EnvelopeService.DownloadEnvelope]\nmethod.",
      "required": [
        "uri"
      ]
    },
    "v1RemindEnvelopeSignersResponse": {
      "type": "object",
      "properties": {
        "remindedCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only. People who were queued a signing reminder.",
          "readOnly": true
        },
        "remindTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. When the reminder was queued.",
          "readOnly": true
        }
      },
      "description": "Response for\n[EnvelopeService.RemindEnvelopeSigners][dreamflow.v1.EnvelopeService.RemindEnvelopeSigners]."
    },
    "v1RequestFillFormEnvelopeSigningConfirmationResponse": {
      "type": "object",
      "properties": {
        "required": {
          "type": "boolean",
          "description": "Output only.\n\nWhether an extra confirmation is required before finishing a signature.",
          "readOnly": true
        },
        "method": {
          "type": "string",
          "description": "Output only.\n\nThe active confirmation method for this challenge.",
          "readOnly": true
        },
        "defaultMethod": {
          "type": "string",
          "description": "Output only.\n\nThe actor's default confirmation method.",
          "readOnly": true
        },
        "availableMethods": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Output only.\n\nThe confirmation methods available to the actor based on their setup.",
          "readOnly": true
        },
        "challengeId": {
          "type": "string",
          "description": "Output only.\n\nThe challenge identifier for the email or passkey confirmation method.",
          "readOnly": true
        },
        "passkeyAssertionOptions": {
          "type": "string",
          "description": "Output only.\n\nThe passkey assertion options, serialized as JSON, for the passkey method.",
          "readOnly": true
        },
        "email": {
          "type": "string",
          "description": "Output only.\n\nThe masked destination email for the email confirmation method.",
          "readOnly": true
        },
        "resendAvailableInSecond": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe number of seconds to wait before a new email code can be requested.",
          "readOnly": true
        },
        "locked": {
          "type": "boolean",
          "description": "Output only.\n\nWhether the confirmation is temporarily locked due to too many attempts.",
          "readOnly": true
        },
        "lockedRetryAfterSecond": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe number of seconds to wait before retrying when locked.",
          "readOnly": true
        },
        "attemptsRemaining": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe number of remaining attempts before the next temporary lock.",
          "readOnly": true
        },
        "expiryTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the challenge expires.",
          "readOnly": true
        },
        "requestTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the challenge was requested.",
          "readOnly": true
        }
      },
      "description": "Response for\n[EnvelopeService.RequestFillFormEnvelopeSigningConfirmation][dreamflow.v1.EnvelopeService.RequestFillFormEnvelopeSigningConfirmation]\nmethod."
    },
    "v1SendEnvelopeResponse": {
      "type": "object",
      "properties": {
        "sendTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Envelope` was sent.",
          "readOnly": true
        },
        "scheduledSendTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nWhen the envelope will be sent. Set only when send_time scheduled it.",
          "readOnly": true
        }
      },
      "description": "Response for\n[EnvelopeService.SendEnvelope][dreamflow.v1.EnvelopeService.SendEnvelope]\nmethod."
    },
    "v1SimulateEnvelopeEventResponse": {
      "type": "object",
      "properties": {
        "envelopeState": {
          "type": "string",
          "description": "Output only. The envelope progress after the event, such as IN_PROGRESS or COMPLETED.",
          "readOnly": true
        },
        "recipientState": {
          "type": "string",
          "description": "Output only. The recipient status after the event, empty for EXPIRED.",
          "readOnly": true
        },
        "events": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Output only. The webhook events that were queued, in order.",
          "readOnly": true
        }
      },
      "description": "Response for\n[EnvelopeService.SimulateEnvelopeEvent][dreamflow.v1.EnvelopeService.SimulateEnvelopeEvent]."
    },
    "v1VerifyFillFormEnvelopeSigningConfirmationResponse": {
      "type": "object",
      "properties": {
        "verified": {
          "type": "boolean",
          "description": "Output only.\n\nWhether the confirmation was verified.",
          "readOnly": true
        },
        "method": {
          "type": "string",
          "description": "Output only.\n\nThe confirmation method that was verified.",
          "readOnly": true
        },
        "expiryTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the confirmation expires.",
          "readOnly": true
        },
        "verifyTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the confirmation was verified.",
          "readOnly": true
        }
      },
      "description": "Response for\n[EnvelopeService.VerifyFillFormEnvelopeSigningConfirmation][dreamflow.v1.EnvelopeService.VerifyFillFormEnvelopeSigningConfirmation]\nmethod."
    },
    "v1ListEnvelopesResponse": {
      "type": "object",
      "properties": {
        "envelopes": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Envelope"
          },
          "description": "Collection of [Doc][dreamflow.v1.Envelope]."
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token that can be sent as\n[ListEnvelopesRequest.page_token][dreamflow.v1.ListEnvelopesRequest.page_token]\nto retrieve the next page. If this field is omitted, there are no\nsubsequent pages."
        }
      },
      "description": "Response for\n[EnvelopeService.ListEnvelopes][dreamflow.v1.EnvelopeService.ListEnvelopes]\nmethod."
    },
    "v1BatchAcknowledgeUploadResponse": {
      "type": "object",
      "properties": {
        "statuses": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1AcknowledgeUploadStatus"
          },
          "description": "Output only.\n\nThe collection of acknowledge statuses.",
          "readOnly": true
        },
        "acknowledgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Storage`s were acknowledged.",
          "readOnly": true
        }
      },
      "description": "Response for\n[StorageService.BatchAcknowledgeUpload][dreamflow.storage.v1.StorageService.BatchAcknowledgeUpload]\nmethod."
    },
    "v1BatchAcknowledgeUploadRequest": {
      "type": "object",
      "properties": {
        "names": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required.\n\nThe collection of [Storage][dreamflow.storage.v1.Storage] name\nto acknowledge.\nExample: storages/6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f"
        },
        "idempotencyKey": {
          "type": "string",
          "description": "Optional. Input only.\n\nIdempotency key to support idempotency.\nThis request is only idempotent if a `idempotency_key` is provided."
        }
      },
      "description": "Request for\n[StorageService.BatchAcknowledgeUpload][dreamflow.storage.v1.StorageService.BatchAcknowledgeUpload]\nmethod.",
      "required": [
        "names"
      ]
    },
    "v1BatchAddStorageResponse": {
      "type": "object",
      "properties": {
        "storages": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Storage"
          },
          "description": "Required.\n\nThe [Storage][dreamflow.storage.v1.Storage]s\nto add."
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Storage`s were added.",
          "readOnly": true
        }
      },
      "description": "Response for\n[StorageService.BatchAddStorage][dreamflow.storage.v1.StorageService.BatchAddStorage]\nmethod.",
      "required": [
        "storages"
      ]
    },
    "v1BatchAddStorageRequest": {
      "type": "object",
      "properties": {
        "storages": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Storage"
          },
          "description": "Required.\n\nThe [Storage][dreamflow.storage.v1.Storage]s\nto add."
        },
        "readMask": {
          "type": "string",
          "description": "Optional.\n\nRead mask is used for a more granular control over what the API returns."
        },
        "idempotencyKey": {
          "type": "string",
          "description": "Optional. Input only.\n\nIdempotency key to support idempotency.\nThis request is only idempotent if a `idempotency_key` is provided."
        }
      },
      "description": "Request for\n[StorageService.BatchAddStorage][dreamflow.storage.v1.StorageService.BatchAddStorage]\nmethod.",
      "required": [
        "storages"
      ]
    },
    "v1ViewMyPsreStampResponse": {
      "type": "object",
      "properties": {
        "stamp": {
          "$ref": "#/definitions/v1PsreStampSession"
        }
      }
    },
    "v1AuthorizeMyPsreStampRequest": {
      "type": "object",
      "properties": {
        "otp": {
          "type": "string",
          "description": "Optional.\n\nThe one-time code from the certificate email. Required when the stamp is waiting for a code."
        },
        "stampId": {
          "type": "string",
          "description": "Optional.\n\nStamp id from FillFormEnvelope. An empty id uses the latest stamp that is waiting for a code."
        }
      }
    },
    "v1Draft": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier. The resource name of the draft.\n\nFormat: drafts/{draft_id}\nExample: drafts/00000000-0000-0000-0000-000000000000"
        },
        "uid": {
          "type": "string",
          "description": "Output only. The draft id.",
          "readOnly": true
        },
        "title": {
          "type": "string",
          "description": "Required. The draft title. 1 to 200 characters."
        },
        "status": {
          "type": "string",
          "description": "Output only. DRAFT, SENT, TEMPLATE or ARCHIVED.",
          "readOnly": true
        },
        "currentVersion": {
          "type": "string",
          "format": "int64",
          "description": "Output only. The version bumped by every save. Send it back as base_version.",
          "readOnly": true
        },
        "content": {
          "type": "object",
          "description": "Optional. The document JSON (schema_version, doc, theme, page, locale, roles,\nvariables). Left out of list responses."
        },
        "themeId": {
          "type": "string",
          "description": "Optional. The theme id. At most 64 characters."
        },
        "source": {
          "type": "string",
          "description": "Output only. blank, catalog, template, docx or nova.",
          "readOnly": true
        },
        "sourceRef": {
          "type": "string",
          "description": "Output only. The catalog template or draft the draft was made from.",
          "readOnly": true
        },
        "locale": {
          "type": "string",
          "description": "Optional. The BCP-47 locale. Defaults to id-ID."
        },
        "ownerUserId": {
          "type": "string",
          "description": "Output only. The user who created the draft.",
          "readOnly": true
        },
        "latestRender": {
          "type": "string",
          "description": "Output only. The latest render, as drafts/{draft_id}/renders/{render_id}.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Creation time.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Last update time.",
          "readOnly": true
        },
        "archiveTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the draft was archived.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Output only. The ETag of this state. Send it as If-Match.",
          "readOnly": true
        }
      },
      "description": "An editable document made in the Document Creator.",
      "required": [
        "title"
      ]
    },
    "rpcStatus": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "format": "int32",
          "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code]."
        },
        "message": {
          "type": "string",
          "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client."
        },
        "details": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/protobufAny"
          },
          "description": "A list of messages that carry the error details.  There is a common set of\nmessage types for APIs to use."
        }
      },
      "description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors)."
    },
    "v1StartDraftRequest": {
      "type": "object",
      "properties": {
        "catalogTemplate": {
          "type": "string",
          "title": "Optional. Start from this catalog template. Format: catalogTemplates/{slug}"
        },
        "sourceDraft": {
          "type": "string",
          "title": "Optional. Start from a copy of this draft. Format: drafts/{uuid}"
        },
        "title": {
          "type": "string",
          "description": "Optional. The draft title. 1 to 200 characters. Defaults to the catalog\ntemplate title; required for a blank page or a copy."
        },
        "variables": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Optional. Variable values by key (client.name). At most 200 entries; each\nvalue at most 2000 characters. A key the draft does not define is created."
        },
        "themeId": {
          "type": "string",
          "description": "Optional. classic, modern, corporate, minimal, bold, elegant or warm."
        },
        "locale": {
          "type": "string",
          "description": "Optional. The draft language, for example id-ID or en-US. At most 16 characters."
        },
        "idempotencyKey": {
          "type": "string",
          "description": "Optional. A UUID. A repeat from the same workspace returns the first draft."
        }
      },
      "title": "Request message for [CreatorApiService.StartDraft][dreamflow.creator.v1.CreatorApiService.StartDraft].\n(-- api-linter: core::0133::request-id-field=disabled\n    aip.dev/not-precedent: The server generates draft ids. --)"
    },
    "v1DraftOutline": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Output only. drafts/{draft_id}",
          "readOnly": true
        },
        "title": {
          "type": "string",
          "description": "Output only. The draft title.",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "description": "Output only. DRAFT, SENT, TEMPLATE or ARCHIVED.",
          "readOnly": true
        },
        "currentVersion": {
          "type": "string",
          "format": "int64",
          "description": "Output only. The version an edit must start from.",
          "readOnly": true
        },
        "themeId": {
          "type": "string",
          "description": "Output only. The theme.",
          "readOnly": true
        },
        "locale": {
          "type": "string",
          "description": "Output only. The language.",
          "readOnly": true
        },
        "blocks": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1OutlineBlock"
          },
          "description": "Output only. Top-level blocks in order.",
          "readOnly": true
        },
        "roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1OutlineRole"
          },
          "description": "Output only. Signer roles in order.",
          "readOnly": true
        },
        "variables": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1OutlineVariable"
          },
          "description": "Output only. Variables in order.",
          "readOnly": true
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1OutlineField"
          },
          "description": "Output only. Fields in document order.",
          "readOnly": true
        }
      },
      "description": "The outline of a draft."
    },
    "v1DraftStatus": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Output only. drafts/{draft_id}",
          "readOnly": true
        },
        "title": {
          "type": "string",
          "description": "Output only. The draft title.",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "description": "Output only. DRAFT, SENT, TEMPLATE or ARCHIVED.",
          "readOnly": true
        },
        "currentVersion": {
          "type": "string",
          "format": "int64",
          "description": "Output only. The current content version.",
          "readOnly": true
        },
        "ready": {
          "type": "boolean",
          "description": "Output only. The pre-send check passes.",
          "readOnly": true
        },
        "issueCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only. Pre-send issues; CheckDraft lists them.",
          "readOnly": true
        },
        "latestRender": {
          "$ref": "#/definitions/v1DraftRender",
          "description": "Output only. The latest render; absent before the first render.",
          "readOnly": true
        },
        "renderCurrent": {
          "type": "boolean",
          "description": "Output only. The latest render is a succeeded render of current_version.",
          "readOnly": true
        },
        "envelope": {
          "type": "string",
          "description": "Output only. The envelope the draft was last sent as, envelopes/{envelope_id}.",
          "readOnly": true
        },
        "envelopeUid": {
          "type": "string",
          "description": "Output only. The envelope id.",
          "readOnly": true
        },
        "envelopeStatus": {
          "type": "string",
          "description": "Output only. The envelope progress state from the envelope service (the\nrecord state when progress is empty); empty when the key cannot read envelopes.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Last change to the draft.",
          "readOnly": true
        }
      },
      "description": "Where a draft stands."
    },
    "v1ApplyDraftOpsResponse": {
      "type": "object",
      "properties": {
        "outline": {
          "$ref": "#/definitions/v1DraftOutline",
          "description": "Output only. The outline after the ops (not saved when validate_only).",
          "readOnly": true
        },
        "appliedOps": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Output only. Ids of the ops that applied (the op \"id\", or op_{n}).",
          "readOnly": true
        },
        "failures": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1DraftOpFailure"
          },
          "description": "Output only. Ops that failed. Only validate_only returns failures with HTTP 200.",
          "readOnly": true
        },
        "saved": {
          "type": "boolean",
          "description": "Output only. The content was saved.",
          "readOnly": true
        },
        "commentThreads": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Output only. Comment threads the comment ops created, as drafts/{draft_id}/threads/{thread_id}.",
          "readOnly": true
        }
      },
      "description": "Response message for [CreatorApiService.ApplyDraftOps][dreamflow.creator.v1.CreatorApiService.ApplyDraftOps]."
    },
    "v1CheckDraftResponse": {
      "type": "object",
      "properties": {
        "ready": {
          "type": "boolean",
          "description": "Output only. issues is empty.",
          "readOnly": true
        },
        "issues": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1DraftIssue"
          },
          "description": "Output only. What to fix before sending.",
          "readOnly": true
        },
        "currentVersion": {
          "type": "string",
          "format": "int64",
          "description": "Output only. The version checked.",
          "readOnly": true
        },
        "serverRenderBlockers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Output only. Content RenderDraftPdf cannot lay out, for example \"pricing tables\".",
          "readOnly": true
        }
      },
      "description": "Response message for [CreatorApiService.CheckDraft][dreamflow.creator.v1.CreatorApiService.CheckDraft]."
    },
    "googlelongrunningOperation": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should be a resource name ending with `operations/{unique_id}`."
        },
        "metadata": {
          "$ref": "#/definitions/protobufAny",
          "description": "Service-specific metadata associated with the operation.  It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata.  Any method that returns a\nlong-running operation should document the metadata type, if any."
        },
        "done": {
          "type": "boolean",
          "description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable."
        },
        "error": {
          "$ref": "#/definitions/googlerpcStatus",
          "description": "The error result of the operation in case of failure or cancellation."
        },
        "response": {
          "$ref": "#/definitions/protobufAny",
          "description": "The normal response of the operation in case of success.  If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`.  If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource.  For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name.  For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`."
        }
      },
      "description": "This resource represents a long-running operation that is the result of a\nnetwork API call."
    },
    "v1SendDraftForSignatureResponse": {
      "type": "object",
      "properties": {
        "envelope": {
          "type": "string",
          "description": "Output only. The sent envelope, as envelopes/{envelope_id}.",
          "readOnly": true
        },
        "envelopeUid": {
          "type": "string",
          "description": "Output only. The envelope id.",
          "readOnly": true
        },
        "sendTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. When the envelope was sent. Empty on a replay.",
          "readOnly": true
        },
        "draft": {
          "$ref": "#/definitions/v1Draft",
          "description": "Output only. The draft after the send; status is SENT.",
          "readOnly": true
        },
        "replayed": {
          "type": "boolean",
          "description": "Output only. True when idempotency_key matched an earlier send.",
          "readOnly": true
        }
      },
      "description": "Response message for [CreatorApiService.SendDraftForSignature][dreamflow.creator.v1.CreatorApiService.SendDraftForSignature]."
    },
    "v1RoleParticipant": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "description": "Required. The role key from the document. 1 to 64 characters."
        },
        "displayName": {
          "type": "string",
          "description": "Optional. The participant name. At most 200 characters. Defaults to the role label."
        },
        "email": {
          "type": "string",
          "description": "Optional. The participant email. Required for SendDraft, optional for templates."
        }
      },
      "description": "Maps a document role to the person who fills it.",
      "required": [
        "role"
      ]
    },
    "v1CancelWorkflowExecutionResponse": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/definitions/v1WorkflowExecution",
          "description": "Output only. The cancelled run.",
          "readOnly": true
        }
      },
      "description": "CancelWorkflowExecutionResponse returns the run."
    },
    "v1ResendWorkflowExecutionGateResponse": {
      "type": "object",
      "properties": {
        "workflowGate": {
          "$ref": "#/definitions/v1WorkflowGate",
          "description": "Output only. Gate with its new expiry.",
          "readOnly": true
        }
      },
      "description": "ResendWorkflowExecutionGateResponse returns the gate."
    },
    "v1RunWorkflowTriggerResponse": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/definitions/v1WorkflowExecution",
          "description": "Output only. The run.",
          "readOnly": true
        }
      },
      "description": "RunWorkflowTriggerResponse returns the run."
    },
    "v1SubmitWorkflowExecutionGateResponse": {
      "type": "object",
      "properties": {
        "workflowGate": {
          "$ref": "#/definitions/v1WorkflowGate",
          "description": "Output only. Gate after the attempt.",
          "readOnly": true
        },
        "passed": {
          "type": "boolean",
          "title": "Output only. True when the gate passed and the run resumed.\nExample: true",
          "readOnly": true
        },
        "workflowExecution": {
          "$ref": "#/definitions/v1WorkflowExecution",
          "description": "Output only. Run after the attempt.",
          "readOnly": true
        }
      },
      "description": "SubmitWorkflowExecutionGateResponse reports the attempt."
    },
    "v1ViewWorkflowExecutionResponse": {
      "type": "object",
      "properties": {
        "workflowExecution": {
          "$ref": "#/definitions/v1WorkflowExecution",
          "description": "Output only. The run.",
          "readOnly": true
        }
      },
      "description": "ViewWorkflowExecutionResponse returns the run."
    },
    "v1ListWorkflowExecutionEventsResponse": {
      "type": "object",
      "properties": {
        "events": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1WorkflowExecutionEvent"
          },
          "description": "Output only. Events, oldest first.",
          "readOnly": true
        },
        "lastSeq": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Sequence number of the last event returned, or after_seq when none.\nExample: 12",
          "readOnly": true
        }
      },
      "description": "ListWorkflowExecutionEventsResponse is a slice of the trace."
    },
    "v1ListEventsResponse": {
      "type": "object",
      "properties": {
        "events": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Event"
          },
          "description": "Output only. Events in the requested order.",
          "readOnly": true
        },
        "nextPageToken": {
          "type": "string",
          "title": "Output only. Pass as page_token for the next page. Omitted on the last page,\nexcept with order asc, where it is always set so a client can poll it.\nExample: MTI4",
          "readOnly": true
        },
        "environment": {
          "type": "string",
          "title": "Output only. The environment the credential reads.\nFormat: LIVE or SANDBOX.\nExample: SANDBOX",
          "readOnly": true
        }
      },
      "description": "ListEventsResponse is one page of events."
    },
    "v1Event": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Output only. Resource name.\nFormat: events/{uuid}\nExample: events/0d6c3f1e-2a4b-4c5d-8e9f-a0b1c2d3e4f5",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "title": "Output only. Event type, the name webhook endpoints subscribe to.\nExample: DOC_ENVELOPE_COMPLETED",
          "readOnly": true
        },
        "objectType": {
          "type": "string",
          "title": "Output only. Kind of object the event is about.\nFormat: DOC_ENVELOPE, INTEGRATION, and so on.\nExample: DOC_ENVELOPE",
          "readOnly": true
        },
        "objectId": {
          "type": "string",
          "title": "Output only. Id of the object the event is about. Empty when the event has none.\nExample: 6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
          "readOnly": true
        },
        "payload": {
          "type": "string",
          "title": "Output only. The exact JSON body a webhook delivery of this event posts. The\ndelivery signature is the HMAC-SHA256 of these bytes with the endpoint secret.\nExample: {\"id\":\"6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f\",\"progress_status\":\"COMPLETED\"}",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "title": "Output only. When the event happened.\nExample: 2026-11-23T09:00:00Z",
          "readOnly": true
        },
        "environment": {
          "type": "string",
          "title": "Output only. Environment of the event.\nFormat: LIVE or SANDBOX.\nExample: SANDBOX",
          "readOnly": true
        },
        "requestId": {
          "type": "string",
          "title": "Output only. Id of the request that caused the event, when known.\nExample: 8c1d0e2a-6b4f-4a1e-9c33-1a2b3c4d5e6f",
          "readOnly": true
        },
        "cursor": {
          "type": "string",
          "title": "Output only. Position of the event. Pass it as page_token with order asc to\nread the events after this one.\nFormat: base64 encoding of a decimal cursor.\nExample: MTI4",
          "readOnly": true
        }
      },
      "description": "Event is one webhook event of the caller's workspace."
    },
    "protobufAny": {
      "type": "object",
      "properties": {
        "@type": {
          "type": "string",
          "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
        }
      },
      "additionalProperties": {},
      "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := &pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
    },
    "v1ServiceComponent": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Output only. Service name. Example: Website.",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "description": "Output only. operational, degraded, down, maintenance, or unknown.",
          "readOnly": true
        },
        "slug": {
          "type": "string",
          "description": "Output only. Stable id used by the status page. Example: website.",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "description": "Output only. Short description from the status page.",
          "readOnly": true
        }
      },
      "description": "ServiceComponent is one service on the status page."
    },
    "v1SendDocumentFile": {
      "type": "object",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "Optional. The file name the recipients see. Defaults to the envelope title."
        },
        "storageId": {
          "type": "string",
          "format": "uuid",
          "description": "The id of an upload acknowledged with AcknowledgeUpload."
        },
        "content": {
          "type": "string",
          "format": "byte",
          "description": "The PDF itself, base64 in JSON. At most 3 MB."
        },
        "url": {
          "type": "string",
          "description": "A public https address of the PDF. At most 25 MB. Private and local addresses are refused."
        }
      },
      "description": "The PDF of a SendDocument request. Give exactly one of storage_id, content and url."
    },
    "v1SendDocumentRecipient": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Required. The name shown to the signer."
        },
        "email": {
          "type": "string",
          "description": "Required. Where the signing email goes."
        },
        "order": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Recipients sign one after another in the order of this number, from 1, each\nwith a different number. Leave 0 on every recipient for everyone to sign at once."
        }
      },
      "description": "A person who signs a SendDocument envelope.",
      "required": [
        "name",
        "email"
      ]
    },
    "v1SendDocumentField": {
      "type": "object",
      "properties": {
        "recipientEmail": {
          "type": "string",
          "description": "Required. The email of the recipient who fills this field."
        },
        "kind": {
          "type": "string",
          "description": "Required. SIGNATURE, INITIAL, DATE, SIGNING_DATE, TEXT or CHECKBOX."
        },
        "page": {
          "type": "integer",
          "format": "int32",
          "description": "Required. The page, from 1."
        },
        "x": {
          "type": "number",
          "format": "double",
          "description": "Required. Points from the left edge of the page."
        },
        "y": {
          "type": "number",
          "format": "double",
          "description": "Required. Points from the top edge of the page."
        },
        "width": {
          "type": "number",
          "format": "double",
          "description": "Required. Width in points, more than 0."
        },
        "height": {
          "type": "number",
          "format": "double",
          "description": "Required. Height in points, more than 0."
        },
        "required": {
          "type": "boolean",
          "description": "Optional. Whether the recipient must fill the field. Signature and initial fields are always required."
        },
        "label": {
          "type": "string",
          "description": "Optional. The label shown on the field."
        }
      },
      "description": "A field placed for a recipient, in PDF points measured from the top-left of the page.",
      "required": [
        "recipientEmail",
        "kind",
        "page",
        "x",
        "y",
        "width",
        "height"
      ]
    },
    "v1Workspace": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nThe fully qualified resource name of the\nThe [Workspace][trivaapp.core.workspace.v1.Workspace].\nFormat: workspaces/{uuid.v4}.\nEx: workspaces/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Output only.\n\nThe fully qualified resource id of the\nThe [Workspace][trivaapp.core.workspace.v1.Workspace].\n\nIs a unique identifier for the resource.\nThis field must be a UTF-8 encoded string with a length limit of 36\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `uuid.v7`.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "example": "John M'c Doe",
          "description": "Only alphanumeric with dots, comma, single quote, and space are allowed.",
          "maxLength": 255,
          "minLength": 2
        },
        "logoUri": {
          "type": "string",
          "description": "Output only.\n\nThe logo uri of the workspace.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Output only.\n\nThe type of the workspace.\n\nPossible values:\n- \"PERSONAL\"\n- \"ORGANIZATION\"\n- \"SYSTEM\"",
          "readOnly": true
        },
        "position": {
          "$ref": "#/definitions/coreworkspacev1Position",
          "description": "Output only.\n\nThe position of the workspace.",
          "readOnly": true
        },
        "roles": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Role"
          },
          "description": "Output only.\n\nThe roles of the workspace.",
          "readOnly": true
        },
        "plan": {
          "type": "string",
          "description": "Output only.\n\nThe plan of the workspace.\n\nPossible values:\n- \"TRIAL\" - The workspace is in trial period.\n- \"FREE\" - The workspace is free.\n- \"PREMIUM\" - The workspace is premium.",
          "readOnly": true
        },
        "accessTier": {
          "type": "string",
          "description": "Output only.\n\nDerived policy access tier for the workspace.\n\nExample: TRIAL",
          "readOnly": true
        },
        "trial": {
          "$ref": "#/definitions/coreworkspacev1TrialOverlay",
          "description": "Output only.\n\nTrial overlay when this workspace has a trial entitlement projection.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Workspace` was created.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Workspace` was last updated.",
          "readOnly": true
        },
        "organizationId": {
          "type": "string",
          "format": "uuid",
          "description": "Output only.\n\nOrganization id when type is ORGANIZATION.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nUsed to perform a consistent read-modify-write."
        }
      },
      "description": "Workspace is a collection of users and accounts.",
      "required": [
        "displayName"
      ]
    },
    "v1EnvelopeDocumentAttachment": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Envelope][dreamflow.v1.Envelope] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The doc display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "storageId": {
          "type": "string",
          "format": "uuid",
          "description": "Id of acknowledged storage. Send this on each attachment when creating an envelope."
        },
        "storageScanState": {
          "type": "string",
          "description": "Output only.\n\nThe Storage scan state.",
          "readOnly": true
        },
        "storageScanResult": {
          "type": "string",
          "description": "Output only.\n\nThe Storage scan result.",
          "readOnly": true
        },
        "section": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe Attachment order index.",
          "readOnly": true
        },
        "pageCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe Attachment page count.",
          "readOnly": true
        },
        "checksum": {
          "type": "string",
          "description": "Optional.\n\nChecksum of the uploaded file. When set, the upload audit event stores it."
        },
        "base64": {
          "type": "string",
          "format": "byte",
          "description": "Required. Input only.\n\nBase64 is a base64 encoded string of file."
        },
        "uri": {
          "type": "string",
          "description": "Output only.\n\nThe Attachment url.",
          "readOnly": true
        },
        "sizeBytes": {
          "type": "string",
          "format": "int64",
          "description": "Output only.\n\nOriginal uploaded file size in bytes.",
          "readOnly": true
        },
        "convertedPdfSizeBytes": {
          "type": "string",
          "format": "int64",
          "description": "Output only.\n\nConverted PDF file size in bytes when the original is not a PDF.",
          "readOnly": true
        },
        "mimeType": {
          "type": "string",
          "description": "Output only.\n\nOriginal uploaded MIME type.",
          "readOnly": true
        },
        "extension": {
          "type": "string",
          "description": "Output only.\n\nOriginal uploaded file extension (e.g. pdf, docx).",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Template` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Template` was created.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeDocumentAttachment",
      "required": [
        "name",
        "uid",
        "displayName",
        "storageId",
        "base64"
      ]
    },
    "v1EnvelopeDocumentParticipant": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nEnvelope id.\nFormat: envelopes/{uuid.v4}.\nEx: envelopes/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Envelope][dreamflow.v1.Envelope] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The participant display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "alternateEmail": {
          "type": "string",
          "example": "john.doe@mail.com",
          "description": "Optional.\n\nRecipient email. The workspace sharing policy checks this address when it is set."
        },
        "alternatePhone": {
          "type": "string",
          "example": "+6281234567890",
          "description": "Optional. Input only. \n\nThe participant alternate phone."
        },
        "avatarUri": {
          "type": "string",
          "description": "Output only.\n\nThe participant avatar uri.",
          "readOnly": true
        },
        "role": {
          "type": "string",
          "description": "Required. Input only. The participant role."
        },
        "type": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant type.\n\nPossible values:\n- \"PERSONAL\"\n- \"ORGANIZATION\""
        },
        "workspace": {
          "$ref": "#/definitions/v1Workspace",
          "description": "Required. Input only. The participant workspace."
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Field"
          },
          "description": "Required. Input only.\n\nThe collection of fields belongs to participant."
        },
        "actionOrderNumber": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Input only.\n\nThe Participant action order number."
        },
        "actionOrderType": {
          "type": "string",
          "description": "Optional. Input only. The participant action order.\n\nThe Participant action order type."
        },
        "options": {
          "$ref": "#/definitions/v1EnvelopeDocumentParticipantOptions",
          "description": "Optional. Input only. The participant options."
        },
        "state": {
          "type": "string",
          "description": "Output only.\n\nThe State of participant.",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "description": "Output only.\n\nThe Status of participant.",
          "readOnly": true
        },
        "completeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Participant` was completed.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Participant` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Participant` was created.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Participant` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeDocumentParticipant",
      "required": [
        "name",
        "uid",
        "displayName",
        "role",
        "type",
        "workspace",
        "fields"
      ]
    },
    "v1EnvelopeParticipantActionOrderGroup": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nResource id.\nFormat: envelope_participant_action_order_groups/{uuid.v4}.\nEx: envelope_participant_groups/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [EnvelopeParticipantActionOrderGroup][dreamflow.v1.EnvelopeParticipantActionOrderGroup] id to view.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The action order group display name.\n\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned."
        },
        "participantUids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required. Input only. \n\nThe collection of participant uids belongs to action order group."
        },
        "index": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only. \n\nThe action order group index."
        },
        "order": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only. \n\nThe action order group order."
        },
        "type": {
          "type": "string",
          "description": "Required. Input only. \n\nThe action order group type."
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `ActionOrderGroup` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `ActionOrderGroup` was created.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeParticipantActionOrderGroup",
      "required": [
        "name",
        "uid",
        "displayName",
        "participantUids",
        "index",
        "order",
        "type"
      ]
    },
    "v1Field": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nThe fully qualified resource name of the\nThe [Template][dreamflow.v1.Template].\nFormat: templates/{uuid.v4}.\nEx: templates/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Template][dreamflow.v1.Template] id to view.",
          "readOnly": true
        },
        "parentFieldUid": {
          "type": "string",
          "format": "uuid",
          "description": "Optional. Output only.\n\nIs a parent field uid of the field.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "participantId": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Template][dreamflow.v1.Participant] id to view.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a name of field."
        },
        "kind": {
          "$ref": "#/definitions/dreamflowdocv1Kind",
          "description": "Required. Input only."
        },
        "layout": {
          "$ref": "#/definitions/v1Layout",
          "description": "Required. Input only."
        },
        "appearance": {
          "$ref": "#/definitions/v1Appearance",
          "description": "Required. Input only."
        },
        "submission": {
          "$ref": "#/definitions/v1Submission",
          "description": "Required. Input only."
        },
        "widgets": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Widget"
          },
          "description": "Required. Input only."
        },
        "orderNumber": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Output only.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Template` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Template` was created.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "description": "Field information will be applied for doc.",
      "required": [
        "name",
        "uid",
        "participantId",
        "displayName",
        "kind",
        "layout",
        "appearance",
        "submission",
        "widgets"
      ]
    },
    "v1EnvelopeDocumentSupplementalAction": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nResource id.\nFormat: envelope_documents_supplemental_actions/{uuid.v4}.\nEx: envelope_documents_supplemental_actions/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [EnvelopeDocumentSupplementalAction][dreamflow.v1.EnvelopeDocumentSupplementalAction] id to view.",
          "readOnly": true
        },
        "participantId": {
          "type": "string",
          "description": "Required. Input only. The supplemental action participant id."
        },
        "docSentId": {
          "type": "string",
          "description": "Required. Input only. The supplemental action doc sent id."
        },
        "action": {
          "type": "string",
          "description": "Required. Input only. The supplemental action action."
        },
        "actionType": {
          "type": "string",
          "description": "Required. Input only. The supplemental action action type."
        },
        "actionTracking": {
          "type": "string",
          "description": "Required. Input only. The supplemental action action tracking."
        },
        "isCompleted": {
          "type": "boolean",
          "description": "Required. Input only. The supplemental action is completed."
        },
        "completeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `SupplementalAction` was completed.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeDocumentSupplementalAction",
      "required": [
        "name",
        "uid",
        "participantId",
        "docSentId",
        "action",
        "actionType",
        "actionTracking",
        "isCompleted"
      ]
    },
    "v1EnvelopePermissionView": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionView",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionForContentApprovalRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required. Output only.\n\nThe confirmation of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionForContentApprovalRequest",
      "required": [
        "state",
        "confirmation"
      ]
    },
    "v1EnvelopePermissionForContentModificationRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required. Output only.\n\nThe confirmation of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionForContentModificationRequest",
      "required": [
        "state",
        "confirmation"
      ]
    },
    "v1EnvelopePermissionForFillFormRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required. Output only.\n\nThe confirmation of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionForFillFormRequest",
      "required": [
        "state",
        "confirmation"
      ]
    },
    "v1EnvelopePermissionForReviewRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required. Output only.\n\nThe confirmation of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionForReviewRequest",
      "required": [
        "state",
        "confirmation"
      ]
    },
    "v1EnvelopePermissionForSignRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required. Output only.\n\nThe confirmation of the permission.",
          "readOnly": true
        },
        "property": {
          "$ref": "#/definitions/v1EnvelopeActionProperty",
          "description": "Required. Output only.\n\nThe property of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionForSignRequest",
      "required": [
        "state",
        "confirmation",
        "property"
      ]
    },
    "v1EnvelopePermissionForApproveRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required. Output only.\n\nThe confirmation of the permission.",
          "readOnly": true
        },
        "property": {
          "$ref": "#/definitions/v1EnvelopeActionProperty",
          "description": "Required. Output only.\n\nThe property of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionForApproveRequest",
      "required": [
        "state",
        "confirmation",
        "property"
      ]
    },
    "v1EnvelopePermissionForStampRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required. Output only.\n\nThe confirmation of the permission.",
          "readOnly": true
        },
        "property": {
          "$ref": "#/definitions/v1EnvelopeActionProperty",
          "description": "Required. Output only.\n\nThe property of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionForStampRequest",
      "required": [
        "state",
        "confirmation",
        "property"
      ]
    },
    "v1EnvelopePermissionForSealRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required.\n\nThe state of the permission."
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required.\n\nThe confirmation of the permission."
        },
        "property": {
          "$ref": "#/definitions/v1EnvelopeActionProperty",
          "description": "Required.\n\nThe property of the permission."
        }
      },
      "title": "EnvelopePermissionForSealRequest",
      "required": [
        "state",
        "confirmation",
        "property"
      ]
    },
    "v1EnvelopePermissionForEmeteraiRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required.\n\nThe state of the permission."
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required.\n\nThe confirmation of the permission."
        },
        "property": {
          "$ref": "#/definitions/v1EnvelopeActionProperty",
          "description": "Required.\n\nThe property of the permission."
        }
      },
      "required": [
        "state",
        "confirmation",
        "property"
      ]
    },
    "v1EnvelopePermissionForRejectTheRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required.\n\nThe state of the permission."
        }
      },
      "title": "EnvelopePermissionForRejectTheRequest",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToSend": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToSend",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToRetract": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        },
        "confirmation": {
          "$ref": "#/definitions/v1EnvelopeActionConfirmation",
          "description": "Required. Output only.\n\nThe confirmation of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToRetract",
      "required": [
        "state",
        "confirmation"
      ]
    },
    "v1EnvelopePermissionToShare": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToShare",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToLock": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToLock",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToUnlock": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToUnlock",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToArchive": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToArchive",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToUnarchive": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToUnarchive",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToDelete": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToDelete",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToUndelete": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToUndelete",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToAskWithAI": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToAskWithAI",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionToDownload": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState",
          "description": "Required. Output only.\n\nThe state of the permission.",
          "readOnly": true
        }
      },
      "title": "EnvelopePermissionToDownload",
      "required": [
        "state"
      ]
    },
    "v1EnvelopePermissionForPaymentRequest": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/definitions/v1EnvelopePermissionState"
        },
        "reason": {
          "type": "string",
          "readOnly": true
        }
      },
      "required": [
        "state"
      ]
    },
    "v1EnvelopeLifeCycleReminder": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nResource id.\nFormat: envelope_life_cycle_reminders/{uuid.v4}.\nEx: envelope_life_cycle_reminders/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [EnvelopeLifeCycleReminder][dreamflow.v1.EnvelopeLifeCycleReminder] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The reminder display name."
        },
        "triggerTimezone": {
          "type": "string",
          "description": "Required. Input only. The reminder trigger timezone."
        },
        "triggerDatetime": {
          "type": "string",
          "format": "date-time",
          "description": "Required. Input only. The reminder trigger datetime."
        },
        "triggerDirection": {
          "type": "string",
          "description": "Required. Input only. The reminder trigger direction."
        },
        "triggerOffsetValue": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only. The reminder trigger offset value."
        },
        "triggerOffsetUnit": {
          "type": "string",
          "description": "Required. Input only. The reminder trigger offset unit."
        },
        "triggerRemindAt": {
          "type": "string",
          "description": "Required. Input only. The reminder trigger remind at."
        },
        "sendOnce": {
          "type": "boolean",
          "description": "Required. Input only. The reminder send once."
        },
        "allowSnooze": {
          "type": "boolean",
          "description": "Required. Input only. The reminder allow snooze."
        },
        "recurrences": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeLifeCycleReminderRecurrence"
          },
          "description": "Required. Input only. The reminder recurrences."
        },
        "channels": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeLifeCycleReminderChannel"
          },
          "description": "Required. Input only. The reminder channels."
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycleReminder` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycleReminder` was created.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycleReminder` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeLifeCycleReminder",
      "required": [
        "name",
        "uid",
        "displayName",
        "triggerTimezone",
        "triggerDatetime",
        "triggerDirection",
        "triggerOffsetValue",
        "triggerOffsetUnit",
        "triggerRemindAt",
        "sendOnce",
        "allowSnooze",
        "recurrences",
        "channels"
      ]
    },
    "v1EnvelopeConditionalRule": {
      "type": "object",
      "properties": {
        "conditions": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeConditionalRuleCondition"
          },
          "description": "Required. Input only.\n\nIs a condition."
        },
        "matchType": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a match type."
        },
        "then": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeConditionalRuleAction"
          },
          "description": "Required. Input only.\n\nActions to run when the conditions match.\nA saved rule may contain one action or several."
        },
        "else": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeConditionalRuleAction"
          },
          "description": "Optional. Input only.\n\nActions to run when the conditions do not match.\nEmpty means no else action."
        }
      },
      "title": "EnvelopeConditionalRule",
      "required": [
        "conditions",
        "matchType",
        "then"
      ]
    },
    "v1EnvelopeRiskAnalysisFinding": {
      "type": "object",
      "properties": {
        "severity": {
          "type": "string",
          "description": "Output only.\n\nThe severity of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "score": {
          "type": "string",
          "description": "Output only.\n\nThe score of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "category": {
          "type": "string",
          "description": "Output only.\n\nThe category of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "sentence": {
          "type": "string",
          "description": "Output only.\n\nThe sentence of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "clauseReference": {
          "type": "string",
          "description": "Output only.\n\nThe clause reference of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "reasonSummary": {
          "type": "string",
          "description": "Output only.\n\nThe reason summary of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "reasonItems": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeRiskAnalysisFindingReasonItem"
          },
          "description": "Output only.\n\nThe reason items of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "layout": {
          "$ref": "#/definitions/v1EnvelopeRiskAnalysisFindingLayout",
          "description": "Output only.\n\nThe layout of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "revisionSuggestion": {
          "type": "string",
          "description": "Output only.\n\nThe revision suggestion of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "revisionReason": {
          "type": "string",
          "description": "Output only.\n\nThe revision reason of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "description": "Output only.\n\nThe status of the `EnvelopeRiskAnalysisFinding`.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeRiskAnalysisFinding` was created.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeRiskAnalysisFinding` was updated.",
          "readOnly": true
        },
        "deleteTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeRiskAnalysisFinding` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Output only.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency.",
          "readOnly": true
        },
        "playbookRuleKey": {
          "type": "string",
          "description": "Output only.\n\nPlaybook rule key when the finding maps to a playbook rule.",
          "readOnly": true
        },
        "deviation": {
          "type": "string",
          "description": "Output only.\n\nDeviation classification relative to the playbook standard.",
          "readOnly": true
        },
        "standardText": {
          "type": "string",
          "description": "Output only.\n\nPreferred playbook standard text for comparison.",
          "readOnly": true
        },
        "actualPosition": {
          "type": "string",
          "description": "Output only.\n\nActual contract position identified in the document.",
          "readOnly": true
        },
        "recommendationSource": {
          "type": "string",
          "description": "Output only.\n\nSource of the recommendation (playbook rule, standard, or model).",
          "readOnly": true
        },
        "confidence": {
          "type": "number",
          "format": "double",
          "description": "Output only.\n\nModel confidence for this playbook-aligned finding (0.0 to 1.0).",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "description": "Output only.\n\nThe finding's id in the stored analysis, so a reply that cites the finding can point the editor to its clause.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRiskAnalysisFinding is a finding for a risk analysis."
    },
    "v1EnvelopeEscalationStep": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "description": "Required. Input only.\n\nThe fully qualified resource id of the\nThe [EnvelopeEscalationStep][dreamflow.v1.EnvelopeEscalationStep] id to view."
        },
        "escalateTo": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeEscalationStepTo"
          },
          "description": "Required. Input only.\n\nThe escalation step escalate to."
        },
        "noActionInDays": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nThe escalation step no action in days."
        },
        "notifyChannels": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required. Input only.\n\nThe escalation step notify channels."
        },
        "telegramDestinationIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Input only.\n\nTelegram destination IDs selected for this escalation step."
        },
        "telegramSendToIdentifiers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Input only.\n\nTelegram chat delivery identifiers (chatId or chatId::threadId)."
        },
        "slackDestinationIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Input only.\n\nSlack destination IDs selected for this escalation step."
        },
        "slackSendToIdentifiers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Input only.\n\nSlack channel delivery identifiers."
        },
        "teamsDestinationIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Input only.\n\nTeams destination IDs selected for this escalation step."
        },
        "teamsSendToIdentifiers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Input only.\n\nTeams channel delivery identifiers (teamId:channelId)."
        },
        "discordDestinationIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Input only.\n\nDiscord destination IDs selected for this escalation step."
        },
        "discordSendToIdentifiers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Input only.\n\nDiscord channel delivery identifiers (guildId:channelId)."
        }
      },
      "description": "EnvelopeEscalationStep is the step of a escalation.",
      "required": [
        "uid",
        "escalateTo",
        "noActionInDays",
        "notifyChannels"
      ]
    },
    "v1EnvelopeSendStepOutput": {
      "type": "object",
      "properties": {
        "kind": {
          "$ref": "#/definitions/v1EnvelopeCompletionArchiveKind",
          "description": "Required. Input only.\n\nOutput type identifier."
        },
        "enabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nWhether this output is enabled."
        },
        "destination": {
          "$ref": "#/definitions/v1EnvelopeSendStepDestination",
          "description": "Optional. Input only.\n\nDestination for this output."
        }
      },
      "description": "EnvelopeSendStepOutput is an output option in the send step.",
      "required": [
        "kind",
        "enabled"
      ]
    },
    "v1EnvelopeCompletionArchiveKind": {
      "type": "string",
      "enum": [
        "ENVELOPE_COMPLETION_ARCHIVE_KIND_UNSPECIFIED",
        "SIGNED_DOCUMENT",
        "AUDIT_TRAIL",
        "COMPLETION_CERTIFICATE",
        "ORIGINAL_DOCUMENT",
        "PROGRESS_WORKBOOK"
      ],
      "default": "ENVELOPE_COMPLETION_ARCHIVE_KIND_UNSPECIFIED",
      "description": "EnvelopeCompletionArchiveKind identifies a completion archive output type.\n\n - ENVELOPE_COMPLETION_ARCHIVE_KIND_UNSPECIFIED: ENVELOPE_COMPLETION_ARCHIVE_KIND_UNSPECIFIED indicates that the completion archive kind is unknown.\n - SIGNED_DOCUMENT: SIGNED_DOCUMENT indicates that the completion archive kind is signed document.\n - AUDIT_TRAIL: AUDIT_TRAIL indicates that the completion archive kind is audit trail.\n - COMPLETION_CERTIFICATE: COMPLETION_CERTIFICATE indicates that the completion archive kind is completion certificate.\n - ORIGINAL_DOCUMENT: ORIGINAL_DOCUMENT indicates that the completion archive kind is original document.\n - PROGRESS_WORKBOOK: PROGRESS_WORKBOOK indicates that the completion archive kind is progress workbook."
    },
    "v1EnvelopeSendStepDestination": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "description": "Optional. Input only.\n\nStorage provider for this destination."
        },
        "path": {
          "type": "string",
          "description": "Optional. Input only.\n\nDestination folder path."
        },
        "folderId": {
          "type": "string",
          "description": "Optional. Input only.\n\nDestination folder identifier."
        },
        "folderUrl": {
          "type": "string",
          "description": "Optional. Input only.\n\nDestination folder URL."
        }
      },
      "description": "EnvelopeSendStepDestination is the destination of a send step output."
    },
    "v1EnvelopeRetentionState": {
      "type": "string",
      "enum": [
        "ENVELOPE_RETENTION_STATE_UNSPECIFIED",
        "NONE",
        "QUEUED",
        "ARCHIVED",
        "HIDDEN",
        "IN_GRACE",
        "ON_HOLD"
      ],
      "default": "ENVELOPE_RETENTION_STATE_UNSPECIFIED",
      "description": "EnvelopeRetentionState is the retention state of an envelope under the\nworkspace's retention policy.\n\n - ENVELOPE_RETENTION_STATE_UNSPECIFIED: ENVELOPE_RETENTION_STATE_UNSPECIFIED indicates that the retention state is unknown.\n - NONE: NONE indicates that the envelope is not governed by retention.\n - QUEUED: QUEUED indicates that the envelope is past its retention date and queued for the retention action.\n - ARCHIVED: ARCHIVED indicates that the retention ARCHIVE action has been applied.\n - HIDDEN: HIDDEN indicates that the retention HIDE action has been applied.\n - IN_GRACE: IN_GRACE indicates that the envelope was soft-deleted by retention and is in the recovery window.\n - ON_HOLD: ON_HOLD indicates that a legal hold paused the retention timer."
    },
    "v1AcknowledgeUploadStatus": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "readOnly": true
        },
        "acknowledgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Storage` was acknowledged.",
          "readOnly": true
        }
      },
      "required": [
        "name"
      ]
    },
    "v1Storage": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nThe fully qualified resource name of the\nThe [Storage][dreamflow.storage.v1.Storage].\nFormat: storages/{uuid.v4}.\nEx: storages/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Storage][dreamflow.storage.v1.Storage] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Storage entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "service": {
          "type": "string",
          "description": "Output only.\n\nservice is the name of the service that initiated the log entry.",
          "readOnly": true
        },
        "userId": {
          "type": "string",
          "description": "Output only.\n\nThe fully qualified resource id of the\nThe [Account][dreamflow.account.v1.Account] id.",
          "readOnly": true
        },
        "originalName": {
          "type": "string",
          "description": "Input only.\n\nOriginal name is a file original name."
        },
        "displayName": {
          "type": "string",
          "description": "Input only.\n\nName is a file name."
        },
        "password": {
          "type": "string",
          "description": "Input only.\n\nPassword is a file password."
        },
        "path": {
          "type": "string",
          "description": "Input only.\n\nPath is a file path.",
          "readOnly": true
        },
        "size": {
          "type": "string",
          "description": "Input only.\n\nPath is a file path."
        },
        "extension": {
          "type": "string",
          "description": "Input only.\n\nExtension is a file extension."
        },
        "mimeType": {
          "type": "string",
          "description": "Input only.\n\nOptional. The PUT Content-Type must equal this value. An empty value still creates the storage."
        },
        "checksum": {
          "type": "string",
          "description": "Input only.\n\nOptional. Stored on the storage and used to sign the object. It is not a PUT header. An empty value still creates the storage."
        },
        "source": {
          "type": "string",
          "description": "Input only.\n\nSource is a file source."
        },
        "preSignedUrl": {
          "type": "string",
          "description": "Output only.\n\nPre-signed URL is a file pre-signed URL.",
          "readOnly": true
        },
        "metadata": {
          "type": "object",
          "description": "Output only.\n\nMetadata contains storage relation metadata.",
          "readOnly": true
        },
        "state": {
          "$ref": "#/definitions/statestoragev1State",
          "description": "Output only.\n\nState is an enumeration representing the various stages of a storage lifecycle.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Storage` was created.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Storage` was updated.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Storage` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nUsed to perform a consistent read-modify-write."
        },
        "keepExistingSignatures": {
          "type": "boolean",
          "description": "Input only.\n\nWhen false, existing digital signatures on uploaded PDFs should be removed\nduring post-processing. Defaults to true when omitted."
        }
      },
      "description": "Storage is a protobuf message type that encapsulates the tasks entries\nproduced by file systems.",
      "required": [
        "name",
        "uid"
      ]
    },
    "v1PsreStampSession": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "specimenKind": {
          "type": "string"
        },
        "externalId": {
          "type": "string"
        },
        "errorMessage": {
          "type": "string"
        }
      }
    },
    "v1OutlineBlock": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Output only. The block id, the anchor for ops.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "title": "Output only. paragraph, heading, orderedList, table, columns, …",
          "readOnly": true
        },
        "level": {
          "type": "integer",
          "format": "int32",
          "description": "Output only. Heading level 1 to 3; 0 for other blocks.",
          "readOnly": true
        },
        "text": {
          "type": "string",
          "description": "Output only. Text with variables and fields as tokens, one line per\nparagraph inside the block. At most 4000 characters.",
          "readOnly": true
        },
        "locked": {
          "type": "boolean",
          "description": "Output only. A locked content library block; ops cannot change it.",
          "readOnly": true
        }
      },
      "description": "A top-level block."
    },
    "v1OutlineRole": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Output only. The role key a participant maps to.",
          "readOnly": true
        },
        "label": {
          "type": "string",
          "description": "Output only. The role label.",
          "readOnly": true
        },
        "fieldCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only. Fields assigned to the role.",
          "readOnly": true
        }
      },
      "description": "A signer role."
    },
    "v1OutlineVariable": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Output only. The key, for example client.name.",
          "readOnly": true
        },
        "label": {
          "type": "string",
          "description": "Output only. The label.",
          "readOnly": true
        },
        "value": {
          "type": "string",
          "description": "Output only. The value; empty when not filled.",
          "readOnly": true
        },
        "required": {
          "type": "boolean",
          "description": "Output only. The template marks the variable required.",
          "readOnly": true
        },
        "used": {
          "type": "boolean",
          "description": "Output only. The document or a conditional section uses the variable.",
          "readOnly": true
        }
      },
      "description": "A variable."
    },
    "v1OutlineField": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "description": "Output only. The field uid, the anchor for update_field.",
          "readOnly": true
        },
        "kind": {
          "type": "string",
          "description": "Output only. SIGNATURE, INITIAL, DATE, TEXT or CHECKBOX.",
          "readOnly": true
        },
        "role": {
          "type": "string",
          "description": "Output only. The role key that fills it.",
          "readOnly": true
        },
        "label": {
          "type": "string",
          "description": "Output only. The field's own label.",
          "readOnly": true
        },
        "required": {
          "type": "boolean",
          "description": "Output only. The signer must fill it.",
          "readOnly": true
        },
        "blockId": {
          "type": "string",
          "description": "Output only. The top-level block it is in.",
          "readOnly": true
        }
      },
      "description": "A field placed in the document."
    },
    "v1DraftRender": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Identifier. Format: drafts/{draft_id}/renders/{render_id}"
        },
        "version": {
          "type": "string",
          "format": "int64",
          "description": "Output only. The draft version that was rendered.",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "description": "Output only. PENDING, PROCESSING, SUCCEEDED or FAILED.",
          "readOnly": true
        },
        "pageCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only. Pages in the PDF.",
          "readOnly": true
        },
        "expectedPageCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only. Pages the client layout had.",
          "readOnly": true
        },
        "pageSizes": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1PageSize"
          },
          "description": "Output only. Page sizes read from the PDF.",
          "readOnly": true
        },
        "fieldRects": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1FieldRect"
          },
          "description": "Output only. The field rectangles the client measured.",
          "readOnly": true
        },
        "error": {
          "type": "string",
          "description": "Output only. Why the render failed.",
          "readOnly": true
        },
        "pdfStorage": {
          "type": "string",
          "description": "Output only. The PDF storage, as storages/{storage_id}.",
          "readOnly": true
        },
        "pdfSha256": {
          "type": "string",
          "description": "Output only. SHA-256 of the PDF, hex.",
          "readOnly": true
        },
        "pdfUri": {
          "type": "string",
          "description": "Output only. A short-lived link to the PDF when the storage supports one.",
          "readOnly": true
        },
        "task": {
          "type": "string",
          "description": "Output only. The background task, as tasks/{task_id}.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Creation time.",
          "readOnly": true
        },
        "finishTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the render finished.",
          "readOnly": true
        }
      },
      "description": "A PDF render of one draft version."
    },
    "v1DraftOpFailure": {
      "type": "object",
      "properties": {
        "index": {
          "type": "integer",
          "format": "int32",
          "description": "Output only. The op's index in ops, from 0.",
          "readOnly": true
        },
        "op": {
          "type": "string",
          "description": "Output only. The op name.",
          "readOnly": true
        },
        "reason": {
          "type": "string",
          "description": "Output only. malformed, unknown_op, block_not_found, block_locked,\nrange_invalid, text_not_found, unsupported_block, role_not_found,\nvariable_not_found, variable_key_invalid, field_not_found,\nfield_kind_invalid, attrs_invalid or theme_invalid.",
          "readOnly": true
        },
        "detail": {
          "type": "string",
          "description": "Output only. What was missing or wrong.",
          "readOnly": true
        }
      },
      "description": "One op that could not be applied."
    },
    "v1DraftIssue": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "description": "Output only. EMPTY_VARIABLE, ROLE_WITHOUT_FIELDS, FIELD_WITHOUT_ROLE or NO_FIELDS.",
          "readOnly": true
        },
        "variable": {
          "type": "string",
          "description": "Output only. The variable key, for EMPTY_VARIABLE.",
          "readOnly": true
        },
        "role": {
          "type": "string",
          "description": "Output only. The role key, for ROLE_WITHOUT_FIELDS and FIELD_WITHOUT_ROLE.",
          "readOnly": true
        },
        "fieldUid": {
          "type": "string",
          "description": "Output only. The field uid, for FIELD_WITHOUT_ROLE.",
          "readOnly": true
        },
        "message": {
          "type": "string",
          "description": "Output only. A sentence for people.",
          "readOnly": true
        }
      },
      "description": "One thing to fix before sending."
    },
    "v1WorkflowExecution": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Output only. Resource name.\nFormat: workflowExecutions/{execution_id}\nExample: workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
          "readOnly": true
        },
        "workflowTrigger": {
          "type": "string",
          "title": "Output only. Trigger that started the run.\nFormat: workflowTriggers/{trigger_id}\nExample: workflowTriggers/2a5c7e90-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
          "readOnly": true
        },
        "workflow": {
          "type": "string",
          "title": "Output only. Workflow of the run.\nFormat: workflows/{workflow_id}\nExample: workflows/6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
          "readOnly": true
        },
        "versionNumber": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Published version the run is pinned to.\nExample: 3",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "title": "Output only. PENDING, RUNNING, WAITING, SUCCEEDED, FAILED, CANCELLED, or EXPIRED.\nExample: WAITING",
          "readOnly": true
        },
        "externalRef": {
          "type": "string",
          "title": "Output only. Caller reference.\nExample: crm-7781",
          "readOnly": true
        },
        "output": {
          "type": "string",
          "title": "Output only. Run output as JSON, set by the output node.\nExample: {\"envelope\":\"envelopes/abc\"}",
          "readOnly": true
        },
        "errorCode": {
          "type": "string",
          "title": "Output only. Why the run failed, as a short code.\nExample: step_failed",
          "readOnly": true
        },
        "errorDetail": {
          "type": "string",
          "title": "Output only. Failure detail.\nExample: node send failed: failed_precondition",
          "readOnly": true
        },
        "traceId": {
          "type": "string",
          "title": "Output only. Trace id carried into every step call.\nExample: 4bf92f3577b34da6a3ce929d0e0e4736",
          "readOnly": true
        },
        "nodes": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1WorkflowExecutionNode"
          },
          "description": "Output only. Node states, in graph order.",
          "readOnly": true
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1WorkflowExecutionStep"
          },
          "description": "Output only. Call attempts, oldest first, with redacted request and response.",
          "readOnly": true
        },
        "gate": {
          "$ref": "#/definitions/v1WorkflowGate",
          "description": "Output only. The open gate when state is WAITING.",
          "readOnly": true
        },
        "statusUrl": {
          "type": "string",
          "title": "Output only. URL to read the run.\nExample: https://api.signingflow.com/v1/workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f:view",
          "readOnly": true
        },
        "traceUrl": {
          "type": "string",
          "title": "Output only. URL to read the run trace.\nExample: https://api.signingflow.com/v1/workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f/events",
          "readOnly": true
        },
        "workspaceId": {
          "type": "string",
          "title": "Output only. Workspace of the run.\nFormat: UUID.\nExample: 6f1c2a40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
          "readOnly": true
        },
        "document": {
          "type": "string",
          "title": "Output only. Workflow document of the pinned version, so the run can be drawn.\nExample: {\"id\":\"signing-standard\",\"nodes\":[],\"edges\":[]}",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the run was created.",
          "readOnly": true
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the run started.",
          "readOnly": true
        },
        "finishTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the run finished.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the run last changed.",
          "readOnly": true
        },
        "charge": {
          "$ref": "#/definitions/v1WorkflowCharge",
          "description": "Output only. Run-level charge, taken once when the run was created.",
          "readOnly": true
        },
        "stepChargeTotal": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Sum of the API-call charges of the steps (each step's charge is on the step).\nExample: 3",
          "readOnly": true
        },
        "retentionDays": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Days the run keeps its encrypted input and step snapshots after it finishes.\nExample: 30",
          "readOnly": true
        }
      },
      "description": "WorkflowExecution is one server run of a published workflow."
    },
    "v1WorkflowGate": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Output only. Resource name.\nFormat: workflowExecutions/{execution_id}/gates/{gate_id}\nExample: workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f/gates/5d6e7f80-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
          "readOnly": true
        },
        "kind": {
          "type": "string",
          "title": "Output only. signer, otp.psre, kyc, or approval.\nExample: signer",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "title": "Output only. OPEN, PASSED, EXPIRED, CANCELLED, FAILED, or REJECTED.\nExample: OPEN",
          "readOnly": true
        },
        "nodeId": {
          "type": "string",
          "title": "Output only. Node that opened the gate.\nExample: request",
          "readOnly": true
        },
        "submitNodeId": {
          "type": "string",
          "title": "Output only. Node that takes the input.\nExample: verify",
          "readOnly": true
        },
        "inputSchema": {
          "type": "string",
          "title": "Output only. JSON Schema of the input the gate takes.\nExample: {\"type\":\"object\",\"required\":[\"code\"],\"properties\":{\"code\":{\"type\":\"string\"}}}",
          "readOnly": true
        },
        "attempts": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Attempts made.\nExample: 1",
          "readOnly": true
        },
        "maxAttempts": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Attempts allowed.\nExample: 5",
          "readOnly": true
        },
        "attemptsRemaining": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Attempts left.\nExample: 4",
          "readOnly": true
        },
        "resends": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Manual resends made.\nExample: 0",
          "readOnly": true
        },
        "maxResends": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Manual resends allowed.\nExample: 3",
          "readOnly": true
        },
        "submitUrl": {
          "type": "string",
          "title": "Output only. URL to submit the gate input to.\nExample: https://api.signingflow.com/v1/workflowExecutions/8b3c4d40-1b3e-4c7a-9d2e-0a1b2c3d4e5f/gates/5d6e7f80-1b3e-4c7a-9d2e-0a1b2c3d4e5f:submit",
          "readOnly": true
        },
        "hostedUrl": {
          "type": "string",
          "title": "Output only. Hosted page for the end user. For a signer gate it is the single-use signer link:\nit opens the signer's own signing session, and it is empty once opened (replace it with\nResendWorkflowExecutionGate). For an OTP gate it is the page where the code is typed.\nExample: https://app.signingflow.com/workflow-gate?token=7f3a1c0e9b8d4a6f&environment=LIVE",
          "readOnly": true
        },
        "expireTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the gate expires.",
          "readOnly": true
        },
        "openTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the gate opened.",
          "readOnly": true
        },
        "signerEmail": {
          "type": "string",
          "title": "Output only. Signer gate: the email of the participant who signs.\nExample: signer@example.com",
          "readOnly": true
        },
        "linkIssueTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Signer gate: time the current link was issued.",
          "readOnly": true
        },
        "linkOpenTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Signer gate: time the signer opened the current link.",
          "readOnly": true
        },
        "closeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the gate closed (passed, failed, expired, or cancelled).",
          "readOnly": true
        }
      },
      "description": "WorkflowGate is a point where a run waits for outside input."
    },
    "v1WorkflowExecutionEvent": {
      "type": "object",
      "properties": {
        "seq": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Sequence number in the run, from 1.\nExample: 3",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "title": "Output only. Event type.\nExample: step.succeeded",
          "readOnly": true
        },
        "nodeId": {
          "type": "string",
          "title": "Output only. Node the event is about, if any.\nExample: add",
          "readOnly": true
        },
        "payload": {
          "type": "string",
          "title": "Output only. Event details as JSON. Never holds secrets.\nExample: {\"attempt\":1,\"http_status\":201}",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time of the event.",
          "readOnly": true
        }
      },
      "description": "WorkflowExecutionEvent is one entry of a run's trace."
    },
    "coreworkspacev1Position": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nThe fully qualified resource name of the\nThe [Position][trivaapp.core.position.v1.Position].\nFormat: positions/{uuid.v4}.\nEx: positions/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Output only.\n\nThe fully qualified resource id of the\nThe [Position][trivaapp.core.position.v1.Position].\n\nIs a unique identifier for the resource.\nThis field must be a UTF-8 encoded string with a length limit of 36\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `uuid.v7`.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Output only.\n\nThe position display name.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Position` was created.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Position` was last updated.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nUsed to perform a consistent read-modify-write."
        }
      }
    },
    "v1Role": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nThe fully qualified resource name of the\nThe [Role][trivaapp.core.role.v1.Role].\nFormat: roles/{uuid.v4}.\nEx: roles/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Output only.\n\nThe fully qualified resource id of the\nThe [Role][trivaapp.core.role.v1.Role].\n\nIs a unique identifier for the resource.\nThis field must be a UTF-8 encoded string with a length limit of 36\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `uuid.v7`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Output only.\n\nThe role display name.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nThe key of the role.\n\nPossible values:\n- \"WORKSPACE_ADMIN\"\n- \"WORKSPACE_MEMBER\"",
          "readOnly": true
        },
        "scope": {
          "type": "string",
          "description": "Output only.\n\nThe scope of the role.\n\nPossible values:\n- \"web.trivaapps.com\"\n- \"sign.trivaapps.com\"\n- \"*\" - The role is a system role.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Role` was created.",
          "readOnly": true
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `Role` was last updated.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.  \n\nUsed to perform a consistent read-modify-write."
        }
      }
    },
    "coreworkspacev1TrialOverlay": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Output only.",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "description": "Output only.",
          "readOnly": true
        },
        "startedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.",
          "readOnly": true
        },
        "endsAt": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.",
          "readOnly": true
        },
        "trialPeriodDays": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.",
          "readOnly": true
        }
      },
      "description": "TrialOverlay is the user-scoped trial entitlement projected on a workspace."
    },
    "v1EnvelopeDocumentParticipantOptions": {
      "type": "object",
      "properties": {
        "authenticationEnabled": {
          "type": "boolean",
          "description": "Required. Input only. \n\nThe participant options authentication."
        },
        "authenticationMethod": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication method."
        },
        "authenticationChannel": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication channel."
        },
        "authenticationCode": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication code."
        },
        "passcodeEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options authentication passcode enabled."
        },
        "passcodeStatus": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication passcode status."
        },
        "smsVerificationEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options authentication OTP enabled."
        },
        "smsVerificationStatus": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication OTP status."
        },
        "identityVerificationEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options authentication identity verification enabled."
        },
        "identityVerificationStatus": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication identity verification status."
        },
        "deliveryMessageEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options authentication delivery message enabled."
        },
        "deliveryMessageChannel": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication delivery message channel."
        },
        "deliveryMessageSubject": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication delivery message subject."
        },
        "deliveryMessageBody": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication delivery message body."
        },
        "deliveryMessageMessage": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication delivery message message."
        },
        "signingDeadlineEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options signing deadline."
        },
        "signingDeadline": {
          "type": "string",
          "format": "date-time",
          "description": "Required. Input only.\n\nThe participant options signing deadline."
        },
        "sendReminderEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options send reminder enabled."
        },
        "sendReminderEachXDays": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nThe participant options send reminder each X days."
        },
        "sendReminderInXDays": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nThe participant options send reminder in X days."
        },
        "sendReminderMaxCount": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nThe participant options send reminder max count."
        },
        "sendReminderDaysBeforeExpiration": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nThe participant options send reminder days before expiration."
        },
        "whatsappEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options notification whatsapp enabled."
        },
        "smsEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options notification sms enabled."
        },
        "smsCustomizeEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options notification sms customize enabled."
        },
        "smsMessage": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options notification sms message."
        },
        "passcodeType": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication passcode type."
        },
        "passcodeLength": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nThe participant options authentication passcode length."
        },
        "passcodeRetryLimit": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nThe participant options authentication passcode retry limit."
        },
        "otpEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options authentication OTP phone."
        },
        "otpPhone": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication OTP phone."
        },
        "otpChannel": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication OTP channel."
        },
        "otpLength": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nThe participant options authentication OTP length."
        },
        "otpExpiry": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nThe participant options authentication OTP expiry in minutes."
        },
        "identityVerificationLevel": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication identity verification level."
        },
        "identityVerificationProvider": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication identity verification provider."
        },
        "identityVerificationFields": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required. Input only.\n\nThe participant options authentication identity verification fields."
        },
        "identityVerificationLivenessMethod": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication identity verification liveness method."
        },
        "identityVerificationCountry": {
          "type": "string",
          "description": "Required. Input only.\n\nThe participant options authentication identity verification country."
        },
        "accessExpiryEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options access expiry enabled."
        },
        "accessExpiry": {
          "type": "string",
          "format": "date-time",
          "description": "Required. Input only.\n\nThe participant options access expiry."
        },
        "ipRestrictionEnabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nThe participant options IP restriction enabled."
        },
        "ipRestrictionAddresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required. Input only.\n\nThe participant options IP restriction addresses."
        },
        "emailVerificationEnabled": {
          "type": "boolean",
          "description": "Optional. Input only. Recipient email verification before signing."
        },
        "emailVerificationStatus": {
          "type": "string",
          "description": "Optional. Input only."
        },
        "sanctionsScreeningEnabled": {
          "type": "boolean",
          "description": "Optional. Input only. Sanctions / PEP screening."
        },
        "ageVerificationEnabled": {
          "type": "boolean",
          "description": "Optional. Input only. Age verification."
        },
        "ageVerificationMinimum": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Input only. Minimum age when age verification is enabled."
        },
        "manualApprovalEnabled": {
          "type": "boolean",
          "description": "Optional. Input only. Require sender/manual approval after automated checks."
        },
        "organizationMembershipRequired": {
          "type": "boolean",
          "description": "Optional. Input only. Require organization membership."
        },
        "organizationMembershipOrgId": {
          "type": "string",
          "description": "Optional. Input only. Organization ID for membership check."
        },
        "customVerificationFormEnabled": {
          "type": "boolean",
          "description": "Optional. Input only. Custom knowledge / verification form."
        },
        "customVerificationFormFields": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeDocumentParticipantCustomFormField"
          },
          "description": "Optional. Input only. Custom verification form field definitions."
        }
      },
      "title": "EnvelopeDocumentParticipantOptions",
      "required": [
        "authenticationEnabled",
        "authenticationMethod",
        "authenticationChannel",
        "authenticationCode",
        "passcodeEnabled",
        "passcodeStatus",
        "smsVerificationEnabled",
        "smsVerificationStatus",
        "identityVerificationEnabled",
        "identityVerificationStatus",
        "deliveryMessageEnabled",
        "deliveryMessageChannel",
        "deliveryMessageSubject",
        "deliveryMessageBody",
        "deliveryMessageMessage",
        "signingDeadlineEnabled",
        "signingDeadline",
        "sendReminderEnabled",
        "sendReminderEachXDays",
        "sendReminderInXDays",
        "sendReminderMaxCount",
        "sendReminderDaysBeforeExpiration",
        "whatsappEnabled",
        "smsEnabled",
        "smsCustomizeEnabled",
        "smsMessage",
        "passcodeType",
        "passcodeLength",
        "passcodeRetryLimit",
        "otpEnabled",
        "otpPhone",
        "otpChannel",
        "otpLength",
        "otpExpiry",
        "identityVerificationLevel",
        "identityVerificationProvider",
        "identityVerificationFields",
        "identityVerificationLivenessMethod",
        "identityVerificationCountry",
        "accessExpiryEnabled",
        "accessExpiry",
        "ipRestrictionEnabled",
        "ipRestrictionAddresses"
      ]
    },
    "dreamflowdocv1Kind": {
      "type": "string",
      "enum": [
        "UNKNOWN_FIELD_TYPE",
        "CELLS",
        "CHECKBOX",
        "DATE",
        "DROPDOWN",
        "LISTBOX",
        "EMAIL",
        "EMETERAI",
        "FILE",
        "FORMULA",
        "IMAGE",
        "INITIAL",
        "MULTIPLE",
        "NUMBER",
        "PAYMENT",
        "PHONE",
        "QR",
        "RADIO_BUTTON",
        "RECIPIENT_NAME",
        "RECIPIENT_EMAIL",
        "RECIPIENT_PHONE",
        "RECIPIENT_ADDRESS",
        "RECIPIENT_CITY",
        "RECIPIENT_STATE",
        "RECIPIENT_ZIP",
        "RECIPIENT_COUNTRY",
        "SEAL",
        "SIGNATURE",
        "SIGNING_DATE",
        "ENVELOPE_ID",
        "DRAWING",
        "STAMP",
        "TEXT"
      ],
      "default": "UNKNOWN_FIELD_TYPE",
      "description": "- UNKNOWN_FIELD_TYPE: UNKNOWN_FIELD_TYPE indicates that the field type is unknown.\n - DRAWING: DRAWING is a free rectangle the recipient draws in. The owner sets ink opacity.",
      "title": "Kind"
    },
    "v1Layout": {
      "type": "object",
      "properties": {
        "dpi": {
          "type": "number",
          "format": "float",
          "description": "Required. Input only.\n\nIs a DPI of the form."
        },
        "unit": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a unit of the form."
        },
        "section": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nIs a section number where the form created."
        },
        "page": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nIs a page number of current section where the form created."
        },
        "position": {
          "$ref": "#/definitions/dreamflowdocv1Position",
          "description": "Required. Input only."
        },
        "style": {
          "$ref": "#/definitions/docv1Style",
          "description": "Required. Input only."
        },
        "draggable": {
          "type": "boolean",
          "description": "Optional.\n\nThe signer may move the field while filling. Self sign is always free to move.\nOnce sent, a signer's change to page or position is kept only when this is true."
        },
        "resizeable": {
          "type": "boolean",
          "description": "Optional.\n\nThe signer may resize the field while filling. Self sign is always free to resize.\nOnce sent, a signer's change to width or height is kept only when this is true."
        }
      },
      "title": "Layout",
      "required": [
        "dpi",
        "unit",
        "section",
        "page",
        "position",
        "style"
      ]
    },
    "v1Appearance": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a title to display."
        },
        "titleCustom": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a title custom."
        },
        "placeholder": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a placeholder to display."
        },
        "hint": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a hint to display."
        },
        "blurWithAsterisk": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a blur with asterisk."
        },
        "maxLength": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nIs a max length."
        },
        "lineHeight": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nIs a line height."
        },
        "horizontalAlignment": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a horizontal alignment."
        },
        "verticalAlignment": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a vertical alignment."
        },
        "fontSize": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nIs a font size."
        },
        "fontWeight": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a font weight."
        },
        "fontStyle": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a font style."
        },
        "fontFamily": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a font family."
        },
        "fontColor": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a font color."
        },
        "textDecoration": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a text decoration."
        },
        "backgroundColor": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a background color."
        },
        "conditionalRules": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1ConditionalRule"
          },
          "description": "Required. Input only.\n\nIs a conditional rules."
        },
        "readOnly": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a read only."
        },
        "disabled": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a disabled."
        },
        "draggable": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a draggable."
        },
        "editable": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a editable."
        },
        "visible": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a visible."
        },
        "cellLen": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only.\n\nIs a cell length."
        },
        "format": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a format."
        },
        "multiLine": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a multi line."
        },
        "renderingType": {
          "type": "string",
          "description": "Optional. Input only.\n\nRendering type for bulk/template variable fields (e.g. \"variable\")."
        },
        "renderingTitle": {
          "type": "string",
          "description": "Optional. Input only.\n\nHuman-readable rendering title for variable fields (Title Case)."
        },
        "description": {
          "type": "string",
          "description": "Optional. Input only.\n\nIs a description to display."
        },
        "opacity": {
          "type": "number",
          "format": "float",
          "description": "Optional. Input only.\n\nInk opacity for a drawing field when the strokes are stamped onto the PDF.\n0 or absent means fully opaque. A set value is clamped to the range 0.1–1.\nExample: 0.4"
        },
        "allow_image_upload": {
          "type": "boolean",
          "description": "Optional. Input only.\n\nWhen true, the recipient may upload an image into a drawing field.\nAbsent or false means the recipient can only draw.\nExample: true"
        }
      },
      "title": "Appearance",
      "required": [
        "title",
        "titleCustom",
        "placeholder",
        "hint",
        "blurWithAsterisk",
        "maxLength",
        "lineHeight",
        "horizontalAlignment",
        "verticalAlignment",
        "fontSize",
        "fontWeight",
        "fontStyle",
        "fontFamily",
        "fontColor",
        "textDecoration",
        "backgroundColor",
        "conditionalRules",
        "readOnly",
        "disabled",
        "draggable",
        "editable",
        "visible",
        "cellLen",
        "format",
        "multiLine"
      ]
    },
    "v1Submission": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a value."
        },
        "exportValue": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a export value."
        },
        "defaultValue": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a default value."
        },
        "previewValue": {
          "type": "string",
          "description": "Optional. Output only.\n\nIs a preview value.",
          "readOnly": true
        },
        "required": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a required."
        },
        "formulas": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Formula"
          },
          "description": "Required. Input only.\n\nIs a formulas."
        },
        "validations": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Validation"
          },
          "description": "Required. Input only.\n\nIs a validations."
        },
        "submitted": {
          "type": "boolean",
          "description": "Required. Input only.\n\nIs a submitted."
        },
        "submissionBalanceProvider": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a submission balance provider."
        },
        "options": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Option"
          },
          "description": "Required. Input only.\n\nIs a options."
        },
        "files": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1File"
          },
          "description": "Required. Input only.\n\nIs a files."
        },
        "key": {
          "type": "string",
          "description": "Optional. Input only.\n\nIs a variable key used to auto-fill matching fields."
        },
        "stamped": {
          "type": "boolean",
          "description": "Optional.\n\nWhether vendor e-Meterai has been applied to this field.\nAbsent means the field has not been acknowledged. False means acknowledged\nand waiting. True means the stamp has been applied."
        }
      },
      "title": "Submission",
      "required": [
        "value",
        "exportValue",
        "defaultValue",
        "required",
        "formulas",
        "validations",
        "submitted",
        "submissionBalanceProvider",
        "options",
        "files"
      ]
    },
    "v1Widget": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nThe fully qualified resource name of the\nThe [Template][dreamflow.v1.Template].\nFormat: templates/{uuid.v4}.\nEx: templates/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Template][dreamflow.v1.Template] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "exportValue": {
          "type": "string",
          "description": "Output only.\n\nExport value of the widget.",
          "readOnly": true
        },
        "kind": {
          "$ref": "#/definitions/dreamflowdocv1Kind",
          "description": "Required. Input only."
        },
        "layout": {
          "$ref": "#/definitions/v1Layout",
          "description": "Required. Input only."
        }
      },
      "title": "Widget",
      "required": [
        "name",
        "uid",
        "kind",
        "layout"
      ]
    },
    "v1EnvelopePermissionState": {
      "type": "object",
      "properties": {
        "allow": {
          "type": "boolean",
          "description": "Required.\n\nThe allow of the permission."
        },
        "reason": {
          "type": "string",
          "description": "Required.\n\nThe reason of the permission."
        }
      },
      "title": "EnvelopePermissionState",
      "required": [
        "allow",
        "reason"
      ]
    },
    "v1EnvelopeActionConfirmation": {
      "type": "object",
      "properties": {
        "required": {
          "type": "boolean",
          "description": "Required.\n\nThe need confirmation of the action."
        },
        "method": {
          "type": "string",
          "description": "Required.\n\nThe confirmation method of the action."
        }
      },
      "title": "EnvelopeActionConfirmation",
      "required": [
        "required",
        "method"
      ]
    },
    "v1EnvelopeActionProperty": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Required.\n\nThe type of the action."
        },
        "limit": {
          "type": "integer",
          "format": "int32",
          "description": "Required.\n\nThe limit of the action."
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1Field"
          },
          "description": "Output only.\n\nThe fields of the action.",
          "readOnly": true
        }
      },
      "title": "EnvelopeActionProperty",
      "required": [
        "type",
        "limit"
      ]
    },
    "v1EnvelopeLifeCycleReminderRecurrence": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nResource id.\nFormat: envelope_life_cycle_reminder_recurrences/{uuid.v4}.\nEx: envelope_life_cycle_reminder_recurrences/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [EnvelopeLifeCycleReminderRecurrence][dreamflow.v1.EnvelopeLifeCycleReminderRecurrence] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "frequency": {
          "type": "string",
          "description": "Required. Input only. The reminder recurrence frequency."
        },
        "interval": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only. The reminder recurrence interval."
        },
        "count": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only. The reminder recurrence count."
        },
        "endDate": {
          "type": "string",
          "format": "date-time",
          "description": "Required. Input only. The reminder recurrence end date."
        },
        "endType": {
          "type": "string",
          "description": "Required. Input only. The reminder recurrence end type."
        },
        "maxOccurrences": {
          "type": "integer",
          "format": "int32",
          "description": "Required. Input only. The reminder recurrence max occurrences."
        },
        "enabled": {
          "type": "boolean",
          "description": "Required. Input only. The reminder recurrence enabled."
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycleReminderRecurrence` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycleReminderRecurrence` was created.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycleReminderRecurrence` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeLifeCycleReminderRecurrence",
      "required": [
        "name",
        "uid",
        "frequency",
        "interval",
        "count",
        "endDate",
        "endType",
        "maxOccurrences",
        "enabled"
      ]
    },
    "v1EnvelopeLifeCycleReminderChannel": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Identifier.\n\nResource id.\nFormat: envelope_life_cycle_reminder_channels/{uuid.v4}.\nEx: envelope_life_cycle_reminder_channels/00000000-0000-0000-0000-000000000000.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [EnvelopeLifeCycleReminderChannel][dreamflow.v1.EnvelopeLifeCycleReminderChannel] id to view.",
          "readOnly": true
        },
        "key": {
          "type": "string",
          "description": "Output only.\n\nIs a key which is a unique identifier for the Transport entry, similar to id.\nThis field must be a UTF-8 encoded string with a length limit of 255\ncharacters. Otherwise, an INVALID_ARGUMENT error is returned.\nFormat: `<resource slug>/<resource id>`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. Input only. The reminder channel display name."
        },
        "method": {
          "type": "string",
          "description": "Required. Input only. The reminder channel method."
        },
        "enabled": {
          "type": "boolean",
          "description": "Required. Input only. The reminder channel enabled."
        },
        "sendToIdentifiers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Input/output.\n\nDelivery identifiers for the channel (e.g. Telegram chat IDs; topics as chatId::threadId)."
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycleReminderChannel` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycleReminderChannel` was created.",
          "readOnly": true
        },
        "purgeTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `EnvelopeLifeCycleReminderChannel` was deleted.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "Optional.\n\nThe etag known to the client for the expected state of the key.\nThis is to be used for optimistic concurrency."
        }
      },
      "title": "EnvelopeLifeCycleReminderChannel",
      "required": [
        "name",
        "uid",
        "displayName",
        "method",
        "enabled"
      ]
    },
    "v1EnvelopeConditionalRuleCondition": {
      "type": "object",
      "properties": {
        "sourceFieldUid": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a field uid."
        },
        "operator": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a operator."
        },
        "value": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a field value."
        }
      },
      "title": "EnvelopeConditionalRuleCondition",
      "required": [
        "sourceFieldUid",
        "operator",
        "value"
      ]
    },
    "v1EnvelopeConditionalRuleAction": {
      "type": "object",
      "properties": {
        "targetFieldUid": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a field uid."
        },
        "action": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a action."
        },
        "value": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a action parameter value."
        }
      },
      "title": "EnvelopeConditionalRuleAction",
      "required": [
        "targetFieldUid",
        "action",
        "value"
      ]
    },
    "v1EnvelopeRiskAnalysisFindingReasonItem": {
      "type": "object",
      "properties": {
        "item": {
          "type": "string",
          "description": "Output only.\n\nThe item of the `EnvelopeRiskAnalysisFindingReason`.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRiskAnalysisFindingReasonItem is an item for a risk analysis finding reason."
    },
    "v1EnvelopeRiskAnalysisFindingLayout": {
      "type": "object",
      "properties": {
        "dpi": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe DPI of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        },
        "unit": {
          "type": "string",
          "description": "Output only.\n\nThe unit of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        },
        "section": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe section of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        },
        "page": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe page of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        },
        "style": {
          "$ref": "#/definitions/v1EnvelopeRiskAnalysisFindingLayoutStyle",
          "description": "Output only.\n\nThe style of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        },
        "position": {
          "$ref": "#/definitions/v1EnvelopeRiskAnalysisFindingLayoutPosition",
          "description": "Output only.\n\nThe position of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        },
        "lines": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1EnvelopeRiskAnalysisFindingLineBox"
          },
          "description": "Output only.\n\nThe lines of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRiskAnalysisFindingLayout is the layout of a risk analysis finding bounding box."
    },
    "v1EnvelopeEscalationStepTo": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "description": "Required. Input only.\n\nThe fully qualified resource id of the\nThe [EnvelopeEscalationStepTo][dreamflow.v1.EnvelopeEscalationStepTo] id to view."
        },
        "type": {
          "type": "string",
          "description": "Required. Input only.\n\nType of the escalation step to."
        },
        "identifier": {
          "type": "string",
          "description": "Identifier of the escalation step to."
        },
        "displayName": {
          "type": "string",
          "description": "Display name of the escalation step to."
        }
      },
      "description": "EnvelopeEscalationStepTo is the to of a escalation step.",
      "required": [
        "uid",
        "type",
        "identifier",
        "displayName"
      ]
    },
    "statestoragev1State": {
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "AVAILABLE",
        "DELETED",
        "HIDDEN"
      ],
      "default": "STATE_UNSPECIFIED",
      "description": "State is an enumeration representing the various stages of a storage's lifecycle.\nEach value corresponds to a specific state of an storage.\n\n - STATE_UNSPECIFIED: STATE_UNSPECIFIED indicates that the storage state is unknown.\n - AVAILABLE: AVAILABLE indicates that the storage is available.\n - DELETED: DELETED indicates that the storage is deleted.\n - HIDDEN: HIDDEN indicates that the storage is hidden."
    },
    "v1PageSize": {
      "type": "object",
      "properties": {
        "widthPt": {
          "type": "number",
          "format": "double",
          "description": "Required. Width in points."
        },
        "heightPt": {
          "type": "number",
          "format": "double",
          "description": "Required. Height in points."
        }
      },
      "description": "The size of one PDF page in points.",
      "required": [
        "widthPt",
        "heightPt"
      ]
    },
    "v1FieldRect": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "title": "Required. The field uid from the document. 1 to 64 characters.\n(-- api-linter: core::0148::uid-format=disabled\n    aip.dev/not-precedent: The editor's field uid (f_xxxx), not a server-generated UUID. --)"
        },
        "kind": {
          "type": "string",
          "description": "Required. SIGNATURE, INITIAL, DATE, TEXT, CHECKBOX, DROPDOWN, RADIO, EMETERAI,\nATTACHMENT or STAMP."
        },
        "role": {
          "type": "string",
          "description": "Required. The role key from the document. 1 to 64 characters."
        },
        "required": {
          "type": "boolean",
          "description": "Optional. Whether the signer must fill the field."
        },
        "page": {
          "type": "integer",
          "format": "int32",
          "description": "Required. The 1-based page number."
        },
        "x": {
          "type": "number",
          "format": "double",
          "description": "Required. Points from the left edge of the page."
        },
        "y": {
          "type": "number",
          "format": "double",
          "description": "Required. Points from the top edge of the page."
        },
        "width": {
          "type": "number",
          "format": "double",
          "description": "Required. Width in points."
        },
        "height": {
          "type": "number",
          "format": "double",
          "description": "Required. Height in points."
        },
        "label": {
          "type": "string",
          "description": "Optional. The label shown to the signer. At most 200 characters."
        }
      },
      "description": "A field rectangle measured by the paginator.",
      "required": [
        "uid",
        "kind",
        "role",
        "page",
        "x",
        "y",
        "width",
        "height"
      ]
    },
    "v1WorkflowExecutionNode": {
      "type": "object",
      "properties": {
        "nodeId": {
          "type": "string",
          "title": "Output only. Node id from the workflow document.\nExample: add",
          "readOnly": true
        },
        "kind": {
          "type": "string",
          "title": "Output only. Node kind.\nExample: api",
          "readOnly": true
        },
        "operationId": {
          "type": "string",
          "title": "Output only. Operation the node calls.\nExample: EnvelopeService_AddEnvelope",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "title": "Output only. BLOCKED, READY, RUNNING, RETRYING, WAITING, SUCCEEDED, FAILED, SKIPPED, or UNKNOWN.\nExample: SUCCEEDED",
          "readOnly": true
        },
        "attempt": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Attempts made.\nExample: 1",
          "readOnly": true
        },
        "reason": {
          "type": "string",
          "title": "Output only. Why the node skipped or failed.\nExample: branch_not_taken",
          "readOnly": true
        },
        "branch": {
          "type": "string",
          "title": "Output only. Port a switch chose.\nExample: kyc.ready",
          "readOnly": true
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the node started.",
          "readOnly": true
        },
        "finishTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the node finished.",
          "readOnly": true
        }
      },
      "description": "WorkflowExecutionNode is one node's state in a run."
    },
    "v1WorkflowExecutionStep": {
      "type": "object",
      "properties": {
        "stepId": {
          "type": "string",
          "title": "Output only. Attempt id.\nFormat: UUID.\nExample: 9c4d5e40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
          "readOnly": true
        },
        "nodeId": {
          "type": "string",
          "title": "Output only. Node id.\nExample: add",
          "readOnly": true
        },
        "operationId": {
          "type": "string",
          "title": "Output only. Operation called.\nExample: EnvelopeService_AddEnvelope",
          "readOnly": true
        },
        "attempt": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Attempt number of the node.\nExample: 1",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "title": "Output only. RUNNING, SUCCEEDED, FAILED, or UNKNOWN.\nExample: SUCCEEDED",
          "readOnly": true
        },
        "path": {
          "type": "string",
          "title": "Output only. Path called.\nExample: /v1/envelopes:addEnvelope",
          "readOnly": true
        },
        "httpStatus": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. HTTP status of the call.\nExample: 201",
          "readOnly": true
        },
        "grpcCode": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. gRPC status code of the call.\nExample: 0",
          "readOnly": true
        },
        "durationMs": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Call duration in milliseconds.\nExample: 120",
          "readOnly": true
        },
        "requestId": {
          "type": "string",
          "title": "Output only. Request id; the API log entry of the call has the same id.\nExample: 9c4d5e40-1b3e-4c7a-9d2e-0a1b2c3d4e5f",
          "readOnly": true
        },
        "requestBody": {
          "type": "string",
          "title": "Output only. Request body, redacted. Secret fields such as one-time codes read [redacted].\nExample: {\"name\":\"envelopes/abc\"}",
          "readOnly": true
        },
        "responseBody": {
          "type": "string",
          "title": "Output only. Response body, redacted.\nExample: {\"send_time\":\"2026-11-21T03:00:00Z\"}",
          "readOnly": true
        },
        "errorDetail": {
          "type": "string",
          "title": "Output only. Error detail of a failed call.\nExample: the envelope state does not allow sending",
          "readOnly": true
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the attempt started.",
          "readOnly": true
        },
        "finishTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only. Time the attempt finished.",
          "readOnly": true
        },
        "chargeCode": {
          "type": "string",
          "title": "Output only. Balance code the call was charged to (API steps); empty when not charged.\nExample: API_CALL",
          "readOnly": true
        },
        "chargeAmount": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Units charged for the call, net of refunds.\nExample: 1",
          "readOnly": true
        }
      },
      "description": "WorkflowExecutionStep is one call attempt."
    },
    "v1WorkflowCharge": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "title": "Output only. Balance code charged.\nExample: WORKFLOW_RUN",
          "readOnly": true
        },
        "amount": {
          "type": "integer",
          "format": "int32",
          "title": "Output only. Units charged.\nExample: 1",
          "readOnly": true
        },
        "reference": {
          "type": "string",
          "title": "Output only. Ledger reference of the charge; replays of the same idempotency key share it.\nExample: workflow-run:2a5c7e90-1b3e-4c7a-9d2e-0a1b2c3d4e5f:crm-7781",
          "readOnly": true
        },
        "refunded": {
          "type": "boolean",
          "title": "Output only. True when the charge was refunded.\nExample: false",
          "readOnly": true
        }
      },
      "description": "WorkflowCharge is the run-level charge of a server run."
    },
    "v1EnvelopeDocumentParticipantCustomFormField": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "required": {
          "type": "boolean"
        }
      },
      "description": "EnvelopeDocumentParticipantCustomFormField defines a sender-configured custom verification field."
    },
    "dreamflowdocv1Position": {
      "type": "object",
      "properties": {
        "offsetX": {
          "type": "number",
          "format": "float",
          "description": "Required. Input only.\n\nIs a x coordinate of form."
        },
        "offsetY": {
          "type": "number",
          "format": "float",
          "description": "Required. Input only.\n\nIs a y coordinate of form."
        },
        "anchorPoint": {
          "$ref": "#/definitions/v1AnchorPoint",
          "description": "Required. Input only.\n\nIs an anchor point to calculate offset_x and offset_y."
        }
      },
      "title": "Position",
      "required": [
        "offsetX",
        "offsetY",
        "anchorPoint"
      ]
    },
    "docv1Style": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "format": "float",
          "description": "Required. Input only.\n\nIs a width of form."
        },
        "height": {
          "type": "number",
          "format": "float",
          "description": "Required. Input only.\n\nIs a height of form."
        }
      },
      "title": "Style",
      "required": [
        "width",
        "height"
      ]
    },
    "v1ConditionalRule": {
      "type": "object",
      "properties": {
        "target": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a target."
        },
        "condition": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a condition."
        },
        "then": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a then."
        },
        "else": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a else."
        }
      },
      "title": "ConditionalRule",
      "required": [
        "target",
        "condition",
        "then",
        "else"
      ]
    },
    "v1Formula": {
      "type": "object",
      "properties": {
        "formula": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a formula."
        },
        "result": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a result."
        }
      },
      "title": "Formula",
      "required": [
        "formula",
        "result"
      ]
    },
    "v1Validation": {
      "type": "object",
      "properties": {
        "ruleName": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a rule name."
        },
        "ruleValue": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a rule value."
        },
        "ruleMessage": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a rule message."
        }
      },
      "title": "Validation",
      "required": [
        "ruleName",
        "ruleValue",
        "ruleMessage"
      ]
    },
    "v1Option": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a key."
        },
        "value": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a value."
        }
      },
      "title": "Option",
      "required": [
        "key",
        "value"
      ]
    },
    "v1File": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string",
          "format": "uuid",
          "description": "Required.\n\nThe fully qualified resource id of the\nThe [Storage][dreamflow.v1.Storage] id to view.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a file name."
        },
        "size": {
          "type": "string",
          "format": "int64",
          "description": "Required. Input only.\n\nIs a file size."
        },
        "extension": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a file extension."
        },
        "mimeType": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a file mime type."
        },
        "checksum": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a file checksum."
        },
        "uri": {
          "type": "string",
          "description": "Required. Input only.\n\nIs a file url."
        },
        "uploadTime": {
          "type": "string",
          "format": "date-time",
          "description": "Output only.\n\nThe Timestamp of when the `File` was uploaded.",
          "readOnly": true
        }
      },
      "title": "File",
      "required": [
        "uid",
        "name",
        "size",
        "extension",
        "mimeType",
        "checksum",
        "uri"
      ]
    },
    "v1EnvelopeRiskAnalysisFindingLayoutStyle": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe width of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        },
        "height": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe height of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRiskAnalysisFindingLayoutStyle is the style of a risk analysis finding bounding box."
    },
    "v1EnvelopeRiskAnalysisFindingLayoutPosition": {
      "type": "object",
      "properties": {
        "offsetX": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe offset x coordinate of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        },
        "offsetY": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe offset y coordinate of the `EnvelopeRiskAnalysisFinding` bounding box.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRiskAnalysisFindingLayoutPosition is the position of a risk analysis finding bounding box."
    },
    "v1EnvelopeRiskAnalysisFindingLineBox": {
      "type": "object",
      "properties": {
        "dpi": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe DPI of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        },
        "unit": {
          "type": "string",
          "description": "Output only.\n\nThe unit of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        },
        "section": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe section of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        },
        "page": {
          "type": "integer",
          "format": "int32",
          "description": "Output only.\n\nThe page of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        },
        "style": {
          "$ref": "#/definitions/v1EnvelopeRiskAnalysisFindingLineBoxStyle",
          "description": "Output only.\n\nThe style of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        },
        "position": {
          "$ref": "#/definitions/v1EnvelopeRiskAnalysisFindingLineBoxPosition",
          "description": "Output only.\n\nThe position of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRiskAnalysisFindingLineBox is the line box of a risk analysis finding bounding box."
    },
    "v1AnchorPoint": {
      "type": "string",
      "enum": [
        "UNKNOWN_ANCHOR_POINT",
        "TOP_LEFT",
        "TOP_RIGHT",
        "BOTTOM_RIGHT",
        "BOTTOM_LEFT"
      ],
      "default": "UNKNOWN_ANCHOR_POINT",
      "description": "- UNKNOWN_ANCHOR_POINT: UNKNOWN_ANCHOR_POINT indicates that the anchor point is unknown.",
      "title": "AnchorPoint"
    },
    "v1EnvelopeRiskAnalysisFindingLineBoxStyle": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe width of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        },
        "height": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe height of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRiskAnalysisFindingLineBoxStyle is the style of a risk analysis finding line box bounding box."
    },
    "v1EnvelopeRiskAnalysisFindingLineBoxPosition": {
      "type": "object",
      "properties": {
        "offsetX": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe offset x coordinate of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        },
        "offsetY": {
          "type": "number",
          "format": "float",
          "description": "Output only.\n\nThe offset y coordinate of the `EnvelopeRiskAnalysisFindingLineBox` bounding box.",
          "readOnly": true
        }
      },
      "description": "EnvelopeRiskAnalysisFindingLineBoxPosition is the position of a risk analysis finding line box bounding box."
    }
  },
  "x-reference": "{\"authenticationExample\":\"curl -X GET \\\"https://api.signingflow.com/v1/envelopes?directory=needAction\\\" \\\\\\n  -H \\\"Authorization: Bearer $SIGNINGFLOW_API_KEY\\\"\",\"concepts\":{\"expanding-responses\":{\"paragraphs\":[\"View an envelope and Create an envelope accept read_mask. Send a comma-separated list of field paths. The response includes those fields.\",\"On view, read_mask is the query parameter readMask. On create, readMask is a field of the JSON body.\"],\"parameters\":[{\"name\":\"read_mask\",\"in\":\"query\",\"description\":\"Optional on view. Comma-separated field paths. The query name is readMask. The response includes those fields.\"},{\"name\":\"read_mask\",\"in\":\"body\",\"description\":\"Optional on create. The same list, sent as readMask. It limits the fields of the envelope that was just created.\"}],\"exampleLanguage\":\"shell\",\"example\":\"curl -G \\\"https://api.signingflow.com/v1/envelopes/00000000-0000-0000-0000-000000000000:view\\\" \\\\\\n  -H \\\"Authorization: Bearer $SIGNINGFLOW_API_KEY\\\" \\\\\\n  --data-urlencode \\\"readMask=name,displayName\\\"\"},\"idempotent-requests\":{\"paragraphs\":[\"Create an envelope, Send an envelope, Use a template, Batch add storages, and Batch acknowledge uploads accept idempotency_key. The call is idempotent only when that key is present.\",\"Sending the same key again returns ALREADY_EXISTS. The server does not repeat the write, and it does not return the original resource.\",\"When the key is set, it must be a UUID. Use a new key for a new call.\"],\"parameters\":[{\"name\":\"idempotency_key\",\"in\":\"body\",\"description\":\"Optional UUID on the request body. The JSON name is idempotencyKey. Sending the same key again returns ALREADY_EXISTS.\"}],\"exampleLanguage\":\"shell\",\"example\":\"curl -X POST \\\"https://api.signingflow.com/v1/envelopes:addEnvelope\\\" \\\\\\n  -H \\\"Authorization: Bearer $SIGNINGFLOW_API_KEY\\\" \\\\\\n  -H \\\"Content-Type: application/json\\\" \\\\\\n  -d '{\\n    \\\"envelope\\\": {\\n      \\\"displayName\\\": \\\"Mutual NDA\\\"\\n    },\\n    \\\"idempotencyKey\\\": \\\"8c1d0e2a-6b4f-4a1e-9c33-1a2b3c4d5e6f\\\"\\n  }'\"},\"metadata\":{\"paragraphs\":[\"An error body has code, message, and details. An ErrorInfo detail includes reason, domain, and metadata.\",\"metadata.trace_code is the trace code for that failure. The method page says what was wrong and what to change.\",\"The same details array can include a Help link. Its url points at the trace page for that code. Replace {api-host} with the API host.\",\"Some failures add more metadata keys. A repeated idempotency key on Create an envelope includes trace code 43020.\"],\"parameters\":[{\"name\":\"trace_code\",\"in\":\"response\",\"description\":\"On ErrorInfo.metadata. The trace code for this failure. Read the method page for the cause and the change to make.\"},{\"name\":\"idempotency_key\",\"in\":\"response\",\"description\":\"On ErrorInfo.metadata when a call is rejected because that key was already processed.\"}],\"exampleLanguage\":\"json\",\"example\":\"{\\n  \\\"code\\\": 6,\\n  \\\"message\\\": \\\"Already exists.\\\",\\n  \\\"details\\\": [\\n    {\\n      \\\"@type\\\": \\\"type.googleapis.com/google.rpc.ErrorInfo\\\",\\n      \\\"reason\\\": \\\"already exists\\\",\\n      \\\"domain\\\": \\\"signingflow.com\\\",\\n      \\\"metadata\\\": {\\n        \\\"trace_code\\\": \\\"43020\\\",\\n        \\\"idempotency_key\\\": \\\"8c1d0e2a-6b4f-4a1e-9c33-1a2b3c4d5e6f\\\"\\n      }\\n    }\\n  ]\\n}\"},\"pagination\":{\"paragraphs\":[\"List envelopes returns one page. parent is envelopes. directory is required. The lists are needAction, waitingOthers, draft, inbox, sent, sharedWithMe, templateSession, completed, archived, purged, and all.\",\"An omitted page_size returns 50. A negative page_size, a page_size above 1000, or a page_token longer than 255 characters returns HTTP 400, trace code 43588.\",\"page_token is the base64 encoding of a decimal offset. A token that does not decode is trace code 43589. A token that is not a decimal offset is trace code 43590. A negative offset is trace code 46050.\",\"Send next_page_token back as page_token. Keep directory and the other parameters the same. An empty next_page_token means this is the last page.\"],\"parameters\":[{\"name\":\"page_size\",\"in\":\"query\",\"description\":\"Optional. Maximum number of envelopes. Omitted or 0 returns 50. A negative value or a value above 1000 returns HTTP 400, trace code 43588. The query name is pageSize.\"},{\"name\":\"page_token\",\"in\":\"query\",\"description\":\"Optional. The next_page_token from the previous page. It is base64 of a decimal offset and at most 255 characters. A token that does not decode is trace code 43589. A token that is not a decimal offset is trace code 43590. A negative offset is trace code 46050. The query name is pageToken.\"},{\"name\":\"next_page_token\",\"in\":\"response\",\"description\":\"Token for the next page. The JSON name is nextPageToken. Empty on the last page. Send it back as page_token.\"}],\"exampleLanguage\":\"shell\",\"example\":\"curl -G \\\"https://api.signingflow.com/v1/envelopes\\\" \\\\\\n  -H \\\"Authorization: Bearer $SIGNINGFLOW_API_KEY\\\" \\\\\\n  --data-urlencode \\\"directory=needAction\\\" \\\\\\n  --data-urlencode \\\"pageSize=50\\\" \\\\\\n  --data-urlencode \\\"pageToken=<next_page_token>\\\"\"},\"search\":{\"paragraphs\":[\"List envelopes filters with where and sorts with sorter. There is no separate search method.\",\"A where or sorter field that is not allowed returns HTTP 400, trace code 43592. doc_folder_slug limits the list to that folder and its descendants.\"],\"parameters\":[{\"name\":\"where\",\"in\":\"query\",\"description\":\"Optional filter. A field that is not allowed returns HTTP 400, trace code 43592.\"},{\"name\":\"sorter\",\"in\":\"query\",\"description\":\"Optional order. A field that is not allowed returns HTTP 400, trace code 43592. Omit sorter to use the server order.\"},{\"name\":\"doc_folder_slug\",\"in\":\"query\",\"description\":\"Optional. Limits the list to that folder and its descendants. The query name is docFolderSlug. Example: home/contracts.\"}],\"exampleLanguage\":\"shell\",\"example\":\"curl -G \\\"https://api.signingflow.com/v1/envelopes\\\" \\\\\\n  -H \\\"Authorization: Bearer $SIGNINGFLOW_API_KEY\\\" \\\\\\n  --data-urlencode \\\"directory=needAction\\\" \\\\\\n  --data-urlencode \\\"pageSize=50\\\" \\\\\\n  --data-urlencode \\\"docFolderSlug=home/contracts\\\"\"},\"request-ids\":{\"paragraphs\":[\"Every API request has a request identifier. Send it in the X-Request-Id header. Use a UUID. API Explorer sends a new UUID on every call.\",\"The server records that value as the request id. The Help link on an error includes it as request_id. The same value can appear as request_id in the error body.\",\"Include that identifier when you contact Signingflow about one request.\"],\"parameters\":[{\"name\":\"X-Request-Id\",\"in\":\"header\",\"description\":\"Optional. UUID that identifies this call. The server records it as the request id. API Explorer sends a new UUID on every call.\"},{\"name\":\"request_id\",\"in\":\"response\",\"description\":\"The same identifier on the error Help link, as the request_id query. It can also appear as request_id in the error body.\"}],\"exampleLanguage\":\"shell\",\"example\":\"curl -G \\\"https://api.signingflow.com/v1/envelopes\\\" \\\\\\n  -H \\\"Authorization: Bearer $SIGNINGFLOW_API_KEY\\\" \\\\\\n  --data-urlencode \\\"directory=needAction\\\" \\\\\\n  -H \\\"X-Request-Id: 4da47e18-b66b-44a0-974c-ab27ea421f27\\\"\"},\"versioning\":{\"paragraphs\":[\"The current API version is v1. Every published method is under https://api.signingflow.com/v1/. The version is the first segment of the path.\",\"Inside v1 the contract has a date. Every v1 response carries the Signingflow-Version header with that date, for example 2026-11-23. Send the same header to pin a version; a version this API does not serve answers HTTP 400 with gRPC code 3 and the call does not run. Leave it out to get the current version. Added fields and methods keep the date; a breaking change gets a new date, is announced in the API changelog, and the previous date keeps working for at least 12 months.\",\"Live and sandbox are not versions. They are separate applications, and their rate limits are counted separately.\"],\"parameters\":[{\"name\":\"v1\",\"in\":\"path\",\"required\":true,\"description\":\"The API version. The first segment of every method path, as in https://api.signingflow.com/v1/envelopes.\"},{\"name\":\"Signingflow-Version\",\"in\":\"header\",\"required\":false,\"description\":\"Optional. The dated version to answer with, as YYYY-MM-DD. Today the only version is 2026-11-23. The response always names the version it used in the same header.\"}],\"exampleLanguage\":\"shell\",\"example\":\"curl -G \\\"https://api.signingflow.com/v1/envelopes?directory=needAction\\\" \\\\\\n  -H \\\"Authorization: Bearer $SIGNINGFLOW_API_KEY\\\"\"}}}",
  "x-storage-guides": "[{\"id\":\"storage-upload\",\"title\":\"Upload a file\",\"paragraphs\":[\"Call Batch add storages. Each storage returns pre_signed_url. PUT the file bytes to that URL. Set Content-Type to the mime_type you sent, and set x-goog-if-generation-match to 0. The default URL lifetime is 60 seconds. An empty pre_signed_url is still a successful add for that item.\",\"Then call Batch acknowledge uploads. Each name is storages/{uuid}. Each returned status is ACKNOWLEDGED. A repeated idempotency_key returns ALREADY_EXISTS and does not return the original storages.\"],\"sampleLabel\":\"PUT the file\",\"sampleLanguage\":\"http\",\"sample\":\"PUT https://example.com/upload HTTP/1.1\\nContent-Type: application/pdf\\nx-goog-if-generation-match: 0\\n\\n<file bytes>\"},{\"id\":\"storage-download\",\"title\":\"Download an envelope package\",\"paragraphs\":[\"Call Download an envelope. The response uri is a signed URL. GET that URL to download the package. The response also includes download_time.\"],\"sampleLabel\":\"Download an envelope\",\"sampleLanguage\":\"shell\",\"sample\":\"curl -X GET \\\"https://api.signingflow.com/v1/envelopes/00000000-0000-0000-0000-000000000000:download\\\" \\\\\\n  -H \\\"Authorization: Bearer $SIGNINGFLOW_API_KEY\\\"\"}]"
}
