{
  "openapi": "3.0.3",
  "info": {
    "title": "Zelikore Developer API",
    "version": "2026-10-09",
    "description": "Reviewed HTTP operations. Schemas describe structure; operation descriptions document additional business rules. Unlisted routes are not a published developer contract."
  },
  "servers": [
    {
      "url": "https://zelio-api.zelikore.com",
      "description": "Production"
    },
    {
      "url": "https://dev-zelio-api.zelikore.com",
      "description": "Development (separate access and keys required)"
    }
  ],
  "paths": {
    "/v1/business/customers": {
      "get": {
        "operationId": "list-customers",
        "tags": ["Customers"],
        "summary": "List customers",
        "description": "Read a page of customers, with optional search and lifecycle filters.\n\nRequires the Party profiles capability. Customer identity must resolve to the workspace's canonical Party record. Unavailable identity evidence returns 503; it is not an empty customer record. Do not combine lifecycleStatus with search. Keep filters, sort, limit, and workspace unchanged when following nextToken. An empty items array is a valid response.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["customers.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "lifecycleStatus",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "lead",
                "prospect",
                "active",
                "suspended",
                "archived",
                "blacklisted"
              ]
            }
          },
          {
            "name": "accountStatus",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["unlinked", "linked"]
            }
          },
          {
            "name": "taggedWith",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 256
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["recency", "alphabetical"]
            }
          },
          {
            "name": "includeAssetSummaries",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerListResponseSchema"
                },
                "example": {
                  "items": [
                    {
                      "workspaceId": "workspace-example",
                      "customerId": "customer-example",
                      "partyRef": {
                        "schemaVersion": "zelio.party.v1",
                        "workspaceId": "workspace-example",
                        "workspaceLifecycleEpoch": 1,
                        "partyId": "party-example",
                        "partyVersion": 1,
                        "partyHash": "sha256:abababababababababababababababababababababababababababababababab"
                      },
                      "kind": "organization",
                      "displayName": "Cedar Bicycle Repair",
                      "nameKey": "cedar-bicycle-repair",
                      "lifecycleStatus": "lead",
                      "defaultCurrency": "USD",
                      "occVersion": 1,
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "post": {
        "operationId": "create-customer",
        "tags": ["Customers"],
        "summary": "Create a customer",
        "description": "Add a customer and its canonical Party identity.\n\nRequires the Party profiles capability. Customer identity must resolve to the workspace's canonical Party record. Unavailable identity evidence returns 503; it is not an empty customer record. metadata.idempotencyKey is required. OCC fields do not replace the creation command's identity. Keep the same idempotencyKey and payload for a retry of the same command.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["customers.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/customerCreateRequestSchema"
              },
              "example": {
                "kind": "organization",
                "displayName": "Cedar Bicycle Repair",
                "defaultCurrency": "USD",
                "metadata": {
                  "idempotencyKey": "external-job-2026-09-14-001",
                  "source": "integration"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Existing customer returned for a replayed creation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerProfileResolvedRecordSchema"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerProfileResolvedRecordSchema"
                },
                "example": {
                  "customer": {
                    "workspaceId": "workspace-example",
                    "customerId": "customer-example",
                    "partyRef": {
                      "schemaVersion": "zelio.party.v1",
                      "workspaceId": "workspace-example",
                      "workspaceLifecycleEpoch": 1,
                      "partyId": "party-example",
                      "partyVersion": 1,
                      "partyHash": "sha256:abababababababababababababababababababababababababababababababab"
                    },
                    "kind": "organization",
                    "displayName": "Cedar Bicycle Repair",
                    "nameKey": "cedar-bicycle-repair",
                    "lifecycleStatus": "lead",
                    "defaultCurrency": "USD",
                    "occVersion": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "contacts": [
                    {
                      "workspaceId": "workspace-example",
                      "customerId": "customer-example",
                      "contactMethodId": "contact-example",
                      "type": "email",
                      "valueKey": "value-key-example",
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z"
                    }
                  ],
                  "addresses": [
                    {
                      "workspaceId": "workspace-example",
                      "customerId": "customer-example",
                      "addressId": "address-example",
                      "kind": "billing",
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z"
                    }
                  ],
                  "partyChildren": {
                    "status": "unavailable",
                    "reason": "Native Party child pages are not loaded in this illustrative example."
                  },
                  "stats": {
                    "workspaceId": "workspace-example",
                    "customerId": "customer-example",
                    "version": 1,
                    "financialTotals": [],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "assets": []
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/customers/{customerId}": {
      "get": {
        "operationId": "get-customer",
        "tags": ["Customers"],
        "summary": "Get a customer",
        "description": "Read a customer profile, including resolved contacts and addresses.\n\nRequires the Party profiles capability. Customer identity must resolve to the workspace's canonical Party record. Unavailable identity evidence returns 503; it is not an empty customer record.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["customers.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerProfileResolvedRecordSchema"
                },
                "example": {
                  "customer": {
                    "workspaceId": "workspace-example",
                    "customerId": "customer-example",
                    "partyRef": {
                      "schemaVersion": "zelio.party.v1",
                      "workspaceId": "workspace-example",
                      "workspaceLifecycleEpoch": 1,
                      "partyId": "party-example",
                      "partyVersion": 1,
                      "partyHash": "sha256:abababababababababababababababababababababababababababababababab"
                    },
                    "kind": "organization",
                    "displayName": "Cedar Bicycle Repair",
                    "nameKey": "cedar-bicycle-repair",
                    "lifecycleStatus": "lead",
                    "defaultCurrency": "USD",
                    "occVersion": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "contacts": [
                    {
                      "workspaceId": "workspace-example",
                      "customerId": "customer-example",
                      "contactMethodId": "contact-example",
                      "type": "email",
                      "valueKey": "value-key-example",
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z"
                    }
                  ],
                  "addresses": [
                    {
                      "workspaceId": "workspace-example",
                      "customerId": "customer-example",
                      "addressId": "address-example",
                      "kind": "billing",
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z"
                    }
                  ],
                  "partyChildren": {
                    "status": "unavailable",
                    "reason": "Native Party child pages are not loaded in this illustrative example."
                  },
                  "stats": {
                    "workspaceId": "workspace-example",
                    "customerId": "customer-example",
                    "version": 1,
                    "financialTotals": [],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "assets": []
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "patch": {
        "operationId": "update-customer",
        "tags": ["Customers"],
        "summary": "Update a customer",
        "description": "Change customer fields, contacts, or addresses.\n\nRequires the Party profiles capability. Customer identity must resolve to the workspace's canonical Party record. Unavailable identity evidence returns 503; it is not an empty customer record. Supply at least one field, contact, or address change. Identity, contact, and address updates require both metadata.idempotencyKey and metadata.occVersion. Replace the example version with the version from your current customer. On a concurrency conflict, read the customer again and reconcile the change.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["customers.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/customerUpdateRequestSchema"
              },
              "example": {
                "metadata": {
                  "idempotencyKey": "external-job-2026-09-14-001",
                  "source": "integration",
                  "occVersion": 1
                },
                "patch": {
                  "displayName": "Cedar Bicycle Workshop"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerProfileResolvedRecordSchema"
                },
                "example": {
                  "customer": {
                    "workspaceId": "workspace-example",
                    "customerId": "customer-example",
                    "partyRef": {
                      "schemaVersion": "zelio.party.v1",
                      "workspaceId": "workspace-example",
                      "workspaceLifecycleEpoch": 1,
                      "partyId": "party-example",
                      "partyVersion": 1,
                      "partyHash": "sha256:abababababababababababababababababababababababababababababababab"
                    },
                    "kind": "organization",
                    "displayName": "Cedar Bicycle Repair",
                    "nameKey": "cedar-bicycle-repair",
                    "lifecycleStatus": "lead",
                    "defaultCurrency": "USD",
                    "occVersion": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "contacts": [
                    {
                      "workspaceId": "workspace-example",
                      "customerId": "customer-example",
                      "contactMethodId": "contact-example",
                      "type": "email",
                      "valueKey": "value-key-example",
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z"
                    }
                  ],
                  "addresses": [
                    {
                      "workspaceId": "workspace-example",
                      "customerId": "customer-example",
                      "addressId": "address-example",
                      "kind": "billing",
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z"
                    }
                  ],
                  "partyChildren": {
                    "status": "unavailable",
                    "reason": "Native Party child pages are not loaded in this illustrative example."
                  },
                  "stats": {
                    "workspaceId": "workspace-example",
                    "customerId": "customer-example",
                    "version": 1,
                    "financialTotals": [],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "assets": []
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/customers/summaries/batch": {
      "post": {
        "operationId": "customer-summaries",
        "tags": ["Customers"],
        "summary": "Read customer summaries",
        "description": "Resolve up to 100 distinct customer IDs in one read request.\n\nRequires the Party profiles capability. Customer identity must resolve to the workspace's canonical Party record. Unavailable identity evidence returns 503; it is not an empty customer record. IDs must be unique. Missing IDs are returned in missingCustomerIds. This POST reads data and does not create customers.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["customers.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/customerSummaryBatchRequestSchema"
              },
              "example": {
                "customerIds": ["customer-example"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerSummaryBatchResponseSchema"
                },
                "example": {
                  "items": [
                    {
                      "customerId": "customer-example",
                      "partyRef": {
                        "schemaVersion": "zelio.party.v1",
                        "workspaceId": "workspace-example",
                        "workspaceLifecycleEpoch": 1,
                        "partyId": "party-example",
                        "partyVersion": 1,
                        "partyHash": "sha256:abababababababababababababababababababababababababababababababab"
                      },
                      "displayName": "Cedar Bicycle Repair",
                      "kind": "organization",
                      "lifecycleStatus": "lead"
                    }
                  ],
                  "missingCustomerIds": []
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/work-items": {
      "get": {
        "operationId": "list-work-items",
        "tags": ["Work items"],
        "summary": "List work items",
        "description": "Read a page of work items with their document links and process context.\n\nRequires an active workspace and permission to use Work items. Creation validates the workspace's configured tags and workflow stages. You can select an exact released process with startProcessRef; otherwise process matching continues asynchronously under the workspace's released rules. A created record may still have a running, waiting, or deferred process. Read the record to inspect its state. activeOnly=true excludes work whose explicit stage is terminal, or whose process is completed or canceled when no explicit stage exists. Keep activeOnly, limit, and workspace unchanged when following nextToken. Results are under results, unlike the customer list's items field.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["work.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "exclusiveMinimum": true,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activeOnly",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/workItemListResponseSchema"
                },
                "example": {
                  "results": [
                    {
                      "workItem": {
                        "workspaceId": "workspace-example",
                        "workItemId": "work-item-example",
                        "workItemTypeKey": "work-item-type-key-example",
                        "occVersion": 1,
                        "createdAt": "2026-09-16T00:00:00.000Z",
                        "updatedAt": "2026-09-16T00:00:00.000Z"
                      },
                      "docLinks": [],
                      "metadata": {
                        "occVersion": 1
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "post": {
        "operationId": "create-work-item",
        "tags": ["Work items"],
        "summary": "Create a work item",
        "description": "Create work with configured tags, workflow stages, and an optional released process.\n\nRequires an active workspace and permission to use Work items. Creation validates the workspace's configured tags and workflow stages. You can select an exact released process with startProcessRef; otherwise process matching continues asynchronously under the workspace's released rules. A created record may still have a running, waiting, or deferred process. Read the record to inspect its state. metadata.idempotencyKey is required. The workspace comes from the workspace query parameter; omit the top-level workspaceId field from the body. Keep any nested reference IDs required by the request schema. Replace your-configured-work-type with a workItemTypeKey from your workspace configuration. Keep the same command and key after a timeout or uncertain outcome.",
        "x-availability": "beta",
        "x-permissions": {
          "all": [],
          "anyOf": ["operations.write", "work.write"]
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/workItemCreateRequestSchema"
              },
              "example": {
                "metadata": {
                  "idempotencyKey": "external-job-2026-09-14-001",
                  "source": "integration"
                },
                "workItem": {
                  "title": "Inspect the customer's bicycle",
                  "workItemTypeKey": "your-configured-work-type"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/workItemResponseSchema"
                },
                "example": {
                  "workItem": {
                    "workspaceId": "workspace-example",
                    "workItemId": "work-item-example",
                    "workItemTypeKey": "work-item-type-key-example",
                    "occVersion": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "docLinks": [],
                  "metadata": {
                    "occVersion": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/work-items/{workItemId}": {
      "get": {
        "operationId": "get-work-item",
        "tags": ["Work items"],
        "summary": "Get a work item",
        "description": "Read one work item and its current process context.\n\nRequires an active workspace and permission to use Work items. Creation validates the workspace's configured tags and workflow stages. You can select an exact released process with startProcessRef; otherwise process matching continues asynchronously under the workspace's released rules. A created record may still have a running, waiting, or deferred process. Read the record to inspect its state.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["work.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "workItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "operatingViewId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "processRunId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/workItemResponseSchema"
                },
                "example": {
                  "workItem": {
                    "workspaceId": "workspace-example",
                    "workItemId": "work-item-example",
                    "workItemTypeKey": "work-item-type-key-example",
                    "occVersion": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "docLinks": [],
                  "metadata": {
                    "occVersion": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "patch": {
        "operationId": "update-work-item",
        "tags": ["Work items"],
        "summary": "Update a work item",
        "description": "Change writable work fields using the current record version.\n\nRequires an active workspace and permission to use Work items. Creation validates the workspace's configured tags and workflow stages. You can select an exact released process with startProcessRef; otherwise process matching continues asynchronously under the workspace's released rules. A created record may still have a running, waiting, or deferred process. Read the record to inspect its state. The workspace comes from the query and workItemId from the path; omit both top-level ID fields from the body. Keep any nested reference IDs required by the request schema. Supply metadata.occVersion from the GET response's metadata.occVersion when updating a previously read record; an occToken alone does not preserve that read version. Replace the example's 1 with the version you read. Save the exact workspace, workItemId, key, version, optional token, and body before sending. After a timeout or uncertain outcome, retain and retry that original command when appropriate; do not refresh its version or generate another key. A replay can return the stored original result; GET the work item to inspect current state. Process transitions use their own commands; changing work fields does not complete a running process.",
        "x-availability": "beta",
        "x-permissions": {
          "all": [],
          "anyOf": ["operations.write", "work.write"]
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "workItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/workItemUpdateRequestSchema"
              },
              "example": {
                "metadata": {
                  "idempotencyKey": "external-job-2026-09-14-001",
                  "source": "integration",
                  "occVersion": 1
                },
                "patch": {
                  "title": "Inspect brakes and drivetrain"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/workItemResponseSchema"
                },
                "example": {
                  "workItem": {
                    "workspaceId": "workspace-example",
                    "workItemId": "work-item-example",
                    "workItemTypeKey": "work-item-type-key-example",
                    "occVersion": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "docLinks": [],
                  "metadata": {
                    "occVersion": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/work-items/{workItemId}/scheduling": {
      "get": {
        "operationId": "work-item-scheduling",
        "tags": ["Work items"],
        "summary": "Read work scheduling",
        "description": "Read the bookings and reservations attached to a work item.\n\nRequires Work items, Bookings, and Resource scheduling capabilities, plus both work.view and scheduling.view. Returns 404 when the work item does not exist.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["work.view", "scheduling.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "workItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/workItemSchedulingResponseSchema"
                },
                "example": {
                  "workItem": {
                    "workspaceId": "workspace-example",
                    "workItemId": "work-item-example",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "title": "Inspect the customer's bicycle",
                    "workItemTypeKey": "work-item-type-key-example"
                  },
                  "docLinks": [],
                  "assignments": [],
                  "booking": {
                    "workspaceId": "workspace-example",
                    "bookingId": "booking-id-example",
                    "bookingTypeReleaseId": "booking-type-release-id-example",
                    "state": "confirmed",
                    "interval": {
                      "startAt": "2026-09-16T00:00:00.000Z",
                      "endAt": "2026-09-16T01:00:00.000Z",
                      "sourceTimeZone": "source-time-zone-example",
                      "startOffsetMinutes": 1,
                      "endOffsetMinutes": 1,
                      "displayDate": "2026-09-16",
                      "displayStartTime": "09:00",
                      "displayEndTime": "10:00"
                    },
                    "subjectRefs": [],
                    "reservationIds": [],
                    "reservationManifestHash": "abababababababababababababababababababababababababababababababab",
                    "dispatchEvidence": [],
                    "dispatchFulfillment": [],
                    "dependencyLock": {
                      "calendarReleaseId": "calendar-release-id-example",
                      "schemaReleaseId": "schema-release-id-example",
                      "policyReleaseId": "policy-release-id-example",
                      "selectorPlanReleaseId": "selector-plan-release-id-example",
                      "nativeAdapterReleaseIds": [],
                      "sourceRefs": [
                        {
                          "sourceKind": "source-kind-example",
                          "sourceId": "source-id-example",
                          "sourceVersion": 1,
                          "sourceHash": "abababababababababababababababababababababababababababababababab",
                          "releaseId": "release-id-example",
                          "category": "configuration"
                        }
                      ],
                      "closureByCategory": {
                        "configuration": [
                          {
                            "sourceKind": "source-kind-example",
                            "sourceId": "source-id-example",
                            "sourceVersion": 1,
                            "sourceHash": "abababababababababababababababababababababababababababababababab",
                            "releaseId": "release-id-example",
                            "category": "configuration"
                          }
                        ],
                        "calendar": [
                          {
                            "sourceKind": "source-kind-example",
                            "sourceId": "source-id-example",
                            "sourceVersion": 1,
                            "sourceHash": "abababababababababababababababababababababababababababababababab",
                            "releaseId": "release-id-example",
                            "category": "configuration"
                          }
                        ],
                        "policy": [
                          {
                            "sourceKind": "source-kind-example",
                            "sourceId": "source-id-example",
                            "sourceVersion": 1,
                            "sourceHash": "abababababababababababababababababababababababababababababababab",
                            "releaseId": "release-id-example",
                            "category": "configuration"
                          }
                        ],
                        "selector": [
                          {
                            "sourceKind": "source-kind-example",
                            "sourceId": "source-id-example",
                            "sourceVersion": 1,
                            "sourceHash": "abababababababababababababababababababababababababababababababab",
                            "releaseId": "release-id-example",
                            "category": "configuration"
                          }
                        ],
                        "resource": [],
                        "workforce": [],
                        "asset": [],
                        "project": [],
                        "document": [],
                        "commercial": [],
                        "notification": [],
                        "recurrence": [],
                        "native": []
                      },
                      "sha256": "abababababababababababababababababababababababababababababababab"
                    },
                    "nativeEvidenceRefs": [],
                    "commercialEvidenceRefs": [],
                    "documentEvidenceRefs": [],
                    "settlementEffectRefs": [],
                    "confirmationGateResultRefs": [],
                    "sourceHash": "abababababababababababababababababababababababababababababababab",
                    "occVersion": 1,
                    "sourceCommandId": "source-command-id-example",
                    "sourceVersion": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "reservations": [],
                  "schedulingCoverage": {
                    "status": "complete",
                    "reason": "partial_booking_reference"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/products": {
      "get": {
        "operationId": "list-products",
        "tags": ["Products"],
        "summary": "List products and services",
        "description": "Read catalog records for goods, services, and rentals with optional filters.\n\nReturns active products by default. Set includeArchived when an archive view is needed. Keep every filter and limit unchanged when following nextToken. Product records are typed by kind, so read the kind before interpreting kind-specific fields.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["catalog.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["goods", "service", "rental"]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["active", "archived"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "assetItemId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/businessProductListResponseSchema"
                },
                "example": {
                  "items": [
                    {
                      "workspaceId": "workspace-example",
                      "productId": "product-example",
                      "status": "active",
                      "name": "name-example",
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z",
                      "occVersion": 1,
                      "kind": "goods",
                      "components": [
                        {
                          "itemId": "item-example",
                          "qty": 1
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "post": {
        "operationId": "create-product",
        "tags": ["Products"],
        "summary": "Create a product or service",
        "description": "Add a catalog record for goods, a service, or a rental product.\n\nmetadata.idempotencyKey is required. Reuse the same key and payload when retrying an uncertain write. Product IDs are deterministic when the request does not supply one.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["catalog.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/businessProductCreateRequestSchema"
              },
              "example": {
                "product": {
                  "kind": "service",
                  "name": "Brake inspection",
                  "status": "active",
                  "billingUnit": "session"
                },
                "metadata": {
                  "idempotencyKey": "product-create-2026-09-15-001",
                  "source": "integration"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/businessProductResponseSchema"
                },
                "example": {
                  "product": {
                    "workspaceId": "workspace-example",
                    "productId": "product-example",
                    "status": "active",
                    "name": "name-example",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "occVersion": 1,
                    "kind": "goods",
                    "components": [
                      {
                        "itemId": "item-example",
                        "qty": 1
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/products/catalog": {
      "get": {
        "operationId": "lookup-product-catalog",
        "tags": ["Products"],
        "summary": "Look up catalog pricing",
        "description": "Resolve a sellable goods or service product and its current pricing projection.\n\nkind is required. Use intent=query with query for text lookup or intent=scan with scan for a code lookup. Pricing depends on the workspace's Economic offer authority; an unavailable authority returns 503 instead of an unpriced success.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["catalog.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": ["goods", "service"]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["active", "archived"]
            }
          },
          {
            "name": "intent",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["query", "scan"]
            }
          },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            }
          },
          {
            "name": "scan",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            }
          },
          {
            "name": "priceBookCode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 96
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/businessProductCatalogLookupResponseSchema"
                },
                "example": {
                  "items": [
                    {
                      "product": {
                        "workspaceId": "workspace-example",
                        "productId": "product-example",
                        "status": "active",
                        "name": "name-example",
                        "createdAt": "2026-09-16T00:00:00.000Z",
                        "updatedAt": "2026-09-16T00:00:00.000Z",
                        "occVersion": 1,
                        "kind": "goods",
                        "components": [
                          {
                            "itemId": "item-example",
                            "qty": 1
                          }
                        ]
                      },
                      "pricing": {
                        "currency": "USD",
                        "unitPriceCents": 1,
                        "basePriceCents": 1
                      },
                      "catalogSource": {
                        "kind": "goods_product",
                        "id": "id-example",
                        "label": "Main warehouse",
                        "version": 1,
                        "sourceHash": "abababababababababababababababababababababababababababababababab",
                        "offerId": "offer-id-example",
                        "offerRevision": 1,
                        "offerSourceHash": "abababababababababababababababababababababababababababababababab",
                        "pricingHash": "abababababababababababababababababababababababababababababababab",
                        "offerPriceBookId": "offer-price-book-id-example"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/products/{productId}": {
      "get": {
        "operationId": "get-product",
        "tags": ["Products"],
        "summary": "Get a product",
        "description": "Read one product, service, or rental catalog record.\n\nReturns 404 when productId is not present in the workspace. The response's kind determines the fields available on product.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["catalog.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/businessProductResponseSchema"
                },
                "example": {
                  "product": {
                    "workspaceId": "workspace-example",
                    "productId": "product-example",
                    "status": "active",
                    "name": "name-example",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "occVersion": 1,
                    "kind": "goods",
                    "components": [
                      {
                        "itemId": "item-example",
                        "qty": 1
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "patch": {
        "operationId": "update-product",
        "tags": ["Products"],
        "summary": "Update a product or service",
        "description": "Change writable fields on an existing catalog record.\n\nThe request kind must match the stored product kind. Send metadata.occVersion from the current record with the idempotency key. A stale version returns 409; read the product again before deciding how to merge the change.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["catalog.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/businessProductUpdateRequestSchema"
              },
              "example": {
                "kind": "service",
                "patch": {
                  "name": "Brake inspection and adjustment"
                },
                "metadata": {
                  "idempotencyKey": "product-update-2026-09-15-001",
                  "source": "integration",
                  "occVersion": 1
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/businessProductResponseSchema"
                },
                "example": {
                  "product": {
                    "workspaceId": "workspace-example",
                    "productId": "product-example",
                    "status": "active",
                    "name": "name-example",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "occVersion": 1,
                    "kind": "goods",
                    "components": [
                      {
                        "itemId": "item-example",
                        "qty": 1
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "delete": {
        "operationId": "archive-product",
        "tags": ["Products"],
        "summary": "Archive a product",
        "description": "Retire a catalog record without deleting it.\n\nArchiving sets the product status to archived; the record stays readable and list operations exclude it unless includeArchived is set. metadata must include idempotencyKey and the current occVersion. A stale version returns 409 and an unknown product returns 404. Keep the same key and payload when retrying.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["catalog.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/requiredIdempotencyOperationMetadataSchema"
              },
              "example": {
                "metadata": {
                  "idempotencyKey": "product-archive-2026-09-16-001",
                  "source": "integration",
                  "occVersion": 1
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/businessProductResponseSchema"
                },
                "example": {
                  "product": {
                    "workspaceId": "workspace-example",
                    "productId": "product-example",
                    "status": "active",
                    "name": "name-example",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "occVersion": 1,
                    "kind": "goods",
                    "components": [
                      {
                        "itemId": "item-example",
                        "qty": 1
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/locations": {
      "get": {
        "operationId": "list-inventory-locations",
        "tags": ["Inventory locations"],
        "summary": "List inventory locations",
        "description": "Read warehouses, bins, and other inventory locations in a workspace.\n\nLocations are active by default. includeArchived and includeDescendants are explicit boolean filters. When locationId is supplied with includeDescendants, the result includes that location's hierarchy. Keep filters unchanged when following nextToken.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["inventory.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["active", "archived"]
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "locationId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "includeDescendants",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inventoryLocationListResponseSchema"
                },
                "example": {
                  "locations": [
                    {
                      "workspaceId": "workspace-example",
                      "locationId": "location-example",
                      "label": "Main warehouse",
                      "status": "active",
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "post": {
        "operationId": "create-inventory-location",
        "tags": ["Inventory locations"],
        "summary": "Create an inventory location",
        "description": "Add a warehouse, bin, or other inventory location.\n\nUse operationMetadata.idempotencyKey when a retry could repeat the create. The server generates a stable location ID when locationId is omitted. The workspace ID is taken from the workspace query parameter.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["inventory.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inventoryLocationCreateRequestSchema"
              },
              "example": {
                "label": "Main warehouse",
                "type": "warehouse",
                "operationMetadata": {
                  "idempotencyKey": "location-create-2026-09-15-001"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Existing location returned for a replayed creation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inventoryLocationResponseSchema"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inventoryLocationResponseSchema"
                },
                "example": {
                  "location": {
                    "workspaceId": "workspace-example",
                    "locationId": "location-example",
                    "label": "Main warehouse",
                    "status": "active",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "422": {
            "description": "The requested hierarchy exceeds its depth or size limit. Choose a shallower parent or reduce the hierarchy before retrying."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/locations/{locationId}": {
      "get": {
        "operationId": "get-inventory-location",
        "tags": ["Inventory locations"],
        "summary": "Get an inventory location",
        "description": "Read one inventory location and its capabilities.\n\nReturns 404 when locationId is not present in the workspace. Archived locations remain addressable so dependent records can retain their history.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["inventory.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "locationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inventoryLocationResponseSchema"
                },
                "example": {
                  "location": {
                    "workspaceId": "workspace-example",
                    "locationId": "location-example",
                    "label": "Main warehouse",
                    "status": "active",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "patch": {
        "operationId": "update-inventory-location",
        "tags": ["Inventory locations"],
        "summary": "Update an inventory location",
        "description": "Change the label, hierarchy, address, or capabilities.\n\nSend the current record's updatedAt value in an If-Match header. The route rejects missing preconditions with 428 and stale values with a conflict. Keep operationMetadata.idempotencyKey stable when retrying.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["inventory.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "locationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "description": "updatedAt value from the current location record.",
            "example": "2026-09-14T00:00:00.000Z",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inventoryLocationUpdateRequestSchema"
              },
              "example": {
                "label": "Main warehouse and receiving",
                "operationMetadata": {
                  "idempotencyKey": "location-update-2026-09-15-001",
                  "occVersion": 1
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inventoryLocationResponseSchema"
                },
                "example": {
                  "location": {
                    "workspaceId": "workspace-example",
                    "locationId": "location-example",
                    "label": "Main warehouse",
                    "status": "active",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "422": {
            "description": "The requested hierarchy exceeds its depth or size limit. Choose a shallower parent or reduce the hierarchy before retrying."
          },
          "428": {
            "description": "Required If-Match precondition is missing. Read the current record and send its updatedAt value in If-Match."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "delete": {
        "operationId": "archive-inventory-location",
        "tags": ["Inventory locations"],
        "summary": "Archive an inventory location",
        "description": "Retire a location without deleting it.\n\nArchiving sets the location status to archived; the record stays addressable so dependent records keep their history. The If-Match header must carry the current record's updatedAt value: a missing value returns 428 and a stale value is rejected. The body is optional; send operationMetadata.idempotencyKey when a retry could repeat the archive. Success returns 204 with no body, including for an exact retry; confirm state with a GET.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["inventory.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "locationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "description": "updatedAt value from the current location record.",
            "example": "2026-09-14T00:00:00.000Z",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/archiveRequestSchema"
              },
              "example": {
                "operationMetadata": {
                  "idempotencyKey": "location-archive-2026-09-16-001"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Success. The response has no body."
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "428": {
            "description": "Required If-Match precondition is missing. Read the current record and send its updatedAt value in If-Match."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/vehicles/catalog/makes": {
      "get": {
        "operationId": "list-vehicle-makes",
        "tags": ["Vehicle catalog"],
        "summary": "List vehicle makes",
        "description": "Search the active vehicle catalog's makes.\n\nq performs a catalog search and limit bounds the result. The response includes the active catalog snapshot used for the read, or null when no snapshot is active.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["operations.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/vehicleCatalogMakesResponseSchema"
                },
                "example": {
                  "snapshot": {
                    "catalogId": "catalog-id-example",
                    "provider": "vpic",
                    "snapshotId": "snapshot-id-example",
                    "sourceUrl": "https://example.com/catalog",
                    "sourceHash": "sha256:abababababababababababababababababababababababababababababababab",
                    "fetchedAt": "2026-09-16T00:00:00.000Z",
                    "builtAt": "2026-09-16T00:00:00.000Z",
                    "activatedAt": "2026-09-16T00:00:00.000Z",
                    "makeCount": 1,
                    "makeChunkCount": 1,
                    "modelCount": 1,
                    "wmiCount": 1,
                    "patternCount": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "makes": [
                    {
                      "makeId": 1,
                      "name": "Honda"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/vehicles/catalog/models": {
      "get": {
        "operationId": "list-vehicle-models",
        "tags": ["Vehicle catalog"],
        "summary": "List vehicle models",
        "description": "List models for one vehicle make.\n\nmake is required and must match the catalog's make name. q and limit narrow the model list. The response keeps the snapshot and resolved make alongside models so a caller can record catalog provenance.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["operations.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "make",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/vehicleCatalogModelsResponseSchema"
                },
                "example": {
                  "snapshot": {
                    "catalogId": "catalog-id-example",
                    "provider": "vpic",
                    "snapshotId": "snapshot-id-example",
                    "sourceUrl": "https://example.com/catalog",
                    "sourceHash": "sha256:abababababababababababababababababababababababababababababababab",
                    "fetchedAt": "2026-09-16T00:00:00.000Z",
                    "builtAt": "2026-09-16T00:00:00.000Z",
                    "activatedAt": "2026-09-16T00:00:00.000Z",
                    "makeCount": 1,
                    "makeChunkCount": 1,
                    "modelCount": 1,
                    "wmiCount": 1,
                    "patternCount": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "make": {
                    "makeId": 1,
                    "name": "Honda"
                  },
                  "models": [
                    {
                      "modelId": 1,
                      "makeId": 1,
                      "makeName": "Honda",
                      "name": "Civic"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/vehicles/vin/decode": {
      "post": {
        "operationId": "decode-vehicle-vin",
        "tags": ["Vehicle catalog"],
        "summary": "Decode a vehicle VIN",
        "description": "Resolve a VIN against Zelikore's active vehicle catalog and return evidence about the match.\n\nA decoded specification is evidence from the active catalog, not an assertion that every VIN field is known. Check confidence, checkDigit, and candidates before using the result to create or update an asset.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["operations.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/vehicleVinDecodeRequestSchema"
              },
              "example": {
                "vin": "1HGCM82633A004352"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/vehicleVinDecodeResponseSchema"
                },
                "example": {
                  "vin": "1HGCM82633A004352",
                  "source": "vpic_seed",
                  "snapshot": {
                    "catalogId": "catalog-id-example",
                    "provider": "vpic",
                    "snapshotId": "snapshot-id-example",
                    "sourceUrl": "https://example.com/catalog",
                    "sourceHash": "sha256:abababababababababababababababababababababababababababababababab",
                    "fetchedAt": "2026-09-16T00:00:00.000Z",
                    "builtAt": "2026-09-16T00:00:00.000Z",
                    "activatedAt": "2026-09-16T00:00:00.000Z",
                    "makeCount": 1,
                    "makeChunkCount": 1,
                    "modelCount": 1,
                    "wmiCount": 1,
                    "patternCount": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  },
                  "decoded": {},
                  "confidence": "exact_pattern",
                  "checkDigit": {
                    "expected": "3",
                    "actual": "3",
                    "valid": true
                  },
                  "candidates": {
                    "makes": [
                      {
                        "makeId": 1,
                        "name": "Honda"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/vendors": {
      "get": {
        "operationId": "list-vendors",
        "tags": ["Vendors"],
        "summary": "List vendors",
        "description": "Read payables and purchasing vendors for a workspace.\n\nRequires the payables entitlement and both Party profiles and procurement capabilities. Personal contact values are resolved according to the caller's vendors.view permission. Keep filters unchanged when following nextToken.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["vendors.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["draft", "active", "archived"]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payableVendorListResponseSchema"
                },
                "example": {
                  "vendors": [
                    {
                      "workspaceId": "workspace-example",
                      "vendorId": "vendor-example",
                      "partyRef": {
                        "schemaVersion": "zelio.party.v1",
                        "workspaceId": "workspace-example",
                        "workspaceLifecycleEpoch": 1,
                        "partyId": "party-example",
                        "partyVersion": 1,
                        "partyHash": "sha256:abababababababababababababababababababababababababababababababab"
                      },
                      "displayName": "Cedar Bicycle Repair",
                      "currency": "USD",
                      "status": "draft",
                      "contacts": [
                        {
                          "contactId": "contact-id-example",
                          "name": "name-example",
                          "createdAt": "2026-09-16T00:00:00.000Z",
                          "updatedAt": "2026-09-16T00:00:00.000Z"
                        }
                      ],
                      "addresses": [
                        {
                          "addressId": "address-example",
                          "kind": "billing",
                          "createdAt": "2026-09-16T00:00:00.000Z",
                          "updatedAt": "2026-09-16T00:00:00.000Z"
                        }
                      ],
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z",
                      "version": 1
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "post": {
        "operationId": "create-vendor",
        "tags": ["Vendors"],
        "summary": "Create a vendor",
        "description": "Admit a Party-backed vendor with contacts, addresses, and purchasing profiles.\n\nCreating a new Party requires a stable idempotency key. Reuse the same command key and payload after a timeout. The vendor record is a role on a canonical Party; it does not own a second identity. With vendor.partyAdmission, vendor.profiles.purchasing.minimumOrderAmount is in major currency units: whole values must be safe integers and fractional values must resolve exactly to safe integer cents. vendor.profiles.payables.taxProfile.providerRefs[].amountCents uses nonnegative safe integer minor units; include amountCents and currency together or omit both. For USD 12.34, use minimumOrderAmount: 12.34 and amountCents: 1234. A new Party admission with minimumOrderAmount: 12.345 returns 400; fractional provider amountCents: 12.34 returns 400.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["vendors.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/payableVendorCreateRequestSchema"
              },
              "example": {
                "vendor": {
                  "partyAdmission": {
                    "kind": "organization",
                    "displayLabel": "Northwind Parts"
                  },
                  "displayName": "Northwind Parts",
                  "currency": "USD",
                  "status": "active",
                  "contacts": [],
                  "addresses": []
                },
                "metadata": {
                  "idempotencyKey": "vendor-create-2026-09-15-001",
                  "source": "integration"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Existing vendor returned for a replayed creation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payableVendorResponseSchema"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payableVendorResponseSchema"
                },
                "example": {
                  "vendor": {
                    "workspaceId": "workspace-example",
                    "vendorId": "vendor-example",
                    "partyRef": {
                      "schemaVersion": "zelio.party.v1",
                      "workspaceId": "workspace-example",
                      "workspaceLifecycleEpoch": 1,
                      "partyId": "party-example",
                      "partyVersion": 1,
                      "partyHash": "sha256:abababababababababababababababababababababababababababababababab"
                    },
                    "displayName": "Cedar Bicycle Repair",
                    "currency": "USD",
                    "status": "draft",
                    "contacts": [
                      {
                        "contactId": "contact-id-example",
                        "name": "name-example",
                        "createdAt": "2026-09-16T00:00:00.000Z",
                        "updatedAt": "2026-09-16T00:00:00.000Z"
                      }
                    ],
                    "addresses": [
                      {
                        "addressId": "address-example",
                        "kind": "billing",
                        "createdAt": "2026-09-16T00:00:00.000Z",
                        "updatedAt": "2026-09-16T00:00:00.000Z"
                      }
                    ],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/vendors/{vendorId}": {
      "get": {
        "operationId": "get-vendor",
        "tags": ["Vendors"],
        "summary": "Get a vendor",
        "description": "Read one canonical Party-backed vendor record.\n\nReturns 404 when vendorId is not present in the workspace. The vendor's Party reference must still be current; stale identity evidence returns a conflict or projection-unavailable response.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["vendors.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "vendorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payableVendorResponseSchema"
                },
                "example": {
                  "vendor": {
                    "workspaceId": "workspace-example",
                    "vendorId": "vendor-example",
                    "partyRef": {
                      "schemaVersion": "zelio.party.v1",
                      "workspaceId": "workspace-example",
                      "workspaceLifecycleEpoch": 1,
                      "partyId": "party-example",
                      "partyVersion": 1,
                      "partyHash": "sha256:abababababababababababababababababababababababababababababababab"
                    },
                    "displayName": "Cedar Bicycle Repair",
                    "currency": "USD",
                    "status": "draft",
                    "contacts": [
                      {
                        "contactId": "contact-id-example",
                        "name": "name-example",
                        "createdAt": "2026-09-16T00:00:00.000Z",
                        "updatedAt": "2026-09-16T00:00:00.000Z"
                      }
                    ],
                    "addresses": [
                      {
                        "addressId": "address-example",
                        "kind": "billing",
                        "createdAt": "2026-09-16T00:00:00.000Z",
                        "updatedAt": "2026-09-16T00:00:00.000Z"
                      }
                    ],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "patch": {
        "operationId": "update-vendor",
        "tags": ["Vendors"],
        "summary": "Update a vendor",
        "description": "Change vendor identity labels, contacts, addresses, or profiles.\n\nSupply metadata.occVersion from the current vendor with the idempotency key. Vendor identity must remain Party-backed and current; stale references and version conflicts return a recoverable error.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["vendors.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "vendorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/payableVendorUpdateRequestSchema"
              },
              "example": {
                "patch": {
                  "displayName": "Northwind Parts West"
                },
                "metadata": {
                  "idempotencyKey": "vendor-update-2026-09-15-001",
                  "source": "integration",
                  "occVersion": 1
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payableVendorResponseSchema"
                },
                "example": {
                  "vendor": {
                    "workspaceId": "workspace-example",
                    "vendorId": "vendor-example",
                    "partyRef": {
                      "schemaVersion": "zelio.party.v1",
                      "workspaceId": "workspace-example",
                      "workspaceLifecycleEpoch": 1,
                      "partyId": "party-example",
                      "partyVersion": 1,
                      "partyHash": "sha256:abababababababababababababababababababababababababababababababab"
                    },
                    "displayName": "Cedar Bicycle Repair",
                    "currency": "USD",
                    "status": "draft",
                    "contacts": [
                      {
                        "contactId": "contact-id-example",
                        "name": "name-example",
                        "createdAt": "2026-09-16T00:00:00.000Z",
                        "updatedAt": "2026-09-16T00:00:00.000Z"
                      }
                    ],
                    "addresses": [
                      {
                        "addressId": "address-example",
                        "kind": "billing",
                        "createdAt": "2026-09-16T00:00:00.000Z",
                        "updatedAt": "2026-09-16T00:00:00.000Z"
                      }
                    ],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/purchasing/purchase-orders": {
      "get": {
        "operationId": "list-purchase-orders",
        "tags": ["Purchasing"],
        "summary": "List purchase orders",
        "description": "Read purchase orders with vendor, status, and pagination filters.\n\nRequires the workspace procurement capability. Keep vendorId, status, limit, and workspace unchanged when following nextToken. A purchase order contains canonical receiving and accounting trace fields; preserve them when storing a copy.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "vendorId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "draft",
                "ordered",
                "partially_received",
                "received",
                "cancelled",
                "closed"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchaseOrderListResponseSchema"
                },
                "example": {
                  "purchaseOrders": [
                    {
                      "workspaceId": "workspace-example",
                      "purchaseOrderId": "purchase-order-example",
                      "vendorId": "vendor-example",
                      "accountingScope": {
                        "entityId": "legal-entity-example",
                        "bookId": "accounting-book-example"
                      },
                      "currency": "USD",
                      "status": "draft",
                      "lines": [
                        {
                          "lineId": "line-example",
                          "description": "description-example",
                          "quantity": 1,
                          "unitAmount": 1,
                          "receivedQuantity": 1
                        }
                      ],
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z",
                      "version": 1
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "post": {
        "operationId": "create-purchase-order",
        "tags": ["Purchasing"],
        "summary": "Create a purchase order",
        "description": "Create a purchase order for a vendor and its requested lines.\n\nThe vendor must be transaction-ready before the order is created. Keep metadata.idempotencyKey stable after a timeout. If the request omits poNumber, Zelikore assigns the next workspace purchase-order number.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/purchaseOrderCreateRequestSchema"
              },
              "example": {
                "purchaseOrder": {
                  "vendorId": "vendor-example",
                  "currency": "USD",
                  "status": "draft",
                  "lines": [
                    {
                      "description": "Brake pads",
                      "quantity": 1,
                      "unitAmount": 12000
                    }
                  ]
                },
                "metadata": {
                  "idempotencyKey": "purchase-order-create-2026-09-15-001",
                  "source": "integration"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Existing purchase order returned for a replayed creation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchaseOrderResponseSchema"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchaseOrderResponseSchema"
                },
                "example": {
                  "purchaseOrder": {
                    "workspaceId": "workspace-example",
                    "purchaseOrderId": "purchase-order-example",
                    "vendorId": "vendor-example",
                    "accountingScope": {
                      "entityId": "legal-entity-example",
                      "bookId": "accounting-book-example"
                    },
                    "currency": "USD",
                    "status": "draft",
                    "lines": [
                      {
                        "lineId": "line-example",
                        "description": "description-example",
                        "quantity": 1,
                        "unitAmount": 1,
                        "receivedQuantity": 1
                      }
                    ],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/purchasing/purchase-orders/{purchaseOrderId}": {
      "get": {
        "operationId": "get-purchase-order",
        "tags": ["Purchasing"],
        "summary": "Get a purchase order",
        "description": "Read one purchase order and its current lines and status.\n\nReturns 404 when purchaseOrderId is not present in the workspace. Read the status and line receivedQuantity before deciding whether a follow-up mutation is valid.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "purchaseOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchaseOrderResponseSchema"
                },
                "example": {
                  "purchaseOrder": {
                    "workspaceId": "workspace-example",
                    "purchaseOrderId": "purchase-order-example",
                    "vendorId": "vendor-example",
                    "accountingScope": {
                      "entityId": "legal-entity-example",
                      "bookId": "accounting-book-example"
                    },
                    "currency": "USD",
                    "status": "draft",
                    "lines": [
                      {
                        "lineId": "line-example",
                        "description": "description-example",
                        "quantity": 1,
                        "unitAmount": 1,
                        "receivedQuantity": 1
                      }
                    ],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "patch": {
        "operationId": "update-purchase-order",
        "tags": ["Purchasing"],
        "summary": "Update a purchase order",
        "description": "Change writable order fields before or during receiving.\n\nSupply metadata.occVersion from the current order with the idempotency key. The route validates inventory-linked lines and lifecycle state before applying the patch; conflicts return 409.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "purchaseOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/purchaseOrderUpdateRequestSchema"
              },
              "example": {
                "patch": {
                  "status": "ordered"
                },
                "metadata": {
                  "idempotencyKey": "purchase-order-update-2026-09-15-001",
                  "source": "integration",
                  "occVersion": 1
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchaseOrderResponseSchema"
                },
                "example": {
                  "purchaseOrder": {
                    "workspaceId": "workspace-example",
                    "purchaseOrderId": "purchase-order-example",
                    "vendorId": "vendor-example",
                    "accountingScope": {
                      "entityId": "legal-entity-example",
                      "bookId": "accounting-book-example"
                    },
                    "currency": "USD",
                    "status": "draft",
                    "lines": [
                      {
                        "lineId": "line-example",
                        "description": "description-example",
                        "quantity": 1,
                        "unitAmount": 1,
                        "receivedQuantity": 1
                      }
                    ],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/customers/{customerId}/statement": {
      "post": {
        "operationId": "generate-customer-statement",
        "tags": ["Customers"],
        "summary": "Generate a customer statement",
        "description": "Start an asynchronous customer statement run.\n\nRequires the Party profiles capability. Customer identity must resolve to the workspace's canonical Party record. Unavailable identity evidence returns 503; it is not an empty customer record. metadata.idempotencyKey is required; the workspace and customer are taken from the route, not the body. 202 is the normal response: retain run.runId and read that run until its status is completed or review_required. A run that finished synchronously returns 200. Replaying the same command returns the same run. A conflicting run returns 409 and an unknown customer returns 404.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["operations.write", "finance.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/customerStatementGenerateRequestSchema"
              },
              "example": {
                "metadata": {
                  "idempotencyKey": "external-job-2026-09-14-001",
                  "source": "integration"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Statement run completed synchronously.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerStatementGenerateResponseSchema"
                }
              }
            }
          },
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerStatementGenerateResponseSchema"
                },
                "example": {
                  "run": {
                    "workspaceId": "workspace-example",
                    "runId": "run-example",
                    "requestedByActorId": "requested-by-actor-id-example",
                    "customerId": "customer-example",
                    "customerDisplayName": "Cedar Bicycle Repair",
                    "asOf": "2026-09-16T00:00:00.000Z",
                    "sourceCutoffAt": "2026-09-16T00:00:00.000Z",
                    "includePaid": true,
                    "portalVisible": true,
                    "status": "pending",
                    "phase": "capture",
                    "sourceProjectionVersion": 1,
                    "sourceExpectedDocumentCount": 1,
                    "sourceScannedDocumentCount": 1,
                    "includedDocumentCount": 1,
                    "sourcePageCount": 1,
                    "sourceDigestChainSha256": "abababababababababababababababababababababababababababababababab",
                    "currencyTotals": [],
                    "attemptCount": 1,
                    "nextAttemptAt": "2026-09-16T00:00:00.000Z",
                    "recoveryShard": 1,
                    "version": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/customers/{customerId}/statement-runs/{runId}": {
      "get": {
        "operationId": "get-customer-statement-run",
        "tags": ["Customers"],
        "summary": "Read a customer statement run",
        "description": "Poll a statement run until it completes.\n\nRequires the Party profiles capability. Customer identity must resolve to the workspace's canonical Party record. Unavailable identity evidence returns 503; it is not an empty customer record. Read the same run while its status is pending, running, or retry_scheduled; retry_scheduled retains that run for server recovery and reports nextAttemptAt. Stop automatic polling at completed or review_required. review_required needs review of failureCode and failureMessage; reading or replaying generation does not resume that run. A completed run carries canonical documentReference and sourceSet references, not inline statement pages or source-claim rows. Unknown customers and runs return 404.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["customers.view", "finance.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerStatementRunResponseSchema"
                },
                "example": {
                  "run": {
                    "workspaceId": "workspace-example",
                    "runId": "run-example",
                    "requestedByActorId": "requested-by-actor-id-example",
                    "customerId": "customer-example",
                    "customerDisplayName": "Cedar Bicycle Repair",
                    "asOf": "2026-09-16T00:00:00.000Z",
                    "sourceCutoffAt": "2026-09-16T00:00:00.000Z",
                    "includePaid": true,
                    "portalVisible": true,
                    "status": "pending",
                    "phase": "capture",
                    "sourceProjectionVersion": 1,
                    "sourceExpectedDocumentCount": 1,
                    "sourceScannedDocumentCount": 1,
                    "includedDocumentCount": 1,
                    "sourcePageCount": 1,
                    "sourceDigestChainSha256": "abababababababababababababababababababababababababababababababab",
                    "currencyTotals": [],
                    "attemptCount": 1,
                    "nextAttemptAt": "2026-09-16T00:00:00.000Z",
                    "recoveryShard": 1,
                    "version": 1,
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/customers/{customerId}/service-history": {
      "get": {
        "operationId": "get-customer-service-history",
        "tags": ["Customers"],
        "summary": "Read customer service history",
        "description": "Read a customer's service documents and follow-ups.\n\nRequires the Party profiles capability. Customer identity must resolve to the workspace's canonical Party record. Unavailable identity evidence returns 503; it is not an empty customer record. Requires both customers.view and work.view. assetItemId and workItemId narrow the history; limit defaults to 24 with a 100 maximum. The coverage block reports whether the page is available, empty, or incomplete, so check it before treating a short page as the whole history. Unknown customers return 404.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["customers.view", "work.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "assetItemId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "workItemId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/serviceHistoryResponseSchema"
                },
                "example": {
                  "items": [
                    {
                      "historyId": "history-id-example",
                      "workspaceId": "workspace-example",
                      "assetItemIds": [],
                      "workItemId": "work-item-example",
                      "businessDocumentIds": [],
                      "title": "Inspect the customer's bicycle",
                      "performedAt": "2026-09-16T00:00:00.000Z",
                      "status": "completed",
                      "lineage": {
                        "workItemId": "work-item-example",
                        "businessDocumentIds": [],
                        "lineGroupIds": [],
                        "lineIds": [],
                        "operationIds": [],
                        "materialIds": [],
                        "recommendationIds": [],
                        "authorizationIds": [],
                        "inspectionIds": []
                      },
                      "releasedEvidence": [
                        {
                          "kind": "completion_report",
                          "evidenceId": "artifact-id-example",
                          "releasedAt": "2026-09-16T00:00:00.000Z",
                          "documentRef": {
                            "workspaceId": "workspace-example",
                            "artifactId": "artifact-id-example",
                            "versionId": "ver:00000000000000000001:example",
                            "editionId": "edn:00000000000000000001:example",
                            "renditionId": "rnd:00000000000000000001:example",
                            "useCaseId": "service.completion_report",
                            "documentClass": "service_completion_report",
                            "representationRole": "primary_human",
                            "mediaType": "application/pdf",
                            "fileName": "completion-report.pdf",
                            "sizeBytes": 1,
                            "sha256": "abababababababababababababababababababababababababababababababab"
                          }
                        }
                      ]
                    }
                  ],
                  "followUps": [
                    {
                      "followUpId": "follow-up-id-example",
                      "workspaceId": "workspace-example",
                      "assetItemIds": [],
                      "workItemId": "work-item-example",
                      "businessDocumentIds": [],
                      "source": {
                        "kind": "line_group",
                        "lineGroupId": "line-group-id-example"
                      },
                      "status": "deferred",
                      "title": "Inspect the customer's bicycle",
                      "actionable": true,
                      "lineage": {
                        "workItemId": "work-item-example",
                        "businessDocumentIds": [],
                        "lineGroupIds": [],
                        "lineIds": [],
                        "operationIds": [],
                        "materialIds": [],
                        "recommendationIds": [],
                        "authorizationIds": [],
                        "inspectionIds": []
                      }
                    }
                  ],
                  "coverage": {
                    "state": "available",
                    "sourceCount": 1,
                    "returnedCount": 1,
                    "skippedCount": 1,
                    "truncatedCount": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/work-items/search": {
      "get": {
        "operationId": "search-work-items",
        "tags": ["Work items"],
        "summary": "Search work items",
        "description": "Find work items by text query.\n\nRequires an active workspace and permission to use Work items. Creation validates the workspace's configured tags and workflow stages. You can select an exact released process with startProcessRef; otherwise process matching continues asynchronously under the workspace's released rules. A created record may still have a running, waiting, or deferred process. Read the record to inspect its state. query is required (1 to 200 characters); q is also accepted by the route, but use query for the published contract. activeOnly=true excludes terminal work. limit accepts at most 100. Continuation tokens are scoped to the search: keep query, activeOnly, limit, and workspace unchanged when following nextToken, and start a new search when the text or filter changes. Results share the work-item list envelope.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["work.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "activeOnly",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/workItemSearchResponseSchema"
                },
                "example": {
                  "results": [
                    {
                      "workItem": {
                        "workspaceId": "workspace-example",
                        "workItemId": "work-item-example",
                        "workItemTypeKey": "work-item-type-key-example",
                        "occVersion": 1,
                        "createdAt": "2026-09-16T00:00:00.000Z",
                        "updatedAt": "2026-09-16T00:00:00.000Z"
                      },
                      "docLinks": [],
                      "metadata": {
                        "occVersion": 1
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/purchasing/purchase-orders/{purchaseOrderId}/receive": {
      "post": {
        "operationId": "receive-purchase-order",
        "tags": ["Purchasing"],
        "summary": "Receive a purchase order",
        "description": "Record receipt of order lines.\n\nRequires both purchasing.write and inventory.write. Records the receipt and advances receiving, inventory, and accounting projections. metadata must include idempotencyKey and the order's current occVersion; a stale version returns 409. Persist receiptId and receivedAt inside receipt before sending. After a timeout or unknown outcome, retry the exact original identity, timestamp, version, and lines. purchase_order_receipt_version_rejected confirms the order advanced and that receipt is absent; reload and review quantities before creating a new command. purchase_order_receipt_not_recorded permits correction of a first submission that has never had an unknown outcome, but does not release a saved uncertain attempt. 200 means the receipt and its projections completed; 202 means the receipt was recorded while accounting projection continues asynchronously. Unknown orders return 404 and lines that fail inventory validation return 400.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.write", "inventory.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "purchaseOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/purchaseOrderReceiveRequestSchema"
              },
              "example": {
                "receipt": {
                  "lines": [
                    {
                      "lineId": "line-example",
                      "qty": 1
                    }
                  ]
                },
                "metadata": {
                  "idempotencyKey": "purchase-order-receive-2026-09-16-001",
                  "source": "integration",
                  "occVersion": 1
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchaseOrderReceiveResponseSchema"
                },
                "example": {
                  "purchaseOrder": {
                    "workspaceId": "workspace-example",
                    "purchaseOrderId": "purchase-order-example",
                    "vendorId": "vendor-example",
                    "accountingScope": {
                      "entityId": "legal-entity-example",
                      "bookId": "accounting-book-example"
                    },
                    "currency": "USD",
                    "status": "draft",
                    "lines": [
                      {
                        "lineId": "line-example",
                        "description": "description-example",
                        "quantity": 1,
                        "unitAmount": 1,
                        "receivedQuantity": 1
                      }
                    ],
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  },
                  "receipt": {
                    "workspaceId": "workspace-example",
                    "purchaseOrderId": "purchase-order-example",
                    "receiptId": "receipt-example",
                    "vendorId": "vendor-example",
                    "accountingScope": {
                      "entityId": "legal-entity-example",
                      "bookId": "accounting-book-example"
                    },
                    "currency": "USD",
                    "totalAmount": 1,
                    "sourceVersion": 0,
                    "accountingStatus": "pending",
                    "receivedAt": "2026-09-16T00:00:00.000Z",
                    "lines": [
                      {
                        "lineId": "line-example",
                        "qty": 1,
                        "unitAmount": 1
                      }
                    ],
                    "createdAt": "2026-09-16T00:00:00.000Z"
                  }
                }
              }
            }
          },
          "202": {
            "description": "Receipt recorded; accounting projection continues asynchronously.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchaseOrderReceiveResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/purchasing/purchase-orders/{purchaseOrderId}/receipts": {
      "get": {
        "operationId": "list-purchase-order-receipts",
        "tags": ["Purchasing"],
        "summary": "List purchase order receipts",
        "description": "Read every receipt recorded against one order.\n\nReturns the complete receipt set for one purchase order; the response is not paginated. Requires the workspace procurement capability.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "purchaseOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchaseOrderReceiptListResponseSchema"
                },
                "example": {
                  "receipts": [
                    {
                      "workspaceId": "workspace-example",
                      "purchaseOrderId": "purchase-order-example",
                      "receiptId": "receipt-example",
                      "vendorId": "vendor-example",
                      "accountingScope": {
                        "entityId": "legal-entity-example",
                        "bookId": "accounting-book-example"
                      },
                      "currency": "USD",
                      "totalAmount": 1,
                      "sourceVersion": 0,
                      "accountingStatus": "pending",
                      "receivedAt": "2026-09-16T00:00:00.000Z",
                      "lines": [
                        {
                          "lineId": "line-example",
                          "qty": 1,
                          "unitAmount": 1
                        }
                      ],
                      "createdAt": "2026-09-16T00:00:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/purchasing/receipts": {
      "get": {
        "operationId": "list-workspace-purchase-order-receipts",
        "tags": ["Purchasing"],
        "summary": "List workspace receipts",
        "description": "Read purchase order receipts across the workspace.\n\nRequires the workspace procurement capability. vendorId optionally limits receipts to one vendor. limit defaults to 100 with a 200 maximum. Continuation tokens are scoped to this list: keep vendorId, limit, and workspace unchanged when following nextToken, and a token from another traversal returns 400.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "vendorId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchaseOrderReceiptListResponseSchema"
                },
                "example": {
                  "receipts": [
                    {
                      "workspaceId": "workspace-example",
                      "purchaseOrderId": "purchase-order-example",
                      "receiptId": "receipt-example",
                      "vendorId": "vendor-example",
                      "accountingScope": {
                        "entityId": "legal-entity-example",
                        "bookId": "accounting-book-example"
                      },
                      "currency": "USD",
                      "totalAmount": 1,
                      "sourceVersion": 0,
                      "accountingStatus": "pending",
                      "receivedAt": "2026-09-16T00:00:00.000Z",
                      "lines": [
                        {
                          "lineId": "line-example",
                          "qty": 1,
                          "unitAmount": 1
                        }
                      ],
                      "createdAt": "2026-09-16T00:00:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/purchasing/returns": {
      "get": {
        "operationId": "list-purchasing-returns",
        "tags": ["Purchasing"],
        "summary": "List purchasing returns",
        "description": "Read vendor returns, core credits, and warranty claims.\n\nRequires the workspace procurement capability. Filter by kind, status, or vendorId. Returns are listed under purchasingReturns. Keep filters, limit, and workspace unchanged when following nextToken.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["vendor_return", "core_credit", "warranty_claim"]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "return_requested",
                "return_authorized",
                "returned",
                "warranty_review",
                "warranty_approved",
                "warranty_denied",
                "credit_pending",
                "credit_issued",
                "closed"
              ]
            }
          },
          {
            "name": "vendorId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchasingReturnListResponseSchema"
                },
                "example": {
                  "purchasingReturns": [
                    {
                      "workspaceId": "workspace-example",
                      "returnId": "return-example",
                      "sourceVersion": 1,
                      "kind": "vendor_return",
                      "status": "return_requested",
                      "operationState": "ready",
                      "vendorId": "vendor-example",
                      "currency": "USD",
                      "source": {
                        "purchaseOrderId": "purchase-order-example",
                        "receiptId": "receipt-example",
                        "receiptLine": {
                          "purchaseOrderLineId": "line-example",
                          "effectLineId": "line-example",
                          "quantity": 1
                        },
                        "material": {
                          "materialId": "material-example",
                          "workItemId": "work-item-example"
                        }
                      },
                      "sourceRefs": [
                        {
                          "kind": "accounting_sync_outbox",
                          "recordId": "record-id-example"
                        },
                        {
                          "kind": "accounting_sync_outbox",
                          "recordId": "record-id-example"
                        },
                        {
                          "kind": "accounting_sync_outbox",
                          "recordId": "record-id-example"
                        }
                      ],
                      "evidenceRefs": [
                        {
                          "evidenceId": "evidence-id-example",
                          "kind": "provider_file",
                          "refId": "ref-id-example",
                          "attachedAt": "2026-09-16T00:00:00.000Z",
                          "attachedBy": "attached-by-example"
                        }
                      ],
                      "reason": "Brake pads arrived damaged",
                      "quantity": 1,
                      "estimatedAmountCents": 1,
                      "authorizations": [
                        {
                          "authorizationId": "authorization-id-example",
                          "authorizedBy": "authorized-by-example",
                          "authorizedAt": "2026-09-16T00:00:00.000Z",
                          "recordedBy": "recorded-by-example",
                          "action": "authorize"
                        }
                      ],
                      "attempts": 1,
                      "requestHash": "abababababababababababababababababababababababababababababababab",
                      "idempotencyKey": "idempotency-key-example",
                      "createdAt": "2026-09-16T00:00:00.000Z",
                      "updatedAt": "2026-09-16T00:00:00.000Z",
                      "version": 1
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      },
      "post": {
        "operationId": "create-purchasing-return",
        "tags": ["Purchasing"],
        "summary": "Create a purchasing return",
        "description": "Open a return against one received purchase-order line.\n\nRequires both purchasing.write and work.write. Opens a vendor return, core credit, or warranty claim against one received line of one receipt. metadata.idempotencyKey is required; replaying the same command returns the existing return with replayed set to true. At least one evidence ref is required. A conflicting return identity returns 409.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.write", "work.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/purchasingReturnCreateRequestSchema"
              },
              "example": {
                "kind": "vendor_return",
                "vendorId": "vendor-example",
                "source": {
                  "purchaseOrderId": "purchase-order-example",
                  "receiptId": "receipt-example",
                  "receiptLine": {
                    "purchaseOrderLineId": "line-example",
                    "effectLineId": "line-example",
                    "quantity": 1
                  },
                  "material": {
                    "materialId": "material-example",
                    "workItemId": "work-item-example"
                  }
                },
                "reason": "Brake pads arrived damaged",
                "evidenceRefs": [
                  {
                    "evidenceId": "evidence-example",
                    "kind": "provider_file",
                    "refId": "photo-example"
                  }
                ],
                "metadata": {
                  "idempotencyKey": "purchasing-return-create-2026-09-16-001",
                  "source": "integration"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Existing return returned for a replayed creation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchasingReturnMutationResponseSchema"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchasingReturnMutationResponseSchema"
                },
                "example": {
                  "purchasingReturn": {
                    "workspaceId": "workspace-example",
                    "returnId": "return-example",
                    "sourceVersion": 1,
                    "kind": "vendor_return",
                    "status": "return_requested",
                    "operationState": "ready",
                    "vendorId": "vendor-example",
                    "currency": "USD",
                    "source": {
                      "purchaseOrderId": "purchase-order-example",
                      "receiptId": "receipt-example",
                      "receiptLine": {
                        "purchaseOrderLineId": "line-example",
                        "effectLineId": "line-example",
                        "quantity": 1
                      },
                      "material": {
                        "materialId": "material-example",
                        "workItemId": "work-item-example"
                      }
                    },
                    "sourceRefs": [
                      {
                        "kind": "accounting_sync_outbox",
                        "recordId": "record-id-example"
                      },
                      {
                        "kind": "accounting_sync_outbox",
                        "recordId": "record-id-example"
                      },
                      {
                        "kind": "accounting_sync_outbox",
                        "recordId": "record-id-example"
                      }
                    ],
                    "evidenceRefs": [
                      {
                        "evidenceId": "evidence-id-example",
                        "kind": "provider_file",
                        "refId": "ref-id-example",
                        "attachedAt": "2026-09-16T00:00:00.000Z",
                        "attachedBy": "attached-by-example"
                      }
                    ],
                    "reason": "Brake pads arrived damaged",
                    "quantity": 1,
                    "estimatedAmountCents": 1,
                    "authorizations": [
                      {
                        "authorizationId": "authorization-id-example",
                        "authorizedBy": "authorized-by-example",
                        "authorizedAt": "2026-09-16T00:00:00.000Z",
                        "recordedBy": "recorded-by-example",
                        "action": "authorize"
                      }
                    ],
                    "attempts": 1,
                    "requestHash": "abababababababababababababababababababababababababababababababab",
                    "idempotencyKey": "idempotency-key-example",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  },
                  "replayed": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/purchasing/returns/{returnId}": {
      "get": {
        "operationId": "get-purchasing-return",
        "tags": ["Purchasing"],
        "summary": "Get a purchasing return",
        "description": "Read one return and its current status.\n\nRequires the workspace procurement capability. Returns 404 when returnId is not present in the workspace. Read status and operationState before deciding whether a transition is valid.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.view"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "read",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "returnId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchasingReturnResponseSchema"
                },
                "example": {
                  "purchasingReturn": {
                    "workspaceId": "workspace-example",
                    "returnId": "return-example",
                    "sourceVersion": 1,
                    "kind": "vendor_return",
                    "status": "return_requested",
                    "operationState": "ready",
                    "vendorId": "vendor-example",
                    "currency": "USD",
                    "source": {
                      "purchaseOrderId": "purchase-order-example",
                      "receiptId": "receipt-example",
                      "receiptLine": {
                        "purchaseOrderLineId": "line-example",
                        "effectLineId": "line-example",
                        "quantity": 1
                      },
                      "material": {
                        "materialId": "material-example",
                        "workItemId": "work-item-example"
                      }
                    },
                    "sourceRefs": [
                      {
                        "kind": "accounting_sync_outbox",
                        "recordId": "record-id-example"
                      },
                      {
                        "kind": "accounting_sync_outbox",
                        "recordId": "record-id-example"
                      },
                      {
                        "kind": "accounting_sync_outbox",
                        "recordId": "record-id-example"
                      }
                    ],
                    "evidenceRefs": [
                      {
                        "evidenceId": "evidence-id-example",
                        "kind": "provider_file",
                        "refId": "ref-id-example",
                        "attachedAt": "2026-09-16T00:00:00.000Z",
                        "attachedBy": "attached-by-example"
                      }
                    ],
                    "reason": "Brake pads arrived damaged",
                    "quantity": 1,
                    "estimatedAmountCents": 1,
                    "authorizations": [
                      {
                        "authorizationId": "authorization-id-example",
                        "authorizedBy": "authorized-by-example",
                        "authorizedAt": "2026-09-16T00:00:00.000Z",
                        "recordedBy": "recorded-by-example",
                        "action": "authorize"
                      }
                    ],
                    "attempts": 1,
                    "requestHash": "abababababababababababababababababababababababababababababababab",
                    "idempotencyKey": "idempotency-key-example",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    },
    "/v1/business/purchasing/returns/{returnId}/transitions": {
      "post": {
        "operationId": "transition-purchasing-return",
        "tags": ["Purchasing"],
        "summary": "Transition a purchasing return",
        "description": "Authorize, record, credit, or close a return.\n\nRequires both purchasing.write and work.write. Actions drive the return through authorization, physical return, warranty review, credit, and closure, or toward terminal retry outcomes. Some actions need an authorization reference, a credit identity, or failure detail; the schema marks them optional but the action rejects their absence. metadata.idempotencyKey is required. A stale record version or an already terminal return returns 409.",
        "x-availability": "beta",
        "x-permissions": {
          "all": ["purchasing.write", "work.write"],
          "anyOf": []
        },
        "x-minimum-role": "viewer",
        "x-mutability": "write",
        "parameters": [
          {
            "name": "workspace",
            "in": "query",
            "required": true,
            "description": "Workspace ID associated with the API key. The query name is workspace, not workspaceId.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "returnId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "security": [
          {
            "WorkspaceApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/purchasingReturnTransitionRequestSchema"
              },
              "example": {
                "action": "authorize",
                "occurredAt": "2026-09-16T00:00:00.000Z",
                "metadata": {
                  "idempotencyKey": "purchasing-return-transition-2026-09-16-001",
                  "source": "integration"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/purchasingReturnMutationResponseSchema"
                },
                "example": {
                  "purchasingReturn": {
                    "workspaceId": "workspace-example",
                    "returnId": "return-example",
                    "sourceVersion": 1,
                    "kind": "vendor_return",
                    "status": "return_requested",
                    "operationState": "ready",
                    "vendorId": "vendor-example",
                    "currency": "USD",
                    "source": {
                      "purchaseOrderId": "purchase-order-example",
                      "receiptId": "receipt-example",
                      "receiptLine": {
                        "purchaseOrderLineId": "line-example",
                        "effectLineId": "line-example",
                        "quantity": 1
                      },
                      "material": {
                        "materialId": "material-example",
                        "workItemId": "work-item-example"
                      }
                    },
                    "sourceRefs": [
                      {
                        "kind": "accounting_sync_outbox",
                        "recordId": "record-id-example"
                      },
                      {
                        "kind": "accounting_sync_outbox",
                        "recordId": "record-id-example"
                      },
                      {
                        "kind": "accounting_sync_outbox",
                        "recordId": "record-id-example"
                      }
                    ],
                    "evidenceRefs": [
                      {
                        "evidenceId": "evidence-id-example",
                        "kind": "provider_file",
                        "refId": "ref-id-example",
                        "attachedAt": "2026-09-16T00:00:00.000Z",
                        "attachedBy": "attached-by-example"
                      }
                    ],
                    "reason": "Brake pads arrived damaged",
                    "quantity": 1,
                    "estimatedAmountCents": 1,
                    "authorizations": [
                      {
                        "authorizationId": "authorization-id-example",
                        "authorizedBy": "authorized-by-example",
                        "authorizedAt": "2026-09-16T00:00:00.000Z",
                        "recordedBy": "recorded-by-example",
                        "action": "authorize"
                      }
                    ],
                    "attempts": 1,
                    "requestHash": "abababababababababababababababababababababababababababababababab",
                    "idempotencyKey": "idempotency-key-example",
                    "createdAt": "2026-09-16T00:00:00.000Z",
                    "updatedAt": "2026-09-16T00:00:00.000Z",
                    "version": 1
                  },
                  "replayed": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unmet request prerequisite. Read message and any code or issues."
          },
          "401": {
            "description": "Missing, invalid, expired, revoked, or wrong-environment credentials."
          },
          "403": {
            "description": "Workspace permissions or workspace state do not allow this operation."
          },
          "404": {
            "description": "Workspace or requested record was not found."
          },
          "409": {
            "description": "State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry."
          },
          "429": {
            "description": "Rate limit reached. Honor Retry-After.",
            "headers": {
              "Retry-After": {
                "description": "Delay in seconds before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server failure. A write may have committed; reconcile before retrying."
          },
          "503": {
            "description": "Required authority or dependency unavailable. Preserve the command identity if retrying a write."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "WorkspaceApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Server-side workspace key. Never embed in browser code."
      }
    },
    "schemas": {
      "customerListResponseSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "workspaceId": {
                  "$ref": "#/components/schemas/__shared/properties/schema0"
                },
                "customerId": {
                  "$ref": "#/components/schemas/__shared/properties/schema1"
                },
                "partyRef": {
                  "$ref": "#/components/schemas/__shared/properties/schema2"
                },
                "kind": {
                  "$ref": "#/components/schemas/__shared/properties/schema11"
                },
                "displayName": {
                  "$ref": "#/components/schemas/__shared/properties/schema12"
                },
                "legalName": {
                  "$ref": "#/components/schemas/__shared/properties/schema13"
                },
                "nameKey": {
                  "$ref": "#/components/schemas/__shared/properties/schema14"
                },
                "lifecycleStatus": {
                  "$ref": "#/components/schemas/__shared/properties/schema15"
                },
                "accountStatus": {
                  "$ref": "#/components/schemas/__shared/properties/schema16"
                },
                "preferredCommunication": {
                  "$ref": "#/components/schemas/__shared/properties/schema17"
                },
                "defaultCurrency": {
                  "$ref": "#/components/schemas/__shared/properties/schema18"
                },
                "priceTierId": {
                  "$ref": "#/components/schemas/__shared/properties/schema19"
                },
                "paymentTerms": {
                  "$ref": "#/components/schemas/__shared/properties/schema20"
                },
                "creditLimitCents": {
                  "$ref": "#/components/schemas/__shared/properties/schema23"
                },
                "taxExempt": {
                  "$ref": "#/components/schemas/__shared/properties/schema24"
                },
                "preferences": {
                  "$ref": "#/components/schemas/__shared/properties/schema25"
                },
                "defaultContactMethodId": {
                  "$ref": "#/components/schemas/__shared/properties/schema28"
                },
                "defaultBillingAddressId": {
                  "$ref": "#/components/schemas/__shared/properties/schema29"
                },
                "defaultShippingAddressId": {
                  "$ref": "#/components/schemas/__shared/properties/schema30"
                },
                "lastActivityAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema31"
                },
                "lastInvoiceAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema32"
                },
                "financialTotals": {
                  "$ref": "#/components/schemas/__shared/properties/schema33"
                },
                "tags": {
                  "$ref": "#/components/schemas/__shared/properties/schema36"
                },
                "custom": {
                  "$ref": "#/components/schemas/__shared/properties/schema38"
                },
                "occVersion": {
                  "$ref": "#/components/schemas/__shared/properties/schema40"
                },
                "occToken": {
                  "$ref": "#/components/schemas/__shared/properties/schema41"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema27"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema27"
                },
                "assetSummaries": {
                  "$ref": "#/components/schemas/__shared/properties/schema43"
                }
              },
              "required": [
                "workspaceId",
                "customerId",
                "partyRef",
                "kind",
                "displayName",
                "nameKey",
                "lifecycleStatus",
                "defaultCurrency",
                "occVersion",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          },
          "totalCount": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": ["items"]
      },
      "customerProfileResolvedRecordSchema": {
        "type": "object",
        "properties": {
          "customer": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "customerId": {
                "$ref": "#/components/schemas/__shared/properties/schema1"
              },
              "partyRef": {
                "$ref": "#/components/schemas/__shared/properties/schema2"
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema11"
              },
              "displayName": {
                "$ref": "#/components/schemas/__shared/properties/schema12"
              },
              "legalName": {
                "$ref": "#/components/schemas/__shared/properties/schema13"
              },
              "nameKey": {
                "$ref": "#/components/schemas/__shared/properties/schema14"
              },
              "lifecycleStatus": {
                "$ref": "#/components/schemas/__shared/properties/schema15"
              },
              "accountStatus": {
                "$ref": "#/components/schemas/__shared/properties/schema16"
              },
              "preferredCommunication": {
                "$ref": "#/components/schemas/__shared/properties/schema17"
              },
              "defaultCurrency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "priceTierId": {
                "$ref": "#/components/schemas/__shared/properties/schema19"
              },
              "paymentTerms": {
                "$ref": "#/components/schemas/__shared/properties/schema20"
              },
              "creditLimitCents": {
                "$ref": "#/components/schemas/__shared/properties/schema23"
              },
              "taxExempt": {
                "$ref": "#/components/schemas/__shared/properties/schema24"
              },
              "preferences": {
                "$ref": "#/components/schemas/__shared/properties/schema25"
              },
              "defaultContactMethodId": {
                "$ref": "#/components/schemas/__shared/properties/schema28"
              },
              "defaultBillingAddressId": {
                "$ref": "#/components/schemas/__shared/properties/schema29"
              },
              "defaultShippingAddressId": {
                "$ref": "#/components/schemas/__shared/properties/schema30"
              },
              "lastActivityAt": {
                "$ref": "#/components/schemas/__shared/properties/schema31"
              },
              "lastInvoiceAt": {
                "$ref": "#/components/schemas/__shared/properties/schema32"
              },
              "financialTotals": {
                "$ref": "#/components/schemas/__shared/properties/schema33"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema36"
              },
              "custom": {
                "$ref": "#/components/schemas/__shared/properties/schema38"
              },
              "occVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema40"
              },
              "occToken": {
                "$ref": "#/components/schemas/__shared/properties/schema41"
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "workspaceId",
              "customerId",
              "partyRef",
              "kind",
              "displayName",
              "nameKey",
              "lifecycleStatus",
              "defaultCurrency",
              "occVersion",
              "createdAt",
              "updatedAt"
            ]
          },
          "contacts": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema117"
            }
          },
          "addresses": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema120"
            }
          },
          "stats": {
            "nullable": true,
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "customerId": {
                "$ref": "#/components/schemas/__shared/properties/schema1"
              },
              "version": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "salesProjectionVersion": {
                "nullable": true,
                "type": "integer",
                "minimum": 0
              },
              "salesSourceUpdatedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "financialTotals": {
                "$ref": "#/components/schemas/__shared/properties/schema34"
              },
              "estimatesCount": {
                "nullable": true,
                "type": "integer"
              },
              "invoicesCount": {
                "nullable": true,
                "type": "integer"
              },
              "lastInvoiceAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "lastPaymentAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "unpaidInvoices": {
                "nullable": true,
                "type": "integer"
              },
              "loyalty": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "enabled": {
                    "$ref": "#/components/schemas/__shared/properties/schema121"
                  },
                  "programId": {
                    "$ref": "#/components/schemas/__shared/properties/schema122"
                  },
                  "programVersionId": {
                    "$ref": "#/components/schemas/__shared/properties/schema125"
                  },
                  "programName": {
                    "$ref": "#/components/schemas/__shared/properties/schema127"
                  },
                  "pointsBalance": {
                    "$ref": "#/components/schemas/__shared/properties/schema128"
                  },
                  "lifetimePoints": {
                    "$ref": "#/components/schemas/__shared/properties/schema129"
                  },
                  "pointsRedeemed": {
                    "$ref": "#/components/schemas/__shared/properties/schema130"
                  },
                  "currentTierId": {
                    "$ref": "#/components/schemas/__shared/properties/schema131"
                  },
                  "currentTierName": {
                    "$ref": "#/components/schemas/__shared/properties/schema132"
                  },
                  "nextTier": {
                    "$ref": "#/components/schemas/__shared/properties/schema133"
                  },
                  "accrualRate": {
                    "$ref": "#/components/schemas/__shared/properties/schema134"
                  },
                  "program": {
                    "$ref": "#/components/schemas/__shared/properties/schema135"
                  },
                  "updatedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema136"
                  },
                  "rewardBalances": {
                    "$ref": "#/components/schemas/__shared/properties/schema137"
                  }
                }
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "workspaceId",
              "customerId",
              "version",
              "financialTotals",
              "createdAt",
              "updatedAt"
            ]
          },
          "assets": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema139"
            }
          },
          "partyChildren": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": ["available"]
                  },
                  "contacts": {
                    "$ref": "#/components/schemas/__shared/properties/schema140"
                  },
                  "addresses": {
                    "$ref": "#/components/schemas/__shared/properties/schema140"
                  }
                },
                "required": ["status", "contacts", "addresses"]
              },
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": ["unavailable"]
                  },
                  "reason": {
                    "maxLength": 256,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema22"
                      }
                    ]
                  }
                },
                "required": ["status", "reason"]
              }
            ]
          }
        },
        "required": [
          "customer",
          "contacts",
          "addresses",
          "stats",
          "assets",
          "partyChildren"
        ]
      },
      "customerCreateRequestSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/__shared/properties/schema11"
          },
          "displayName": {
            "maxLength": 256,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema22"
              }
            ]
          },
          "legalName": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema141"
              }
            ]
          },
          "nameKey": {
            "maxLength": 256,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema22"
              }
            ]
          },
          "lifecycleStatus": {
            "default": "lead",
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema15"
              }
            ]
          },
          "defaultCurrency": {
            "$ref": "#/components/schemas/__shared/properties/schema18"
          },
          "priceTierId": {
            "type": "string"
          },
          "paymentTerms": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema21"
              }
            ]
          },
          "creditLimitCents": {
            "nullable": true,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "taxExempt": {
            "type": "boolean"
          },
          "lastActivityAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "lastInvoiceAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "financialTotals": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema34"
              }
            ]
          },
          "tags": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema37"
            }
          },
          "custom": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema142"
          },
          "customerId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema1"
              }
            ]
          },
          "contacts": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema149"
            }
          },
          "addresses": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema155"
            }
          }
        },
        "required": ["kind", "displayName", "defaultCurrency", "metadata"],
        "additionalProperties": false
      },
      "customerUpdateRequestSchema": {
        "type": "object",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema143"
          },
          "patch": {
            "$ref": "#/components/schemas/__shared/properties/schema156"
          },
          "contacts": {
            "$ref": "#/components/schemas/__shared/properties/schema157"
          },
          "addresses": {
            "$ref": "#/components/schemas/__shared/properties/schema158"
          },
          "contactActions": {
            "$ref": "#/components/schemas/__shared/properties/schema159"
          },
          "addressActions": {
            "$ref": "#/components/schemas/__shared/properties/schema161"
          }
        },
        "required": ["metadata", "patch"],
        "additionalProperties": false
      },
      "customerSummaryBatchRequestSchema": {
        "type": "object",
        "properties": {
          "customerIds": {
            "$ref": "#/components/schemas/__shared/properties/schema163"
          },
          "consistentRead": {
            "$ref": "#/components/schemas/__shared/properties/schema164"
          },
          "includeAssetSummaries": {
            "$ref": "#/components/schemas/__shared/properties/schema165"
          }
        },
        "required": ["customerIds"]
      },
      "customerSummaryBatchResponseSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "customerId": {
                  "$ref": "#/components/schemas/__shared/properties/schema1"
                },
                "partyRef": {
                  "$ref": "#/components/schemas/__shared/properties/schema2"
                },
                "displayName": {
                  "$ref": "#/components/schemas/__shared/properties/schema12"
                },
                "legalName": {
                  "$ref": "#/components/schemas/__shared/properties/schema13"
                },
                "kind": {
                  "$ref": "#/components/schemas/__shared/properties/schema11"
                },
                "lifecycleStatus": {
                  "$ref": "#/components/schemas/__shared/properties/schema15"
                },
                "accountStatus": {
                  "$ref": "#/components/schemas/__shared/properties/schema16"
                },
                "assetSummaries": {
                  "$ref": "#/components/schemas/__shared/properties/schema43"
                }
              },
              "required": [
                "customerId",
                "partyRef",
                "displayName",
                "kind",
                "lifecycleStatus"
              ]
            }
          },
          "missingCustomerIds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema1"
            }
          }
        },
        "required": ["items", "missingCustomerIds"]
      },
      "workItemListResponseSchema": {
        "type": "object",
        "properties": {
          "results": {
            "$ref": "#/components/schemas/__shared/properties/schema166"
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          }
        },
        "required": ["results"]
      },
      "workItemResponseSchema": {
        "type": "object",
        "properties": {
          "workItem": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "workItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "smartTagEvaluation": {
                "$ref": "#/components/schemas/__shared/properties/schema168"
              },
              "tagIds": {
                "$ref": "#/components/schemas/__shared/properties/schema174"
              },
              "title": {
                "$ref": "#/components/schemas/__shared/properties/schema175"
              },
              "workItemTypeKey": {
                "$ref": "#/components/schemas/__shared/properties/schema176"
              },
              "partyRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema177"
              },
              "assetRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema184"
              },
              "locationRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema186"
              },
              "resourceRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema188"
              },
              "businessDocumentRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema189"
              },
              "commitmentRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema192"
              },
              "primaryBusinessDocumentRef": {
                "$ref": "#/components/schemas/__shared/properties/schema193"
              },
              "workContext": {
                "$ref": "#/components/schemas/__shared/properties/schema194"
              },
              "accountingScope": {
                "$ref": "#/components/schemas/__shared/properties/schema414"
              },
              "workflowStage": {
                "$ref": "#/components/schemas/__shared/properties/schema418"
              },
              "processRef": {
                "$ref": "#/components/schemas/__shared/properties/schema428"
              },
              "processRunState": {
                "$ref": "#/components/schemas/__shared/properties/schema437"
              },
              "primaryProcessRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema441"
              },
              "pendingProcessStart": {
                "$ref": "#/components/schemas/__shared/properties/schema442"
              },
              "checkService": {
                "$ref": "#/components/schemas/__shared/properties/schema443"
              },
              "controlledItemReviews": {
                "$ref": "#/components/schemas/__shared/properties/schema467"
              },
              "occVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema40"
              },
              "occToken": {
                "$ref": "#/components/schemas/__shared/properties/schema481"
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "workspaceId",
              "workItemId",
              "workItemTypeKey",
              "occVersion",
              "createdAt",
              "updatedAt"
            ]
          },
          "docLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema482"
            }
          },
          "metadata": {
            "type": "object",
            "properties": {
              "occVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema40"
              },
              "occToken": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema42"
                  }
                ]
              },
              "createSettlement": {
                "type": "object",
                "properties": {
                  "outboxId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "status": {
                    "type": "string",
                    "enum": ["scheduled"]
                  },
                  "processStart": {
                    "type": "string",
                    "enum": ["deferred"]
                  }
                },
                "required": ["outboxId", "status", "processStart"],
                "additionalProperties": false
              }
            },
            "required": ["occVersion"]
          },
          "processContext": {
            "type": "object",
            "properties": {
              "representation": {
                "default": "detail",
                "type": "string",
                "enum": ["detail"]
              },
              "processRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema484"
              },
              "approvalNodeIds": {
                "$ref": "#/components/schemas/__shared/properties/schema485"
              },
              "processId": {
                "$ref": "#/components/schemas/__shared/properties/schema430"
              },
              "mode": {
                "$ref": "#/components/schemas/__shared/properties/schema431"
              },
              "executionTier": {
                "$ref": "#/components/schemas/__shared/properties/schema432"
              },
              "runState": {
                "$ref": "#/components/schemas/__shared/properties/schema439"
              },
              "currentNodeIds": {
                "$ref": "#/components/schemas/__shared/properties/schema487"
              },
              "waitingNodeIds": {
                "$ref": "#/components/schemas/__shared/properties/schema489"
              },
              "processName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "resourceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "resourceName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "resourceVersionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "resourceVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "currentStepLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "currentStepLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "nextPrompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "nextStepLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "waitingLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "waitingStepLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "dueAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "overdue": {
                "type": "boolean"
              },
              "escalationAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "escalationOverdue": {
                "type": "boolean"
              },
              "completedMilestoneCount": {
                "type": "integer",
                "minimum": 0
              },
              "totalMilestoneCount": {
                "type": "integer",
                "minimum": 0
              },
              "pendingEvidenceMilestoneCount": {
                "type": "integer",
                "minimum": 0
              },
              "pendingEvidenceMilestoneLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "pendingControlCount": {
                "type": "integer",
                "minimum": 0
              },
              "pendingControlLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "pendingMetricCount": {
                "type": "integer",
                "minimum": 0
              },
              "pendingMetricLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "pendingReadinessCount": {
                "type": "integer",
                "minimum": 0
              },
              "pendingReadinessLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "pendingAuthorizationCount": {
                "type": "integer",
                "minimum": 0
              },
              "pendingRecommendationCount": {
                "type": "integer",
                "minimum": 0
              },
              "pendingSupportItems": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema493"
                }
              },
              "recentFormUsages": {
                "maxItems": 6,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema494"
                }
              },
              "activeFormTasks": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema501"
                }
              },
              "recentDecisionOutcomes": {
                "maxItems": 6,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema504"
                }
              },
              "matchedRuntimeSurfaces": {
                "maxItems": 8,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema505"
                }
              },
              "runs": {
                "maxItems": 16,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema512"
                }
              }
            },
            "required": [
              "processRunId",
              "processId",
              "mode",
              "runState",
              "currentNodeIds",
              "waitingNodeIds",
              "completedMilestoneCount",
              "totalMilestoneCount",
              "pendingEvidenceMilestoneCount",
              "pendingControlCount",
              "pendingMetricCount",
              "pendingReadinessCount",
              "pendingAuthorizationCount",
              "pendingRecommendationCount"
            ]
          },
          "presentation": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": ["ready", "deferred", "unavailable"]
              }
            },
            "required": ["state"],
            "additionalProperties": false
          },
          "assignmentSummary": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 0
              },
              "docAssignments": {
                "maxItems": 256,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema521"
                }
              },
              "employeeIds": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema502"
                }
              },
              "resourceIds": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema522"
                }
              },
              "roles": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema523"
                }
              },
              "employeeLabels": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema524"
                }
              },
              "resourceLabels": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema525"
                }
              },
              "resourceOnlyCount": {
                "type": "integer",
                "minimum": 0
              },
              "employeeLabelsState": {
                "type": "string",
                "enum": ["ready", "restricted", "unavailable"]
              }
            },
            "required": [
              "count",
              "docAssignments",
              "employeeIds",
              "resourceIds",
              "roles",
              "resourceOnlyCount",
              "employeeLabelsState"
            ]
          }
        },
        "required": ["workItem", "docLinks", "metadata"]
      },
      "workItemCreateRequestSchema": {
        "type": "object",
        "properties": {
          "workItemId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              }
            ]
          },
          "creationMode": {
            "type": "string",
            "enum": ["native"]
          },
          "industryAppId": {
            "type": "string",
            "enum": [
              "auto_repair",
              "tire_shop",
              "home_services",
              "cleaning",
              "landscaping"
            ]
          },
          "startProcessRef": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema429"
              }
            ]
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema142"
          },
          "workItem": {
            "type": "object",
            "properties": {
              "tagIds": {
                "$ref": "#/components/schemas/__shared/properties/schema174"
              },
              "title": {
                "$ref": "#/components/schemas/__shared/properties/schema175"
              },
              "workItemTypeKey": {
                "$ref": "#/components/schemas/__shared/properties/schema176"
              },
              "partyRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema177"
              },
              "assetRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema184"
              },
              "locationRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema186"
              },
              "resourceRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema188"
              },
              "businessDocumentRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema189"
              },
              "commitmentRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema192"
              },
              "primaryBusinessDocumentRef": {
                "$ref": "#/components/schemas/__shared/properties/schema193"
              },
              "workContext": {
                "type": "object",
                "properties": {
                  "kind": {
                    "$ref": "#/components/schemas/__shared/properties/schema196"
                  },
                  "serviceOccurrence": {
                    "$ref": "#/components/schemas/__shared/properties/schema197"
                  },
                  "summary": {
                    "$ref": "#/components/schemas/__shared/properties/schema198"
                  },
                  "reference": {
                    "$ref": "#/components/schemas/__shared/properties/schema199"
                  },
                  "requestedBy": {
                    "$ref": "#/components/schemas/__shared/properties/schema200"
                  },
                  "requestedChannel": {
                    "$ref": "#/components/schemas/__shared/properties/schema201"
                  },
                  "priority": {
                    "$ref": "#/components/schemas/__shared/properties/schema202"
                  },
                  "requestedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema204"
                  },
                  "promiseAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema205"
                  },
                  "startedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema206"
                  },
                  "completedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema207"
                  },
                  "bookingId": {
                    "$ref": "#/components/schemas/__shared/properties/schema208"
                  },
                  "bookingSourceVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema209"
                  },
                  "bookingSourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema210"
                  },
                  "instructions": {
                    "$ref": "#/components/schemas/__shared/properties/schema211"
                  },
                  "measurements": {
                    "$ref": "#/components/schemas/__shared/properties/schema212"
                  },
                  "issues": {
                    "$ref": "#/components/schemas/__shared/properties/schema214"
                  },
                  "intake": {
                    "$ref": "#/components/schemas/__shared/properties/schema526"
                  },
                  "coverage": {
                    "$ref": "#/components/schemas/__shared/properties/schema271"
                  },
                  "blockers": {
                    "$ref": "#/components/schemas/__shared/properties/schema286"
                  },
                  "lineGroups": {
                    "$ref": "#/components/schemas/__shared/properties/schema293"
                  },
                  "operations": {
                    "$ref": "#/components/schemas/__shared/properties/schema317"
                  },
                  "qualityChecks": {
                    "$ref": "#/components/schemas/__shared/properties/schema319"
                  },
                  "resolution": {
                    "$ref": "#/components/schemas/__shared/properties/schema321"
                  },
                  "outcomes": {
                    "$ref": "#/components/schemas/__shared/properties/schema322"
                  },
                  "followUpOrigin": {
                    "$ref": "#/components/schemas/__shared/properties/schema324"
                  },
                  "followUpDispatch": {
                    "$ref": "#/components/schemas/__shared/properties/schema325"
                  },
                  "completionHandoff": {
                    "$ref": "#/components/schemas/__shared/properties/schema337"
                  },
                  "pickupRelease": {
                    "$ref": "#/components/schemas/__shared/properties/schema371"
                  },
                  "runtimeActionOutcomes": {
                    "$ref": "#/components/schemas/__shared/properties/schema399"
                  },
                  "runtimeActionEvents": {
                    "$ref": "#/components/schemas/__shared/properties/schema411"
                  },
                  "custom": {
                    "$ref": "#/components/schemas/__shared/properties/schema413"
                  }
                },
                "required": ["kind"]
              },
              "accountingScope": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema415"
                  }
                ]
              },
              "workflowStage": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema419"
                  }
                ]
              }
            },
            "required": ["workItemTypeKey"],
            "additionalProperties": false
          },
          "docLinks": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema529"
            }
          }
        },
        "required": ["metadata", "workItem"]
      },
      "workItemUpdateRequestSchema": {
        "type": "object",
        "properties": {
          "metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema143"
              }
            ]
          },
          "patch": {
            "type": "object",
            "properties": {
              "tagIds": {
                "$ref": "#/components/schemas/__shared/properties/schema174"
              },
              "title": {
                "$ref": "#/components/schemas/__shared/properties/schema175"
              },
              "workItemTypeKey": {
                "$ref": "#/components/schemas/__shared/properties/schema530"
              },
              "partyRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema177"
              },
              "assetRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema184"
              },
              "locationRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema186"
              },
              "resourceRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema188"
              },
              "businessDocumentRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema189"
              },
              "commitmentRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema192"
              },
              "primaryBusinessDocumentRef": {
                "$ref": "#/components/schemas/__shared/properties/schema193"
              },
              "workContext": {
                "$ref": "#/components/schemas/__shared/properties/schema194"
              }
            }
          }
        },
        "required": ["patch"]
      },
      "workItemSchedulingResponseSchema": {
        "type": "object",
        "properties": {
          "workItem": {
            "type": "object",
            "properties": {
              "smartTagEvaluation": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema169"
                  }
                ]
              },
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "workItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "primaryBusinessDocumentRef": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema190"
                  }
                ]
              },
              "businessDocumentRefs": {
                "maxItems": 16,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema190"
                }
              },
              "documentNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "documentTypeKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "documentStatus": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "currency": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  }
                ]
              },
              "totalCents": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "issuedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "dueAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 280
              },
              "workItemTypeKey": {
                "$ref": "#/components/schemas/__shared/properties/schema176"
              },
              "counterpartyName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "primaryAssetRef": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema185"
                  }
                ]
              },
              "workContext": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema195"
                  }
                ]
              },
              "workflowStage": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema419"
                  }
                ]
              },
              "processRef": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema429"
                  }
                ]
              },
              "processRunState": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema438"
                  }
                ]
              },
              "settlement": {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string",
                    "enum": [
                      "unsettled",
                      "partially_settled",
                      "settled",
                      "canceled"
                    ]
                  },
                  "settledCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "outstandingCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pendingIntent": {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "maxLength": 64,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema531"
                          }
                        ]
                      },
                      "reference": {
                        "maxLength": 128,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema531"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "succeeded",
                          "failed",
                          "unknown",
                          "expired"
                        ]
                      },
                      "amountCents": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "$ref": "#/components/schemas/__shared/properties/schema18"
                      },
                      "method": {
                        "maxLength": 64,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema531"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      },
                      "updatedAt": {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      },
                      "expiresAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      },
                      "lastCheckedAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      },
                      "failureReason": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "provider",
                      "reference",
                      "status",
                      "amountCents",
                      "currency",
                      "method",
                      "createdAt",
                      "updatedAt"
                    ]
                  },
                  "attention": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "maxLength": 64,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema531"
                          }
                        ]
                      },
                      "severity": {
                        "type": "string",
                        "enum": ["warning", "critical"]
                      },
                      "occurredAt": {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      },
                      "message": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "provider": {
                        "maxLength": 64,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema531"
                          }
                        ]
                      },
                      "reference": {
                        "maxLength": 128,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema531"
                          }
                        ]
                      },
                      "acknowledgedAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      }
                    },
                    "required": ["code", "severity", "occurredAt"]
                  }
                },
                "required": ["state", "settledCents", "outstandingCents"]
              },
              "tags": {
                "maxItems": 1024,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema532"
                }
              }
            },
            "required": [
              "workspaceId",
              "workItemId",
              "updatedAt",
              "title",
              "workItemTypeKey"
            ]
          },
          "docLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema482"
            }
          },
          "assignments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "workspaceId": {
                  "$ref": "#/components/schemas/__shared/properties/schema0"
                },
                "workItemId": {
                  "$ref": "#/components/schemas/__shared/properties/schema167"
                },
                "docId": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/__shared/properties/schema384"
                    }
                  ]
                },
                "scope": {
                  "type": "string",
                  "enum": ["doc", "line"]
                },
                "resourceId": {
                  "$ref": "#/components/schemas/__shared/properties/schema522"
                },
                "lineId": {
                  "type": "string"
                },
                "startAt": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/__shared/properties/schema27"
                    }
                  ]
                },
                "endAt": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/__shared/properties/schema27"
                    }
                  ]
                },
                "role": {
                  "type": "string"
                },
                "hoursBooked": {
                  "type": "number",
                  "minimum": 0
                },
                "rateCents": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/__shared/properties/schema533"
                  }
                },
                "custom": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/__shared/properties/schema39"
                    }
                  ]
                },
                "schedulingEvidence": {
                  "type": "object",
                  "properties": {
                    "booking": {
                      "type": "object",
                      "properties": {
                        "bookingId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "occVersion": {
                          "type": "integer",
                          "minimum": 0,
                          "exclusiveMinimum": true
                        },
                        "sourceHash": {
                          "$ref": "#/components/schemas/__shared/properties/schema534"
                        }
                      },
                      "required": ["bookingId", "occVersion", "sourceHash"],
                      "additionalProperties": false
                    },
                    "reservations": {
                      "minItems": 1,
                      "maxItems": 8,
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/__shared/properties/schema535"
                      }
                    }
                  },
                  "required": ["reservations"],
                  "additionalProperties": false
                },
                "employeeId": {
                  "type": "string"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema27"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema27"
                }
              },
              "required": [
                "workspaceId",
                "workItemId",
                "scope",
                "resourceId",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "booking": {
            "nullable": true,
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "bookingId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "bookingDepositId": {
                "$ref": "#/components/schemas/__shared/properties/schema537"
              },
              "bookingDepositRefundRequestedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema538"
              },
              "membershipUse": {
                "$ref": "#/components/schemas/__shared/properties/schema539"
              },
              "requestId": {
                "$ref": "#/components/schemas/__shared/properties/schema540"
              },
              "bookingTypeReleaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "originatingAuthority": {
                "$ref": "#/components/schemas/__shared/properties/schema541"
              },
              "state": {
                "$ref": "#/components/schemas/__shared/properties/schema542"
              },
              "interval": {
                "$ref": "#/components/schemas/__shared/properties/schema543"
              },
              "capacityExtensionEndAt": {
                "$ref": "#/components/schemas/__shared/properties/schema548"
              },
              "subjectRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema549"
              },
              "reservationIds": {
                "$ref": "#/components/schemas/__shared/properties/schema551"
              },
              "reservationManifestHash": {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              },
              "seriesId": {
                "$ref": "#/components/schemas/__shared/properties/schema552"
              },
              "seriesGeneration": {
                "$ref": "#/components/schemas/__shared/properties/schema553"
              },
              "originalLocalOccurrenceKey": {
                "$ref": "#/components/schemas/__shared/properties/schema554"
              },
              "calendarReleaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema555"
              },
              "offeringId": {
                "$ref": "#/components/schemas/__shared/properties/schema556"
              },
              "seatClaimId": {
                "$ref": "#/components/schemas/__shared/properties/schema557"
              },
              "dispatchEvidence": {
                "$ref": "#/components/schemas/__shared/properties/schema558"
              },
              "dispatchFulfillment": {
                "$ref": "#/components/schemas/__shared/properties/schema561"
              },
              "dependencyLock": {
                "$ref": "#/components/schemas/__shared/properties/schema563"
              },
              "nativeEvidenceRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema576"
              },
              "workSourceRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema577"
              },
              "serviceExtensionApproval": {
                "$ref": "#/components/schemas/__shared/properties/schema580"
              },
              "nativeSourceSelectors": {
                "$ref": "#/components/schemas/__shared/properties/schema581"
              },
              "nativeClaimRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema588"
              },
              "commercialEvidenceRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema594"
              },
              "documentEvidenceRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema595"
              },
              "settlementEffectRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema596"
              },
              "evidenceManifestId": {
                "$ref": "#/components/schemas/__shared/properties/schema597"
              },
              "settlementManifestId": {
                "$ref": "#/components/schemas/__shared/properties/schema598"
              },
              "confirmationGateResultRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema599"
              },
              "confirmationGateResultsSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema600"
              },
              "sourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              },
              "occVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema601"
              },
              "capacityReleasedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema602"
              },
              "sourceCommandId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "sourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema603"
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "workspaceId",
              "bookingId",
              "bookingTypeReleaseId",
              "state",
              "interval",
              "subjectRefs",
              "reservationIds",
              "reservationManifestHash",
              "dispatchEvidence",
              "dispatchFulfillment",
              "dependencyLock",
              "nativeEvidenceRefs",
              "commercialEvidenceRefs",
              "documentEvidenceRefs",
              "settlementEffectRefs",
              "confirmationGateResultRefs",
              "sourceHash",
              "occVersion",
              "sourceCommandId",
              "sourceVersion",
              "createdAt",
              "updatedAt"
            ],
            "additionalProperties": false
          },
          "reservations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "workspaceId": {
                  "$ref": "#/components/schemas/__shared/properties/schema0"
                },
                "reservationId": {
                  "$ref": "#/components/schemas/__shared/properties/schema536"
                },
                "ownerKind": {
                  "$ref": "#/components/schemas/__shared/properties/schema604"
                },
                "ownerId": {
                  "$ref": "#/components/schemas/__shared/properties/schema536"
                },
                "requirementId": {
                  "$ref": "#/components/schemas/__shared/properties/schema536"
                },
                "positionId": {
                  "$ref": "#/components/schemas/__shared/properties/schema536"
                },
                "resourceId": {
                  "$ref": "#/components/schemas/__shared/properties/schema536"
                },
                "employeeId": {
                  "$ref": "#/components/schemas/__shared/properties/schema605"
                },
                "resourceKind": {
                  "$ref": "#/components/schemas/__shared/properties/schema606"
                },
                "interval": {
                  "$ref": "#/components/schemas/__shared/properties/schema543"
                },
                "capacityUnits": {
                  "$ref": "#/components/schemas/__shared/properties/schema607"
                },
                "state": {
                  "$ref": "#/components/schemas/__shared/properties/schema608"
                },
                "occVersion": {
                  "$ref": "#/components/schemas/__shared/properties/schema609"
                },
                "sourceVersion": {
                  "$ref": "#/components/schemas/__shared/properties/schema610"
                },
                "sourceHash": {
                  "$ref": "#/components/schemas/__shared/properties/schema534"
                },
                "capacityReleasedAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema611"
                }
              },
              "required": [
                "workspaceId",
                "reservationId",
                "ownerKind",
                "ownerId",
                "requirementId",
                "positionId",
                "resourceId",
                "resourceKind",
                "interval",
                "capacityUnits",
                "state",
                "occVersion",
                "sourceVersion",
                "sourceHash"
              ],
              "additionalProperties": false
            }
          },
          "schedulingCoverage": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "complete",
                  "unscheduled",
                  "stale",
                  "inconsistent",
                  "unavailable",
                  "restricted"
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "partial_booking_reference",
                      "booking_reference_invalid",
                      "booking_source_fence_mismatch",
                      "booking_not_found",
                      "booking_payload_invalid",
                      "reservation_payload_invalid",
                      "scheduling_read_failed",
                      "reservation_read_failed",
                      "scheduling_view_required"
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              }
            },
            "required": ["status", "reason"]
          }
        },
        "required": [
          "workItem",
          "docLinks",
          "assignments",
          "booking",
          "reservations",
          "schedulingCoverage"
        ]
      },
      "businessProductListResponseSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema612"
            }
          },
          "primaryImages": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema669"
              }
            ]
          },
          "componentItemsById": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                }
              },
              "required": ["name"]
            }
          },
          "assetItemsById": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                }
              },
              "required": ["name"]
            }
          },
          "currentPricing": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema674"
            }
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          }
        },
        "required": ["items"]
      },
      "businessProductCatalogLookupResponseSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema693"
            }
          },
          "primaryImages": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema669"
              }
            ]
          },
          "unpricedItems": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema697"
            }
          },
          "match": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema693"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          }
        },
        "required": ["items"]
      },
      "businessProductResponseSchema": {
        "type": "object",
        "properties": {
          "product": {
            "$ref": "#/components/schemas/__shared/properties/schema612"
          },
          "photo": {
            "type": "object",
            "properties": {
              "photoRevision": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "primaryImage": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "imageId": {
                    "$ref": "#/components/schemas/__shared/properties/schema670"
                  },
                  "thumbnailUrl": {
                    "$ref": "#/components/schemas/__shared/properties/schema671"
                  },
                  "expiresAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "width": {
                    "$ref": "#/components/schemas/__shared/properties/schema672"
                  },
                  "height": {
                    "$ref": "#/components/schemas/__shared/properties/schema673"
                  },
                  "fullUrl": {
                    "type": "string",
                    "maxLength": 8192,
                    "format": "uri"
                  }
                },
                "required": [
                  "imageId",
                  "thumbnailUrl",
                  "expiresAt",
                  "width",
                  "height",
                  "fullUrl"
                ],
                "additionalProperties": false
              },
              "pendingUpload": {
                "type": "object",
                "properties": {
                  "uploadId": {
                    "$ref": "#/components/schemas/__shared/properties/schema670"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "awaiting_upload",
                      "queued",
                      "processing",
                      "ready",
                      "failed",
                      "superseded"
                    ]
                  }
                },
                "required": ["uploadId", "status"],
                "additionalProperties": false
              }
            },
            "required": ["photoRevision", "primaryImage"],
            "additionalProperties": false
          }
        },
        "required": ["product"]
      },
      "businessProductCreateRequestSchema": {
        "type": "object",
        "properties": {
          "product": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "productId": {
                    "$ref": "#/components/schemas/__shared/properties/schema698"
                  },
                  "name": {
                    "$ref": "#/components/schemas/__shared/properties/schema615"
                  },
                  "description": {
                    "$ref": "#/components/schemas/__shared/properties/schema699"
                  },
                  "status": {
                    "$ref": "#/components/schemas/__shared/properties/schema614"
                  },
                  "sku": {
                    "$ref": "#/components/schemas/__shared/properties/schema700"
                  },
                  "upc": {
                    "$ref": "#/components/schemas/__shared/properties/schema701"
                  },
                  "ean": {
                    "$ref": "#/components/schemas/__shared/properties/schema702"
                  },
                  "barcode": {
                    "$ref": "#/components/schemas/__shared/properties/schema703"
                  },
                  "plu": {
                    "$ref": "#/components/schemas/__shared/properties/schema704"
                  },
                  "scanAliases": {
                    "$ref": "#/components/schemas/__shared/properties/schema705"
                  },
                  "category": {
                    "$ref": "#/components/schemas/__shared/properties/schema706"
                  },
                  "tags": {
                    "$ref": "#/components/schemas/__shared/properties/schema707"
                  },
                  "accountingDefaults": {
                    "$ref": "#/components/schemas/__shared/properties/schema708"
                  },
                  "metadata": {
                    "$ref": "#/components/schemas/__shared/properties/schema709"
                  },
                  "preparationProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema710"
                  },
                  "controlledItemPolicy": {
                    "$ref": "#/components/schemas/__shared/properties/schema711"
                  },
                  "kind": {
                    "$ref": "#/components/schemas/__shared/properties/schema647"
                  },
                  "suppliedItem": {
                    "$ref": "#/components/schemas/__shared/properties/schema648"
                  },
                  "components": {
                    "$ref": "#/components/schemas/__shared/properties/schema649"
                  },
                  "kit": {
                    "$ref": "#/components/schemas/__shared/properties/schema650"
                  },
                  "vehicleFitments": {
                    "$ref": "#/components/schemas/__shared/properties/schema653"
                  }
                },
                "required": ["name", "status", "kind", "components"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "productId": {
                    "$ref": "#/components/schemas/__shared/properties/schema698"
                  },
                  "name": {
                    "$ref": "#/components/schemas/__shared/properties/schema615"
                  },
                  "description": {
                    "$ref": "#/components/schemas/__shared/properties/schema699"
                  },
                  "status": {
                    "$ref": "#/components/schemas/__shared/properties/schema614"
                  },
                  "sku": {
                    "$ref": "#/components/schemas/__shared/properties/schema700"
                  },
                  "upc": {
                    "$ref": "#/components/schemas/__shared/properties/schema701"
                  },
                  "ean": {
                    "$ref": "#/components/schemas/__shared/properties/schema702"
                  },
                  "barcode": {
                    "$ref": "#/components/schemas/__shared/properties/schema703"
                  },
                  "plu": {
                    "$ref": "#/components/schemas/__shared/properties/schema704"
                  },
                  "scanAliases": {
                    "$ref": "#/components/schemas/__shared/properties/schema705"
                  },
                  "category": {
                    "$ref": "#/components/schemas/__shared/properties/schema706"
                  },
                  "tags": {
                    "$ref": "#/components/schemas/__shared/properties/schema707"
                  },
                  "accountingDefaults": {
                    "$ref": "#/components/schemas/__shared/properties/schema708"
                  },
                  "metadata": {
                    "$ref": "#/components/schemas/__shared/properties/schema709"
                  },
                  "preparationProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema710"
                  },
                  "controlledItemPolicy": {
                    "$ref": "#/components/schemas/__shared/properties/schema711"
                  },
                  "kind": {
                    "type": "string",
                    "enum": ["service"]
                  },
                  "billingUnit": {
                    "$ref": "#/components/schemas/__shared/properties/schema664"
                  },
                  "packageProfile": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema665"
                      }
                    ]
                  }
                },
                "required": ["name", "status", "kind", "billingUnit"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "productId": {
                    "$ref": "#/components/schemas/__shared/properties/schema698"
                  },
                  "name": {
                    "$ref": "#/components/schemas/__shared/properties/schema615"
                  },
                  "description": {
                    "$ref": "#/components/schemas/__shared/properties/schema699"
                  },
                  "status": {
                    "$ref": "#/components/schemas/__shared/properties/schema614"
                  },
                  "sku": {
                    "$ref": "#/components/schemas/__shared/properties/schema700"
                  },
                  "upc": {
                    "$ref": "#/components/schemas/__shared/properties/schema701"
                  },
                  "ean": {
                    "$ref": "#/components/schemas/__shared/properties/schema702"
                  },
                  "barcode": {
                    "$ref": "#/components/schemas/__shared/properties/schema703"
                  },
                  "plu": {
                    "$ref": "#/components/schemas/__shared/properties/schema704"
                  },
                  "scanAliases": {
                    "$ref": "#/components/schemas/__shared/properties/schema705"
                  },
                  "category": {
                    "$ref": "#/components/schemas/__shared/properties/schema706"
                  },
                  "tags": {
                    "$ref": "#/components/schemas/__shared/properties/schema707"
                  },
                  "accountingDefaults": {
                    "$ref": "#/components/schemas/__shared/properties/schema708"
                  },
                  "metadata": {
                    "$ref": "#/components/schemas/__shared/properties/schema709"
                  },
                  "preparationProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema710"
                  },
                  "controlledItemPolicy": {
                    "$ref": "#/components/schemas/__shared/properties/schema711"
                  },
                  "kind": {
                    "type": "string",
                    "enum": ["rental"]
                  },
                  "billingPeriod": {
                    "$ref": "#/components/schemas/__shared/properties/schema666"
                  },
                  "assetItemId": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema667"
                      }
                    ]
                  },
                  "rules": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema668"
                      }
                    ]
                  }
                },
                "required": ["name", "status", "kind", "billingPeriod"],
                "additionalProperties": false
              }
            ]
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema142"
          }
        },
        "required": ["product", "metadata"]
      },
      "businessProductUpdateRequestSchema": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "metadata": {
                "allOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema143"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "idempotencyKey": {
                            "$ref": "#/components/schemas/__shared/properties/schema82"
                          }
                        },
                        "required": ["idempotencyKey"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "occVersion": {
                            "type": "integer",
                            "minimum": 1
                          }
                        },
                        "required": ["occVersion"]
                      }
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema142"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "enum": ["goods"]
              },
              "patch": {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/components/schemas/__shared/properties/schema712"
                  },
                  "description": {
                    "$ref": "#/components/schemas/__shared/properties/schema713"
                  },
                  "status": {
                    "$ref": "#/components/schemas/__shared/properties/schema714"
                  },
                  "sku": {
                    "$ref": "#/components/schemas/__shared/properties/schema715"
                  },
                  "upc": {
                    "$ref": "#/components/schemas/__shared/properties/schema716"
                  },
                  "ean": {
                    "$ref": "#/components/schemas/__shared/properties/schema717"
                  },
                  "barcode": {
                    "$ref": "#/components/schemas/__shared/properties/schema718"
                  },
                  "plu": {
                    "$ref": "#/components/schemas/__shared/properties/schema719"
                  },
                  "scanAliases": {
                    "$ref": "#/components/schemas/__shared/properties/schema720"
                  },
                  "category": {
                    "$ref": "#/components/schemas/__shared/properties/schema721"
                  },
                  "tags": {
                    "$ref": "#/components/schemas/__shared/properties/schema722"
                  },
                  "accountingDefaults": {
                    "$ref": "#/components/schemas/__shared/properties/schema723"
                  },
                  "metadata": {
                    "$ref": "#/components/schemas/__shared/properties/schema724"
                  },
                  "preparationProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema725"
                  },
                  "controlledItemPolicy": {
                    "$ref": "#/components/schemas/__shared/properties/schema726"
                  },
                  "suppliedItem": {
                    "$ref": "#/components/schemas/__shared/properties/schema727"
                  },
                  "components": {
                    "$ref": "#/components/schemas/__shared/properties/schema728"
                  },
                  "kit": {
                    "$ref": "#/components/schemas/__shared/properties/schema729"
                  },
                  "vehicleFitments": {
                    "$ref": "#/components/schemas/__shared/properties/schema730"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["metadata", "kind", "patch"]
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "allOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema143"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "idempotencyKey": {
                            "$ref": "#/components/schemas/__shared/properties/schema82"
                          }
                        },
                        "required": ["idempotencyKey"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "occVersion": {
                            "type": "integer",
                            "minimum": 1
                          }
                        },
                        "required": ["occVersion"]
                      }
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema142"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "enum": ["service"]
              },
              "patch": {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/components/schemas/__shared/properties/schema712"
                  },
                  "description": {
                    "$ref": "#/components/schemas/__shared/properties/schema713"
                  },
                  "status": {
                    "$ref": "#/components/schemas/__shared/properties/schema714"
                  },
                  "sku": {
                    "$ref": "#/components/schemas/__shared/properties/schema715"
                  },
                  "upc": {
                    "$ref": "#/components/schemas/__shared/properties/schema716"
                  },
                  "ean": {
                    "$ref": "#/components/schemas/__shared/properties/schema717"
                  },
                  "barcode": {
                    "$ref": "#/components/schemas/__shared/properties/schema718"
                  },
                  "plu": {
                    "$ref": "#/components/schemas/__shared/properties/schema719"
                  },
                  "scanAliases": {
                    "$ref": "#/components/schemas/__shared/properties/schema720"
                  },
                  "category": {
                    "$ref": "#/components/schemas/__shared/properties/schema721"
                  },
                  "tags": {
                    "$ref": "#/components/schemas/__shared/properties/schema722"
                  },
                  "accountingDefaults": {
                    "$ref": "#/components/schemas/__shared/properties/schema723"
                  },
                  "metadata": {
                    "$ref": "#/components/schemas/__shared/properties/schema724"
                  },
                  "preparationProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema725"
                  },
                  "controlledItemPolicy": {
                    "$ref": "#/components/schemas/__shared/properties/schema726"
                  },
                  "billingUnit": {
                    "$ref": "#/components/schemas/__shared/properties/schema731"
                  },
                  "packageProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema732"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["metadata", "kind", "patch"]
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "allOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema143"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "idempotencyKey": {
                            "$ref": "#/components/schemas/__shared/properties/schema82"
                          }
                        },
                        "required": ["idempotencyKey"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "occVersion": {
                            "type": "integer",
                            "minimum": 1
                          }
                        },
                        "required": ["occVersion"]
                      }
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema142"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "enum": ["rental"]
              },
              "patch": {
                "type": "object",
                "properties": {
                  "name": {
                    "$ref": "#/components/schemas/__shared/properties/schema712"
                  },
                  "description": {
                    "$ref": "#/components/schemas/__shared/properties/schema713"
                  },
                  "status": {
                    "$ref": "#/components/schemas/__shared/properties/schema714"
                  },
                  "sku": {
                    "$ref": "#/components/schemas/__shared/properties/schema715"
                  },
                  "upc": {
                    "$ref": "#/components/schemas/__shared/properties/schema716"
                  },
                  "ean": {
                    "$ref": "#/components/schemas/__shared/properties/schema717"
                  },
                  "barcode": {
                    "$ref": "#/components/schemas/__shared/properties/schema718"
                  },
                  "plu": {
                    "$ref": "#/components/schemas/__shared/properties/schema719"
                  },
                  "scanAliases": {
                    "$ref": "#/components/schemas/__shared/properties/schema720"
                  },
                  "category": {
                    "$ref": "#/components/schemas/__shared/properties/schema721"
                  },
                  "tags": {
                    "$ref": "#/components/schemas/__shared/properties/schema722"
                  },
                  "accountingDefaults": {
                    "$ref": "#/components/schemas/__shared/properties/schema723"
                  },
                  "metadata": {
                    "$ref": "#/components/schemas/__shared/properties/schema724"
                  },
                  "preparationProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema725"
                  },
                  "controlledItemPolicy": {
                    "$ref": "#/components/schemas/__shared/properties/schema726"
                  },
                  "billingPeriod": {
                    "$ref": "#/components/schemas/__shared/properties/schema733"
                  },
                  "assetItemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema734"
                  },
                  "rules": {
                    "$ref": "#/components/schemas/__shared/properties/schema735"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["metadata", "kind", "patch"]
          }
        ]
      },
      "inventoryLocationListResponseSchema": {
        "type": "object",
        "properties": {
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema736"
            }
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          }
        },
        "required": ["locations"]
      },
      "inventoryLocationResponseSchema": {
        "type": "object",
        "properties": {
          "location": {
            "$ref": "#/components/schemas/__shared/properties/schema736"
          }
        },
        "required": ["location"]
      },
      "inventoryLocationCreateRequestSchema": {
        "type": "object",
        "properties": {
          "locationId": {
            "$ref": "#/components/schemas/__shared/properties/schema754"
          },
          "parentLocationId": {
            "$ref": "#/components/schemas/__shared/properties/schema755"
          },
          "type": {
            "$ref": "#/components/schemas/__shared/properties/schema756"
          },
          "label": {
            "$ref": "#/components/schemas/__shared/properties/schema757"
          },
          "description": {
            "$ref": "#/components/schemas/__shared/properties/schema758"
          },
          "customerId": {
            "$ref": "#/components/schemas/__shared/properties/schema742"
          },
          "address": {
            "$ref": "#/components/schemas/__shared/properties/schema743"
          },
          "capacity": {
            "$ref": "#/components/schemas/__shared/properties/schema744"
          },
          "capabilities": {
            "$ref": "#/components/schemas/__shared/properties/schema746"
          },
          "warehouseProfile": {
            "$ref": "#/components/schemas/__shared/properties/schema748"
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema759"
          },
          "status": {
            "$ref": "#/components/schemas/__shared/properties/schema760"
          },
          "operationMetadata": {
            "$ref": "#/components/schemas/__shared/properties/schema761"
          }
        },
        "additionalProperties": false
      },
      "inventoryLocationUpdateRequestSchema": {
        "type": "object",
        "properties": {
          "parentLocationId": {
            "$ref": "#/components/schemas/__shared/properties/schema762"
          },
          "type": {
            "$ref": "#/components/schemas/__shared/properties/schema763"
          },
          "label": {
            "$ref": "#/components/schemas/__shared/properties/schema764"
          },
          "description": {
            "$ref": "#/components/schemas/__shared/properties/schema765"
          },
          "customerId": {
            "$ref": "#/components/schemas/__shared/properties/schema742"
          },
          "address": {
            "$ref": "#/components/schemas/__shared/properties/schema743"
          },
          "capacity": {
            "$ref": "#/components/schemas/__shared/properties/schema744"
          },
          "capabilities": {
            "$ref": "#/components/schemas/__shared/properties/schema746"
          },
          "warehouseProfile": {
            "$ref": "#/components/schemas/__shared/properties/schema748"
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema766"
          },
          "status": {
            "$ref": "#/components/schemas/__shared/properties/schema767"
          },
          "operationMetadata": {
            "$ref": "#/components/schemas/__shared/properties/schema761"
          }
        },
        "additionalProperties": false
      },
      "vehicleCatalogMakesResponseSchema": {
        "type": "object",
        "properties": {
          "snapshot": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema768"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "makes": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema769"
            }
          }
        },
        "required": ["snapshot", "makes"],
        "additionalProperties": false
      },
      "vehicleCatalogModelsResponseSchema": {
        "type": "object",
        "properties": {
          "snapshot": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema768"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "make": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema769"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "models": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema770"
            }
          }
        },
        "required": ["snapshot", "make", "models"],
        "additionalProperties": false
      },
      "vehicleVinDecodeRequestSchema": {
        "type": "object",
        "properties": {
          "vin": {
            "$ref": "#/components/schemas/__shared/properties/schema52"
          }
        },
        "required": ["vin"],
        "additionalProperties": false
      },
      "vehicleVinDecodeResponseSchema": {
        "type": "object",
        "properties": {
          "vin": {
            "$ref": "#/components/schemas/__shared/properties/schema52"
          },
          "source": {
            "type": "string",
            "enum": ["vpic_seed"]
          },
          "snapshot": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema768"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "decoded": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema58"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "confidence": {
            "type": "string",
            "enum": ["exact_pattern", "wmi", "vin_only"]
          },
          "checkDigit": {
            "type": "object",
            "properties": {
              "expected": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 1
              },
              "actual": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 1
              },
              "valid": {
                "nullable": true,
                "type": "boolean"
              }
            },
            "required": ["expected", "actual", "valid"],
            "additionalProperties": false
          },
          "candidates": {
            "type": "object",
            "properties": {
              "makes": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema769"
                }
              },
              "models": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema770"
                }
              }
            },
            "required": ["makes"],
            "additionalProperties": false
          }
        },
        "required": [
          "vin",
          "source",
          "snapshot",
          "decoded",
          "confidence",
          "checkDigit",
          "candidates"
        ],
        "additionalProperties": false
      },
      "payableVendorListResponseSchema": {
        "type": "object",
        "properties": {
          "vendors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema771"
            }
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          }
        },
        "required": ["vendors"]
      },
      "payableVendorResponseSchema": {
        "type": "object",
        "properties": {
          "vendor": {
            "$ref": "#/components/schemas/__shared/properties/schema771"
          }
        },
        "required": ["vendor"]
      },
      "payableVendorCreateRequestSchema": {
        "type": "object",
        "properties": {
          "vendor": {
            "type": "object",
            "properties": {
              "vendorId": {
                "$ref": "#/components/schemas/__shared/properties/schema882"
              },
              "partyRef": {
                "$ref": "#/components/schemas/__shared/properties/schema883"
              },
              "partyAdmission": {
                "$ref": "#/components/schemas/__shared/properties/schema884"
              },
              "displayName": {
                "$ref": "#/components/schemas/__shared/properties/schema773"
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema885"
              },
              "legalName": {
                "$ref": "#/components/schemas/__shared/properties/schema886"
              },
              "aliases": {
                "$ref": "#/components/schemas/__shared/properties/schema887"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema888"
              },
              "categories": {
                "$ref": "#/components/schemas/__shared/properties/schema889"
              },
              "externalId": {
                "$ref": "#/components/schemas/__shared/properties/schema890"
              },
              "externalRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema891"
              },
              "defaultTerms": {
                "$ref": "#/components/schemas/__shared/properties/schema892"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "contacts": {
                "$ref": "#/components/schemas/__shared/properties/schema893"
              },
              "addresses": {
                "$ref": "#/components/schemas/__shared/properties/schema896"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema788"
              },
              "profiles": {
                "$ref": "#/components/schemas/__shared/properties/schema898"
              }
            },
            "required": ["displayName", "currency", "status"],
            "additionalProperties": false
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema142"
          }
        },
        "required": ["vendor", "metadata"]
      },
      "payableVendorUpdateRequestSchema": {
        "type": "object",
        "properties": {
          "patch": {
            "type": "object",
            "properties": {
              "displayName": {
                "$ref": "#/components/schemas/__shared/properties/schema899"
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema885"
              },
              "legalName": {
                "$ref": "#/components/schemas/__shared/properties/schema886"
              },
              "aliases": {
                "$ref": "#/components/schemas/__shared/properties/schema887"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema888"
              },
              "categories": {
                "$ref": "#/components/schemas/__shared/properties/schema889"
              },
              "externalId": {
                "$ref": "#/components/schemas/__shared/properties/schema890"
              },
              "externalRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema891"
              },
              "defaultTerms": {
                "$ref": "#/components/schemas/__shared/properties/schema900"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema901"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema902"
              },
              "contacts": {
                "$ref": "#/components/schemas/__shared/properties/schema903"
              },
              "addresses": {
                "$ref": "#/components/schemas/__shared/properties/schema906"
              },
              "profiles": {
                "$ref": "#/components/schemas/__shared/properties/schema907"
              }
            },
            "additionalProperties": false
          },
          "metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema143"
              },
              {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema82"
                  }
                },
                "required": ["idempotencyKey"]
              },
              {
                "type": "object",
                "properties": {
                  "occVersion": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": ["occVersion"]
              }
            ]
          }
        },
        "required": ["patch", "metadata"]
      },
      "purchaseOrderListResponseSchema": {
        "type": "object",
        "properties": {
          "purchaseOrders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema908"
            }
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          }
        },
        "required": ["purchaseOrders"]
      },
      "purchaseOrderResponseSchema": {
        "type": "object",
        "properties": {
          "purchaseOrder": {
            "$ref": "#/components/schemas/__shared/properties/schema908"
          },
          "documentRender": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema954"
              }
            ]
          },
          "jobTitles": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 280
            }
          }
        },
        "required": ["purchaseOrder"]
      },
      "purchaseOrderCreateRequestSchema": {
        "type": "object",
        "properties": {
          "purchaseOrder": {
            "type": "object",
            "properties": {
              "purchaseOrderId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema909"
                  }
                ]
              },
              "vendorId": {
                "$ref": "#/components/schemas/__shared/properties/schema911"
              },
              "poNumber": {
                "$ref": "#/components/schemas/__shared/properties/schema912"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema913"
              },
              "orderedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema914"
              },
              "expectedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema915"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema916"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema917"
              },
              "externalId": {
                "$ref": "#/components/schemas/__shared/properties/schema918"
              },
              "externalRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema919"
              },
              "totals": {
                "$ref": "#/components/schemas/__shared/properties/schema921"
              },
              "lines": {
                "$ref": "#/components/schemas/__shared/properties/schema959"
              }
            },
            "required": ["vendorId", "currency", "status"],
            "additionalProperties": false
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema142"
          }
        },
        "required": ["purchaseOrder", "metadata"],
        "additionalProperties": false
      },
      "purchaseOrderUpdateRequestSchema": {
        "type": "object",
        "properties": {
          "patch": {
            "type": "object",
            "properties": {
              "poNumber": {
                "$ref": "#/components/schemas/__shared/properties/schema962"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema963"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema964"
              },
              "orderedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema965"
              },
              "expectedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema966"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema967"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema968"
              },
              "externalId": {
                "$ref": "#/components/schemas/__shared/properties/schema969"
              },
              "externalRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema970"
              },
              "totals": {
                "$ref": "#/components/schemas/__shared/properties/schema971"
              },
              "lines": {
                "$ref": "#/components/schemas/__shared/properties/schema972"
              }
            },
            "additionalProperties": false
          },
          "metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema143"
              },
              {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema82"
                  }
                },
                "required": ["idempotencyKey"]
              },
              {
                "type": "object",
                "properties": {
                  "occVersion": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": ["occVersion"]
              }
            ]
          }
        },
        "required": ["patch", "metadata"],
        "additionalProperties": false
      },
      "customerStatementGenerateRequestSchema": {
        "type": "object",
        "properties": {
          "asOf": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "includePaid": {
            "type": "boolean"
          },
          "portalVisible": {
            "type": "boolean"
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema142"
          }
        },
        "required": ["metadata"]
      },
      "customerStatementGenerateResponseSchema": {
        "type": "object",
        "properties": {
          "run": {
            "$ref": "#/components/schemas/__shared/properties/schema973"
          }
        },
        "required": ["run"]
      },
      "customerStatementRunResponseSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/customerStatementGenerateResponseSchema"
          }
        ]
      },
      "serviceHistoryResponseSchema": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema1004"
            }
          },
          "followUps": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema1019"
            }
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          },
          "coverage": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": ["available", "empty", "incomplete"]
              },
              "sourceCount": {
                "type": "integer",
                "minimum": 0
              },
              "returnedCount": {
                "type": "integer",
                "minimum": 0
              },
              "skippedCount": {
                "type": "integer",
                "minimum": 0
              },
              "truncatedCount": {
                "type": "integer",
                "minimum": 0
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              }
            },
            "required": [
              "state",
              "sourceCount",
              "returnedCount",
              "skippedCount",
              "truncatedCount"
            ],
            "additionalProperties": false
          }
        },
        "required": ["items", "followUps", "coverage"],
        "additionalProperties": false
      },
      "workItemSearchResponseSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/workItemListResponseSchema"
          }
        ]
      },
      "requiredIdempotencyOperationMetadataSchema": {
        "type": "object",
        "properties": {
          "metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema143"
              },
              {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema82"
                  }
                },
                "required": ["idempotencyKey"]
              },
              {
                "type": "object",
                "properties": {
                  "occVersion": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "required": ["occVersion"]
              }
            ]
          }
        },
        "required": ["metadata"]
      },
      "archiveRequestSchema": {
        "type": "object",
        "properties": {
          "operationMetadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema143"
              }
            ]
          }
        }
      },
      "purchaseOrderReceiveRequestSchema": {
        "type": "object",
        "properties": {
          "receipt": {
            "type": "object",
            "properties": {
              "receiptId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "receivedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "externalId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "lines": {
                "minItems": 1,
                "maxItems": 500,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1020"
                }
              },
              "notes": {
                "type": "string",
                "maxLength": 4000
              }
            },
            "required": ["lines"],
            "additionalProperties": false
          },
          "metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema143"
              },
              {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema82"
                  }
                },
                "required": ["idempotencyKey"]
              },
              {
                "type": "object",
                "properties": {
                  "occVersion": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": ["occVersion"]
              }
            ]
          }
        },
        "required": ["receipt", "metadata"],
        "additionalProperties": false
      },
      "purchaseOrderReceiveResponseSchema": {
        "type": "object",
        "properties": {
          "purchaseOrder": {
            "$ref": "#/components/schemas/__shared/properties/schema908"
          },
          "receipt": {
            "$ref": "#/components/schemas/__shared/properties/schema1043"
          },
          "documentRender": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema954"
              }
            ]
          }
        },
        "required": ["purchaseOrder", "receipt"]
      },
      "purchaseOrderReceiptListResponseSchema": {
        "type": "object",
        "properties": {
          "receipts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema1043"
            }
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          }
        },
        "required": ["receipts"]
      },
      "purchasingReturnListResponseSchema": {
        "type": "object",
        "properties": {
          "purchasingReturns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema1047"
            }
          },
          "nextToken": {
            "$ref": "#/components/schemas/__shared/properties/schema116"
          }
        },
        "required": ["purchasingReturns"],
        "additionalProperties": false
      },
      "purchasingReturnCreateRequestSchema": {
        "type": "object",
        "properties": {
          "returnId": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/__shared/properties/schema1048"
          },
          "vendorId": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "source": {
            "$ref": "#/components/schemas/__shared/properties/schema1049"
          },
          "reason": {
            "maxLength": 1000,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "evidenceRefs": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema961"
            }
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema142"
          }
        },
        "required": [
          "kind",
          "vendorId",
          "source",
          "reason",
          "evidenceRefs",
          "metadata"
        ],
        "additionalProperties": false
      },
      "purchasingReturnMutationResponseSchema": {
        "type": "object",
        "properties": {
          "purchasingReturn": {
            "$ref": "#/components/schemas/__shared/properties/schema1047"
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": ["purchasingReturn", "replayed"],
        "additionalProperties": false
      },
      "purchasingReturnResponseSchema": {
        "type": "object",
        "properties": {
          "purchasingReturn": {
            "$ref": "#/components/schemas/__shared/properties/schema1047"
          }
        },
        "required": ["purchasingReturn"],
        "additionalProperties": false
      },
      "purchasingReturnTransitionRequestSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "authorize",
              "record_return",
              "approve_warranty",
              "deny_warranty",
              "request_credit",
              "record_credit",
              "close",
              "schedule_retry",
              "fail_terminal"
            ]
          },
          "occurredAt": {
            "$ref": "#/components/schemas/__shared/properties/schema27"
          },
          "positionId": {
            "maxLength": 2048,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "authorization": {
            "type": "object",
            "properties": {
              "authorizationId": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              }
            },
            "required": ["authorizationId"],
            "additionalProperties": false
          },
          "evidenceRefs": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema961"
            }
          },
          "creditId": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "creditAmountCents": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true,
            "maximum": 9007199254740991
          },
          "failureCode": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "failureMessage": {
            "maxLength": 1000,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "nextAttemptAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "metadata": {
            "$ref": "#/components/schemas/__shared/properties/schema142"
          }
        },
        "required": ["action", "occurredAt", "metadata"],
        "additionalProperties": false
      },
      "__shared": {
        "type": "object",
        "properties": {
          "schema0": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
          },
          "schema1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema2": {
            "type": "object",
            "properties": {
              "schemaVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema3"
              },
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema4"
              },
              "workspaceLifecycleEpoch": {
                "$ref": "#/components/schemas/__shared/properties/schema5"
              },
              "partyId": {
                "$ref": "#/components/schemas/__shared/properties/schema4"
              },
              "partyVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema5"
              },
              "partyHash": {
                "$ref": "#/components/schemas/__shared/properties/schema6"
              },
              "roleId": {
                "$ref": "#/components/schemas/__shared/properties/schema7"
              },
              "roleKind": {
                "$ref": "#/components/schemas/__shared/properties/schema8"
              },
              "roleVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema9"
              },
              "roleHash": {
                "$ref": "#/components/schemas/__shared/properties/schema10"
              }
            },
            "required": [
              "schemaVersion",
              "workspaceId",
              "workspaceLifecycleEpoch",
              "partyId",
              "partyVersion",
              "partyHash"
            ],
            "additionalProperties": false
          },
          "schema3": {
            "type": "string",
            "enum": ["zelio.party.v1"]
          },
          "schema4": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "schema5": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "schema6": {
            "type": "string",
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "schema7": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema4"
              }
            ]
          },
          "schema8": {
            "type": "string",
            "enum": [
              "customer_account",
              "prospect",
              "vendor",
              "employee",
              "contractor",
              "person_contact",
              "member",
              "advocate",
              "referrer"
            ]
          },
          "schema9": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema5"
              }
            ]
          },
          "schema10": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema6"
              }
            ]
          },
          "schema11": {
            "type": "string",
            "enum": ["individual", "organization"]
          },
          "schema12": {
            "type": "string"
          },
          "schema13": {
            "nullable": true,
            "type": "string"
          },
          "schema14": {
            "type": "string"
          },
          "schema15": {
            "type": "string",
            "enum": [
              "lead",
              "prospect",
              "active",
              "suspended",
              "archived",
              "blacklisted"
            ]
          },
          "schema16": {
            "type": "string",
            "enum": ["unlinked", "linked"]
          },
          "schema17": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["email", "sms", "both", "none"]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema18": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "schema19": {
            "type": "string"
          },
          "schema20": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema21"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema21": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": ["net"]
                  },
                  "days": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  }
                },
                "required": ["type", "days"]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": ["due_on_receipt"]
                  }
                },
                "required": ["type"]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": ["custom"]
                  },
                  "label": {
                    "maxLength": 64,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema22"
                      }
                    ]
                  }
                },
                "required": ["type", "label"]
              }
            ]
          },
          "schema22": {
            "type": "string",
            "minLength": 1
          },
          "schema23": {
            "nullable": true,
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "schema24": {
            "type": "boolean"
          },
          "schema25": {
            "type": "object",
            "properties": {
              "language": {
                "maxLength": 16,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "timezone": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "marketingOptIn": {
                "type": "boolean"
              },
              "communications": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": ["enabled", "opted_out"]
                      },
                      "categories": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema26"
                          }
                        ]
                      },
                      "updatedAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      }
                    }
                  },
                  "sms": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "not_invited",
                          "invited",
                          "pending_verification",
                          "active",
                          "opted_out"
                        ]
                      },
                      "contactMethodId": {
                        "maxLength": 128,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema22"
                          }
                        ]
                      },
                      "categories": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema26"
                          }
                        ]
                      },
                      "invitedAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      },
                      "consentedAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      },
                      "verifiedAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      },
                      "optedOutAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      },
                      "updatedAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "schema26": {
            "type": "object",
            "properties": {
              "account": {
                "type": "boolean"
              },
              "billing": {
                "type": "boolean"
              },
              "documents": {
                "type": "boolean"
              },
              "messages": {
                "type": "boolean"
              },
              "bookings": {
                "type": "boolean"
              }
            }
          },
          "schema27": {
            "type": "string",
            "format": "date-time"
          },
          "schema28": {
            "nullable": true,
            "type": "string"
          },
          "schema29": {
            "nullable": true,
            "type": "string"
          },
          "schema30": {
            "nullable": true,
            "type": "string"
          },
          "schema31": {
            "nullable": true,
            "type": "string"
          },
          "schema32": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema33": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema34"
              }
            ]
          },
          "schema34": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema35"
            }
          },
          "schema35": {
            "type": "object",
            "properties": {
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "openBalanceCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "lifetimeValueCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": ["currency", "openBalanceCents", "lifetimeValueCents"]
          },
          "schema36": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema37"
            }
          },
          "schema37": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema38": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema39": {
            "type": "object",
            "additionalProperties": {}
          },
          "schema40": {
            "type": "integer",
            "minimum": 0
          },
          "schema41": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema42"
              }
            ]
          },
          "schema42": {
            "type": "string",
            "minLength": 8,
            "maxLength": 255
          },
          "schema43": {
            "type": "object",
            "properties": {
              "items": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema44"
                }
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": ["items", "hasMore"]
          },
          "schema44": {
            "type": "object",
            "properties": {
              "itemId": {
                "$ref": "#/components/schemas/__shared/properties/schema45"
              },
              "asset": {
                "$ref": "#/components/schemas/__shared/properties/schema46"
              }
            },
            "required": ["itemId"]
          },
          "schema45": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema46": {
            "nullable": true,
            "type": "object",
            "properties": {
              "typeId": {
                "$ref": "#/components/schemas/__shared/properties/schema47"
              },
              "displayName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "category": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "identifiers": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema48"
                }
              },
              "attributes": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/__shared/properties/schema49"
                }
              },
              "specialization": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["vehicle"]
                      },
                      "vehicle": {
                        "type": "object",
                        "properties": {
                          "vin": {
                            "$ref": "#/components/schemas/__shared/properties/schema51"
                          },
                          "hin": {
                            "$ref": "#/components/schemas/__shared/properties/schema53"
                          },
                          "licensePlate": {
                            "$ref": "#/components/schemas/__shared/properties/schema54"
                          },
                          "registrationState": {
                            "$ref": "#/components/schemas/__shared/properties/schema55"
                          },
                          "registrationCountry": {
                            "$ref": "#/components/schemas/__shared/properties/schema56"
                          },
                          "decoded": {
                            "$ref": "#/components/schemas/__shared/properties/schema57"
                          },
                          "carfaxSummary": {
                            "$ref": "#/components/schemas/__shared/properties/schema61"
                          },
                          "telematics": {
                            "$ref": "#/components/schemas/__shared/properties/schema66"
                          },
                          "insurance": {
                            "$ref": "#/components/schemas/__shared/properties/schema72"
                          },
                          "valuation": {
                            "$ref": "#/components/schemas/__shared/properties/schema74"
                          },
                          "shared": {
                            "$ref": "#/components/schemas/__shared/properties/schema76"
                          },
                          "privateEnrichments": {
                            "$ref": "#/components/schemas/__shared/properties/schema99"
                          },
                          "enrichedAt": {
                            "$ref": "#/components/schemas/__shared/properties/schema102"
                          }
                        }
                      }
                    },
                    "required": ["kind", "vehicle"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["document"]
                      },
                      "document": {
                        "type": "object",
                        "properties": {
                          "documentId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "documentType": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "locale": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 16
                          },
                          "pageCount": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 200
                          }
                        },
                        "required": ["documentId"]
                      }
                    },
                    "required": ["kind", "document"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["property"]
                      },
                      "property": {
                        "type": "object",
                        "properties": {
                          "parcelId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "jurisdiction": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "address": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/__shared/properties/schema103"
                              }
                            ]
                          },
                          "coordinates": {
                            "type": "object",
                            "properties": {
                              "latitude": {
                                "type": "number",
                                "minimum": -90,
                                "maximum": 90
                              },
                              "longitude": {
                                "type": "number",
                                "minimum": -180,
                                "maximum": 180
                              }
                            },
                            "required": ["latitude", "longitude"]
                          },
                          "landUse": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "lotSizeSquareFeet": {
                            "nullable": true,
                            "type": "number",
                            "minimum": 0
                          },
                          "livingAreaSquareFeet": {
                            "nullable": true,
                            "type": "number",
                            "minimum": 0
                          },
                          "yearBuilt": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": 1600,
                            "maximum": 2100
                          },
                          "valuation": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/__shared/properties/schema104"
                              }
                            ]
                          },
                          "lastSale": {
                            "type": "object",
                            "properties": {
                              "price": {
                                "nullable": true,
                                "type": "number",
                                "minimum": 0
                              },
                              "currency": {
                                "allOf": [
                                  {
                                    "$ref": "#/components/schemas/__shared/properties/schema18"
                                  }
                                ]
                              },
                              "recordedAt": {
                                "anyOf": [
                                  {
                                    "allOf": [
                                      {
                                        "$ref": "#/components/schemas/__shared/properties/schema27"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "string",
                                    "nullable": true,
                                    "enum": [null]
                                  }
                                ]
                              },
                              "documentNumber": {
                                "type": "string",
                                "maxLength": 64
                              }
                            }
                          }
                        },
                        "required": ["parcelId", "jurisdiction"]
                      }
                    },
                    "required": ["kind", "property"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["structured"]
                      },
                      "structured": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "schemaId": {
                                "$ref": "#/components/schemas/__shared/properties/schema47"
                              },
                              "schemaVersion": {
                                "$ref": "#/components/schemas/__shared/properties/schema105"
                              },
                              "data": {
                                "$ref": "#/components/schemas/__shared/properties/schema106"
                              },
                              "category": {
                                "type": "string",
                                "enum": ["equipment"]
                              },
                              "equipment": {
                                "$ref": "#/components/schemas/__shared/properties/schema107"
                              },
                              "property": {
                                "not": {}
                              },
                              "financialAccount": {
                                "not": {}
                              }
                            },
                            "required": ["schemaId", "category", "equipment"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "schemaId": {
                                "$ref": "#/components/schemas/__shared/properties/schema47"
                              },
                              "schemaVersion": {
                                "$ref": "#/components/schemas/__shared/properties/schema105"
                              },
                              "data": {
                                "$ref": "#/components/schemas/__shared/properties/schema106"
                              },
                              "category": {
                                "type": "string",
                                "enum": ["property"]
                              },
                              "property": {
                                "$ref": "#/components/schemas/__shared/properties/schema109"
                              },
                              "equipment": {
                                "not": {}
                              },
                              "financialAccount": {
                                "not": {}
                              }
                            },
                            "required": ["schemaId", "category", "property"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "schemaId": {
                                "$ref": "#/components/schemas/__shared/properties/schema47"
                              },
                              "schemaVersion": {
                                "$ref": "#/components/schemas/__shared/properties/schema105"
                              },
                              "data": {
                                "$ref": "#/components/schemas/__shared/properties/schema106"
                              },
                              "category": {
                                "type": "string",
                                "enum": ["financial_account"]
                              },
                              "financialAccount": {
                                "$ref": "#/components/schemas/__shared/properties/schema110"
                              },
                              "equipment": {
                                "not": {}
                              },
                              "property": {
                                "not": {}
                              }
                            },
                            "required": [
                              "schemaId",
                              "category",
                              "financialAccount"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "schemaId": {
                                "$ref": "#/components/schemas/__shared/properties/schema47"
                              },
                              "schemaVersion": {
                                "$ref": "#/components/schemas/__shared/properties/schema105"
                              },
                              "data": {
                                "$ref": "#/components/schemas/__shared/properties/schema106"
                              },
                              "category": {
                                "type": "string",
                                "enum": [
                                  "equipment",
                                  "property",
                                  "financial_account"
                                ]
                              },
                              "equipment": {
                                "allOf": [
                                  {
                                    "$ref": "#/components/schemas/__shared/properties/schema107"
                                  }
                                ]
                              },
                              "property": {
                                "allOf": [
                                  {
                                    "$ref": "#/components/schemas/__shared/properties/schema109"
                                  }
                                ]
                              },
                              "financialAccount": {
                                "allOf": [
                                  {
                                    "$ref": "#/components/schemas/__shared/properties/schema110"
                                  }
                                ]
                              }
                            },
                            "required": ["schemaId"]
                          }
                        ]
                      }
                    },
                    "required": ["kind", "structured"]
                  }
                ]
              },
              "shared": {
                "type": "object",
                "properties": {
                  "enrichedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema77"
                  },
                  "data": {
                    "$ref": "#/components/schemas/__shared/properties/schema112"
                  }
                }
              },
              "privateEnrichments": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "fetchedAt": {
                      "$ref": "#/components/schemas/__shared/properties/schema100"
                    },
                    "data": {
                      "$ref": "#/components/schemas/__shared/properties/schema112"
                    }
                  }
                }
              },
              "recommendations": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema113"
                }
              }
            },
            "required": ["typeId"]
          },
          "schema47": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z0-9]+([._-][a-z0-9]+)*$"
          },
          "schema48": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[a-z0-9]+([.:_-][a-z0-9]+)*$"
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "issuer": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "primary": {
                "type": "boolean"
              }
            },
            "required": ["type", "value"]
          },
          "schema49": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema50"
              },
              {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema50"
                }
              }
            ]
          },
          "schema50": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema51": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema52"
              }
            ]
          },
          "schema52": {
            "type": "string",
            "pattern": "^[A-HJ-NPR-Z0-9]{17}$"
          },
          "schema53": {
            "type": "string",
            "minLength": 5,
            "maxLength": 32
          },
          "schema54": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10
          },
          "schema55": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "schema56": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "schema57": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema58"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema58": {
            "type": "object",
            "properties": {
              "year": {
                "nullable": true,
                "type": "integer",
                "minimum": 1900,
                "maximum": 2100
              },
              "make": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              },
              "model": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              },
              "trim": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              },
              "bodyStyle": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              },
              "engine": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              },
              "fuelType": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              },
              "transmission": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              },
              "driveType": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              },
              "doors": {
                "$ref": "#/components/schemas/__shared/properties/schema60"
              },
              "manufacturer": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              },
              "plant": {
                "$ref": "#/components/schemas/__shared/properties/schema59"
              }
            }
          },
          "schema59": {
            "nullable": true,
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema60": {
            "nullable": true,
            "type": "integer",
            "minimum": 0
          },
          "schema61": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema62"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema62": {
            "type": "object",
            "properties": {
              "accidents": {
                "$ref": "#/components/schemas/__shared/properties/schema60"
              },
              "damageReports": {
                "$ref": "#/components/schemas/__shared/properties/schema60"
              },
              "openRecalls": {
                "$ref": "#/components/schemas/__shared/properties/schema60"
              },
              "numberOfOwners": {
                "$ref": "#/components/schemas/__shared/properties/schema60"
              },
              "lastReportedMileage": {
                "$ref": "#/components/schemas/__shared/properties/schema60"
              },
              "lastReportedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "usageTypes": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema63"
                }
              },
              "comments": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema64"
                }
              },
              "reportUrl": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema65"
                  }
                ]
              },
              "generatedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              }
            }
          },
          "schema63": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema64": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "schema65": {
            "type": "string",
            "maxLength": 4096,
            "format": "uri"
          },
          "schema66": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema67"
              }
            ]
          },
          "schema67": {
            "type": "object",
            "properties": {
              "odometerMiles": {
                "$ref": "#/components/schemas/__shared/properties/schema68"
              },
              "fuelLevelPercentage": {
                "$ref": "#/components/schemas/__shared/properties/schema69"
              },
              "batteryHealthPercentage": {
                "$ref": "#/components/schemas/__shared/properties/schema70"
              },
              "recordedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "source": {
                "$ref": "#/components/schemas/__shared/properties/schema71"
              }
            }
          },
          "schema68": {
            "nullable": true,
            "type": "number",
            "minimum": 0
          },
          "schema69": {
            "nullable": true,
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "schema70": {
            "nullable": true,
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "schema71": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema72": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema73"
              }
            ]
          },
          "schema73": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "policyNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "coverage": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "effectiveDate": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "expiryDate": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              }
            }
          },
          "schema74": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema75"
              }
            ]
          },
          "schema75": {
            "type": "object",
            "properties": {
              "retailValue": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              },
              "wholesaleValue": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              },
              "currency": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  }
                ]
              },
              "effectiveDate": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "provider": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          },
          "schema76": {
            "type": "object",
            "properties": {
              "enrichedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema77"
              },
              "decoded": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema58"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "enrichment": {
                "type": "object",
                "properties": {
                  "operationId": {
                    "$ref": "#/components/schemas/__shared/properties/schema45"
                  },
                  "status": {
                    "$ref": "#/components/schemas/__shared/properties/schema78"
                  },
                  "retryable": {
                    "$ref": "#/components/schemas/__shared/properties/schema79"
                  },
                  "capabilityId": {
                    "$ref": "#/components/schemas/__shared/properties/schema80"
                  },
                  "operation": {
                    "$ref": "#/components/schemas/__shared/properties/schema81"
                  },
                  "idempotencyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema82"
                  },
                  "input": {
                    "$ref": "#/components/schemas/__shared/properties/schema83"
                  },
                  "output": {
                    "$ref": "#/components/schemas/__shared/properties/schema84"
                  },
                  "provenance": {
                    "$ref": "#/components/schemas/__shared/properties/schema85"
                  },
                  "effects": {
                    "$ref": "#/components/schemas/__shared/properties/schema86"
                  },
                  "resultRefs": {
                    "$ref": "#/components/schemas/__shared/properties/schema96"
                  },
                  "error": {
                    "$ref": "#/components/schemas/__shared/properties/schema97"
                  },
                  "metadata": {
                    "$ref": "#/components/schemas/__shared/properties/schema98"
                  }
                },
                "required": [
                  "operationId",
                  "status",
                  "capabilityId",
                  "idempotencyKey",
                  "input",
                  "provenance"
                ],
                "additionalProperties": false
              },
              "catalog": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              },
              "provenance": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              },
              "telematics": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema67"
                  }
                ]
              },
              "valuation": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema75"
                  }
                ]
              }
            }
          },
          "schema77": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema78": {
            "type": "string",
            "enum": ["pending", "applied", "skipped", "failed"]
          },
          "schema79": {
            "default": false,
            "type": "boolean"
          },
          "schema80": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z][a-z0-9_-]*(?:[./][a-z0-9_-]+)*$"
          },
          "schema81": {
            "default": "enrich",
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-z][a-z0-9_-]*(?:[./][a-z0-9_-]+)*$"
          },
          "schema82": {
            "type": "string",
            "minLength": 8,
            "maxLength": 255
          },
          "schema83": {
            "type": "object",
            "additionalProperties": {}
          },
          "schema84": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema83"
              }
            ]
          },
          "schema85": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "provider": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "retrievedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "observedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "confidence": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                ]
              },
              "snapshotId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema83"
                  }
                ]
              }
            },
            "required": ["source"],
            "additionalProperties": false
          },
          "schema86": {
            "default": [],
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema87"
            }
          },
          "schema87": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "target": {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema0"
                  },
                  "kind": {
                    "type": "string",
                    "enum": ["item", "asset", "workflow"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema45"
                  },
                  "typeKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "required": ["workspaceId", "kind", "id"],
                "additionalProperties": false
              },
              "resultRef": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema88"
                  }
                ]
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema83"
                  }
                ]
              }
            },
            "required": ["kind"],
            "additionalProperties": false
          },
          "schema88": {
            "type": "object",
            "properties": {
              "entityKind": {
                "$ref": "#/components/schemas/__shared/properties/schema89"
              },
              "entityId": {
                "$ref": "#/components/schemas/__shared/properties/schema90"
              },
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema91"
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema92"
              },
              "sourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema93"
              },
              "previousSourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema94"
              },
              "sourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema95"
              }
            },
            "required": ["entityKind", "entityId"]
          },
          "schema89": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema90": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "schema91": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              }
            ]
          },
          "schema92": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "schema93": {
            "type": "integer",
            "minimum": 0
          },
          "schema94": {
            "type": "integer",
            "minimum": 0
          },
          "schema95": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema96": {
            "default": [],
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema88"
            }
          },
          "schema97": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96,
                "pattern": "^[A-Z][A-Z0-9_-]*$"
              },
              "message": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "retryable": {
                "type": "boolean"
              },
              "details": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema83"
                  }
                ]
              }
            },
            "required": ["code", "message", "retryable"],
            "additionalProperties": false
          },
          "schema98": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema83"
              }
            ]
          },
          "schema99": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "fetchedAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema100"
                },
                "carfaxSummary": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/__shared/properties/schema62"
                        }
                      ]
                    },
                    {
                      "type": "string",
                      "nullable": true,
                      "enum": [null]
                    }
                  ]
                },
                "telematicsHistory": {
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/__shared/properties/schema101"
                  }
                },
                "insurance": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/__shared/properties/schema73"
                    }
                  ]
                },
                "valuation": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/__shared/properties/schema75"
                    }
                  ]
                }
              }
            }
          },
          "schema100": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema101": {
            "type": "object",
            "properties": {
              "odometerMiles": {
                "$ref": "#/components/schemas/__shared/properties/schema68"
              },
              "fuelLevelPercentage": {
                "$ref": "#/components/schemas/__shared/properties/schema69"
              },
              "batteryHealthPercentage": {
                "$ref": "#/components/schemas/__shared/properties/schema70"
              },
              "recordedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "source": {
                "$ref": "#/components/schemas/__shared/properties/schema71"
              }
            }
          },
          "schema102": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema103": {
            "type": "object",
            "properties": {
              "line1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "line2": {
                "type": "string",
                "maxLength": 128
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "region": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "postalCode": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "country": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2
              }
            }
          },
          "schema104": {
            "type": "object",
            "properties": {
              "assessedValue": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              },
              "marketValue": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              },
              "currency": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  }
                ]
              },
              "effectiveDate": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          },
          "schema105": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32
          },
          "schema106": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema107": {
            "type": "object",
            "properties": {
              "identifier": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "manufacturer": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "serialNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "category": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "acquiredAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "inServiceAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "warranty": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "coverage": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "expiresAt": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      },
                      {
                        "type": "string",
                        "nullable": true,
                        "enum": [null]
                      }
                    ]
                  }
                }
              },
              "maintenance": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema108"
                }
              }
            }
          },
          "schema108": {
            "type": "object",
            "properties": {
              "performedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "provider": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "cost": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              },
              "currency": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  }
                ]
              },
              "odometerHours": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              }
            }
          },
          "schema109": {
            "type": "object",
            "properties": {
              "parcelId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "jurisdiction": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "address": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema103"
                  }
                ]
              },
              "valuation": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema104"
                  }
                ]
              },
              "appraisal": {
                "type": "object",
                "properties": {
                  "appraisedValue": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0
                  },
                  "appraisedAt": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      },
                      {
                        "type": "string",
                        "nullable": true,
                        "enum": [null]
                      }
                    ]
                  },
                  "appraiser": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 1024
                  }
                }
              },
              "lastInspectionAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              }
            }
          },
          "schema110": {
            "type": "object",
            "properties": {
              "institutionName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "accountName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "accountNumberLast4": {
                "type": "string",
                "minLength": 4,
                "maxLength": 4
              },
              "accountType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "status": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "openedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "balance": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema111"
                  }
                ]
              },
              "availableBalance": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema111"
                  }
                ]
              },
              "interestRate": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            }
          },
          "schema111": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "number"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "asOf": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              }
            },
            "required": ["amount", "currency"]
          },
          "schema112": {
            "type": "object",
            "additionalProperties": {}
          },
          "schema113": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "detail": {
                "type": "string",
                "maxLength": 2000
              },
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "accepted",
                  "declined",
                  "deferred",
                  "completed",
                  "archived"
                ]
              },
              "recommendedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "dueAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "deferredUntil": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "resolvedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "tags": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema114"
                }
              },
              "externalRefs": {
                "maxItems": 10,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema115"
                }
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            },
            "required": ["id", "title", "status"]
          },
          "schema114": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema115": {
            "type": "object",
            "properties": {
              "system": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "externalId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": ["system", "externalId"]
          },
          "schema116": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "schema117": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "customerId": {
                "$ref": "#/components/schemas/__shared/properties/schema1"
              },
              "partyRef": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema2"
                  }
                ]
              },
              "contactMethodId": {
                "type": "string"
              },
              "type": {
                "maxLength": 32,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "valueKey": {
                "maxLength": 512,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "emailHash": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "verified": {
                "type": "boolean"
              },
              "primary": {
                "type": "boolean"
              },
              "consent": {
                "type": "object",
                "properties": {
                  "transactional": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema118"
                      }
                    ]
                  },
                  "marketing": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema118"
                      }
                    ]
                  }
                }
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "person": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema119"
                  }
                ]
              }
            },
            "required": [
              "workspaceId",
              "customerId",
              "contactMethodId",
              "type",
              "valueKey",
              "createdAt",
              "updatedAt"
            ]
          },
          "schema118": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["opted_in", "opted_out", "pending", "unknown"]
              },
              "source": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "updatedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "verifiedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              }
            },
            "required": ["status"]
          },
          "schema119": {
            "type": "object",
            "properties": {
              "name": {
                "maxLength": 120,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "role": {
                "maxLength": 60,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              }
            },
            "required": ["name"],
            "additionalProperties": false
          },
          "schema120": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "customerId": {
                "$ref": "#/components/schemas/__shared/properties/schema1"
              },
              "partyRef": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema2"
                  }
                ]
              },
              "addressId": {
                "type": "string"
              },
              "valueKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "kind": {
                "type": "string",
                "enum": ["billing", "shipping", "service", "other"]
              },
              "label": {
                "anyOf": [
                  {
                    "maxLength": 64,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema22"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "isDefault": {
                "type": "boolean"
              },
              "validated": {
                "type": "boolean"
              },
              "geocode": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "address": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "accessNotes": {
                "type": "string",
                "maxLength": 1000
              }
            },
            "required": [
              "workspaceId",
              "customerId",
              "addressId",
              "kind",
              "createdAt",
              "updatedAt"
            ]
          },
          "schema121": {
            "type": "boolean"
          },
          "schema122": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema123"
              }
            ]
          },
          "schema123": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema124"
              }
            ]
          },
          "schema124": {
            "type": "string",
            "minLength": 1
          },
          "schema125": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema126"
              }
            ]
          },
          "schema126": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema124"
              }
            ]
          },
          "schema127": {
            "anyOf": [
              {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema128": {
            "type": "integer"
          },
          "schema129": {
            "type": "integer",
            "minimum": 0
          },
          "schema130": {
            "type": "integer",
            "minimum": 0
          },
          "schema131": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema124"
              }
            ]
          },
          "schema132": {
            "anyOf": [
              {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema133": {
            "anyOf": [
              {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema134": {
            "nullable": true,
            "type": "number",
            "minimum": 0
          },
          "schema135": {
            "type": "object",
            "properties": {
              "programId": {
                "$ref": "#/components/schemas/__shared/properties/schema123"
              },
              "programVersionId": {
                "$ref": "#/components/schemas/__shared/properties/schema126"
              }
            },
            "required": ["programId", "programVersionId"]
          },
          "schema136": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema137": {
            "type": "object",
            "properties": {
              "points": {
                "type": "object",
                "properties": {
                  "balance": {
                    "type": "integer"
                  },
                  "lifetimeAccrued": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "lifetimeRedeemed": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": ["balance", "lifetimeAccrued", "lifetimeRedeemed"]
              },
              "cashback": {
                "type": "object",
                "properties": {
                  "currency": {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  },
                  "balanceCents": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "lifetimeEarnedCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "lifetimeRedeemedCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "currency",
                  "balanceCents",
                  "lifetimeEarnedCents",
                  "lifetimeRedeemedCents"
                ]
              },
              "perks": {
                "type": "object",
                "properties": {
                  "holdings": {
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema138"
                    }
                  },
                  "lastFulfilledAt": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          }
                        ]
                      },
                      {
                        "type": "string",
                        "nullable": true,
                        "enum": [null]
                      }
                    ]
                  }
                },
                "required": ["holdings"]
              }
            }
          },
          "schema138": {
            "type": "object",
            "properties": {
              "perkId": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema124"
                  }
                ]
              },
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000
              }
            },
            "required": ["perkId", "quantity"]
          },
          "schema139": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "customerId": {
                "$ref": "#/components/schemas/__shared/properties/schema1"
              },
              "itemId": {
                "$ref": "#/components/schemas/__shared/properties/schema45"
              },
              "relation": {
                "type": "string",
                "enum": ["owns", "uses", "registered", "subject"]
              },
              "notes": {
                "nullable": true,
                "type": "string",
                "maxLength": 1024
              },
              "since": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "until": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "asset": {
                "$ref": "#/components/schemas/__shared/properties/schema46"
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "workspaceId",
              "customerId",
              "itemId",
              "relation",
              "createdAt",
              "updatedAt"
            ]
          },
          "schema140": {
            "type": "object",
            "properties": {
              "nextCursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 16384
              }
            },
            "additionalProperties": false
          },
          "schema141": {
            "nullable": true,
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "schema142": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema143"
              },
              {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema82"
                  }
                },
                "required": ["idempotencyKey"]
              }
            ]
          },
          "schema143": {
            "type": "object",
            "properties": {
              "idempotencyKey": {
                "$ref": "#/components/schemas/__shared/properties/schema144"
              },
              "occToken": {
                "$ref": "#/components/schemas/__shared/properties/schema145"
              },
              "occVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema146"
              },
              "requestId": {
                "$ref": "#/components/schemas/__shared/properties/schema147"
              },
              "source": {
                "$ref": "#/components/schemas/__shared/properties/schema148"
              }
            }
          },
          "schema144": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema82"
              }
            ]
          },
          "schema145": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema42"
              }
            ]
          },
          "schema146": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema40"
              }
            ]
          },
          "schema147": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "schema148": {
            "type": "string",
            "enum": ["api", "workflow", "import", "integration"]
          },
          "schema149": {
            "type": "object",
            "properties": {
              "contactMethodId": {
                "$ref": "#/components/schemas/__shared/properties/schema150"
              },
              "email": {
                "$ref": "#/components/schemas/__shared/properties/schema151"
              },
              "phone": {
                "$ref": "#/components/schemas/__shared/properties/schema152"
              },
              "primary": {
                "$ref": "#/components/schemas/__shared/properties/schema153"
              },
              "person": {
                "$ref": "#/components/schemas/__shared/properties/schema154"
              }
            },
            "additionalProperties": false
          },
          "schema150": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema22"
              }
            ]
          },
          "schema151": {
            "type": "string",
            "maxLength": 320,
            "format": "email",
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "schema152": {
            "type": "string",
            "minLength": 3,
            "maxLength": 64
          },
          "schema153": {
            "type": "boolean"
          },
          "schema154": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema119"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema155": {
            "type": "object",
            "properties": {
              "addressId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "billing",
                  "shipping",
                  "service",
                  "remit_to",
                  "ship_from",
                  "other"
                ]
              },
              "label": {
                "maxLength": 120,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "isDefault": {
                "type": "boolean"
              },
              "accessNotes": {
                "nullable": true,
                "type": "string",
                "maxLength": 1000
              }
            },
            "required": ["kind", "value"],
            "additionalProperties": false
          },
          "schema156": {
            "type": "object",
            "properties": {
              "kind": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema11"
                  }
                ]
              },
              "displayName": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "legalName": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema141"
                  }
                ]
              },
              "nameKey": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "lifecycleStatus": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema15"
                  }
                ]
              },
              "defaultCurrency": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  }
                ]
              },
              "priceTierId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema141"
                  }
                ]
              },
              "paymentTerms": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema21"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "creditLimitCents": {
                "nullable": true,
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "taxExempt": {
                "type": "boolean"
              },
              "lastActivityAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "lastInvoiceAt": {
                "$ref": "#/components/schemas/__shared/properties/schema32"
              },
              "financialTotals": {
                "$ref": "#/components/schemas/__shared/properties/schema33"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema36"
              },
              "custom": {
                "$ref": "#/components/schemas/__shared/properties/schema38"
              }
            },
            "additionalProperties": false
          },
          "schema157": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema149"
            }
          },
          "schema158": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema155"
            }
          },
          "schema159": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema160"
            }
          },
          "schema160": {
            "type": "object",
            "properties": {
              "contactMethodId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "action": {
                "type": "string",
                "enum": ["revoke", "unset_primary"]
              }
            },
            "required": ["contactMethodId", "action"],
            "additionalProperties": false
          },
          "schema161": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema162"
            }
          },
          "schema162": {
            "type": "object",
            "properties": {
              "addressId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema22"
                  }
                ]
              },
              "action": {
                "type": "string",
                "enum": ["invalidate", "remove_default", "remove"]
              }
            },
            "required": ["addressId", "action"],
            "additionalProperties": false
          },
          "schema163": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema1"
            }
          },
          "schema164": {
            "type": "boolean",
            "enum": [true]
          },
          "schema165": {
            "type": "boolean",
            "enum": [true]
          },
          "schema166": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/workItemResponseSchema"
            }
          },
          "schema167": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema168": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema169"
              }
            ]
          },
          "schema169": {
            "type": "object",
            "properties": {
              "workItemVersion": {
                "type": "integer",
                "minimum": 0
              },
              "status": {
                "type": "string",
                "enum": ["complete", "incomplete"]
              },
              "evaluatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema170"
              },
              "refreshAfter": {
                "$ref": "#/components/schemas/__shared/properties/schema170"
              },
              "catalogHash": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "sourceHash": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "requestIds": {
                "maxItems": 255,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema171"
                }
              },
              "uncertainTagIds": {
                "$ref": "#/components/schemas/__shared/properties/schema172"
              },
              "failureCode": {
                "type": "string",
                "maxLength": 80
              }
            },
            "required": [
              "workItemVersion",
              "status",
              "evaluatedAt",
              "refreshAfter",
              "catalogHash",
              "sourceHash",
              "requestIds",
              "uncertainTagIds"
            ],
            "additionalProperties": false
          },
          "schema170": {
            "type": "string",
            "format": "date-time"
          },
          "schema171": {
            "type": "string",
            "maxLength": 128
          },
          "schema172": {
            "maxItems": 1024,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema173"
            }
          },
          "schema173": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$"
          },
          "schema174": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema172"
              }
            ]
          },
          "schema175": {
            "type": "string",
            "minLength": 1,
            "maxLength": 280
          },
          "schema176": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema177": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema178"
            }
          },
          "schema178": {
            "type": "object",
            "properties": {
              "partyId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema179"
                  }
                ]
              },
              "partyTypeKey": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema179"
                  }
                ]
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema180"
              },
              "role": {
                "$ref": "#/components/schemas/__shared/properties/schema181"
              },
              "primary": {
                "$ref": "#/components/schemas/__shared/properties/schema182"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema183"
              }
            },
            "required": ["partyId"]
          },
          "schema179": {
            "type": "string",
            "minLength": 1
          },
          "schema180": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "schema181": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema182": {
            "type": "boolean"
          },
          "schema183": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema184": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema185"
            }
          },
          "schema185": {
            "type": "object",
            "properties": {
              "assetId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema179"
                  }
                ]
              },
              "assetTypeKey": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema179"
                  }
                ]
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema180"
              },
              "role": {
                "$ref": "#/components/schemas/__shared/properties/schema181"
              },
              "primary": {
                "$ref": "#/components/schemas/__shared/properties/schema182"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema183"
              }
            },
            "required": ["assetId"]
          },
          "schema186": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema187"
            }
          },
          "schema187": {
            "type": "object",
            "properties": {
              "locationId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema179"
                  }
                ]
              },
              "locationTypeKey": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema179"
                  }
                ]
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema180"
              },
              "role": {
                "$ref": "#/components/schemas/__shared/properties/schema181"
              },
              "primary": {
                "$ref": "#/components/schemas/__shared/properties/schema182"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema183"
              }
            },
            "required": ["locationId"]
          },
          "schema188": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema88"
            }
          },
          "schema189": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema190"
            }
          },
          "schema190": {
            "type": "object",
            "properties": {
              "subjectKind": {
                "type": "string",
                "enum": ["work_item", "commitment", "business_document"]
              },
              "subjectId": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema179"
                  }
                ]
              },
              "subjectTypeKey": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema191"
                  }
                ]
              },
              "workspaceId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema0"
                  }
                ]
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema180"
              },
              "role": {
                "$ref": "#/components/schemas/__shared/properties/schema181"
              },
              "primary": {
                "$ref": "#/components/schemas/__shared/properties/schema182"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema183"
              }
            },
            "required": ["subjectKind", "subjectId"]
          },
          "schema191": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema179"
              }
            ]
          },
          "schema192": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema190"
            }
          },
          "schema193": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema190"
              }
            ]
          },
          "schema194": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema195"
              }
            ]
          },
          "schema195": {
            "type": "object",
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema196"
              },
              "serviceOccurrence": {
                "$ref": "#/components/schemas/__shared/properties/schema197"
              },
              "summary": {
                "$ref": "#/components/schemas/__shared/properties/schema198"
              },
              "reference": {
                "$ref": "#/components/schemas/__shared/properties/schema199"
              },
              "requestedBy": {
                "$ref": "#/components/schemas/__shared/properties/schema200"
              },
              "requestedChannel": {
                "$ref": "#/components/schemas/__shared/properties/schema201"
              },
              "priority": {
                "$ref": "#/components/schemas/__shared/properties/schema202"
              },
              "requestedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema204"
              },
              "promiseAt": {
                "$ref": "#/components/schemas/__shared/properties/schema205"
              },
              "startedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema206"
              },
              "completedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema207"
              },
              "bookingId": {
                "$ref": "#/components/schemas/__shared/properties/schema208"
              },
              "bookingSourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema209"
              },
              "bookingSourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema210"
              },
              "instructions": {
                "$ref": "#/components/schemas/__shared/properties/schema211"
              },
              "measurements": {
                "$ref": "#/components/schemas/__shared/properties/schema212"
              },
              "issues": {
                "$ref": "#/components/schemas/__shared/properties/schema214"
              },
              "intake": {
                "$ref": "#/components/schemas/__shared/properties/schema216"
              },
              "coverage": {
                "$ref": "#/components/schemas/__shared/properties/schema271"
              },
              "blockers": {
                "$ref": "#/components/schemas/__shared/properties/schema286"
              },
              "lineGroups": {
                "$ref": "#/components/schemas/__shared/properties/schema293"
              },
              "operations": {
                "$ref": "#/components/schemas/__shared/properties/schema317"
              },
              "qualityChecks": {
                "$ref": "#/components/schemas/__shared/properties/schema319"
              },
              "resolution": {
                "$ref": "#/components/schemas/__shared/properties/schema321"
              },
              "outcomes": {
                "$ref": "#/components/schemas/__shared/properties/schema322"
              },
              "followUpOrigin": {
                "$ref": "#/components/schemas/__shared/properties/schema324"
              },
              "followUpDispatch": {
                "$ref": "#/components/schemas/__shared/properties/schema325"
              },
              "completionHandoff": {
                "$ref": "#/components/schemas/__shared/properties/schema337"
              },
              "pickupRelease": {
                "$ref": "#/components/schemas/__shared/properties/schema371"
              },
              "runtimeActionOutcomes": {
                "$ref": "#/components/schemas/__shared/properties/schema399"
              },
              "runtimeActionEvents": {
                "$ref": "#/components/schemas/__shared/properties/schema411"
              },
              "custom": {
                "$ref": "#/components/schemas/__shared/properties/schema413"
              }
            },
            "required": ["kind"]
          },
          "schema196": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema197": {
            "type": "object",
            "properties": {
              "occurrenceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^service-occurrence:[a-f0-9]{64}$"
              },
              "agreementId": {
                "type": "string",
                "pattern": "^service-agreement:[A-Za-z0-9_-]{1,108}$"
              },
              "agreementWorkItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "agreementTermsHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "bookingId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "schedulingReceiptId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "required": [
              "occurrenceId",
              "agreementId",
              "agreementWorkItemId",
              "agreementTermsHash"
            ],
            "additionalProperties": false
          },
          "schema198": {
            "type": "string",
            "minLength": 1,
            "maxLength": 280
          },
          "schema199": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema200": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema201": {
            "type": "string",
            "enum": [
              "walk_in",
              "phone",
              "email",
              "sms",
              "web",
              "marketplace",
              "internal",
              "other"
            ]
          },
          "schema202": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema203"
              }
            ]
          },
          "schema203": {
            "type": "string",
            "enum": ["low", "normal", "high", "urgent"]
          },
          "schema204": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema205": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema206": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema207": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema208": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema209": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema210": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema211": {
            "type": "string",
            "maxLength": 2000
          },
          "schema212": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema213"
            }
          },
          "schema213": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "value": {
                "type": "number"
              },
              "unit": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "phase": {
                "type": "string",
                "enum": [
                  "check_in",
                  "check_out",
                  "inspection",
                  "completion",
                  "other"
                ]
              },
              "recordedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              }
            },
            "required": ["id", "label", "value"]
          },
          "schema214": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema215"
            }
          },
          "schema215": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "summary": {
                "type": "string",
                "minLength": 1,
                "maxLength": 280
              },
              "details": {
                "type": "string",
                "maxLength": 2000
              },
              "category": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "severity": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema203"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "acknowledged",
                  "diagnosed",
                  "approved",
                  "deferred",
                  "completed",
                  "canceled"
                ]
              },
              "reportedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "resolvedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              }
            },
            "required": ["id", "summary"]
          },
          "schema216": {
            "type": "object",
            "properties": {
              "captureMode": {
                "$ref": "#/components/schemas/__shared/properties/schema217"
              },
              "lineItems": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema218"
                }
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema261"
              },
              "coordinator": {
                "$ref": "#/components/schemas/__shared/properties/schema262"
              },
              "checkInAt": {
                "$ref": "#/components/schemas/__shared/properties/schema263"
              },
              "checkOutAt": {
                "$ref": "#/components/schemas/__shared/properties/schema264"
              },
              "handoffMode": {
                "$ref": "#/components/schemas/__shared/properties/schema265"
              },
              "contact": {
                "$ref": "#/components/schemas/__shared/properties/schema266"
              },
              "locationLabel": {
                "$ref": "#/components/schemas/__shared/properties/schema267"
              },
              "authorizationLimitCents": {
                "$ref": "#/components/schemas/__shared/properties/schema268"
              },
              "authorizationCurrency": {
                "$ref": "#/components/schemas/__shared/properties/schema269"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema270"
              }
            }
          },
          "schema217": {
            "type": "string",
            "enum": ["line_items", "description"]
          },
          "schema218": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/__shared/properties/schema219"
              },
              "economicKind": {
                "$ref": "#/components/schemas/__shared/properties/schema220"
              },
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema221"
              },
              "quantity": {
                "$ref": "#/components/schemas/__shared/properties/schema222"
              },
              "unitPriceCents": {
                "$ref": "#/components/schemas/__shared/properties/schema223"
              },
              "uom": {
                "$ref": "#/components/schemas/__shared/properties/schema224"
              },
              "rentalDetails": {
                "$ref": "#/components/schemas/__shared/properties/schema225"
              },
              "suppliedItem": {
                "$ref": "#/components/schemas/__shared/properties/schema247"
              },
              "catalogSelection": {
                "$ref": "#/components/schemas/__shared/properties/schema251"
              },
              "estimation": {
                "$ref": "#/components/schemas/__shared/properties/schema257"
              }
            },
            "required": [
              "id",
              "economicKind",
              "description",
              "quantity",
              "unitPriceCents"
            ],
            "additionalProperties": false
          },
          "schema219": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema220": {
            "type": "string",
            "enum": ["labor", "part", "rental", "fee"]
          },
          "schema221": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "schema222": {
            "type": "number",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema223": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema224": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "schema225": {
            "type": "object",
            "properties": {
              "agreementId": {
                "$ref": "#/components/schemas/__shared/properties/schema226"
              },
              "historicalSource": {
                "$ref": "#/components/schemas/__shared/properties/schema228"
              },
              "rentalItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema229"
              },
              "rentalContractId": {
                "$ref": "#/components/schemas/__shared/properties/schema230"
              },
              "billingChargeId": {
                "$ref": "#/components/schemas/__shared/properties/schema231"
              },
              "rentalProductId": {
                "$ref": "#/components/schemas/__shared/properties/schema232"
              },
              "assetRef": {
                "$ref": "#/components/schemas/__shared/properties/schema235"
              },
              "assetSnapshot": {
                "$ref": "#/components/schemas/__shared/properties/schema236"
              },
              "chargeKind": {
                "$ref": "#/components/schemas/__shared/properties/schema238"
              },
              "period": {
                "$ref": "#/components/schemas/__shared/properties/schema239"
              },
              "billingPeriod": {
                "$ref": "#/components/schemas/__shared/properties/schema242"
              },
              "duration": {
                "$ref": "#/components/schemas/__shared/properties/schema243"
              },
              "ratePeriod": {
                "$ref": "#/components/schemas/__shared/properties/schema244"
              },
              "rateCents": {
                "$ref": "#/components/schemas/__shared/properties/schema245"
              },
              "securityDepositCents": {
                "$ref": "#/components/schemas/__shared/properties/schema246"
              }
            },
            "required": ["chargeKind"],
            "additionalProperties": false
          },
          "schema226": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema227"
              }
            ]
          },
          "schema227": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema228": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": ["shopmonkey"]
              },
              "sourceOrderId": {
                "$ref": "#/components/schemas/__shared/properties/schema227"
              },
              "sourceSalesDocId": {
                "$ref": "#/components/schemas/__shared/properties/schema227"
              },
              "sourceSalesLineId": {
                "$ref": "#/components/schemas/__shared/properties/schema227"
              },
              "relationship": {
                "type": "string",
                "enum": ["unassigned"]
              },
              "reviewState": {
                "type": "string",
                "enum": ["needs_review"]
              }
            },
            "required": [
              "source",
              "sourceOrderId",
              "sourceSalesDocId",
              "sourceSalesLineId",
              "relationship",
              "reviewState"
            ],
            "additionalProperties": false
          },
          "schema229": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema227"
              }
            ]
          },
          "schema230": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema227"
              }
            ]
          },
          "schema231": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema227"
              }
            ]
          },
          "schema232": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema233"
              }
            ]
          },
          "schema233": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema234": {
            "type": "string",
            "minLength": 1
          },
          "schema235": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["inventory"]
                  },
                  "assetId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": ["kind", "assetId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["external"]
                  },
                  "assetId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": ["kind", "assetId"]
              }
            ]
          },
          "schema236": {
            "type": "object",
            "properties": {
              "displayName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "identifiers": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema237"
                }
              },
              "details": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema237"
                }
              }
            },
            "required": ["identifiers", "details"],
            "additionalProperties": false
          },
          "schema237": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              }
            },
            "required": ["key", "label", "value"],
            "additionalProperties": false
          },
          "schema238": {
            "type": "string",
            "enum": [
              "rental",
              "delivery",
              "pickup",
              "insurance",
              "excess_mileage",
              "fuel",
              "late_return",
              "cancellation",
              "cleaning",
              "damage",
              "security_deposit",
              "other"
            ]
          },
          "schema239": {
            "type": "object",
            "properties": {
              "start": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema240"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema240"
                  }
                ]
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "startText": {
                "type": "string",
                "maxLength": 500
              },
              "endText": {
                "type": "string",
                "maxLength": 500
              }
            },
            "additionalProperties": false
          },
          "schema240": {
            "type": "object",
            "properties": {
              "date": {
                "$ref": "#/components/schemas/__shared/properties/schema241"
              },
              "time": {
                "type": "string",
                "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
              }
            },
            "required": ["date"],
            "additionalProperties": false
          },
          "schema241": {
            "type": "string"
          },
          "schema242": {
            "type": "object",
            "properties": {
              "startAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "endAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": ["startAt", "endAt"],
            "additionalProperties": false
          },
          "schema243": {
            "type": "number",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema244": {
            "type": "string",
            "enum": [
              "hour",
              "night",
              "day",
              "week",
              "month",
              "rental",
              "charge",
              "mile",
              "kilometer",
              "liter",
              "us_gallon"
            ]
          },
          "schema245": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema246": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema247": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema248"
              }
            ]
          },
          "schema248": {
            "type": "object",
            "properties": {
              "sku": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "manufacturerPartNumber": {
                "$ref": "#/components/schemas/__shared/properties/schema249"
              },
              "condition": {
                "$ref": "#/components/schemas/__shared/properties/schema250"
              }
            },
            "additionalProperties": false
          },
          "schema249": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema250": {
            "type": "string",
            "enum": ["new", "used", "rebuilt", "remanufactured", "aftermarket"]
          },
          "schema251": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema252"
              }
            ]
          },
          "schema252": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "productId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "productKind": {
                "type": "string",
                "enum": ["service", "goods"]
              },
              "productVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "productHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "offerId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "offerRevision": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "offerSourceHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "pricingHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "priceBookId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "defaultUnitPriceCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "uom": {
                "type": "string",
                "enum": ["session", "hour", "each"]
              },
              "taxCategoryId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "revenueAccountId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "suppliedItem": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema248"
                  }
                ]
              },
              "physicalComponents": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema253"
                }
              }
            },
            "required": [
              "workspaceId",
              "productId",
              "productKind",
              "productVersion",
              "productHash",
              "offerId",
              "offerRevision",
              "offerSourceHash",
              "pricingHash",
              "priceBookId",
              "currency",
              "defaultUnitPriceCents",
              "uom"
            ],
            "additionalProperties": false
          },
          "schema253": {
            "type": "object",
            "properties": {
              "itemId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema234"
                  }
                ]
              },
              "qty": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "sourceRefs": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              }
            },
            "required": ["itemId", "qty"]
          },
          "schema254": {
            "type": "object",
            "properties": {
              "kind": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "accounting_sync_outbox",
                      "ap_open_balance_snapshot",
                      "ap_settlement",
                      "ar_collection_task",
                      "ar_adjustment",
                      "ar_payment_application",
                      "bank_feed_line",
                      "bank_statement_line",
                      "bank_statement_import",
                      "bank_reconciliation_line",
                      "bank_reconciliation_link",
                      "bank_reconciliation_session",
                      "customer_invoice",
                      "document",
                      "invoice",
                      "ledger_entry",
                      "native_tax_1099_lifecycle",
                      "native_tax_authority",
                      "native_tax_backup_withholding_case",
                      "native_tax_category",
                      "native_tax_exemption_certificate",
                      "native_tax_filing_calendar",
                      "native_tax_government_enrollment",
                      "native_tax_jurisdiction",
                      "native_tax_nexus_profile",
                      "native_tax_notice",
                      "native_tax_content_artifact",
                      "native_tax_content_fetch_run",
                      "native_tax_content_parse_run",
                      "native_tax_content_publication",
                      "native_tax_content_review_case",
                      "native_tax_rate_table",
                      "native_tax_rule",
                      "native_tax_tin_matching_case",
                      "native_tax_w9_substitute_form",
                      "payable_bill",
                      "payable_bill_line",
                      "payable_bill_payment",
                      "payables_payment_run",
                      "payment",
                      "payment_run",
                      "plaid_account",
                      "payroll_pay_run",
                      "payroll_provider_sync_batch",
                      "payroll_reconciliation_alert",
                      "payroll_remittance",
                      "payroll_subledger_record",
                      "sales_doc",
                      "sales_invoice",
                      "source_record",
                      "three_way_match",
                      "vendor",
                      "vendor_credit",
                      "workspace_employee",
                      "workspace_employee_work_log"
                    ]
                  },
                  {
                    "maxLength": 64,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema255"
                      }
                    ]
                  }
                ]
              },
              "recordId": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "label": {
                "maxLength": 200,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "href": {
                "maxLength": 512,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "role": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "draft",
                  "approved",
                  "posted",
                  "reconciled",
                  "blocked",
                  "closed"
                ]
              },
              "ownerSurface": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema256"
                  }
                ]
              },
              "owner": {
                "type": "object",
                "properties": {
                  "kind": {
                    "maxLength": 64,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema255"
                      }
                    ]
                  },
                  "recordId": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema255"
                      }
                    ]
                  },
                  "label": {
                    "maxLength": 200,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema255"
                      }
                    ]
                  }
                },
                "required": ["kind", "recordId"],
                "additionalProperties": false
              },
              "ledgerConsequence": {
                "maxLength": 280,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "reportConsequence": {
                "maxLength": 280,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "nextAction": {
                "maxLength": 280,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            },
            "required": ["kind", "recordId"],
            "additionalProperties": false
          },
          "schema255": {
            "type": "string",
            "minLength": 1
          },
          "schema256": {
            "type": "string",
            "enum": [
              "activity",
              "runtime_process",
              "source_page",
              "accounting_overview",
              "money_work",
              "close_books",
              "planning",
              "documents",
              "reports",
              "ledger"
            ]
          },
          "schema257": {
            "type": "object",
            "properties": {
              "quantitySource": {
                "$ref": "#/components/schemas/__shared/properties/schema258"
              },
              "priceSource": {
                "$ref": "#/components/schemas/__shared/properties/schema258"
              },
              "citations": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema259"
                }
              },
              "assumptions": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema260"
                }
              }
            },
            "required": [
              "quantitySource",
              "priceSource",
              "citations",
              "assumptions"
            ],
            "additionalProperties": false
          },
          "schema258": {
            "type": "string",
            "enum": ["saved", "researched", "estimated", "user"]
          },
          "schema259": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "url": {
                "type": "string",
                "maxLength": 2000,
                "format": "uri"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "checkedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": ["id", "url", "title", "checkedAt"],
            "additionalProperties": false
          },
          "schema260": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "schema261": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              }
            ]
          },
          "schema262": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema263": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema264": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema265": {
            "type": "string",
            "enum": [
              "drop_off",
              "waiting",
              "pickup_delivery",
              "carrier",
              "onsite",
              "remote",
              "other"
            ]
          },
          "schema266": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string",
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "phone": {
                "type": "string"
              }
            }
          },
          "schema267": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema268": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema269": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              }
            ]
          },
          "schema270": {
            "type": "string",
            "maxLength": 500
          },
          "schema271": {
            "type": "object",
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema272"
              },
              "programId": {
                "$ref": "#/components/schemas/__shared/properties/schema273"
              },
              "payerName": {
                "$ref": "#/components/schemas/__shared/properties/schema274"
              },
              "reference": {
                "$ref": "#/components/schemas/__shared/properties/schema275"
              },
              "authorizationReference": {
                "$ref": "#/components/schemas/__shared/properties/schema276"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema277"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema278"
              },
              "approvedAmountCents": {
                "$ref": "#/components/schemas/__shared/properties/schema279"
              },
              "coveredAmountCents": {
                "$ref": "#/components/schemas/__shared/properties/schema280"
              },
              "customerResponsibilityCents": {
                "$ref": "#/components/schemas/__shared/properties/schema281"
              },
              "remainingBenefitCents": {
                "$ref": "#/components/schemas/__shared/properties/schema282"
              },
              "appliedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema283"
              },
              "exhaustedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema284"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema285"
              }
            },
            "required": ["kind"]
          },
          "schema272": {
            "type": "string",
            "enum": [
              "customer",
              "warranty",
              "insurance",
              "contract",
              "internal",
              "other"
            ]
          },
          "schema273": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema274": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema275": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema276": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema277": {
            "type": "string",
            "enum": [
              "draft",
              "requested",
              "approved",
              "applied",
              "denied",
              "exhausted"
            ]
          },
          "schema278": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              }
            ]
          },
          "schema279": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema280": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema281": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema282": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema283": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema284": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema285": {
            "type": "string",
            "maxLength": 500
          },
          "schema286": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema287"
            }
          },
          "schema287": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "details": {
                "type": "string",
                "maxLength": 500
              },
              "category": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "status": {
                "type": "string",
                "enum": ["open", "waiting", "resolved", "canceled"]
              },
              "openedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "resolvedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "processRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema288"
              },
              "processRunActivationVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema289"
              },
              "processRunLastTransitionId": {
                "$ref": "#/components/schemas/__shared/properties/schema290"
              },
              "processNodeId": {
                "$ref": "#/components/schemas/__shared/properties/schema291"
              },
              "processQualifier": {
                "$ref": "#/components/schemas/__shared/properties/schema292"
              }
            },
            "required": ["id", "label"]
          },
          "schema288": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema289": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema290": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema291": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema292": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "schema293": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema294"
            }
          },
          "schema294": {
            "type": "object",
            "properties": {
              "lineGroupId": {
                "$ref": "#/components/schemas/__shared/properties/schema295"
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema296"
              },
              "summary": {
                "$ref": "#/components/schemas/__shared/properties/schema297"
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema298"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema299"
              },
              "priority": {
                "$ref": "#/components/schemas/__shared/properties/schema300"
              },
              "operationIds": {
                "$ref": "#/components/schemas/__shared/properties/schema301"
              },
              "lineIds": {
                "$ref": "#/components/schemas/__shared/properties/schema303"
              },
              "materialIds": {
                "$ref": "#/components/schemas/__shared/properties/schema305"
              },
              "recommendationIds": {
                "$ref": "#/components/schemas/__shared/properties/schema307"
              },
              "authorizationIds": {
                "$ref": "#/components/schemas/__shared/properties/schema309"
              },
              "estimatedAmountCents": {
                "$ref": "#/components/schemas/__shared/properties/schema311"
              },
              "approvedAmountCents": {
                "$ref": "#/components/schemas/__shared/properties/schema312"
              },
              "startedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema313"
              },
              "completedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema314"
              },
              "bookingId": {
                "$ref": "#/components/schemas/__shared/properties/schema208"
              },
              "bookingSourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema209"
              },
              "bookingSourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema210"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema315"
              },
              "custom": {
                "$ref": "#/components/schemas/__shared/properties/schema316"
              }
            },
            "required": ["lineGroupId", "label"]
          },
          "schema295": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema296": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema297": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "schema298": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema299": {
            "type": "string",
            "enum": [
              "draft",
              "proposed",
              "approved",
              "in_progress",
              "blocked",
              "completed",
              "deferred",
              "declined",
              "canceled"
            ]
          },
          "schema300": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema203"
              }
            ]
          },
          "schema301": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema302"
            }
          },
          "schema302": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema303": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema304"
            }
          },
          "schema304": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema305": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema306"
            }
          },
          "schema306": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema307": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema308"
            }
          },
          "schema308": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema309": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema310"
            }
          },
          "schema310": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema311": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema312": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema313": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema314": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema315": {
            "type": "string",
            "maxLength": 1000
          },
          "schema316": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema317": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema318"
            }
          },
          "schema318": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "details": {
                "type": "string",
                "maxLength": 1000
              },
              "kind": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "lineGroupId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "approved",
                  "in_progress",
                  "blocked",
                  "completed",
                  "declined",
                  "canceled"
                ]
              },
              "assigneeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "startedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "completedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "estimatedMinutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "notes": {
                "type": "string",
                "maxLength": 1000
              },
              "cause": {
                "type": "string",
                "maxLength": 1000
              },
              "correction": {
                "type": "string",
                "maxLength": 1000
              },
              "processRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema288"
              },
              "processRunActivationVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema289"
              },
              "processRunLastTransitionId": {
                "$ref": "#/components/schemas/__shared/properties/schema290"
              },
              "processNodeId": {
                "$ref": "#/components/schemas/__shared/properties/schema291"
              },
              "processQualifier": {
                "$ref": "#/components/schemas/__shared/properties/schema292"
              }
            },
            "required": ["id", "label"]
          },
          "schema319": {
            "maxItems": 128,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema320"
            }
          },
          "schema320": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "kind": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "status": {
                "type": "string",
                "enum": ["pending", "passed", "failed", "waived"]
              },
              "notes": {
                "type": "string",
                "maxLength": 1000
              },
              "completedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "completedBy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "processRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema288"
              },
              "processRunActivationVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema289"
              },
              "processRunLastTransitionId": {
                "$ref": "#/components/schemas/__shared/properties/schema290"
              },
              "processNodeId": {
                "$ref": "#/components/schemas/__shared/properties/schema291"
              },
              "processQualifier": {
                "$ref": "#/components/schemas/__shared/properties/schema292"
              }
            },
            "required": ["id", "label", "status"]
          },
          "schema321": {
            "type": "object",
            "properties": {
              "summary": {
                "type": "string",
                "maxLength": 1000
              },
              "cause": {
                "type": "string",
                "maxLength": 1000
              },
              "correction": {
                "type": "string",
                "maxLength": 1000
              },
              "verifiedBy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "verifiedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "comeback": {
                "type": "boolean"
              },
              "warrantyCase": {
                "type": "boolean"
              }
            }
          },
          "schema322": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema323"
            }
          },
          "schema323": {
            "type": "object",
            "properties": {
              "outcomeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "type": {
                "type": "string",
                "enum": [
                  "completed",
                  "partial",
                  "blocked",
                  "no_access",
                  "canceled",
                  "needs_follow_up",
                  "return_visit_required"
                ]
              },
              "summary": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "details": {
                "type": "string",
                "minLength": 1,
                "maxLength": 6000
              },
              "followUpRequired": {
                "type": "boolean"
              },
              "followUpWorkItemId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "recordedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "recordedBy": {
                "type": "object",
                "properties": {
                  "actorId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "actorKind": {
                    "type": "string",
                    "enum": ["employee", "user", "integration", "system"]
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  }
                },
                "required": ["actorId", "actorKind"]
              },
              "source": {
                "type": "string",
                "enum": ["protheos", "zelio", "autokore", "import"]
              }
            },
            "required": [
              "outcomeId",
              "type",
              "summary",
              "followUpRequired",
              "recordedAt",
              "recordedBy",
              "source"
            ]
          },
          "schema324": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["follow_up", "return_visit"]
              },
              "sourceWorkItemId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "sourceOutcomeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "requestedByEmployeeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "requestedByLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "requestedOwnerRole": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              }
            },
            "required": [
              "type",
              "sourceWorkItemId",
              "sourceOutcomeId",
              "requestedByEmployeeId"
            ]
          },
          "schema325": {
            "type": "object",
            "properties": {
              "dispatchId": {
                "$ref": "#/components/schemas/__shared/properties/schema326"
              },
              "mode": {
                "$ref": "#/components/schemas/__shared/properties/schema327"
              },
              "employeeId": {
                "$ref": "#/components/schemas/__shared/properties/schema328"
              },
              "resourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema329"
              },
              "bookingTypeReleaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema330"
              },
              "requestedRole": {
                "$ref": "#/components/schemas/__shared/properties/schema331"
              },
              "interval": {
                "$ref": "#/components/schemas/__shared/properties/schema332"
              },
              "requestedByUserId": {
                "$ref": "#/components/schemas/__shared/properties/schema333"
              },
              "requestedByLabel": {
                "$ref": "#/components/schemas/__shared/properties/schema334"
              },
              "requestedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "assignedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema335"
              },
              "bookingId": {
                "$ref": "#/components/schemas/__shared/properties/schema208"
              },
              "bookingSourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema209"
              },
              "bookingSourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema210"
              },
              "scheduledAt": {
                "$ref": "#/components/schemas/__shared/properties/schema336"
              }
            },
            "required": [
              "dispatchId",
              "mode",
              "employeeId",
              "requestedByUserId",
              "requestedByLabel",
              "requestedAt"
            ]
          },
          "schema326": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema327": {
            "type": "string",
            "enum": ["assign_only", "assign_and_schedule"]
          },
          "schema328": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema329": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema330": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema331": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema332": {
            "type": "object",
            "properties": {
              "startAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "endAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "sourceTimeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "startOffsetMinutes": {
                "type": "integer",
                "minimum": -840,
                "maximum": 840
              },
              "endOffsetMinutes": {
                "type": "integer",
                "minimum": -840,
                "maximum": 840
              },
              "displayDate": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              }
            },
            "required": [
              "startAt",
              "endAt",
              "sourceTimeZone",
              "startOffsetMinutes",
              "endOffsetMinutes",
              "displayDate"
            ],
            "additionalProperties": false
          },
          "schema333": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema334": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "schema335": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema336": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema337": {
            "type": "object",
            "properties": {
              "handoffId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "mode": {
                "type": "string",
                "enum": [
                  "publish_report",
                  "publish_report_and_mark_billing_ready",
                  "mark_billing_ready"
                ]
              },
              "sourceOutcomeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "reportTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "requestedByUserId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "requestedByLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "requestedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "priorReportDocumentReference": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema338"
                  }
                ]
              },
              "reportDocumentReference": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema338"
                  }
                ]
              },
              "reportIssuedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "reportIssuance": {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "workItemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "issueCommandId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "issueRequestSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "issuedVersionSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "authorityRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema349"
                  },
                  "sourceOutcomeId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "completionSourceRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema351"
                  },
                  "reportDocumentReference": {
                    "$ref": "#/components/schemas/__shared/properties/schema338"
                  },
                  "issuedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema354"
                  },
                  "sha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  }
                },
                "required": [
                  "workspaceId",
                  "workItemId",
                  "issueCommandId",
                  "issueRequestSha256",
                  "issuedVersionSha256",
                  "authorityRef",
                  "sourceOutcomeId",
                  "completionSourceRef",
                  "reportDocumentReference",
                  "issuedAt",
                  "sha256"
                ],
                "additionalProperties": false
              },
              "currentDocument": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema355"
                  }
                ]
              },
              "reportPreparedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "completionSourceRef": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema351"
                  }
                ]
              },
              "reportAcceptance": {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema0"
                  },
                  "workItemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "commandId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "effectId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "sourceOutcomeId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "sourceRevisionId": {
                    "$ref": "#/components/schemas/__shared/properties/schema356"
                  },
                  "sourceSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "supportRevision": {
                    "$ref": "#/components/schemas/__shared/properties/schema357"
                  },
                  "reportDocumentReference": {
                    "$ref": "#/components/schemas/__shared/properties/schema338"
                  },
                  "authorityRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema349"
                  },
                  "authoritySubjectRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema351"
                  },
                  "authorityProviderReleaseRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema358"
                  },
                  "completedExecution": {
                    "$ref": "#/components/schemas/__shared/properties/schema363"
                  },
                  "evidenceBundleRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema368"
                  },
                  "acceptedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema354"
                  },
                  "settlementRequestHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "sha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  }
                },
                "required": [
                  "workspaceId",
                  "workItemId",
                  "commandId",
                  "effectId",
                  "sourceOutcomeId",
                  "sourceRevisionId",
                  "sourceSha256",
                  "supportRevision",
                  "reportDocumentReference",
                  "authorityRef",
                  "authoritySubjectRef",
                  "authorityProviderReleaseRef",
                  "completedExecution",
                  "evidenceBundleRef",
                  "acceptedAt",
                  "settlementRequestHash",
                  "sha256"
                ],
                "additionalProperties": false
              },
              "portalPublishedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "billingReadyAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "billingHandoffState": {
                "type": "string",
                "enum": [
                  "ready_for_invoice",
                  "ready_for_payment",
                  "ready_for_handoff",
                  "complete"
                ]
              },
              "billingOwnerRole": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              }
            },
            "required": [
              "handoffId",
              "mode",
              "sourceOutcomeId",
              "requestedByUserId",
              "requestedByLabel",
              "requestedAt"
            ]
          },
          "schema338": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "artifactId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "versionId": {
                "$ref": "#/components/schemas/__shared/properties/schema340"
              },
              "editionId": {
                "$ref": "#/components/schemas/__shared/properties/schema341"
              },
              "renditionId": {
                "$ref": "#/components/schemas/__shared/properties/schema342"
              },
              "useCaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema343"
              },
              "documentClass": {
                "$ref": "#/components/schemas/__shared/properties/schema343"
              },
              "representationRole": {
                "$ref": "#/components/schemas/__shared/properties/schema344"
              },
              "mediaType": {
                "$ref": "#/components/schemas/__shared/properties/schema345"
              },
              "fileName": {
                "$ref": "#/components/schemas/__shared/properties/schema346"
              },
              "sizeBytes": {
                "$ref": "#/components/schemas/__shared/properties/schema347"
              },
              "sha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              }
            },
            "required": [
              "workspaceId",
              "artifactId",
              "versionId",
              "editionId",
              "renditionId",
              "useCaseId",
              "documentClass",
              "representationRole",
              "mediaType",
              "fileName",
              "sizeBytes",
              "sha256"
            ],
            "additionalProperties": false
          },
          "schema339": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$"
          },
          "schema340": {
            "allOf": [
              {
                "type": "string",
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$"
              },
              {
                "type": "string",
                "pattern": "^ver:[0-9]{20}:[a-zA-Z0-9][a-zA-Z0-9_.:-]*$"
              },
              {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              }
            ]
          },
          "schema341": {
            "allOf": [
              {
                "type": "string",
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$"
              },
              {
                "type": "string",
                "pattern": "^edn:[0-9]{20}:[a-zA-Z0-9][a-zA-Z0-9_.:-]*$"
              },
              {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              }
            ]
          },
          "schema342": {
            "allOf": [
              {
                "type": "string",
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$"
              },
              {
                "type": "string",
                "pattern": "^rnd:[0-9]{20}:[a-zA-Z0-9][a-zA-Z0-9_.:-]*$"
              },
              {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              }
            ]
          },
          "schema343": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[a-z][a-z0-9_.:-]*$"
          },
          "schema344": {
            "type": "string",
            "enum": [
              "primary_human",
              "accessible_human",
              "machine_exchange",
              "signature_appearance",
              "redacted_copy",
              "provider_original",
              "visual_copy",
              "record_companion",
              "package_manifest"
            ]
          },
          "schema345": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema346": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "schema347": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema348": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema349": {
            "type": "object",
            "properties": {
              "authorityReleaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "authorityRevision": {
                "$ref": "#/components/schemas/__shared/properties/schema350"
              },
              "authoritySha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              }
            },
            "required": [
              "authorityReleaseId",
              "authorityRevision",
              "authoritySha256"
            ],
            "additionalProperties": false
          },
          "schema350": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "schema351": {
            "type": "object",
            "properties": {
              "entityKind": {
                "$ref": "#/components/schemas/__shared/properties/schema89"
              },
              "entityId": {
                "$ref": "#/components/schemas/__shared/properties/schema90"
              },
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "sourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema93"
              },
              "previousSourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema94"
              },
              "sourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema95"
              },
              "revisionId": {
                "$ref": "#/components/schemas/__shared/properties/schema352"
              },
              "versionId": {
                "$ref": "#/components/schemas/__shared/properties/schema353"
              },
              "sourceSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              }
            },
            "required": [
              "entityKind",
              "entityId",
              "workspaceId",
              "sourceSha256"
            ],
            "additionalProperties": false
          },
          "schema352": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema350"
              }
            ]
          },
          "schema353": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema354": {
            "type": "string",
            "minLength": 24,
            "maxLength": 24,
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "schema355": {
            "type": "object",
            "properties": {
              "artifactId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "useCaseId": {
                "type": "string",
                "enum": ["service.completion_report"]
              }
            },
            "required": ["artifactId", "useCaseId"],
            "additionalProperties": false
          },
          "schema356": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "schema357": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema358": {
            "type": "object",
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema343"
              },
              "id": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "version": {
                "$ref": "#/components/schemas/__shared/properties/schema359"
              },
              "namespace": {
                "$ref": "#/components/schemas/__shared/properties/schema360"
              },
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema361"
              },
              "schemaId": {
                "$ref": "#/components/schemas/__shared/properties/schema362"
              },
              "sha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              }
            },
            "required": [
              "kind",
              "id",
              "version",
              "namespace",
              "schemaId",
              "sha256"
            ],
            "additionalProperties": false
          },
          "schema359": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema360": {
            "type": "string",
            "enum": ["platform", "workspace"]
          },
          "schema361": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              }
            ]
          },
          "schema362": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[a-z][a-z0-9_.:-]*@[1-9][0-9]*$"
          },
          "schema363": {
            "type": "object",
            "properties": {
              "executionRequestId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "requestSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "authorityProviderReleaseRef": {
                "$ref": "#/components/schemas/__shared/properties/schema358"
              },
              "completedOccVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema364"
              },
              "completedStateSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "semanticEnvelopeSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "completionDecisionSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "completedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema354"
              },
              "participantCount": {
                "$ref": "#/components/schemas/__shared/properties/schema365"
              },
              "participantRootSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "childActCount": {
                "$ref": "#/components/schemas/__shared/properties/schema366"
              },
              "childActRootSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "signatureRequestCount": {
                "$ref": "#/components/schemas/__shared/properties/schema367"
              },
              "signatureRequestRootSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "evidenceBundleRef": {
                "$ref": "#/components/schemas/__shared/properties/schema368"
              },
              "finalCopyCount": {
                "$ref": "#/components/schemas/__shared/properties/schema370"
              },
              "finalCopyRootSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              }
            },
            "required": [
              "executionRequestId",
              "requestSha256",
              "authorityProviderReleaseRef",
              "completedOccVersion",
              "completedStateSha256",
              "semanticEnvelopeSha256",
              "completionDecisionSha256",
              "completedAt",
              "participantCount",
              "participantRootSha256",
              "childActCount",
              "childActRootSha256",
              "signatureRequestCount",
              "signatureRequestRootSha256",
              "evidenceBundleRef",
              "finalCopyCount",
              "finalCopyRootSha256"
            ],
            "additionalProperties": false
          },
          "schema364": {
            "type": "integer",
            "minimum": 0
          },
          "schema365": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true,
            "maximum": 64
          },
          "schema366": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true,
            "maximum": 256
          },
          "schema367": {
            "type": "integer",
            "minimum": 0,
            "maximum": 12
          },
          "schema368": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "evidenceBundleId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "manifestAssetId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "manifestSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "manifestRootSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "manifestRecordCount": {
                    "$ref": "#/components/schemas/__shared/properties/schema369"
                  },
                  "bundleSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "finalizationCommandRef": {
                    "type": "object",
                    "properties": {
                      "commandId": {
                        "$ref": "#/components/schemas/__shared/properties/schema339"
                      },
                      "commandSha256": {
                        "$ref": "#/components/schemas/__shared/properties/schema348"
                      },
                      "requestSha256": {
                        "$ref": "#/components/schemas/__shared/properties/schema348"
                      }
                    },
                    "required": ["commandId", "commandSha256", "requestSha256"],
                    "additionalProperties": false
                  },
                  "stage": {
                    "type": "string",
                    "enum": ["execution_complete"]
                  }
                },
                "required": [
                  "evidenceBundleId",
                  "manifestAssetId",
                  "manifestSha256",
                  "manifestRootSha256",
                  "manifestRecordCount",
                  "bundleSha256",
                  "finalizationCommandRef",
                  "stage"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "evidenceBundleId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "manifestAssetId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "manifestSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "manifestRootSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "manifestRecordCount": {
                    "$ref": "#/components/schemas/__shared/properties/schema369"
                  },
                  "bundleSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema348"
                  },
                  "stage": {
                    "type": "string",
                    "enum": ["delivery_complete"]
                  }
                },
                "required": [
                  "evidenceBundleId",
                  "manifestAssetId",
                  "manifestSha256",
                  "manifestRootSha256",
                  "manifestRecordCount",
                  "bundleSha256",
                  "stage"
                ],
                "additionalProperties": false
              }
            ]
          },
          "schema369": {
            "type": "integer",
            "minimum": 0
          },
          "schema370": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema371": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema372"
              },
              {
                "$ref": "#/components/schemas/__shared/properties/schema394"
              }
            ]
          },
          "schema372": {
            "type": "object",
            "properties": {
              "tireRegistrationCardHandedOver": {
                "$ref": "#/components/schemas/__shared/properties/schema373"
              },
              "idempotencyKey": {
                "$ref": "#/components/schemas/__shared/properties/schema82"
              },
              "releasedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "actor": {
                "$ref": "#/components/schemas/__shared/properties/schema374"
              },
              "releaseMethod": {
                "$ref": "#/components/schemas/__shared/properties/schema375"
              },
              "recipient": {
                "$ref": "#/components/schemas/__shared/properties/schema376"
              },
              "signature": {
                "$ref": "#/components/schemas/__shared/properties/schema377"
              },
              "custody": {
                "$ref": "#/components/schemas/__shared/properties/schema378"
              },
              "keyHandoff": {
                "$ref": "#/components/schemas/__shared/properties/schema379"
              },
              "qualityCompletion": {
                "$ref": "#/components/schemas/__shared/properties/schema380"
              },
              "primaryInvoice": {
                "$ref": "#/components/schemas/__shared/properties/schema383"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema393"
              }
            },
            "required": [
              "idempotencyKey",
              "releasedAt",
              "actor",
              "releaseMethod",
              "recipient",
              "signature",
              "custody",
              "keyHandoff",
              "qualityCompletion",
              "primaryInvoice"
            ],
            "additionalProperties": false
          },
          "schema373": {
            "type": "boolean",
            "enum": [true]
          },
          "schema374": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "actorKind": {
                "type": "string",
                "enum": ["user", "system", "integration"]
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            },
            "required": ["actorId", "actorKind", "label"],
            "additionalProperties": false
          },
          "schema375": {
            "type": "string",
            "enum": ["counter", "authorized_representative", "courier"]
          },
          "schema376": {
            "type": "object",
            "properties": {
              "displayName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "relationship": {
                "type": "string",
                "enum": ["customer", "authorized_representative"]
              },
              "identityMethod": {
                "type": "string",
                "enum": [
                  "account_match",
                  "government_id",
                  "authorized_representative_record"
                ]
              },
              "identityEvidenceRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "displayName",
              "relationship",
              "identityMethod",
              "identityEvidenceRef"
            ],
            "additionalProperties": false
          },
          "schema377": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["captured"]
              },
              "evidenceRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": ["status", "evidenceRef"],
            "additionalProperties": false
          },
          "schema378": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["confirmed"]
              },
              "evidenceRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": ["status", "evidenceRef"],
            "additionalProperties": false
          },
          "schema379": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": ["confirmed"]
              },
              "evidenceRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": ["status", "evidenceRef"],
            "additionalProperties": false
          },
          "schema380": {
            "type": "object",
            "properties": {
              "aggregateVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "parentRun": {
                "$ref": "#/components/schemas/__shared/properties/schema381"
              },
              "childRun": {
                "$ref": "#/components/schemas/__shared/properties/schema381"
              },
              "call": {
                "type": "object",
                "properties": {
                  "parentNodeId": {
                    "$ref": "#/components/schemas/__shared/properties/schema382"
                  },
                  "parentInterfaceBindingId": {
                    "$ref": "#/components/schemas/__shared/properties/schema382"
                  },
                  "parentActivationTransitionId": {
                    "$ref": "#/components/schemas/__shared/properties/schema382"
                  }
                },
                "required": [
                  "parentNodeId",
                  "parentInterfaceBindingId",
                  "parentActivationTransitionId"
                ],
                "additionalProperties": false
              },
              "inspection": {
                "type": "object",
                "properties": {
                  "inspectionId": {
                    "$ref": "#/components/schemas/__shared/properties/schema382"
                  },
                  "updatedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "nodeId": {
                    "$ref": "#/components/schemas/__shared/properties/schema382"
                  },
                  "sourceRunActivationVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "sourceRunLastTransitionId": {
                    "$ref": "#/components/schemas/__shared/properties/schema382"
                  },
                  "bindingKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema382"
                  }
                },
                "required": [
                  "inspectionId",
                  "updatedAt",
                  "nodeId",
                  "sourceRunActivationVersion",
                  "sourceRunLastTransitionId",
                  "bindingKey"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "aggregateVersion",
              "parentRun",
              "childRun",
              "call",
              "inspection"
            ],
            "additionalProperties": false
          },
          "schema381": {
            "type": "object",
            "properties": {
              "processRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema382"
              },
              "version": {
                "type": "integer",
                "minimum": 0
              },
              "lastTransitionId": {
                "$ref": "#/components/schemas/__shared/properties/schema382"
              },
              "lastSettlementTaskId": {
                "$ref": "#/components/schemas/__shared/properties/schema382"
              }
            },
            "required": [
              "processRunId",
              "version",
              "lastTransitionId",
              "lastSettlementTaskId"
            ],
            "additionalProperties": false
          },
          "schema382": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "schema383": {
            "type": "object",
            "properties": {
              "docId": {
                "$ref": "#/components/schemas/__shared/properties/schema384"
              },
              "docNo": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "totalCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "paidCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "outstandingCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "sourceOccVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema40"
              },
              "releaseBasis": {
                "type": "string",
                "enum": ["paid", "on_account"]
              },
              "collectionPolicy": {
                "type": "string",
                "enum": ["collect_payment", "on_account"]
              },
              "dueAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "sourceSettlement": {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema385"
                  },
                  "workItemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema167"
                  },
                  "compositionHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema386"
                  },
                  "basisHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema387"
                  },
                  "lineIds": {
                    "$ref": "#/components/schemas/__shared/properties/schema388"
                  },
                  "totalCents": {
                    "$ref": "#/components/schemas/__shared/properties/schema390"
                  },
                  "settledCents": {
                    "$ref": "#/components/schemas/__shared/properties/schema391"
                  },
                  "outstandingCents": {
                    "$ref": "#/components/schemas/__shared/properties/schema392"
                  }
                },
                "required": [
                  "schemaVersion",
                  "workItemId",
                  "compositionHash",
                  "basisHash",
                  "lineIds",
                  "totalCents",
                  "settledCents",
                  "outstandingCents"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "docId",
              "docNo",
              "currency",
              "totalCents",
              "paidCents",
              "outstandingCents",
              "sourceOccVersion"
            ],
            "additionalProperties": false
          },
          "schema384": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema385": {
            "type": "number",
            "enum": [1]
          },
          "schema386": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema387": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema388": {
            "minItems": 1,
            "maxItems": 250,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema389"
            }
          },
          "schema389": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema390": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema391": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema392": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema393": {
            "type": "string",
            "maxLength": 2000
          },
          "schema394": {
            "type": "object",
            "properties": {
              "mode": {
                "$ref": "#/components/schemas/__shared/properties/schema395"
              },
              "idempotencyKey": {
                "$ref": "#/components/schemas/__shared/properties/schema82"
              },
              "releasedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "actor": {
                "$ref": "#/components/schemas/__shared/properties/schema374"
              },
              "releaseMethod": {
                "$ref": "#/components/schemas/__shared/properties/schema396"
              },
              "recipient": {
                "$ref": "#/components/schemas/__shared/properties/schema397"
              },
              "keysHandedOver": {
                "$ref": "#/components/schemas/__shared/properties/schema398"
              },
              "tireRegistrationCardHandedOver": {
                "$ref": "#/components/schemas/__shared/properties/schema373"
              },
              "primaryInvoice": {
                "$ref": "#/components/schemas/__shared/properties/schema383"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema393"
              }
            },
            "required": [
              "mode",
              "idempotencyKey",
              "releasedAt",
              "actor",
              "releaseMethod",
              "recipient",
              "primaryInvoice"
            ],
            "additionalProperties": false
          },
          "schema395": {
            "type": "string",
            "enum": ["counter_handoff"]
          },
          "schema396": {
            "type": "string",
            "enum": ["counter", "authorized_representative"]
          },
          "schema397": {
            "type": "object",
            "properties": {
              "displayName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "relationship": {
                "type": "string",
                "enum": ["customer", "authorized_representative"]
              },
              "authorizationNote": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": ["displayName", "relationship"],
            "additionalProperties": false
          },
          "schema398": {
            "type": "boolean"
          },
          "schema399": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema400"
            }
          },
          "schema400": {
            "type": "object",
            "properties": {
              "actionId": {
                "$ref": "#/components/schemas/__shared/properties/schema401"
              },
              "actionKind": {
                "$ref": "#/components/schemas/__shared/properties/schema402"
              },
              "actionSystem": {
                "$ref": "#/components/schemas/__shared/properties/schema403"
              },
              "outcome": {
                "$ref": "#/components/schemas/__shared/properties/schema404"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "completedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "completedByActorId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "completedByActorLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "sourceKind": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "sourceState": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "sourceIds": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema405"
                }
              },
              "requestId": {
                "$ref": "#/components/schemas/__shared/properties/schema406"
              },
              "requestSource": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "operatingViewId": {
                "$ref": "#/components/schemas/__shared/properties/schema407"
              },
              "surfaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema408"
              },
              "processRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema409"
              },
              "processNodeId": {
                "$ref": "#/components/schemas/__shared/properties/schema410"
              }
            },
            "required": [
              "actionId",
              "actionKind",
              "actionSystem",
              "outcome",
              "label",
              "completedAt"
            ]
          },
          "schema401": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "schema402": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema403": {
            "type": "string",
            "enum": ["runtime_surface", "process_runtime"]
          },
          "schema404": {
            "type": "string",
            "enum": ["completed", "acknowledged", "dismissed"]
          },
          "schema405": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema406": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "schema407": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema408": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema409": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema410": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema411": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema412"
            }
          },
          "schema412": {
            "type": "object",
            "properties": {
              "eventId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 320
              },
              "actionId": {
                "$ref": "#/components/schemas/__shared/properties/schema401"
              },
              "actionKind": {
                "$ref": "#/components/schemas/__shared/properties/schema402"
              },
              "actionSystem": {
                "$ref": "#/components/schemas/__shared/properties/schema403"
              },
              "eventType": {
                "type": "string",
                "enum": ["runtime_action.completed"]
              },
              "outcome": {
                "$ref": "#/components/schemas/__shared/properties/schema404"
              },
              "occurredAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "actorId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "actorLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "requestId": {
                "$ref": "#/components/schemas/__shared/properties/schema406"
              },
              "operatingViewId": {
                "$ref": "#/components/schemas/__shared/properties/schema407"
              },
              "surfaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema408"
              },
              "processRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema409"
              },
              "processNodeId": {
                "$ref": "#/components/schemas/__shared/properties/schema410"
              }
            },
            "required": [
              "eventId",
              "actionId",
              "actionKind",
              "actionSystem",
              "eventType",
              "outcome",
              "occurredAt"
            ]
          },
          "schema413": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema414": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema415"
              }
            ]
          },
          "schema415": {
            "type": "object",
            "properties": {
              "entityId": {
                "$ref": "#/components/schemas/__shared/properties/schema416"
              },
              "bookId": {
                "$ref": "#/components/schemas/__shared/properties/schema417"
              }
            },
            "required": ["entityId", "bookId"],
            "additionalProperties": false
          },
          "schema416": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema417": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema418": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema419"
              }
            ]
          },
          "schema419": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/__shared/properties/schema420"
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema421"
              },
              "group": {
                "$ref": "#/components/schemas/__shared/properties/schema422"
              },
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema423"
              },
              "tone": {
                "$ref": "#/components/schemas/__shared/properties/schema424"
              },
              "state": {
                "$ref": "#/components/schemas/__shared/properties/schema425"
              },
              "systemStatusKey": {
                "$ref": "#/components/schemas/__shared/properties/schema426"
              },
              "releasePolicy": {
                "$ref": "#/components/schemas/__shared/properties/schema427"
              },
              "enteredAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "updatedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              }
            },
            "required": ["id"]
          },
          "schema420": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema421": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "schema422": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema423": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "schema424": {
            "type": "string",
            "enum": ["primary", "success", "warning", "danger", "muted"]
          },
          "schema425": {
            "type": "string",
            "enum": [
              "open",
              "active",
              "blocked",
              "completed",
              "canceled",
              "archived"
            ]
          },
          "schema426": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema427": {
            "type": "string",
            "enum": ["verified_pickup", "counter_handoff"]
          },
          "schema428": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema429"
              }
            ]
          },
          "schema429": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": ["published_process_release"]
              },
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "processId": {
                "$ref": "#/components/schemas/__shared/properties/schema430"
              },
              "sourceRevisionId": {
                "$ref": "#/components/schemas/__shared/properties/schema430"
              },
              "releaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema430"
              },
              "deploymentId": {
                "$ref": "#/components/schemas/__shared/properties/schema430"
              },
              "deploymentScopeKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "activationGeneration": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "mode": {
                "$ref": "#/components/schemas/__shared/properties/schema431"
              },
              "executionTier": {
                "$ref": "#/components/schemas/__shared/properties/schema432"
              },
              "entry": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["node"]
                      },
                      "nodeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": ["kind", "nodeId"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["interface"]
                      },
                      "interfaceId": {
                        "$ref": "#/components/schemas/__shared/properties/schema430"
                      },
                      "nodeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": ["kind", "interfaceId", "nodeId"],
                    "additionalProperties": false
                  }
                ]
              },
              "currentDefinition": {
                "type": "object",
                "properties": {
                  "definition": {
                    "type": "object",
                    "properties": {
                      "processId": {
                        "$ref": "#/components/schemas/__shared/properties/schema433"
                      },
                      "revision": {
                        "$ref": "#/components/schemas/__shared/properties/schema434"
                      },
                      "definitionHash": {
                        "$ref": "#/components/schemas/__shared/properties/schema435"
                      },
                      "scopeKey": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      },
                      "scopeManifestDigest": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema435"
                          }
                        ]
                      }
                    },
                    "required": ["processId", "revision", "definitionHash"],
                    "additionalProperties": false
                  },
                  "resources": {
                    "maxItems": 512,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema436"
                    }
                  }
                },
                "required": ["definition", "resources"],
                "additionalProperties": false
              }
            },
            "required": [
              "kind",
              "workspaceId",
              "processId",
              "sourceRevisionId",
              "releaseId",
              "deploymentId",
              "deploymentScopeKey",
              "activationGeneration",
              "mode",
              "entry"
            ],
            "additionalProperties": false
          },
          "schema430": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema431": {
            "type": "string",
            "enum": ["workflow", "case"]
          },
          "schema432": {
            "type": "string",
            "enum": ["documented", "guided", "managed", "automated"]
          },
          "schema433": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema434": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true,
            "maximum": 9007199254740991
          },
          "schema435": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema436": {
            "type": "object",
            "properties": {
              "resourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema433"
              },
              "revision": {
                "$ref": "#/components/schemas/__shared/properties/schema434"
              },
              "definitionHash": {
                "$ref": "#/components/schemas/__shared/properties/schema435"
              }
            },
            "required": ["resourceId", "revision", "definitionHash"],
            "additionalProperties": false
          },
          "schema437": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema438"
              }
            ]
          },
          "schema438": {
            "type": "object",
            "properties": {
              "state": {
                "$ref": "#/components/schemas/__shared/properties/schema439"
              },
              "currentNodeIds": {
                "maxItems": 1,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema440"
                }
              },
              "waitingNodeIds": {
                "maxItems": 1,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema440"
                }
              },
              "completedMilestoneIds": {
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema440"
                }
              },
              "dueAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "lastTransitionAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              }
            },
            "required": [
              "state",
              "currentNodeIds",
              "waitingNodeIds",
              "completedMilestoneIds"
            ]
          },
          "schema439": {
            "type": "string",
            "enum": [
              "idle",
              "active",
              "waiting",
              "blocked",
              "completed",
              "canceled",
              "exception"
            ]
          },
          "schema440": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema441": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema440"
              }
            ]
          },
          "schema442": {
            "type": "object",
            "properties": {
              "admissionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "outboxId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "admittedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "processRef": {
                "$ref": "#/components/schemas/__shared/properties/schema429"
              }
            },
            "required": ["admissionId", "outboxId", "admittedAt", "processRef"],
            "additionalProperties": false
          },
          "schema443": {
            "type": "object",
            "properties": {
              "checkId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "contextSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema444"
              },
              "ownerId": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "guests": {
                "$ref": "#/components/schemas/__shared/properties/schema446"
              },
              "requiredEvidenceKinds": {
                "$ref": "#/components/schemas/__shared/properties/schema448"
              },
              "table": {
                "$ref": "#/components/schemas/__shared/properties/schema450"
              },
              "tableHistory": {
                "$ref": "#/components/schemas/__shared/properties/schema455"
              },
              "facts": {
                "$ref": "#/components/schemas/__shared/properties/schema456"
              },
              "exceptions": {
                "$ref": "#/components/schemas/__shared/properties/schema459"
              },
              "openedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "openedBy": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "closedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema465"
              },
              "closedBy": {
                "$ref": "#/components/schemas/__shared/properties/schema466"
              }
            },
            "required": [
              "checkId",
              "contextSha256",
              "ownerId",
              "guests",
              "requiredEvidenceKinds",
              "facts",
              "exceptions",
              "openedAt",
              "openedBy"
            ],
            "additionalProperties": false
          },
          "schema444": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema445": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema446": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema447"
            }
          },
          "schema447": {
            "type": "object",
            "properties": {
              "guestId": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "seat": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true,
                "maximum": 100
              }
            },
            "required": ["guestId", "label"],
            "additionalProperties": false
          },
          "schema448": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema449"
            }
          },
          "schema449": {
            "type": "string",
            "enum": [
              "course_fired",
              "prepared",
              "expo_checked",
              "ready",
              "served"
            ]
          },
          "schema450": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema451"
              }
            ]
          },
          "schema451": {
            "type": "object",
            "properties": {
              "locationId": {
                "$ref": "#/components/schemas/__shared/properties/schema452"
              },
              "occupancyId": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "occupiedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "occupiedBy": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "releasedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema453"
              },
              "releasedBy": {
                "$ref": "#/components/schemas/__shared/properties/schema454"
              }
            },
            "required": [
              "locationId",
              "occupancyId",
              "occupiedAt",
              "occupiedBy"
            ],
            "additionalProperties": false
          },
          "schema452": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "schema453": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema454": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              }
            ]
          },
          "schema455": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema451"
            }
          },
          "schema456": {
            "maxItems": 1000,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema457"
            }
          },
          "schema457": {
            "type": "object",
            "properties": {
              "factId": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema449"
              },
              "docId": {
                "$ref": "#/components/schemas/__shared/properties/schema384"
              },
              "contentSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema444"
              },
              "checkContextSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema444"
              },
              "contentRevision": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "lineIds": {
                "minItems": 1,
                "maxItems": 250,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema458"
                }
              },
              "courseKey": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema445"
                  }
                ]
              },
              "recordedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "recordedBy": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "note": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              }
            },
            "required": [
              "factId",
              "kind",
              "docId",
              "contentSha256",
              "checkContextSha256",
              "contentRevision",
              "lineIds",
              "recordedAt",
              "recordedBy"
            ],
            "additionalProperties": false
          },
          "schema458": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema459": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema460"
            }
          },
          "schema460": {
            "type": "object",
            "properties": {
              "exceptionId": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "docId": {
                "$ref": "#/components/schemas/__shared/properties/schema384"
              },
              "contentSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema444"
              },
              "reason": {
                "$ref": "#/components/schemas/__shared/properties/schema461"
              },
              "ownerId": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "openedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "openedBy": {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              },
              "resolvedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema462"
              },
              "resolvedBy": {
                "$ref": "#/components/schemas/__shared/properties/schema463"
              },
              "resolution": {
                "$ref": "#/components/schemas/__shared/properties/schema464"
              }
            },
            "required": [
              "exceptionId",
              "docId",
              "contentSha256",
              "reason",
              "ownerId",
              "openedAt",
              "openedBy"
            ],
            "additionalProperties": false
          },
          "schema461": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "schema462": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema463": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              }
            ]
          },
          "schema464": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "schema465": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema466": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema445"
              }
            ]
          },
          "schema467": {
            "maxItems": 250,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema468"
            }
          },
          "schema468": {
            "type": "object",
            "properties": {
              "reviewId": {
                "$ref": "#/components/schemas/__shared/properties/schema469"
              },
              "scope": {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema0"
                  },
                  "workItemId": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema167"
                          }
                        ]
                      },
                      {
                        "type": "string",
                        "nullable": true,
                        "enum": [null]
                      }
                    ]
                  },
                  "docId": {
                    "$ref": "#/components/schemas/__shared/properties/schema384"
                  },
                  "lineId": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "productId": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "productVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "productHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "quantity": {
                    "type": "number",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "commercialSourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "items": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema471"
                    }
                  },
                  "customerKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "customerRefHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "workCustomerHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "customerHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "customerPartyIds": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema469"
                    }
                  },
                  "policy": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "policy": {
                        "$ref": "#/components/schemas/__shared/properties/schema472"
                      },
                      "policyHash": {
                        "$ref": "#/components/schemas/__shared/properties/schema470"
                      }
                    },
                    "required": ["policy", "policyHash"],
                    "additionalProperties": false
                  },
                  "scopeHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  }
                },
                "required": [
                  "workspaceId",
                  "workItemId",
                  "docId",
                  "lineId",
                  "productId",
                  "productVersion",
                  "productHash",
                  "quantity",
                  "commercialSourceHash",
                  "items",
                  "customerKey",
                  "customerRefHash",
                  "workCustomerHash",
                  "customerHash",
                  "customerPartyIds",
                  "policy",
                  "scopeHash"
                ],
                "additionalProperties": false
              },
              "decision": {
                "type": "string",
                "enum": ["approved", "denied", "deferred"]
              },
              "evidence": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema479"
                }
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "reviewer": {
                "type": "object",
                "properties": {
                  "principalId": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "employeeId": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "roleIds": {
                    "minItems": 1,
                    "maxItems": 17,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema469"
                    }
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  }
                },
                "required": [
                  "principalId",
                  "employeeId",
                  "roleIds",
                  "sourceHash"
                ],
                "additionalProperties": false
              },
              "recordedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "workVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "processRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema469"
              },
              "submissionId": {
                "$ref": "#/components/schemas/__shared/properties/schema469"
              }
            },
            "required": [
              "reviewId",
              "scope",
              "decision",
              "evidence",
              "reason",
              "reviewer",
              "recordedAt",
              "workVersion",
              "processRunId",
              "submissionId"
            ],
            "additionalProperties": false
          },
          "schema469": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema470": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema471": {
            "type": "object",
            "properties": {
              "itemId": {
                "$ref": "#/components/schemas/__shared/properties/schema469"
              },
              "quantity": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
              }
            },
            "required": ["itemId", "quantity"],
            "additionalProperties": false
          },
          "schema472": {
            "type": "object",
            "properties": {
              "policyId": {
                "$ref": "#/components/schemas/__shared/properties/schema469"
              },
              "revision": {
                "$ref": "#/components/schemas/__shared/properties/schema473"
              },
              "instructions": {
                "$ref": "#/components/schemas/__shared/properties/schema474"
              },
              "reviewerRoleIds": {
                "$ref": "#/components/schemas/__shared/properties/schema475"
              },
              "customerRequired": {
                "$ref": "#/components/schemas/__shared/properties/schema476"
              },
              "evidenceFields": {
                "$ref": "#/components/schemas/__shared/properties/schema477"
              }
            },
            "required": [
              "policyId",
              "revision",
              "instructions",
              "reviewerRoleIds",
              "customerRequired",
              "evidenceFields"
            ],
            "additionalProperties": false
          },
          "schema473": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema474": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          },
          "schema475": {
            "minItems": 1,
            "maxItems": 17,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema469"
            }
          },
          "schema476": {
            "type": "boolean"
          },
          "schema477": {
            "minItems": 1,
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema478"
            }
          },
          "schema478": {
            "type": "object",
            "properties": {
              "key": {
                "$ref": "#/components/schemas/__shared/properties/schema469"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "kind": {
                "type": "string",
                "enum": ["statement", "work_record"]
              },
              "required": {
                "type": "boolean"
              }
            },
            "required": ["key", "label", "kind", "required"],
            "additionalProperties": false
          },
          "schema479": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "key": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "kind": {
                    "type": "string",
                    "enum": ["statement"]
                  },
                  "statement": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  }
                },
                "required": ["key", "kind", "statement"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "key": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "kind": {
                    "type": "string",
                    "enum": ["work_record"]
                  },
                  "ref": {
                    "type": "object",
                    "properties": {
                      "entityKind": {
                        "$ref": "#/components/schemas/__shared/properties/schema89"
                      },
                      "entityId": {
                        "$ref": "#/components/schemas/__shared/properties/schema90"
                      },
                      "workspaceId": {
                        "$ref": "#/components/schemas/__shared/properties/schema0"
                      },
                      "label": {
                        "$ref": "#/components/schemas/__shared/properties/schema92"
                      },
                      "sourceVersion": {
                        "$ref": "#/components/schemas/__shared/properties/schema480"
                      },
                      "previousSourceVersion": {
                        "$ref": "#/components/schemas/__shared/properties/schema94"
                      },
                      "sourceHash": {
                        "$ref": "#/components/schemas/__shared/properties/schema470"
                      }
                    },
                    "required": [
                      "entityKind",
                      "entityId",
                      "workspaceId",
                      "sourceVersion",
                      "sourceHash"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": ["key", "kind", "ref"],
                "additionalProperties": false
              }
            ]
          },
          "schema480": {
            "type": "integer",
            "minimum": 0
          },
          "schema481": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema42"
              }
            ]
          },
          "schema482": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "workItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "docId": {
                "$ref": "#/components/schemas/__shared/properties/schema384"
              },
              "role": {
                "$ref": "#/components/schemas/__shared/properties/schema483"
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "workspaceId",
              "workItemId",
              "docId",
              "role",
              "createdAt",
              "updatedAt"
            ]
          },
          "schema483": {
            "type": "string",
            "enum": ["primary", "related"]
          },
          "schema484": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema485": {
            "maxItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema486"
            }
          },
          "schema486": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema487": {
            "maxItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema488"
            }
          },
          "schema488": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema489": {
            "maxItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema490"
            }
          },
          "schema490": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema491": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema492"
            }
          },
          "schema492": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "schema493": {
            "type": "object",
            "properties": {
              "checkId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "nodeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "kind": {
                "type": "string",
                "enum": ["milestone_evidence", "control", "metric", "readiness"]
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "status": {
                "type": "string",
                "enum": ["pending", "passed", "waived"]
              },
              "referenceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "notes": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              }
            },
            "required": ["checkId", "nodeId", "kind", "label", "status"]
          },
          "schema494": {
            "type": "object",
            "properties": {
              "nodeId": {
                "$ref": "#/components/schemas/__shared/properties/schema495"
              },
              "nodeLabel": {
                "$ref": "#/components/schemas/__shared/properties/schema496"
              },
              "resourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema497"
              },
              "resourceName": {
                "$ref": "#/components/schemas/__shared/properties/schema498"
              },
              "resourceVersionId": {
                "$ref": "#/components/schemas/__shared/properties/schema499"
              },
              "resourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema500"
              },
              "submissionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "submittedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "nodeId",
              "resourceId",
              "resourceVersionId",
              "submissionId",
              "submittedAt"
            ]
          },
          "schema495": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema496": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "schema497": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema498": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema499": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema500": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema501": {
            "type": "object",
            "properties": {
              "nodeId": {
                "$ref": "#/components/schemas/__shared/properties/schema495"
              },
              "nodeLabel": {
                "$ref": "#/components/schemas/__shared/properties/schema496"
              },
              "resourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema497"
              },
              "resourceName": {
                "$ref": "#/components/schemas/__shared/properties/schema498"
              },
              "resourceVersionId": {
                "$ref": "#/components/schemas/__shared/properties/schema499"
              },
              "resourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema500"
              },
              "taskId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 320
              },
              "processRunId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "sourceRunActivationVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "sourceRunLastTransitionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "hasAuthoredTaskView": {
                "type": "boolean"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "status": {
                "type": "string",
                "enum": [
                  "not_started",
                  "draft",
                  "ready_to_submit",
                  "submitted",
                  "needs_attention",
                  "failed_writes"
                ]
              },
              "assigneeEmployeeId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema502"
                  }
                ]
              },
              "assigneeRoleId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "assigneeRoleName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "dueAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "overdue": {
                "type": "boolean"
              },
              "blocked": {
                "type": "boolean"
              },
              "blockedReason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "workBoardPanels": {
                "maxItems": 7,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema503"
                }
              }
            },
            "required": [
              "nodeId",
              "resourceId",
              "resourceVersionId",
              "taskId",
              "processRunId",
              "sourceRunActivationVersion",
              "sourceRunLastTransitionId",
              "hasAuthoredTaskView",
              "label",
              "status"
            ]
          },
          "schema502": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema503": {
            "type": "string",
            "enum": [
              "inspection",
              "procurement",
              "handoff",
              "quality",
              "customer_approval",
              "work",
              "commercial"
            ]
          },
          "schema504": {
            "type": "object",
            "properties": {
              "nodeId": {
                "$ref": "#/components/schemas/__shared/properties/schema495"
              },
              "nodeLabel": {
                "$ref": "#/components/schemas/__shared/properties/schema496"
              },
              "resourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema497"
              },
              "resourceName": {
                "$ref": "#/components/schemas/__shared/properties/schema498"
              },
              "resourceVersionId": {
                "$ref": "#/components/schemas/__shared/properties/schema499"
              },
              "resourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema500"
              },
              "decisionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "outcomeKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "outcomeLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "decidedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "nodeId",
              "resourceId",
              "resourceVersionId",
              "decisionId",
              "outcomeKey",
              "decidedAt"
            ]
          },
          "schema505": {
            "type": "object",
            "properties": {
              "bindingId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "bindingKind": {
                "type": "string",
                "enum": [
                  "activity_dashboard",
                  "entry_page",
                  "node_form",
                  "milestone_panel",
                  "outcome_page"
                ]
              },
              "surfaceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "surfaceRevisionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "surfaceRevisionDigest": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "section": {
                "type": "string",
                "enum": [
                  "activity",
                  "products",
                  "accounting",
                  "assets",
                  "operations",
                  "vendors",
                  "work",
                  "documents",
                  "customers",
                  "relationships",
                  "employees",
                  "processes"
                ]
              },
              "kind": {
                "type": "string",
                "enum": ["dashboard", "page", "form"]
              },
              "surfaceName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "surfaceSummary": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "resourceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "resourceVersionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "roleIds": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema506"
                }
              },
              "operatingViewIds": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema507"
                }
              },
              "nodeIds": {
                "maxItems": 256,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema430"
                }
              },
              "outcomeKeys": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema508"
                }
              },
              "subjectKind": {
                "type": "string",
                "enum": [
                  "work_item",
                  "business_document",
                  "party",
                  "customer",
                  "customer_deposit",
                  "rental_deposit_hold",
                  "vendor",
                  "product",
                  "membership_package",
                  "asset",
                  "item",
                  "location",
                  "resource",
                  "transfer_order",
                  "employee",
                  "communication",
                  "semantic_fact",
                  "booking_request",
                  "booking_hold",
                  "booking",
                  "scheduled_offering",
                  "resource_reservation",
                  "ledger_period",
                  "ledger_entry",
                  "payable_bill",
                  "purchase_order",
                  "recurring_subscription",
                  "project",
                  "service_agreement",
                  "service_visit",
                  "service_record",
                  "property",
                  "property_unit",
                  "lease",
                  "maintenance_request",
                  "cash_session",
                  "custody_policy",
                  "custody_movement",
                  "rent_receivable",
                  "custody_bank_intent",
                  "rental_agreement",
                  "document",
                  "artifact",
                  "commitment"
                ]
              },
              "subjectTypeKeys": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema509"
                }
              },
              "entityKind": {
                "type": "string",
                "enum": [
                  "work_item",
                  "project",
                  "service_agreement",
                  "service_visit",
                  "service_record",
                  "property",
                  "property_unit",
                  "lease",
                  "maintenance_request",
                  "cash_session",
                  "custody_policy",
                  "custody_movement",
                  "rent_receivable",
                  "custody_bank_intent",
                  "party",
                  "vendor",
                  "product",
                  "membership_package",
                  "asset",
                  "item",
                  "location",
                  "resource",
                  "employee",
                  "booking_request",
                  "booking_hold",
                  "booking",
                  "scheduled_offering",
                  "resource_reservation",
                  "offering_seat_claim",
                  "ledger_account",
                  "contract",
                  "document",
                  "artifact"
                ]
              },
              "entityIds": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema510"
                }
              },
              "entityTypeKeys": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema511"
                }
              }
            },
            "required": [
              "bindingId",
              "bindingKind",
              "surfaceId",
              "surfaceRevisionId",
              "section",
              "kind"
            ]
          },
          "schema506": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema507": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema508": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema509": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema510": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema511": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema512": {
            "type": "object",
            "properties": {
              "processRunId": {
                "$ref": "#/components/schemas/__shared/properties/schema484"
              },
              "version": {
                "type": "integer",
                "minimum": 0
              },
              "lastTransitionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "approvalNodeIds": {
                "$ref": "#/components/schemas/__shared/properties/schema485"
              },
              "processId": {
                "$ref": "#/components/schemas/__shared/properties/schema430"
              },
              "mode": {
                "$ref": "#/components/schemas/__shared/properties/schema431"
              },
              "executionTier": {
                "$ref": "#/components/schemas/__shared/properties/schema432"
              },
              "runState": {
                "$ref": "#/components/schemas/__shared/properties/schema439"
              },
              "parentProcessRunId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "parentNodeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "parentInterfaceBindingId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "currentNodeIds": {
                "$ref": "#/components/schemas/__shared/properties/schema487"
              },
              "waitingNodeIds": {
                "$ref": "#/components/schemas/__shared/properties/schema489"
              },
              "currentStepLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "waitingStepLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "documentCommandSteps": {
                "maxItems": 1,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema513"
                }
              },
              "waitingForPayment": {
                "type": "boolean"
              },
              "nextNodeIds": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema514"
                }
              },
              "nextStepLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema515"
                  }
                ]
              },
              "nextTransitionLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema515"
                  }
                ]
              },
              "nextStepStages": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema517"
                  }
                ]
              },
              "previousNodeIds": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema519"
                }
              },
              "previousReworkEdgeIds": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema520"
                }
              },
              "previousStepLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema515"
                  }
                ]
              },
              "previousTransitionLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema515"
                  }
                ]
              },
              "previousStepStages": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema517"
                  }
                ]
              },
              "blockedRequiredEvidenceCount": {
                "type": "integer",
                "minimum": 0
              },
              "blockedRequiredEvidenceLabels": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema491"
                  }
                ]
              },
              "dueAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "overdue": {
                "type": "boolean"
              },
              "startedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "completedAt": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              }
            },
            "required": [
              "processRunId",
              "version",
              "lastTransitionId",
              "processId",
              "mode",
              "runState",
              "currentNodeIds",
              "waitingNodeIds",
              "startedAt"
            ]
          },
          "schema513": {
            "type": "object",
            "properties": {
              "nodeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "waiting": {
                "type": "boolean"
              }
            },
            "required": ["nodeId", "label", "waiting"]
          },
          "schema514": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema515": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema516"
            }
          },
          "schema516": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "schema517": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema518"
            }
          },
          "schema518": {
            "nullable": true,
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/__shared/properties/schema420"
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema421"
              },
              "group": {
                "$ref": "#/components/schemas/__shared/properties/schema422"
              },
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema423"
              },
              "tone": {
                "$ref": "#/components/schemas/__shared/properties/schema424"
              },
              "state": {
                "$ref": "#/components/schemas/__shared/properties/schema425"
              },
              "systemStatusKey": {
                "$ref": "#/components/schemas/__shared/properties/schema426"
              },
              "releasePolicy": {
                "$ref": "#/components/schemas/__shared/properties/schema427"
              }
            },
            "required": ["id"]
          },
          "schema519": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema520": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema521": {
            "type": "object",
            "properties": {
              "resourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema522"
              },
              "employeeId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema502"
                  }
                ]
              }
            },
            "required": ["resourceId"]
          },
          "schema522": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema523": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "schema524": {
            "type": "object",
            "properties": {
              "employeeId": {
                "$ref": "#/components/schemas/__shared/properties/schema502"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            },
            "required": ["employeeId", "label"]
          },
          "schema525": {
            "type": "object",
            "properties": {
              "resourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema522"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            },
            "required": ["resourceId", "label"]
          },
          "schema526": {
            "type": "object",
            "properties": {
              "captureMode": {
                "$ref": "#/components/schemas/__shared/properties/schema217"
              },
              "lineItems": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema527"
                }
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema261"
              },
              "coordinator": {
                "$ref": "#/components/schemas/__shared/properties/schema262"
              },
              "checkInAt": {
                "$ref": "#/components/schemas/__shared/properties/schema263"
              },
              "checkOutAt": {
                "$ref": "#/components/schemas/__shared/properties/schema264"
              },
              "handoffMode": {
                "$ref": "#/components/schemas/__shared/properties/schema265"
              },
              "contact": {
                "$ref": "#/components/schemas/__shared/properties/schema266"
              },
              "locationLabel": {
                "$ref": "#/components/schemas/__shared/properties/schema267"
              },
              "authorizationLimitCents": {
                "$ref": "#/components/schemas/__shared/properties/schema268"
              },
              "authorizationCurrency": {
                "$ref": "#/components/schemas/__shared/properties/schema269"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema270"
              }
            }
          },
          "schema527": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/__shared/properties/schema219"
              },
              "economicKind": {
                "$ref": "#/components/schemas/__shared/properties/schema220"
              },
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema221"
              },
              "quantity": {
                "$ref": "#/components/schemas/__shared/properties/schema222"
              },
              "unitPriceCents": {
                "$ref": "#/components/schemas/__shared/properties/schema223"
              },
              "uom": {
                "$ref": "#/components/schemas/__shared/properties/schema224"
              },
              "rentalDetails": {
                "$ref": "#/components/schemas/__shared/properties/schema225"
              },
              "suppliedItem": {
                "$ref": "#/components/schemas/__shared/properties/schema247"
              },
              "catalogSelection": {
                "$ref": "#/components/schemas/__shared/properties/schema528"
              },
              "estimation": {
                "$ref": "#/components/schemas/__shared/properties/schema257"
              }
            },
            "required": [
              "id",
              "economicKind",
              "description",
              "quantity",
              "unitPriceCents"
            ],
            "additionalProperties": false
          },
          "schema528": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema252"
              },
              {
                "type": "object",
                "properties": {
                  "pricing": {
                    "type": "string",
                    "enum": ["unpriced"]
                  },
                  "workspaceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema0"
                  },
                  "productId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "productKind": {
                    "type": "string",
                    "enum": ["service", "goods"]
                  },
                  "productVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "productHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "currency": {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  },
                  "uom": {
                    "type": "string",
                    "enum": ["session", "hour", "each"]
                  }
                },
                "required": [
                  "pricing",
                  "workspaceId",
                  "productId",
                  "productKind",
                  "productVersion",
                  "productHash",
                  "currency",
                  "uom"
                ],
                "additionalProperties": false
              }
            ]
          },
          "schema529": {
            "type": "object",
            "properties": {
              "docId": {
                "$ref": "#/components/schemas/__shared/properties/schema384"
              },
              "role": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema483"
                  }
                ]
              }
            },
            "required": ["docId"]
          },
          "schema530": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema176"
              }
            ]
          },
          "schema531": {
            "type": "string",
            "minLength": 1
          },
          "schema532": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema533": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema534": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema535": {
            "type": "object",
            "properties": {
              "reservationId": {
                "type": "string",
                "minLength": 1
              },
              "resourceId": {
                "type": "string",
                "minLength": 1
              },
              "employeeId": {
                "type": "string",
                "minLength": 1
              },
              "occVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "sourceVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "sourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              }
            },
            "required": [
              "reservationId",
              "resourceId",
              "occVersion",
              "sourceVersion",
              "sourceHash"
            ],
            "additionalProperties": false
          },
          "schema536": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema537": {
            "type": "string",
            "pattern": "^cd_[a-f0-9]{64}$"
          },
          "schema538": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema539": {
            "type": "string",
            "enum": ["included", "separate"]
          },
          "schema540": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            ]
          },
          "schema541": {
            "type": "object",
            "properties": {
              "exposureId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "exposureVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "exposureEmergencyRevocationVersion": {
                "type": "integer",
                "minimum": 0
              },
              "releaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "sessionId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "sessionVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "credentialId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "credentialVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "originHash": {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              },
              "customerId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                ]
              }
            },
            "required": [
              "exposureId",
              "exposureVersion",
              "exposureEmergencyRevocationVersion",
              "releaseId",
              "sessionId",
              "sessionVersion",
              "credentialId",
              "credentialVersion",
              "originHash"
            ],
            "additionalProperties": false
          },
          "schema542": {
            "type": "string",
            "enum": [
              "confirmed",
              "checked_in",
              "in_progress",
              "completed",
              "cancelled",
              "no_show"
            ]
          },
          "schema543": {
            "type": "object",
            "properties": {
              "startAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "endAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "sourceTimeZone": {
                "$ref": "#/components/schemas/__shared/properties/schema544"
              },
              "startOffsetMinutes": {
                "$ref": "#/components/schemas/__shared/properties/schema545"
              },
              "endOffsetMinutes": {
                "$ref": "#/components/schemas/__shared/properties/schema546"
              },
              "displayDate": {
                "$ref": "#/components/schemas/__shared/properties/schema241"
              },
              "displayStartTime": {
                "$ref": "#/components/schemas/__shared/properties/schema547"
              },
              "displayEndTime": {
                "$ref": "#/components/schemas/__shared/properties/schema547"
              }
            },
            "required": [
              "startAt",
              "endAt",
              "sourceTimeZone",
              "startOffsetMinutes",
              "endOffsetMinutes",
              "displayDate",
              "displayStartTime",
              "displayEndTime"
            ],
            "additionalProperties": false
          },
          "schema544": {
            "type": "string",
            "maxLength": 96,
            "pattern": "^[A-Za-z0-9_+\\-/]+$"
          },
          "schema545": {
            "type": "integer",
            "minimum": -840,
            "maximum": 840
          },
          "schema546": {
            "type": "integer",
            "minimum": -840,
            "maximum": 840
          },
          "schema547": {
            "type": "string",
            "pattern": "^\\d{2}:\\d{2}$"
          },
          "schema548": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema549": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema550"
            }
          },
          "schema550": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["customer"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["anonymous_guest"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["work_item"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["project"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["project_phase"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["rental_agreement"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["rental_item"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["sales_document"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["asset"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["location"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                },
                "required": ["kind", "id"],
                "additionalProperties": false
              }
            ]
          },
          "schema551": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema536"
            }
          },
          "schema552": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            ]
          },
          "schema553": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema554": {
            "type": "string",
            "maxLength": 160,
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}\\[[A-Za-z0-9_+\\-/]+\\]$"
          },
          "schema555": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            ]
          },
          "schema556": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            ]
          },
          "schema557": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            ]
          },
          "schema558": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema559"
            }
          },
          "schema559": {
            "type": "object",
            "properties": {
              "requirementId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "positionId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "requirementFingerprint": {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              },
              "selectedResourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "selectedEmployeeId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                ]
              },
              "candidateQueryFingerprint": {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              },
              "candidateFrontierComplete": {
                "type": "boolean"
              },
              "resourceSupplyVersion": {
                "type": "integer",
                "minimum": 0
              },
              "employeeSupplyVersion": {
                "type": "integer",
                "minimum": 0
              },
              "capacityUnitsRequired": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "capacityUnitsAvailable": {
                "type": "integer",
                "minimum": 0
              },
              "selectionStrategy": {
                "type": "string",
                "enum": [
                  "fixed",
                  "round_robin",
                  "least_capacity",
                  "earliest_available",
                  "preferred_order"
                ]
              },
              "rankingValues": {
                "maxItems": 16,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema560"
                }
              },
              "tieBreakVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            },
            "required": [
              "requirementId",
              "positionId",
              "requirementFingerprint",
              "selectedResourceId",
              "candidateQueryFingerprint",
              "candidateFrontierComplete",
              "resourceSupplyVersion",
              "capacityUnitsRequired",
              "capacityUnitsAvailable",
              "selectionStrategy",
              "rankingValues",
              "tieBreakVersion"
            ],
            "additionalProperties": false
          },
          "schema560": {
            "type": "number"
          },
          "schema561": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema562"
            }
          },
          "schema562": {
            "type": "object",
            "properties": {
              "requirementId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "positionId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "state": {
                "type": "string",
                "enum": [
                  "pending",
                  "searching",
                  "offered",
                  "accepted",
                  "expired",
                  "failed",
                  "replaced",
                  "cancelled",
                  "completed"
                ]
              },
              "deadlineAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "taskId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  }
                ]
              }
            },
            "required": ["requirementId", "positionId", "state", "deadlineAt"],
            "additionalProperties": false
          },
          "schema563": {
            "type": "object",
            "properties": {
              "calendarReleaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "schemaReleaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "policyReleaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "selectorPlanReleaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "nativeAdapterReleaseIds": {
                "maxItems": 8,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema536"
                }
              },
              "sourceRefs": {
                "minItems": 1,
                "maxItems": 128,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema564"
                }
              },
              "closureByCategory": {
                "type": "object",
                "properties": {
                  "configuration": {
                    "minItems": 1,
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "calendar": {
                    "minItems": 1,
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "policy": {
                    "minItems": 1,
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "selector": {
                    "minItems": 1,
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "resource": {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "workforce": {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "asset": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "project": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "document": {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "commercial": {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "notification": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "recurrence": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  },
                  "native": {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema564"
                    }
                  }
                },
                "required": [
                  "configuration",
                  "calendar",
                  "policy",
                  "selector",
                  "resource",
                  "workforce",
                  "asset",
                  "project",
                  "document",
                  "commercial",
                  "notification",
                  "recurrence",
                  "native"
                ],
                "additionalProperties": false
              },
              "documentReleaseClosures": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema565"
                }
              },
              "sha256": {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              }
            },
            "required": [
              "calendarReleaseId",
              "schemaReleaseId",
              "policyReleaseId",
              "selectorPlanReleaseId",
              "nativeAdapterReleaseIds",
              "sourceRefs",
              "closureByCategory",
              "sha256"
            ],
            "additionalProperties": false
          },
          "schema564": {
            "type": "object",
            "properties": {
              "sourceKind": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "sourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "sourceVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "sourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              },
              "releaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "category": {
                "type": "string",
                "enum": [
                  "configuration",
                  "calendar",
                  "policy",
                  "selector",
                  "resource",
                  "workforce",
                  "asset",
                  "project",
                  "document",
                  "commercial",
                  "notification",
                  "recurrence",
                  "native"
                ]
              }
            },
            "required": [
              "sourceKind",
              "sourceId",
              "sourceVersion",
              "sourceHash",
              "releaseId",
              "category"
            ],
            "additionalProperties": false
          },
          "schema565": {
            "type": "object",
            "properties": {
              "purpose": {
                "$ref": "#/components/schemas/__shared/properties/schema566"
              },
              "command": {
                "$ref": "#/components/schemas/__shared/properties/schema567"
              },
              "transition": {
                "$ref": "#/components/schemas/__shared/properties/schema568"
              },
              "requiredTerminalEvidence": {
                "$ref": "#/components/schemas/__shared/properties/schema569"
              },
              "useCaseReleaseRef": {
                "$ref": "#/components/schemas/__shared/properties/schema358"
              },
              "authorityProviderReleaseRef": {
                "$ref": "#/components/schemas/__shared/properties/schema358"
              },
              "authoredContentReleaseRef": {
                "$ref": "#/components/schemas/__shared/properties/schema570"
              },
              "executableReleaseRef": {
                "$ref": "#/components/schemas/__shared/properties/schema571"
              },
              "executionPlanReleaseRef": {
                "$ref": "#/components/schemas/__shared/properties/schema572"
              },
              "assignmentScope": {
                "$ref": "#/components/schemas/__shared/properties/schema573"
              },
              "languageTag": {
                "$ref": "#/components/schemas/__shared/properties/schema575"
              }
            },
            "required": [
              "purpose",
              "transition",
              "useCaseReleaseRef",
              "authorityProviderReleaseRef"
            ],
            "additionalProperties": false
          },
          "schema566": {
            "type": "string",
            "enum": ["command", "disclosure"]
          },
          "schema567": {
            "type": "string",
            "enum": [
              "document.issue",
              "document.request_execution",
              "document.distribute"
            ]
          },
          "schema568": {
            "type": "string",
            "enum": [
              "request",
              "hold",
              "confirm",
              "check_in",
              "start",
              "extend",
              "complete",
              "cancel",
              "no_show",
              "offering_open",
              "offering_start",
              "offering_complete",
              "offering_cancel",
              "offering_dispatch"
            ]
          },
          "schema569": {
            "type": "string",
            "enum": [
              "issued",
              "execution_completed",
              "distribution_provider_accepted"
            ]
          },
          "schema570": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema358"
              }
            ]
          },
          "schema571": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema358"
              }
            ]
          },
          "schema572": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema358"
              }
            ]
          },
          "schema573": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["platform_default"]
                  }
                },
                "required": ["kind"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["workspace_default"]
                  }
                },
                "required": ["kind"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["family"]
                  },
                  "familyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema343"
                  }
                },
                "required": ["kind", "familyKey"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["subtype"]
                  },
                  "familyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema343"
                  },
                  "subtypeKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema343"
                  }
                },
                "required": ["kind", "familyKey", "subtypeKey"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["use_case"]
                  },
                  "familyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema343"
                  },
                  "useCaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  }
                },
                "required": ["kind", "familyKey", "useCaseId"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["accounting_book"]
                  },
                  "entityRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema574"
                  }
                },
                "required": ["kind", "entityRef"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["legal_entity"]
                  },
                  "entityRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema574"
                  },
                  "familyKey": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema343"
                      }
                    ]
                  },
                  "useCaseId": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema339"
                      }
                    ]
                  }
                },
                "required": ["kind", "entityRef"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["establishment"]
                  },
                  "entityRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema574"
                  }
                },
                "required": ["kind", "entityRef"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["location"]
                  },
                  "entityRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema574"
                  },
                  "familyKey": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema343"
                      }
                    ]
                  },
                  "useCaseId": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema339"
                      }
                    ]
                  }
                },
                "required": ["kind", "entityRef"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["brand"]
                  },
                  "familyKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema343"
                  },
                  "useCaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema339"
                  },
                  "brandKey": {
                    "$ref": "#/components/schemas/__shared/properties/schema343"
                  }
                },
                "required": ["kind", "familyKey", "useCaseId", "brandKey"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["entity"]
                  },
                  "entityRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema574"
                  }
                },
                "required": ["kind", "entityRef"],
                "additionalProperties": false
              }
            ]
          },
          "schema574": {
            "type": "object",
            "properties": {
              "entityKind": {
                "$ref": "#/components/schemas/__shared/properties/schema89"
              },
              "entityId": {
                "$ref": "#/components/schemas/__shared/properties/schema90"
              },
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "sourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema93"
              },
              "previousSourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema94"
              },
              "sourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema95"
              }
            },
            "required": ["entityKind", "entityId", "workspaceId"],
            "additionalProperties": false
          },
          "schema575": {
            "type": "string",
            "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
          },
          "schema576": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema536"
            }
          },
          "schema577": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema578"
            }
          },
          "schema578": {
            "type": "object",
            "properties": {
              "owner": {
                "type": "string",
                "enum": [
                  "party",
                  "trust",
                  "workforce",
                  "operating",
                  "scheduling",
                  "processes",
                  "documents",
                  "sales",
                  "economic",
                  "information",
                  "interoperability"
                ]
              },
              "sourceKind": {
                "$ref": "#/components/schemas/__shared/properties/schema579"
              },
              "sourceId": {
                "$ref": "#/components/schemas/__shared/properties/schema579"
              },
              "sourceVersion": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "sourceHash": {
                "type": "string",
                "pattern": "^sha256:[0-9a-f]{64}$"
              }
            },
            "required": [
              "owner",
              "sourceKind",
              "sourceId",
              "sourceVersion",
              "sourceHash"
            ],
            "additionalProperties": false
          },
          "schema579": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "schema580": {
            "type": "object",
            "properties": {
              "extensionEndAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "sourceRefs": {
                "minItems": 1,
                "maxItems": 8,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema578"
                }
              }
            },
            "required": ["extensionEndAt", "sourceRefs"],
            "additionalProperties": false
          },
          "schema581": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema582"
            }
          },
          "schema582": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "requirementId": {
                    "$ref": "#/components/schemas/__shared/properties/schema583"
                  },
                  "sourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema584"
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "adapterReleaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceKind": {
                    "type": "string",
                    "enum": ["asset"]
                  },
                  "purpose": {
                    "default": "ordinary_use",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema585"
                      }
                    ]
                  },
                  "workAssetSource": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema586"
                      }
                    ]
                  },
                  "assetId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "schedulingResourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "supplyVersion": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "locationId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "locationVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "maintenanceVersion": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "interval": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema543"
                      }
                    ]
                  }
                },
                "required": [
                  "sourceId",
                  "sourceVersion",
                  "sourceHash",
                  "adapterReleaseId",
                  "sourceKind",
                  "assetId",
                  "schedulingResourceId",
                  "supplyVersion",
                  "locationId",
                  "locationVersion",
                  "maintenanceVersion",
                  "interval"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "requirementId": {
                    "$ref": "#/components/schemas/__shared/properties/schema583"
                  },
                  "sourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema584"
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "adapterReleaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceKind": {
                    "type": "string",
                    "enum": ["rental"]
                  },
                  "resourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "agreementId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "itemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "preparedClaimId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "claimVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "startAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "endAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "expiresAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                },
                "required": [
                  "sourceId",
                  "sourceVersion",
                  "sourceHash",
                  "adapterReleaseId",
                  "sourceKind",
                  "resourceId",
                  "agreementId",
                  "itemId",
                  "preparedClaimId",
                  "claimVersion",
                  "startAt",
                  "endAt",
                  "expiresAt"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "requirementId": {
                    "$ref": "#/components/schemas/__shared/properties/schema583"
                  },
                  "sourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema584"
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "adapterReleaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceKind": {
                    "type": "string",
                    "enum": ["project"]
                  },
                  "projectId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "allocationId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "maximumMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "hard": {
                    "type": "boolean"
                  },
                  "interval": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema543"
                      }
                    ]
                  }
                },
                "required": [
                  "sourceId",
                  "sourceVersion",
                  "sourceHash",
                  "adapterReleaseId",
                  "sourceKind",
                  "projectId",
                  "allocationId",
                  "maximumMinutes",
                  "hard",
                  "interval"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "requirementId": {
                    "$ref": "#/components/schemas/__shared/properties/schema583"
                  },
                  "sourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema584"
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "adapterReleaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceKind": {
                    "type": "string",
                    "enum": ["inventory"]
                  },
                  "itemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "locationId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "positionId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "quantity": {
                    "type": "number",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "quantityUnit": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "claimId": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema536"
                      }
                    ]
                  },
                  "claimVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "expiresAt": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  }
                },
                "required": [
                  "sourceId",
                  "sourceVersion",
                  "sourceHash",
                  "adapterReleaseId",
                  "sourceKind",
                  "itemId",
                  "locationId",
                  "positionId",
                  "quantity",
                  "quantityUnit"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "requirementId": {
                    "$ref": "#/components/schemas/__shared/properties/schema583"
                  },
                  "sourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema40"
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "adapterReleaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceKind": {
                    "type": "string",
                    "enum": ["workforce"]
                  },
                  "workItemId": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema536"
                      }
                    ]
                  },
                  "employeeId": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema536"
                      }
                    ]
                  },
                  "schedulingResourceId": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema536"
                      }
                    ]
                  },
                  "supplyVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "expectedLifecycleEpoch": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "admission": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": ["ordinary"]
                      },
                      "workspaceId": {
                        "$ref": "#/components/schemas/__shared/properties/schema0"
                      },
                      "ownerId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "lifecycleEpoch": {
                        "$ref": "#/components/schemas/__shared/properties/schema587"
                      },
                      "admissionRevision": {
                        "$ref": "#/components/schemas/__shared/properties/schema587"
                      }
                    },
                    "required": [
                      "mode",
                      "workspaceId",
                      "ownerId",
                      "lifecycleEpoch",
                      "admissionRevision"
                    ],
                    "additionalProperties": false
                  },
                  "interval": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema543"
                      }
                    ]
                  }
                },
                "required": [
                  "sourceId",
                  "sourceVersion",
                  "sourceHash",
                  "adapterReleaseId",
                  "sourceKind"
                ],
                "additionalProperties": false
              }
            ]
          },
          "schema583": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            ]
          },
          "schema584": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema585": {
            "type": "string",
            "enum": ["ordinary_use", "repair"]
          },
          "schema586": {
            "type": "object",
            "properties": {
              "workItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              },
              "sourceVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema40"
              },
              "sourceHash": {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              },
              "assetRole": {
                "type": "string",
                "enum": ["serviced_asset"]
              }
            },
            "required": [
              "workItemId",
              "sourceVersion",
              "sourceHash",
              "assetRole"
            ],
            "additionalProperties": false
          },
          "schema587": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "schema588": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema589"
            }
          },
          "schema589": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "sourceKind": {
                    "type": "string",
                    "enum": ["inventory"]
                  },
                  "sourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "claimHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "adapterReleaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "adapterDescriptorSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "claimId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "claimVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "claimState": {
                    "type": "string",
                    "enum": ["held", "confirmed", "released", "committed"]
                  },
                  "evidenceRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "itemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "locationId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "positionId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "quantity": {
                    "type": "number",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "quantityUnit": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "positionVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "ownerKind": {
                    "type": "string",
                    "enum": ["booking_hold", "booking", "scheduled_offering"]
                  },
                  "ownerId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "expiresAt": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  }
                },
                "required": [
                  "sourceKind",
                  "sourceId",
                  "sourceVersion",
                  "sourceHash",
                  "claimHash",
                  "adapterReleaseId",
                  "adapterDescriptorSha256",
                  "claimId",
                  "claimVersion",
                  "claimState",
                  "evidenceRef",
                  "itemId",
                  "locationId",
                  "positionId",
                  "quantity",
                  "quantityUnit",
                  "positionVersion",
                  "ownerKind",
                  "ownerId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "sourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema590"
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "claimHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "adapterReleaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "adapterDescriptorSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "claimId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "claimVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema591"
                  },
                  "claimState": {
                    "$ref": "#/components/schemas/__shared/properties/schema592"
                  },
                  "evidenceRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "ownerKind": {
                    "type": "string",
                    "enum": [
                      "booking_hold",
                      "booking",
                      "scheduled_offering",
                      "rental_agreement_item"
                    ]
                  },
                  "ownerId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceKind": {
                    "type": "string",
                    "enum": ["asset"]
                  },
                  "purpose": {
                    "default": "ordinary_use",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema585"
                      }
                    ]
                  },
                  "workAssetSource": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema586"
                      }
                    ]
                  },
                  "assetId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "schedulingResourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "startAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "endAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                },
                "required": [
                  "sourceId",
                  "sourceVersion",
                  "sourceHash",
                  "claimHash",
                  "adapterReleaseId",
                  "adapterDescriptorSha256",
                  "claimId",
                  "claimVersion",
                  "claimState",
                  "evidenceRef",
                  "ownerKind",
                  "ownerId",
                  "sourceKind",
                  "assetId",
                  "schedulingResourceId",
                  "startAt",
                  "endAt"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "sourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema590"
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "claimHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "adapterReleaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "adapterDescriptorSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "claimId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "claimVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema591"
                  },
                  "claimState": {
                    "$ref": "#/components/schemas/__shared/properties/schema592"
                  },
                  "evidenceRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "ownerKind": {
                    "$ref": "#/components/schemas/__shared/properties/schema593"
                  },
                  "ownerId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceKind": {
                    "type": "string",
                    "enum": ["rental"]
                  },
                  "resourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "agreementId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "itemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "preparedClaimId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "startAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "endAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "expiresAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                },
                "required": [
                  "sourceId",
                  "sourceVersion",
                  "sourceHash",
                  "claimHash",
                  "adapterReleaseId",
                  "adapterDescriptorSha256",
                  "claimId",
                  "claimVersion",
                  "claimState",
                  "evidenceRef",
                  "ownerKind",
                  "ownerId",
                  "sourceKind",
                  "resourceId",
                  "agreementId",
                  "itemId",
                  "preparedClaimId",
                  "startAt",
                  "endAt",
                  "expiresAt"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "sourceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema590"
                  },
                  "sourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "claimHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "adapterReleaseId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "adapterDescriptorSha256": {
                    "$ref": "#/components/schemas/__shared/properties/schema534"
                  },
                  "claimId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "claimVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema591"
                  },
                  "claimState": {
                    "$ref": "#/components/schemas/__shared/properties/schema592"
                  },
                  "evidenceRef": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "ownerKind": {
                    "$ref": "#/components/schemas/__shared/properties/schema593"
                  },
                  "ownerId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "sourceKind": {
                    "type": "string",
                    "enum": ["project"]
                  },
                  "projectId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "allocationId": {
                    "$ref": "#/components/schemas/__shared/properties/schema536"
                  },
                  "minutes": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  }
                },
                "required": [
                  "sourceId",
                  "sourceVersion",
                  "sourceHash",
                  "claimHash",
                  "adapterReleaseId",
                  "adapterDescriptorSha256",
                  "claimId",
                  "claimVersion",
                  "claimState",
                  "evidenceRef",
                  "ownerKind",
                  "ownerId",
                  "sourceKind",
                  "projectId",
                  "allocationId",
                  "minutes"
                ],
                "additionalProperties": false
              }
            ]
          },
          "schema590": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema591": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema592": {
            "type": "string",
            "enum": ["held", "confirmed", "released", "committed"]
          },
          "schema593": {
            "type": "string",
            "enum": ["booking_hold", "booking", "scheduled_offering"]
          },
          "schema594": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema536"
            }
          },
          "schema595": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema536"
            }
          },
          "schema596": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema536"
            }
          },
          "schema597": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            ]
          },
          "schema598": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            ]
          },
          "schema599": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema536"
            }
          },
          "schema600": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema534"
              }
            ]
          },
          "schema601": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema602": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema603": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema604": {
            "type": "string",
            "enum": ["booking_hold", "booking", "scheduled_offering"]
          },
          "schema605": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema536"
              }
            ]
          },
          "schema606": {
            "type": "string",
            "enum": [
              "person",
              "room",
              "bay",
              "capacity_pool",
              "equipment",
              "vehicle",
              "crew"
            ]
          },
          "schema607": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true,
            "maximum": 1000000
          },
          "schema608": {
            "type": "string",
            "enum": ["held", "confirmed", "in_use", "completed", "released"]
          },
          "schema609": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema610": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema611": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema612": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema613"
              },
              {
                "$ref": "#/components/schemas/__shared/properties/schema663"
              },
              {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema0"
                  },
                  "productId": {
                    "$ref": "#/components/schemas/__shared/properties/schema233"
                  },
                  "status": {
                    "$ref": "#/components/schemas/__shared/properties/schema614"
                  },
                  "name": {
                    "$ref": "#/components/schemas/__shared/properties/schema615"
                  },
                  "description": {
                    "$ref": "#/components/schemas/__shared/properties/schema616"
                  },
                  "sku": {
                    "$ref": "#/components/schemas/__shared/properties/schema617"
                  },
                  "upc": {
                    "$ref": "#/components/schemas/__shared/properties/schema618"
                  },
                  "ean": {
                    "$ref": "#/components/schemas/__shared/properties/schema620"
                  },
                  "barcode": {
                    "$ref": "#/components/schemas/__shared/properties/schema621"
                  },
                  "plu": {
                    "$ref": "#/components/schemas/__shared/properties/schema622"
                  },
                  "scanAliases": {
                    "$ref": "#/components/schemas/__shared/properties/schema623"
                  },
                  "category": {
                    "$ref": "#/components/schemas/__shared/properties/schema625"
                  },
                  "tags": {
                    "$ref": "#/components/schemas/__shared/properties/schema626"
                  },
                  "accountingDefaults": {
                    "$ref": "#/components/schemas/__shared/properties/schema627"
                  },
                  "metadata": {
                    "$ref": "#/components/schemas/__shared/properties/schema629"
                  },
                  "preparationProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema630"
                  },
                  "controlledItemPolicy": {
                    "$ref": "#/components/schemas/__shared/properties/schema646"
                  },
                  "createdAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "updatedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "occVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema40"
                  },
                  "kind": {
                    "type": "string",
                    "enum": ["rental"]
                  },
                  "billingPeriod": {
                    "$ref": "#/components/schemas/__shared/properties/schema666"
                  },
                  "assetItemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema667"
                  },
                  "rules": {
                    "$ref": "#/components/schemas/__shared/properties/schema668"
                  }
                },
                "required": [
                  "workspaceId",
                  "productId",
                  "status",
                  "name",
                  "createdAt",
                  "updatedAt",
                  "occVersion",
                  "kind",
                  "billingPeriod"
                ],
                "additionalProperties": false
              }
            ]
          },
          "schema613": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "productId": {
                "$ref": "#/components/schemas/__shared/properties/schema233"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema614"
              },
              "name": {
                "$ref": "#/components/schemas/__shared/properties/schema615"
              },
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema616"
              },
              "sku": {
                "$ref": "#/components/schemas/__shared/properties/schema617"
              },
              "upc": {
                "$ref": "#/components/schemas/__shared/properties/schema618"
              },
              "ean": {
                "$ref": "#/components/schemas/__shared/properties/schema620"
              },
              "barcode": {
                "$ref": "#/components/schemas/__shared/properties/schema621"
              },
              "plu": {
                "$ref": "#/components/schemas/__shared/properties/schema622"
              },
              "scanAliases": {
                "$ref": "#/components/schemas/__shared/properties/schema623"
              },
              "category": {
                "$ref": "#/components/schemas/__shared/properties/schema625"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema626"
              },
              "accountingDefaults": {
                "$ref": "#/components/schemas/__shared/properties/schema627"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema629"
              },
              "preparationProfile": {
                "$ref": "#/components/schemas/__shared/properties/schema630"
              },
              "controlledItemPolicy": {
                "$ref": "#/components/schemas/__shared/properties/schema646"
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "occVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema40"
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema647"
              },
              "suppliedItem": {
                "$ref": "#/components/schemas/__shared/properties/schema648"
              },
              "components": {
                "$ref": "#/components/schemas/__shared/properties/schema649"
              },
              "kit": {
                "$ref": "#/components/schemas/__shared/properties/schema650"
              },
              "vehicleFitments": {
                "$ref": "#/components/schemas/__shared/properties/schema653"
              }
            },
            "required": [
              "workspaceId",
              "productId",
              "status",
              "name",
              "createdAt",
              "updatedAt",
              "occVersion",
              "kind",
              "components"
            ],
            "additionalProperties": false
          },
          "schema614": {
            "type": "string",
            "enum": ["active", "archived"]
          },
          "schema615": {
            "maxLength": 120,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema616": {
            "type": "string",
            "maxLength": 1024
          },
          "schema617": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema618": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema619"
              }
            ]
          },
          "schema619": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema620": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema619"
              }
            ]
          },
          "schema621": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema619"
              }
            ]
          },
          "schema622": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema619"
              }
            ]
          },
          "schema623": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema624"
              }
            ]
          },
          "schema624": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema619"
            }
          },
          "schema625": {
            "maxLength": 120,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema626": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema533"
            }
          },
          "schema627": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema628"
              }
            ]
          },
          "schema628": {
            "type": "object",
            "properties": {
              "revenueAccountId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "costOfGoodsSoldAccountId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "expenseAccountId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "inventoryAssetAccountId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "taxCategory": {
                "maxLength": 80,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "capitalizationPolicy": {
                "type": "string",
                "enum": ["expense", "inventory", "fixed_asset"]
              },
              "departmentId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "locationId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "itemDimensionId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "costingMethod": {
                "type": "string",
                "enum": ["fifo", "moving_average"]
              }
            },
            "additionalProperties": false
          },
          "schema629": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema630": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema631"
              }
            ]
          },
          "schema631": {
            "type": "object",
            "properties": {
              "availability": {
                "$ref": "#/components/schemas/__shared/properties/schema632"
              },
              "availabilityReason": {
                "$ref": "#/components/schemas/__shared/properties/schema633"
              },
              "allergenCodes": {
                "$ref": "#/components/schemas/__shared/properties/schema634"
              },
              "modifierGroups": {
                "$ref": "#/components/schemas/__shared/properties/schema636"
              }
            },
            "required": ["availability", "allergenCodes", "modifierGroups"],
            "additionalProperties": false
          },
          "schema632": {
            "type": "string",
            "enum": ["available", "sold_out"]
          },
          "schema633": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "schema634": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema635"
            }
          },
          "schema635": {
            "type": "string",
            "minLength": 1,
            "maxLength": 96
          },
          "schema636": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema637"
            }
          },
          "schema637": {
            "type": "object",
            "properties": {
              "groupId": {
                "$ref": "#/components/schemas/__shared/properties/schema635"
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema638"
              },
              "minimum": {
                "$ref": "#/components/schemas/__shared/properties/schema639"
              },
              "maximum": {
                "$ref": "#/components/schemas/__shared/properties/schema640"
              },
              "options": {
                "$ref": "#/components/schemas/__shared/properties/schema641"
              }
            },
            "required": ["groupId", "label", "minimum", "maximum", "options"],
            "additionalProperties": false
          },
          "schema638": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema639": {
            "type": "integer",
            "minimum": 0,
            "maximum": 32
          },
          "schema640": {
            "type": "integer",
            "minimum": 0,
            "maximum": 32
          },
          "schema641": {
            "minItems": 1,
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema642"
            }
          },
          "schema642": {
            "type": "object",
            "properties": {
              "productId": {
                "$ref": "#/components/schemas/__shared/properties/schema643"
              },
              "addAllergenCodes": {
                "$ref": "#/components/schemas/__shared/properties/schema644"
              },
              "removeAllergenCodes": {
                "$ref": "#/components/schemas/__shared/properties/schema645"
              }
            },
            "required": [
              "productId",
              "addAllergenCodes",
              "removeAllergenCodes"
            ],
            "additionalProperties": false
          },
          "schema643": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "schema644": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema635"
            }
          },
          "schema645": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema635"
            }
          },
          "schema646": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema472"
              }
            ]
          },
          "schema647": {
            "type": "string",
            "enum": ["goods"]
          },
          "schema648": {
            "type": "object",
            "properties": {
              "manufacturerPartNumber": {
                "$ref": "#/components/schemas/__shared/properties/schema249"
              },
              "condition": {
                "$ref": "#/components/schemas/__shared/properties/schema250"
              }
            },
            "additionalProperties": false
          },
          "schema649": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema253"
            }
          },
          "schema650": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema651"
              }
            ]
          },
          "schema651": {
            "type": "object",
            "properties": {
              "substituteItemIds": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema652"
                }
              }
            }
          },
          "schema652": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema653": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema654"
              }
            ]
          },
          "schema654": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema655"
            }
          },
          "schema655": {
            "type": "object",
            "properties": {
              "yearFrom": {
                "$ref": "#/components/schemas/__shared/properties/schema656"
              },
              "yearTo": {
                "$ref": "#/components/schemas/__shared/properties/schema657"
              },
              "make": {
                "$ref": "#/components/schemas/__shared/properties/schema658"
              },
              "model": {
                "$ref": "#/components/schemas/__shared/properties/schema659"
              },
              "variant": {
                "$ref": "#/components/schemas/__shared/properties/schema660"
              },
              "engine": {
                "$ref": "#/components/schemas/__shared/properties/schema661"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema662"
              }
            },
            "required": ["yearFrom", "yearTo", "make", "model"],
            "additionalProperties": false
          },
          "schema656": {
            "type": "integer",
            "minimum": 1886,
            "maximum": 2200
          },
          "schema657": {
            "type": "integer",
            "minimum": 1886,
            "maximum": 2200
          },
          "schema658": {
            "maxLength": 80,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema659": {
            "maxLength": 120,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema660": {
            "maxLength": 120,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema661": {
            "maxLength": 120,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema662": {
            "type": "string",
            "maxLength": 500
          },
          "schema663": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "productId": {
                "$ref": "#/components/schemas/__shared/properties/schema233"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema614"
              },
              "name": {
                "$ref": "#/components/schemas/__shared/properties/schema615"
              },
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema616"
              },
              "sku": {
                "$ref": "#/components/schemas/__shared/properties/schema617"
              },
              "upc": {
                "$ref": "#/components/schemas/__shared/properties/schema618"
              },
              "ean": {
                "$ref": "#/components/schemas/__shared/properties/schema620"
              },
              "barcode": {
                "$ref": "#/components/schemas/__shared/properties/schema621"
              },
              "plu": {
                "$ref": "#/components/schemas/__shared/properties/schema622"
              },
              "scanAliases": {
                "$ref": "#/components/schemas/__shared/properties/schema623"
              },
              "category": {
                "$ref": "#/components/schemas/__shared/properties/schema625"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema626"
              },
              "accountingDefaults": {
                "$ref": "#/components/schemas/__shared/properties/schema627"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema629"
              },
              "preparationProfile": {
                "$ref": "#/components/schemas/__shared/properties/schema630"
              },
              "controlledItemPolicy": {
                "$ref": "#/components/schemas/__shared/properties/schema646"
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "occVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema40"
              },
              "kind": {
                "type": "string",
                "enum": ["service"]
              },
              "billingUnit": {
                "$ref": "#/components/schemas/__shared/properties/schema664"
              },
              "packageProfile": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema665"
                  }
                ]
              }
            },
            "required": [
              "workspaceId",
              "productId",
              "status",
              "name",
              "createdAt",
              "updatedAt",
              "occVersion",
              "kind",
              "billingUnit"
            ],
            "additionalProperties": false
          },
          "schema664": {
            "type": "string",
            "enum": ["session", "hour"]
          },
          "schema665": {
            "type": "object",
            "properties": {
              "membershipCreditCost": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "laborOperationCode": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema234"
                  }
                ]
              },
              "defaultDurationMinutes": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true,
                "maximum": 10080
              },
              "includedParts": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema253"
                }
              },
              "inspectionChecklistId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema234"
                  }
                ]
              },
              "warrantyNote": {
                "type": "string",
                "maxLength": 512
              },
              "documentCopy": {
                "type": "string",
                "maxLength": 1000
              }
            }
          },
          "schema666": {
            "type": "string",
            "enum": ["hour", "night", "day", "week", "month", "rental"]
          },
          "schema667": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema668": {
            "type": "string",
            "maxLength": 4000
          },
          "schema669": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "imageId": {
                  "$ref": "#/components/schemas/__shared/properties/schema670"
                },
                "thumbnailUrl": {
                  "$ref": "#/components/schemas/__shared/properties/schema671"
                },
                "expiresAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema27"
                },
                "width": {
                  "$ref": "#/components/schemas/__shared/properties/schema672"
                },
                "height": {
                  "$ref": "#/components/schemas/__shared/properties/schema673"
                }
              },
              "required": [
                "imageId",
                "thumbnailUrl",
                "expiresAt",
                "width",
                "height"
              ],
              "additionalProperties": false
            }
          },
          "schema670": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "schema671": {
            "type": "string",
            "maxLength": 8192,
            "format": "uri"
          },
          "schema672": {
            "type": "integer",
            "minimum": 1,
            "maximum": 320
          },
          "schema673": {
            "type": "integer",
            "minimum": 1,
            "maximum": 320
          },
          "schema674": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "productId": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema675"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": ["loaded"]
                  },
                  "current": {
                    "type": "object",
                    "properties": {
                      "productRef": {
                        "$ref": "#/components/schemas/__shared/properties/schema676"
                      },
                      "offer": {
                        "nullable": true,
                        "type": "object",
                        "properties": {
                          "offerId": {
                            "$ref": "#/components/schemas/__shared/properties/schema677"
                          },
                          "workspaceId": {
                            "$ref": "#/components/schemas/__shared/properties/schema0"
                          },
                          "revision": {
                            "$ref": "#/components/schemas/__shared/properties/schema678"
                          },
                          "productRef": {
                            "$ref": "#/components/schemas/__shared/properties/schema676"
                          },
                          "kind": {
                            "$ref": "#/components/schemas/__shared/properties/schema679"
                          },
                          "status": {
                            "$ref": "#/components/schemas/__shared/properties/schema680"
                          },
                          "prices": {
                            "$ref": "#/components/schemas/__shared/properties/schema681"
                          },
                          "taxCategory": {
                            "$ref": "#/components/schemas/__shared/properties/schema686"
                          },
                          "revenueAccountId": {
                            "$ref": "#/components/schemas/__shared/properties/schema687"
                          },
                          "costPolicyId": {
                            "$ref": "#/components/schemas/__shared/properties/schema688"
                          },
                          "recurringInterval": {
                            "$ref": "#/components/schemas/__shared/properties/schema689"
                          },
                          "effectiveFrom": {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          },
                          "effectiveTo": {
                            "$ref": "#/components/schemas/__shared/properties/schema690"
                          },
                          "sourceHash": {
                            "$ref": "#/components/schemas/__shared/properties/schema691"
                          },
                          "createdAt": {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          },
                          "updatedAt": {
                            "$ref": "#/components/schemas/__shared/properties/schema27"
                          },
                          "occVersion": {
                            "$ref": "#/components/schemas/__shared/properties/schema692"
                          }
                        },
                        "required": [
                          "offerId",
                          "workspaceId",
                          "revision",
                          "productRef",
                          "kind",
                          "status",
                          "prices",
                          "effectiveFrom",
                          "sourceHash",
                          "createdAt",
                          "updatedAt",
                          "occVersion"
                        ],
                        "additionalProperties": false
                      },
                      "selectedPrice": {
                        "anyOf": [
                          {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/__shared/properties/schema682"
                              }
                            ]
                          },
                          {
                            "type": "string",
                            "nullable": true,
                            "enum": [null]
                          }
                        ]
                      },
                      "pricingRevision": {
                        "nullable": true,
                        "type": "integer",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "maximum": 9007199254740991
                      },
                      "pricingHash": {
                        "nullable": true,
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "pricingState": {
                        "type": "string",
                        "enum": ["unpriced", "ready", "inactive"]
                      },
                      "checkedAt": {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    },
                    "required": [
                      "productRef",
                      "offer",
                      "selectedPrice",
                      "pricingRevision",
                      "pricingHash",
                      "pricingState",
                      "checkedAt"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": ["productId", "status", "current"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "productId": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema675"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": ["unavailable"]
                  },
                  "error": {
                    "maxLength": 512,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema675"
                      }
                    ]
                  }
                },
                "required": ["productId", "status", "error"],
                "additionalProperties": false
              }
            ]
          },
          "schema675": {
            "type": "string",
            "minLength": 1
          },
          "schema676": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "productId": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema675"
                  }
                ]
              },
              "productVersion": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "productHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            },
            "required": [
              "workspaceId",
              "productId",
              "productVersion",
              "productHash"
            ],
            "additionalProperties": false
          },
          "schema677": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema675"
              }
            ]
          },
          "schema678": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema679": {
            "type": "string",
            "enum": ["goods", "service", "rental", "membership"]
          },
          "schema680": {
            "type": "string",
            "enum": ["draft", "active", "retired"]
          },
          "schema681": {
            "minItems": 1,
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema682"
            }
          },
          "schema682": {
            "type": "object",
            "properties": {
              "priceBookId": {
                "$ref": "#/components/schemas/__shared/properties/schema683"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "unitAmountMinor": {
                "$ref": "#/components/schemas/__shared/properties/schema684"
              },
              "validFrom": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "validTo": {
                "$ref": "#/components/schemas/__shared/properties/schema685"
              }
            },
            "required": [
              "priceBookId",
              "currency",
              "unitAmountMinor",
              "validFrom"
            ],
            "additionalProperties": false
          },
          "schema683": {
            "maxLength": 96,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema675"
              }
            ]
          },
          "schema684": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema685": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema686": {
            "maxLength": 96,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema675"
              }
            ]
          },
          "schema687": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema675"
              }
            ]
          },
          "schema688": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema675"
              }
            ]
          },
          "schema689": {
            "type": "string",
            "enum": ["week", "month", "quarter", "year"]
          },
          "schema690": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema691": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema692": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema693": {
            "type": "object",
            "properties": {
              "product": {
                "$ref": "#/components/schemas/__shared/properties/schema694"
              },
              "pricing": {
                "type": "object",
                "properties": {
                  "currency": {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  },
                  "unitPriceCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "basePriceCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "appliedPriceBookCode": {
                    "maxLength": 96,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "kitFeeCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "minimumMarginBps": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9999
                  },
                  "priceAdjustmentReason": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "substituteItemIds": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema695"
                    }
                  }
                },
                "required": ["currency", "unitPriceCents", "basePriceCents"]
              },
              "catalogSource": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["goods_product", "service_product"]
                  },
                  "id": {
                    "$ref": "#/components/schemas/__shared/properties/schema233"
                  },
                  "label": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "version": {
                    "$ref": "#/components/schemas/__shared/properties/schema40"
                  },
                  "sourceHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "offerId": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "offerRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "offerSourceHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "pricingHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "offerPriceBookId": {
                    "maxLength": 96,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "serviceBillingUnit": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema664"
                      }
                    ]
                  },
                  "sourceRefs": {
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema254"
                    }
                  },
                  "priceBookCode": {
                    "maxLength": 96,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "appliedPriceBookCode": {
                    "maxLength": 96,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "taxCategory": {
                    "maxLength": 80,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "minimumMarginBps": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9999
                  },
                  "defaultDurationMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true,
                    "maximum": 10080
                  },
                  "laborOperationCode": {
                    "maxLength": 64,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "kitFeeCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "priceAdjustmentReason": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema234"
                      }
                    ]
                  },
                  "substituteItemIds": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema696"
                    }
                  },
                  "warrantyNote": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "documentCopy": {
                    "type": "string",
                    "maxLength": 1000
                  }
                },
                "required": [
                  "kind",
                  "id",
                  "label",
                  "version",
                  "sourceHash",
                  "offerId",
                  "offerRevision",
                  "offerSourceHash",
                  "pricingHash",
                  "offerPriceBookId"
                ]
              }
            },
            "required": ["product", "pricing", "catalogSource"]
          },
          "schema694": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema613"
              },
              {
                "$ref": "#/components/schemas/__shared/properties/schema663"
              }
            ]
          },
          "schema695": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema696": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema234"
              }
            ]
          },
          "schema697": {
            "type": "object",
            "properties": {
              "product": {
                "$ref": "#/components/schemas/__shared/properties/schema694"
              },
              "productRef": {
                "$ref": "#/components/schemas/__shared/properties/schema676"
              },
              "reason": {
                "type": "string",
                "enum": ["unpriced", "inactive"]
              }
            },
            "required": ["product", "productRef", "reason"],
            "additionalProperties": false
          },
          "schema698": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema233"
              }
            ]
          },
          "schema699": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema616"
              }
            ]
          },
          "schema700": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema617"
              }
            ]
          },
          "schema701": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema618"
              }
            ]
          },
          "schema702": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema620"
              }
            ]
          },
          "schema703": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema621"
              }
            ]
          },
          "schema704": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema622"
              }
            ]
          },
          "schema705": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema623"
              }
            ]
          },
          "schema706": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema625"
              }
            ]
          },
          "schema707": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema626"
              }
            ]
          },
          "schema708": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema627"
              }
            ]
          },
          "schema709": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema629"
              }
            ]
          },
          "schema710": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema631"
              }
            ]
          },
          "schema711": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema472"
              }
            ]
          },
          "schema712": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema615"
              }
            ]
          },
          "schema713": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema616"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema714": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema614"
              }
            ]
          },
          "schema715": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema617"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema716": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema618"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema717": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema620"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema718": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema621"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema719": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema622"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema720": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema624"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema721": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema625"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema722": {
            "nullable": true,
            "maxItems": 32,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema533"
            }
          },
          "schema723": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema627"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema724": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema725": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema631"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema726": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema472"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema727": {
            "nullable": true,
            "type": "object",
            "properties": {
              "manufacturerPartNumber": {
                "$ref": "#/components/schemas/__shared/properties/schema249"
              },
              "condition": {
                "$ref": "#/components/schemas/__shared/properties/schema250"
              }
            },
            "additionalProperties": false
          },
          "schema728": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema253"
            }
          },
          "schema729": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema651"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema730": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema654"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema731": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema664"
              }
            ]
          },
          "schema732": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema665"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema733": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema666"
              }
            ]
          },
          "schema734": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema667"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema735": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema668"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema736": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "locationId": {
                "$ref": "#/components/schemas/__shared/properties/schema452"
              },
              "parentLocationId": {
                "$ref": "#/components/schemas/__shared/properties/schema737"
              },
              "type": {
                "$ref": "#/components/schemas/__shared/properties/schema738"
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema740"
              },
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema741"
              },
              "customerId": {
                "$ref": "#/components/schemas/__shared/properties/schema742"
              },
              "address": {
                "$ref": "#/components/schemas/__shared/properties/schema743"
              },
              "capacity": {
                "$ref": "#/components/schemas/__shared/properties/schema744"
              },
              "capabilities": {
                "$ref": "#/components/schemas/__shared/properties/schema746"
              },
              "warehouseProfile": {
                "$ref": "#/components/schemas/__shared/properties/schema748"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema752"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema753"
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "workspaceId",
              "locationId",
              "label",
              "status",
              "createdAt",
              "updatedAt"
            ],
            "additionalProperties": false
          },
          "schema737": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema452"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema738": {
            "default": "warehouse",
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema739"
              }
            ]
          },
          "schema739": {
            "type": "string",
            "enum": [
              "land_plot",
              "warehouse",
              "yard",
              "building",
              "floor",
              "room",
              "store",
              "vehicle",
              "customer_site",
              "job_site",
              "zone",
              "area",
              "aisle",
              "rack",
              "shelf",
              "bin",
              "bay",
              "container",
              "tote",
              "virtual",
              "other"
            ]
          },
          "schema740": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "schema741": {
            "nullable": true,
            "type": "string",
            "maxLength": 1024
          },
          "schema742": {
            "nullable": true,
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema743": {
            "nullable": true,
            "type": "object",
            "properties": {
              "line1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "line2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "region": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "postalCode": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "countryCode": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2
              }
            }
          },
          "schema744": {
            "nullable": true,
            "type": "object",
            "properties": {
              "primaryUnit": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "maxUnits": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              },
              "metrics": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema745"
                }
              },
              "dimensions": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "length": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0
                  },
                  "width": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0
                  },
                  "height": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0
                  },
                  "unit": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 24
                  },
                  "area": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0
                  },
                  "areaUnit": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 24
                  },
                  "volume": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0
                  },
                  "volumeUnit": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 24
                  }
                },
                "additionalProperties": false
              },
              "notes": {
                "nullable": true,
                "type": "string",
                "maxLength": 1000
              }
            },
            "additionalProperties": false
          },
          "schema745": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "limit": {
                "type": "number",
                "minimum": 0
              },
              "unit": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "softLimit": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              },
              "used": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              },
              "reserved": {
                "nullable": true,
                "type": "number",
                "minimum": 0
              },
              "enforce": {
                "nullable": true,
                "type": "boolean"
              }
            },
            "required": ["key", "limit", "unit"],
            "additionalProperties": false
          },
          "schema746": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema747"
            }
          },
          "schema747": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "category": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "status": {
                "default": "available",
                "type": "string",
                "enum": ["available", "limited", "unavailable"]
              },
              "notes": {
                "nullable": true,
                "type": "string",
                "maxLength": 1000
              }
            },
            "required": ["key", "label"],
            "additionalProperties": false
          },
          "schema748": {
            "nullable": true,
            "type": "object",
            "properties": {
              "barcode": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "scanAliases": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema749"
                }
              },
              "workflows": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema750"
                }
              },
              "handlingUnits": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema751"
                }
              },
              "capacity": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "maxEaches": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0
                  },
                  "maxWeight": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0
                  },
                  "weightUnit": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 24
                  },
                  "maxVolume": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0
                  },
                  "volumeUnit": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 24
                  }
                },
                "additionalProperties": false
              },
              "temperatureBand": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "ambient",
                      "refrigerated",
                      "frozen",
                      "heated",
                      "controlled"
                    ]
                  },
                  {
                    "type": "string",
                    "nullable": true,
                    "enum": [null]
                  }
                ]
              },
              "hazardousMaterialAllowed": {
                "nullable": true,
                "type": "boolean"
              },
              "lockable": {
                "nullable": true,
                "type": "boolean"
              },
              "pickPriority": {
                "nullable": true,
                "type": "integer",
                "minimum": 0
              },
              "putawayPriority": {
                "nullable": true,
                "type": "integer",
                "minimum": 0
              },
              "cycleCountFrequencyDays": {
                "nullable": true,
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "notes": {
                "nullable": true,
                "type": "string",
                "maxLength": 1000
              }
            },
            "additionalProperties": false
          },
          "schema749": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema750": {
            "type": "string",
            "enum": [
              "receiving",
              "putaway",
              "storage",
              "picking",
              "packing",
              "shipping",
              "returns",
              "quarantine",
              "replenishment",
              "cycle_count",
              "sales_fulfillment",
              "service_work",
              "transfer"
            ]
          },
          "schema751": {
            "type": "string",
            "enum": [
              "each",
              "case",
              "pallet",
              "carton",
              "tote",
              "container",
              "vehicle",
              "bulk",
              "mixed"
            ]
          },
          "schema752": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema753": {
            "type": "string",
            "enum": ["active", "archived"]
          },
          "schema754": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema452"
              }
            ]
          },
          "schema755": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema452"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema756": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema739"
              }
            ]
          },
          "schema757": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "schema758": {
            "type": "string",
            "maxLength": 1024
          },
          "schema759": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema760": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema753"
              }
            ]
          },
          "schema761": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema143"
              }
            ]
          },
          "schema762": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema452"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema763": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema739"
              }
            ]
          },
          "schema764": {
            "nullable": true,
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "schema765": {
            "nullable": true,
            "type": "string",
            "maxLength": 1024
          },
          "schema766": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema767": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema753"
              }
            ]
          },
          "schema768": {
            "type": "object",
            "properties": {
              "catalogId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "provider": {
                "type": "string",
                "enum": ["vpic"]
              },
              "snapshotId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "sourceUrl": {
                "$ref": "#/components/schemas/__shared/properties/schema65"
              },
              "sourceHash": {
                "type": "string",
                "minLength": 16,
                "maxLength": 160
              },
              "artifactUri": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "fetchedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "builtAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "activatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "makeCount": {
                "type": "integer",
                "minimum": 0
              },
              "makeChunkCount": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true,
                "maximum": 16
              },
              "modelCount": {
                "type": "integer",
                "minimum": 0
              },
              "wmiCount": {
                "type": "integer",
                "minimum": 0
              },
              "patternCount": {
                "type": "integer",
                "minimum": 0
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "catalogId",
              "provider",
              "snapshotId",
              "sourceUrl",
              "sourceHash",
              "fetchedAt",
              "builtAt",
              "activatedAt",
              "makeCount",
              "makeChunkCount",
              "modelCount",
              "wmiCount",
              "patternCount",
              "createdAt",
              "updatedAt"
            ],
            "additionalProperties": false
          },
          "schema769": {
            "type": "object",
            "properties": {
              "makeId": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            },
            "required": ["makeId", "name"],
            "additionalProperties": false
          },
          "schema770": {
            "type": "object",
            "properties": {
              "modelId": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "makeId": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "makeName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            },
            "required": ["modelId", "makeId", "makeName", "name"],
            "additionalProperties": false
          },
          "schema771": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "vendorId": {
                "$ref": "#/components/schemas/__shared/properties/schema772"
              },
              "partyRef": {
                "$ref": "#/components/schemas/__shared/properties/schema2"
              },
              "displayName": {
                "$ref": "#/components/schemas/__shared/properties/schema773"
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema775"
              },
              "legalName": {
                "$ref": "#/components/schemas/__shared/properties/schema777"
              },
              "aliases": {
                "$ref": "#/components/schemas/__shared/properties/schema778"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema780"
              },
              "categories": {
                "$ref": "#/components/schemas/__shared/properties/schema781"
              },
              "externalId": {
                "$ref": "#/components/schemas/__shared/properties/schema783"
              },
              "externalRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema784"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "defaultTerms": {
                "$ref": "#/components/schemas/__shared/properties/schema787"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema788"
              },
              "contacts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "contactId": {
                      "$ref": "#/components/schemas/__shared/properties/schema789"
                    },
                    "name": {
                      "$ref": "#/components/schemas/__shared/properties/schema790"
                    },
                    "roleTitle": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "emailKey": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/__shared/properties/schema791"
                        }
                      ]
                    },
                    "phoneKey": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/__shared/properties/schema791"
                        }
                      ]
                    },
                    "email": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/__shared/properties/schema792"
                        }
                      ]
                    },
                    "phone": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/__shared/properties/schema793"
                        }
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/components/schemas/__shared/properties/schema27"
                    },
                    "updatedAt": {
                      "$ref": "#/components/schemas/__shared/properties/schema27"
                    }
                  },
                  "required": ["contactId", "name", "createdAt", "updatedAt"]
                }
              },
              "addresses": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "addressId": {
                      "$ref": "#/components/schemas/__shared/properties/schema794"
                    },
                    "kind": {
                      "$ref": "#/components/schemas/__shared/properties/schema795"
                    },
                    "label": {
                      "$ref": "#/components/schemas/__shared/properties/schema796"
                    },
                    "isDefault": {
                      "$ref": "#/components/schemas/__shared/properties/schema797"
                    },
                    "address": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/__shared/properties/schema798"
                        }
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/components/schemas/__shared/properties/schema27"
                    },
                    "updatedAt": {
                      "$ref": "#/components/schemas/__shared/properties/schema27"
                    }
                  },
                  "required": ["addressId", "kind", "createdAt", "updatedAt"]
                }
              },
              "profiles": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema800"
                  }
                ]
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "version": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "workspaceId",
              "vendorId",
              "partyRef",
              "displayName",
              "currency",
              "status",
              "contacts",
              "addresses",
              "createdAt",
              "updatedAt",
              "version"
            ]
          },
          "schema772": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema773": {
            "maxLength": 256,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema774": {
            "type": "string",
            "minLength": 1
          },
          "schema775": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema776"
              }
            ]
          },
          "schema776": {
            "type": "string",
            "enum": ["organization", "individual"]
          },
          "schema777": {
            "type": "string",
            "maxLength": 256
          },
          "schema778": {
            "maxItems": 25,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema779"
            }
          },
          "schema779": {
            "maxLength": 256,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema780": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema533"
            }
          },
          "schema781": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema782"
            }
          },
          "schema782": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema783": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema784": {
            "maxItems": 25,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema785"
            }
          },
          "schema785": {
            "type": "object",
            "properties": {
              "system": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema786"
                  }
                ]
              },
              "externalId": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema786"
                  }
                ]
              },
              "type": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema786"
                  }
                ]
              },
              "label": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema786"
                  }
                ]
              }
            },
            "required": ["system", "externalId"]
          },
          "schema786": {
            "type": "string",
            "minLength": 1
          },
          "schema787": {
            "maxLength": 256,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema788": {
            "type": "string",
            "enum": ["draft", "active", "archived"]
          },
          "schema789": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema790": {
            "maxLength": 256,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema791": {
            "maxLength": 256,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema792": {
            "type": "string",
            "maxLength": 320,
            "format": "email",
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "schema793": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema794": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema795": {
            "type": "string",
            "enum": [
              "billing",
              "shipping",
              "remit_to",
              "ship_from",
              "service",
              "other"
            ]
          },
          "schema796": {
            "type": "string",
            "maxLength": 64
          },
          "schema797": {
            "type": "boolean"
          },
          "schema798": {
            "type": "object",
            "properties": {
              "line1": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema799"
                  }
                ]
              },
              "line2": {
                "type": "string",
                "maxLength": 128
              },
              "city": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema799"
                  }
                ]
              },
              "region": {
                "type": "string",
                "maxLength": 64
              },
              "postalCode": {
                "type": "string",
                "maxLength": 32
              },
              "country": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2
              }
            },
            "required": ["line1", "city", "country"]
          },
          "schema799": {
            "type": "string",
            "minLength": 1
          },
          "schema800": {
            "type": "object",
            "properties": {
              "payables": {
                "type": "object",
                "properties": {
                  "industries": {
                    "$ref": "#/components/schemas/__shared/properties/schema801"
                  },
                  "keywords": {
                    "$ref": "#/components/schemas/__shared/properties/schema803"
                  },
                  "defaultExpenseAccount": {
                    "$ref": "#/components/schemas/__shared/properties/schema805"
                  },
                  "defaultCodingRules": {
                    "$ref": "#/components/schemas/__shared/properties/schema806"
                  },
                  "taxProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema807"
                  },
                  "paymentDestination": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "$ref": "#/components/schemas/__shared/properties/schema842"
                      },
                      "method": {
                        "$ref": "#/components/schemas/__shared/properties/schema843"
                      },
                      "verificationStatus": {
                        "$ref": "#/components/schemas/__shared/properties/schema844"
                      },
                      "riskState": {
                        "$ref": "#/components/schemas/__shared/properties/schema845"
                      },
                      "label": {
                        "$ref": "#/components/schemas/__shared/properties/schema846"
                      },
                      "externalRef": {
                        "$ref": "#/components/schemas/__shared/properties/schema847"
                      },
                      "country": {
                        "$ref": "#/components/schemas/__shared/properties/schema848"
                      },
                      "currency": {
                        "$ref": "#/components/schemas/__shared/properties/schema849"
                      },
                      "metadata": {
                        "$ref": "#/components/schemas/__shared/properties/schema850"
                      },
                      "riskReason": {
                        "$ref": "#/components/schemas/__shared/properties/schema851"
                      },
                      "lastVerifiedAt": {
                        "$ref": "#/components/schemas/__shared/properties/schema852"
                      },
                      "verifiedBy": {
                        "$ref": "#/components/schemas/__shared/properties/schema853"
                      }
                    },
                    "required": ["status"]
                  },
                  "recurringBillSchedules": {
                    "$ref": "#/components/schemas/__shared/properties/schema854"
                  },
                  "custom": {
                    "$ref": "#/components/schemas/__shared/properties/schema873"
                  }
                }
              },
              "purchasing": {
                "type": "object",
                "properties": {
                  "supplierCode": {
                    "$ref": "#/components/schemas/__shared/properties/schema874"
                  },
                  "leadTimeDays": {
                    "$ref": "#/components/schemas/__shared/properties/schema875"
                  },
                  "minimumOrderAmount": {
                    "$ref": "#/components/schemas/__shared/properties/schema876"
                  },
                  "custom": {
                    "$ref": "#/components/schemas/__shared/properties/schema877"
                  }
                }
              },
              "compliance": {
                "$ref": "#/components/schemas/__shared/properties/schema878"
              },
              "messaging": {
                "type": "object",
                "properties": {
                  "preferredChannel": {
                    "$ref": "#/components/schemas/__shared/properties/schema879"
                  },
                  "doNotContact": {
                    "$ref": "#/components/schemas/__shared/properties/schema880"
                  },
                  "custom": {
                    "$ref": "#/components/schemas/__shared/properties/schema881"
                  }
                }
              }
            }
          },
          "schema801": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema802"
            }
          },
          "schema802": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema803": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema804"
            }
          },
          "schema804": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema805": {
            "type": "string",
            "maxLength": 128
          },
          "schema806": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema628"
              }
            ]
          },
          "schema807": {
            "type": "object",
            "properties": {
              "classification": {
                "type": "string",
                "enum": [
                  "individual",
                  "sole_prop",
                  "partnership",
                  "llc",
                  "corporation",
                  "nonprofit"
                ]
              },
              "federalTaxClassification": {
                "type": "string",
                "enum": [
                  "individual_sole_proprietor",
                  "c_corporation",
                  "s_corporation",
                  "partnership",
                  "trust_estate",
                  "llc_c_corp",
                  "llc_s_corp",
                  "llc_partnership",
                  "other"
                ]
              },
              "country": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2
              },
              "state": {
                "type": "string",
                "maxLength": 64
              },
              "requires1099": {
                "type": "boolean"
              },
              "w9Status": {
                "type": "string",
                "enum": [
                  "missing",
                  "requested",
                  "submitted",
                  "under_review",
                  "accepted",
                  "rejected",
                  "recertification_required",
                  "waived"
                ]
              },
              "w9SubstituteFormId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema774"
                  }
                ]
              },
              "w9SourceVersion": {
                "type": "integer",
                "minimum": 0
              },
              "w9AcceptedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "tinMatchingCaseId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema774"
                  }
                ]
              },
              "tinMatchingStatus": {
                "type": "string",
                "enum": [
                  "matched",
                  "mismatch",
                  "invalid_tin",
                  "missing_tin",
                  "pending",
                  "expired"
                ]
              },
              "backupWithholdingCaseId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema774"
                  }
                ]
              },
              "backupWithholdingStatus": {
                "type": "string",
                "enum": [
                  "not_required",
                  "required",
                  "active",
                  "waived",
                  "released",
                  "remitted",
                  "blocked"
                ]
              },
              "form1099LifecycleId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema808"
                  }
                ]
              },
              "recipientDeliveryConsentStatus": {
                "type": "string",
                "enum": ["not_requested", "consented", "withdrawn", "paper"]
              },
              "nativeProviderEvidence": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema809"
                }
              },
              "providerRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema820"
                }
              },
              "evidenceRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              }
            }
          },
          "schema808": {
            "type": "string",
            "minLength": 1
          },
          "schema809": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "enum": [
                  "gusto",
                  "irs",
                  "state_portal",
                  "local_portal",
                  "mail",
                  "other"
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "content_import",
                  "calculation_verification",
                  "calculation",
                  "managed_return",
                  "submission_confirmation",
                  "payment_confirmation",
                  "exemption_validation",
                  "tin_matching",
                  "contractor_payment",
                  "payroll_tax_read_only",
                  "recipient_delivery",
                  "notice_support"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "not_configured",
                  "pending",
                  "accepted",
                  "rejected",
                  "blocked",
                  "superseded"
                ]
              },
              "providerTenantId": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema808"
                  }
                ]
              },
              "providerObjectId": {
                "maxLength": 200,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema808"
                  }
                ]
              },
              "externalReference": {
                "maxLength": 200,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema808"
                  }
                ]
              },
              "recordedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "evidenceRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              },
              "sourceRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            },
            "required": ["provider", "kind", "status"]
          },
          "schema810": {
            "type": "object",
            "properties": {
              "evidenceId": {
                "$ref": "#/components/schemas/__shared/properties/schema811"
              },
              "requirementId": {
                "$ref": "#/components/schemas/__shared/properties/schema812"
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema813"
              },
              "refId": {
                "$ref": "#/components/schemas/__shared/properties/schema814"
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema815"
              },
              "href": {
                "$ref": "#/components/schemas/__shared/properties/schema816"
              },
              "note": {
                "$ref": "#/components/schemas/__shared/properties/schema817"
              },
              "documentReference": {
                "$ref": "#/components/schemas/__shared/properties/schema818"
              },
              "attachedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "attachedBy": {
                "$ref": "#/components/schemas/__shared/properties/schema819"
              }
            },
            "required": [
              "evidenceId",
              "kind",
              "refId",
              "attachedAt",
              "attachedBy"
            ],
            "additionalProperties": false
          },
          "schema811": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema255"
              }
            ]
          },
          "schema812": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema255"
              }
            ]
          },
          "schema813": {
            "type": "string",
            "enum": [
              "document",
              "issued_packet",
              "signature_request",
              "signature_certificate",
              "ledger_entry",
              "bank_statement",
              "bank_export",
              "customer_statement",
              "vendor_statement",
              "inventory_count",
              "payroll_report",
              "provider_file",
              "provider_event",
              "provider_object",
              "report_package",
              "tax_packet",
              "close_package",
              "report_export",
              "settlement_report",
              "source_record",
              "note"
            ]
          },
          "schema814": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema255"
              }
            ]
          },
          "schema815": {
            "maxLength": 200,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema255"
              }
            ]
          },
          "schema816": {
            "maxLength": 512,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema255"
              }
            ]
          },
          "schema817": {
            "maxLength": 1000,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema255"
              }
            ]
          },
          "schema818": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "artifactId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "versionId": {
                "$ref": "#/components/schemas/__shared/properties/schema340"
              },
              "editionId": {
                "$ref": "#/components/schemas/__shared/properties/schema341"
              },
              "renditionId": {
                "$ref": "#/components/schemas/__shared/properties/schema342"
              },
              "useCaseId": {
                "$ref": "#/components/schemas/__shared/properties/schema343"
              },
              "documentClass": {
                "$ref": "#/components/schemas/__shared/properties/schema343"
              },
              "representationRole": {
                "$ref": "#/components/schemas/__shared/properties/schema344"
              },
              "mediaType": {
                "$ref": "#/components/schemas/__shared/properties/schema345"
              },
              "fileName": {
                "$ref": "#/components/schemas/__shared/properties/schema346"
              },
              "sizeBytes": {
                "$ref": "#/components/schemas/__shared/properties/schema347"
              },
              "sha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "evidencePacketId": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "evidenceSourceKind": {
                "maxLength": 80,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              },
              "evidenceSourceId": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema255"
                  }
                ]
              }
            },
            "required": [
              "workspaceId",
              "artifactId",
              "versionId",
              "editionId",
              "renditionId",
              "useCaseId",
              "documentClass",
              "representationRole",
              "mediaType",
              "fileName",
              "sizeBytes",
              "sha256"
            ],
            "additionalProperties": false
          },
          "schema819": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema255"
              }
            ]
          },
          "schema820": {
            "type": "object",
            "properties": {
              "provider": {
                "$ref": "#/components/schemas/__shared/properties/schema821"
              },
              "providerTenantId": {
                "$ref": "#/components/schemas/__shared/properties/schema822"
              },
              "environment": {
                "$ref": "#/components/schemas/__shared/properties/schema824"
              },
              "providerObjectId": {
                "$ref": "#/components/schemas/__shared/properties/schema825"
              },
              "normalizedObjectType": {
                "$ref": "#/components/schemas/__shared/properties/schema826"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema827"
              },
              "lastSyncAt": {
                "$ref": "#/components/schemas/__shared/properties/schema828"
              },
              "webhookHealth": {
                "$ref": "#/components/schemas/__shared/properties/schema829"
              },
              "retryCount": {
                "$ref": "#/components/schemas/__shared/properties/schema830"
              },
              "amountCents": {
                "$ref": "#/components/schemas/__shared/properties/schema831"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema834"
              },
              "direction": {
                "$ref": "#/components/schemas/__shared/properties/schema835"
              },
              "errorCode": {
                "$ref": "#/components/schemas/__shared/properties/schema836"
              },
              "errorMessage": {
                "$ref": "#/components/schemas/__shared/properties/schema837"
              },
              "sourceRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema838"
              },
              "evidenceRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema839"
              },
              "repairAction": {
                "$ref": "#/components/schemas/__shared/properties/schema840"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema841"
              }
            },
            "required": [
              "provider",
              "providerTenantId",
              "environment",
              "status"
            ],
            "additionalProperties": false
          },
          "schema821": {
            "type": "string",
            "enum": ["plaid", "stripe", "paypal", "gusto"]
          },
          "schema822": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema823"
              }
            ]
          },
          "schema823": {
            "type": "string",
            "minLength": 1
          },
          "schema824": {
            "type": "string",
            "enum": ["sandbox", "test", "production"]
          },
          "schema825": {
            "maxLength": 200,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema823"
              }
            ]
          },
          "schema826": {
            "maxLength": 80,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema823"
              }
            ]
          },
          "schema827": {
            "maxLength": 80,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema823"
              }
            ]
          },
          "schema828": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema829": {
            "type": "string",
            "enum": [
              "healthy",
              "degraded",
              "failing",
              "not_configured",
              "unknown"
            ]
          },
          "schema830": {
            "type": "integer",
            "minimum": 0
          },
          "schema831": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema832"
              }
            ]
          },
          "schema832": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema833"
              }
            ]
          },
          "schema833": {
            "type": "number"
          },
          "schema834": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              }
            ]
          },
          "schema835": {
            "type": "string",
            "enum": ["credit", "debit"]
          },
          "schema836": {
            "maxLength": 120,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema823"
              }
            ]
          },
          "schema837": {
            "maxLength": 500,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema823"
              }
            ]
          },
          "schema838": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema254"
            }
          },
          "schema839": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema810"
            }
          },
          "schema840": {
            "type": "object",
            "properties": {
              "actionId": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema823"
                  }
                ]
              },
              "label": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema823"
                  }
                ]
              },
              "targetSurface": {
                "$ref": "#/components/schemas/__shared/properties/schema256"
              },
              "href": {
                "maxLength": 512,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema823"
                  }
                ]
              },
              "permission": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema823"
                  }
                ]
              },
              "reason": {
                "maxLength": 280,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema823"
                  }
                ]
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            },
            "required": ["actionId", "label", "targetSurface"],
            "additionalProperties": false
          },
          "schema841": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema842": {
            "type": "string",
            "enum": ["missing", "ready", "blocked"]
          },
          "schema843": {
            "type": "string",
            "enum": ["ach", "wire", "check", "card", "vault_token", "manual"]
          },
          "schema844": {
            "type": "string",
            "enum": [
              "unverified",
              "pending",
              "verified",
              "failed",
              "expired",
              "waived"
            ]
          },
          "schema845": {
            "type": "string",
            "enum": ["unknown", "low", "medium", "high", "blocked"]
          },
          "schema846": {
            "type": "string",
            "maxLength": 256
          },
          "schema847": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema785"
              }
            ]
          },
          "schema848": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2
          },
          "schema849": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              }
            ]
          },
          "schema850": {
            "type": "object",
            "properties": {
              "accountLast4": {
                "type": "string",
                "pattern": "^[0-9]{4}$"
              },
              "routingLast4": {
                "type": "string",
                "pattern": "^[0-9]{4}$"
              },
              "bankName": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema774"
                  }
                ]
              },
              "accountType": {
                "type": "string",
                "enum": ["checking", "savings", "business", "other"]
              },
              "wireRoutingLast4": {
                "type": "string",
                "pattern": "^[0-9]{4}$"
              },
              "cardBrand": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema774"
                  }
                ]
              },
              "cardLast4": {
                "type": "string",
                "pattern": "^[0-9]{4}$"
              },
              "checkPayeeName": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema774"
                  }
                ]
              },
              "mailingAddressId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema774"
                  }
                ]
              },
              "vaultTokenRef": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema774"
                  }
                ]
              },
              "manualInstructions": {
                "type": "string",
                "maxLength": 1000
              }
            },
            "additionalProperties": false
          },
          "schema851": {
            "type": "string",
            "maxLength": 1000
          },
          "schema852": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema853": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema774"
              }
            ]
          },
          "schema854": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema855"
            }
          },
          "schema855": {
            "type": "object",
            "properties": {
              "scheduleId": {
                "$ref": "#/components/schemas/__shared/properties/schema856"
              },
              "payerEntityId": {
                "$ref": "#/components/schemas/__shared/properties/schema416"
              },
              "bookId": {
                "$ref": "#/components/schemas/__shared/properties/schema417"
              },
              "displayName": {
                "$ref": "#/components/schemas/__shared/properties/schema858"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema859"
              },
              "cadence": {
                "$ref": "#/components/schemas/__shared/properties/schema860"
              },
              "nextBillDate": {
                "$ref": "#/components/schemas/__shared/properties/schema241"
              },
              "billingAnchorDay": {
                "$ref": "#/components/schemas/__shared/properties/schema861"
              },
              "dueDateOffsetDays": {
                "$ref": "#/components/schemas/__shared/properties/schema862"
              },
              "startDate": {
                "$ref": "#/components/schemas/__shared/properties/schema863"
              },
              "endDate": {
                "$ref": "#/components/schemas/__shared/properties/schema864"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "amount": {
                "$ref": "#/components/schemas/__shared/properties/schema865"
              },
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema866"
              },
              "accountCode": {
                "$ref": "#/components/schemas/__shared/properties/schema867"
              },
              "invoiceNumberPrefix": {
                "$ref": "#/components/schemas/__shared/properties/schema868"
              },
              "approvals": {
                "$ref": "#/components/schemas/__shared/properties/schema869"
              },
              "externalRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema871"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema872"
              }
            },
            "required": [
              "scheduleId",
              "payerEntityId",
              "bookId",
              "displayName",
              "status",
              "cadence",
              "nextBillDate",
              "dueDateOffsetDays",
              "currency",
              "amount",
              "description",
              "approvals"
            ]
          },
          "schema856": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema857"
              }
            ]
          },
          "schema857": {
            "type": "string",
            "minLength": 1
          },
          "schema858": {
            "maxLength": 256,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema857"
              }
            ]
          },
          "schema859": {
            "type": "string",
            "enum": ["active", "paused", "archived"]
          },
          "schema860": {
            "type": "string",
            "enum": ["weekly", "biweekly", "monthly", "quarterly", "annually"]
          },
          "schema861": {
            "type": "integer",
            "minimum": 1,
            "maximum": 31
          },
          "schema862": {
            "type": "integer",
            "minimum": 0,
            "maximum": 365
          },
          "schema863": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema241"
              }
            ]
          },
          "schema864": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema241"
              }
            ]
          },
          "schema865": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema833"
              }
            ]
          },
          "schema866": {
            "maxLength": 512,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema857"
              }
            ]
          },
          "schema867": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema857"
              }
            ]
          },
          "schema868": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema857"
              }
            ]
          },
          "schema869": {
            "type": "object",
            "properties": {
              "policy": {
                "type": "string",
                "enum": ["sequential", "parallel"]
              },
              "steps": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema870"
                }
              }
            },
            "required": ["policy", "steps"],
            "additionalProperties": false
          },
          "schema870": {
            "type": "object",
            "properties": {
              "approverId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema857"
                  }
                ]
              },
              "label": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema857"
                  }
                ]
              },
              "decision": {
                "default": "pending",
                "type": "string",
                "enum": ["pending"]
              }
            },
            "required": ["approverId", "label"],
            "additionalProperties": false
          },
          "schema871": {
            "maxItems": 25,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema785"
            }
          },
          "schema872": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema873": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema874": {
            "type": "string",
            "maxLength": 128
          },
          "schema875": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3650
          },
          "schema876": {
            "type": "number",
            "minimum": 0
          },
          "schema877": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema878": {
            "type": "object",
            "properties": {
              "onboardingStatus": {
                "type": "string",
                "enum": ["unverified", "verified", "blocked"]
              },
              "riskRating": {
                "type": "string",
                "enum": ["low", "medium", "high", "unknown"]
              },
              "notes": {
                "type": "string",
                "maxLength": 2048
              },
              "custom": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            }
          },
          "schema879": {
            "type": "string",
            "enum": ["email", "sms", "phone", "portal", "none"]
          },
          "schema880": {
            "type": "boolean"
          },
          "schema881": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema882": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema772"
              }
            ]
          },
          "schema883": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema2"
              }
            ]
          },
          "schema884": {
            "type": "object",
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema776"
              },
              "displayLabel": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema774"
                  }
                ]
              }
            },
            "required": ["kind", "displayLabel"],
            "additionalProperties": false
          },
          "schema885": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema775"
              }
            ]
          },
          "schema886": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema777"
              }
            ]
          },
          "schema887": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema778"
              }
            ]
          },
          "schema888": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema780"
              }
            ]
          },
          "schema889": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema781"
              }
            ]
          },
          "schema890": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema783"
              }
            ]
          },
          "schema891": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema784"
              }
            ]
          },
          "schema892": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema787"
              }
            ]
          },
          "schema893": {
            "default": [],
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "contactId": {
                  "$ref": "#/components/schemas/__shared/properties/schema894"
                },
                "name": {
                  "$ref": "#/components/schemas/__shared/properties/schema790"
                },
                "roleTitle": {
                  "$ref": "#/components/schemas/__shared/properties/schema895"
                },
                "email": {
                  "$ref": "#/components/schemas/__shared/properties/schema792"
                },
                "phone": {
                  "$ref": "#/components/schemas/__shared/properties/schema793"
                }
              },
              "required": ["name"]
            }
          },
          "schema894": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema789"
              }
            ]
          },
          "schema895": {
            "type": "string",
            "maxLength": 128
          },
          "schema896": {
            "default": [],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema897"
            }
          },
          "schema897": {
            "type": "object",
            "properties": {
              "addressId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema794"
                  }
                ]
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema795"
              },
              "label": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema796"
                  }
                ]
              },
              "isDefault": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema797"
                  }
                ]
              },
              "address": {
                "$ref": "#/components/schemas/__shared/properties/schema798"
              }
            },
            "required": ["kind", "address"]
          },
          "schema898": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema800"
              }
            ]
          },
          "schema899": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema773"
              }
            ]
          },
          "schema900": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema787"
                  }
                ]
              },
              {
                "type": "string",
                "nullable": true,
                "enum": [null]
              }
            ]
          },
          "schema901": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              }
            ]
          },
          "schema902": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema788"
              }
            ]
          },
          "schema903": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "contactId": {
                  "$ref": "#/components/schemas/__shared/properties/schema894"
                },
                "name": {
                  "$ref": "#/components/schemas/__shared/properties/schema790"
                },
                "roleTitle": {
                  "$ref": "#/components/schemas/__shared/properties/schema895"
                },
                "email": {
                  "$ref": "#/components/schemas/__shared/properties/schema792"
                },
                "phone": {
                  "$ref": "#/components/schemas/__shared/properties/schema793"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema904"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/__shared/properties/schema905"
                }
              },
              "required": ["name"]
            }
          },
          "schema904": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema905": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema906": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema897"
            }
          },
          "schema907": {
            "type": "object",
            "properties": {
              "payables": {
                "type": "object",
                "properties": {
                  "industries": {
                    "$ref": "#/components/schemas/__shared/properties/schema801"
                  },
                  "keywords": {
                    "$ref": "#/components/schemas/__shared/properties/schema803"
                  },
                  "defaultExpenseAccount": {
                    "$ref": "#/components/schemas/__shared/properties/schema805"
                  },
                  "defaultCodingRules": {
                    "$ref": "#/components/schemas/__shared/properties/schema806"
                  },
                  "taxProfile": {
                    "$ref": "#/components/schemas/__shared/properties/schema807"
                  },
                  "paymentDestination": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema842"
                          }
                        ]
                      },
                      "method": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema843"
                          }
                        ]
                      },
                      "verificationStatus": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema844"
                          }
                        ]
                      },
                      "riskState": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema845"
                          }
                        ]
                      },
                      "label": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema846"
                          }
                        ]
                      },
                      "externalRef": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema847"
                          }
                        ]
                      },
                      "country": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema848"
                          }
                        ]
                      },
                      "currency": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema849"
                          }
                        ]
                      },
                      "metadata": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema850"
                          }
                        ]
                      },
                      "riskReason": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema851"
                          }
                        ]
                      },
                      "lastVerifiedAt": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema852"
                          }
                        ]
                      },
                      "verifiedBy": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema853"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "recurringBillSchedules": {
                    "$ref": "#/components/schemas/__shared/properties/schema854"
                  },
                  "custom": {
                    "$ref": "#/components/schemas/__shared/properties/schema873"
                  }
                },
                "additionalProperties": false
              },
              "purchasing": {
                "type": "object",
                "properties": {
                  "supplierCode": {
                    "$ref": "#/components/schemas/__shared/properties/schema874"
                  },
                  "leadTimeDays": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema875"
                          }
                        ]
                      },
                      {
                        "type": "string",
                        "nullable": true,
                        "enum": [null]
                      }
                    ]
                  },
                  "minimumOrderAmount": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema876"
                          }
                        ]
                      },
                      {
                        "type": "string",
                        "nullable": true,
                        "enum": [null]
                      }
                    ]
                  },
                  "custom": {
                    "$ref": "#/components/schemas/__shared/properties/schema877"
                  }
                }
              },
              "compliance": {
                "$ref": "#/components/schemas/__shared/properties/schema878"
              },
              "messaging": {
                "type": "object",
                "properties": {
                  "preferredChannel": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema879"
                          }
                        ]
                      },
                      {
                        "type": "string",
                        "nullable": true,
                        "enum": [null]
                      }
                    ]
                  },
                  "doNotContact": {
                    "$ref": "#/components/schemas/__shared/properties/schema880"
                  },
                  "custom": {
                    "$ref": "#/components/schemas/__shared/properties/schema881"
                  }
                }
              }
            },
            "additionalProperties": false
          },
          "schema908": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "purchaseOrderId": {
                "$ref": "#/components/schemas/__shared/properties/schema909"
              },
              "vendorId": {
                "$ref": "#/components/schemas/__shared/properties/schema911"
              },
              "accountingScope": {
                "$ref": "#/components/schemas/__shared/properties/schema415"
              },
              "poNumber": {
                "$ref": "#/components/schemas/__shared/properties/schema912"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema913"
              },
              "orderedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema914"
              },
              "expectedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema915"
              },
              "notes": {
                "$ref": "#/components/schemas/__shared/properties/schema916"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema917"
              },
              "externalId": {
                "$ref": "#/components/schemas/__shared/properties/schema918"
              },
              "externalRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema919"
              },
              "totals": {
                "$ref": "#/components/schemas/__shared/properties/schema921"
              },
              "sourceRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              },
              "evidenceRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              },
              "valuationRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema922"
                }
              },
              "warehouseExecution": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema930"
                }
              },
              "repairActions": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema933"
                }
              },
              "ledgerEntryIds": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema934"
                }
              },
              "lines": {
                "maxItems": 500,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema935"
                }
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "workspaceId",
              "purchaseOrderId",
              "vendorId",
              "accountingScope",
              "currency",
              "status",
              "lines",
              "createdAt",
              "updatedAt",
              "version"
            ]
          },
          "schema909": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema910": {
            "type": "string",
            "minLength": 1
          },
          "schema911": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema912": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema913": {
            "type": "string",
            "enum": [
              "draft",
              "ordered",
              "partially_received",
              "received",
              "cancelled",
              "closed"
            ]
          },
          "schema914": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema915": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema916": {
            "type": "string",
            "maxLength": 4000
          },
          "schema917": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema533"
            }
          },
          "schema918": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema919": {
            "maxItems": 25,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema920"
            }
          },
          "schema920": {
            "type": "object",
            "properties": {
              "system": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "externalId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "type": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "label": {
                "maxLength": 256,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              }
            },
            "required": ["system", "externalId"]
          },
          "schema921": {
            "type": "object",
            "properties": {
              "subtotalAmount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema832"
                  }
                ]
              },
              "taxAmount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema832"
                  }
                ]
              },
              "shippingAmount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema832"
                  }
                ]
              },
              "discountAmount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema832"
                  }
                ]
              },
              "totalAmount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema832"
                  }
                ]
              }
            }
          },
          "schema922": {
            "type": "object",
            "properties": {
              "valuationRefId": {
                "$ref": "#/components/schemas/__shared/properties/schema923"
              },
              "sourceKind": {
                "type": "string",
                "enum": [
                  "product",
                  "warehouse",
                  "item_location",
                  "purchase_order",
                  "purchase_order_receipt",
                  "transfer_order",
                  "inventory_count",
                  "inventory_movement",
                  "cogs"
                ]
              },
              "sourceId": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  },
                  {
                    "type": "string",
                    "maxLength": 2314
                  }
                ]
              },
              "status": {
                "default": "ready",
                "type": "string",
                "enum": ["pending", "ready", "posted", "exception"]
              },
              "movementId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "ledgerEntryId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "accountingOutboxId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "amountCents": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "currency": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  }
                ]
              },
              "quantity": {
                "type": "number"
              },
              "unitCostCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "landedCostCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "costLayerSnapshotRef": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema924"
                  }
                ]
              },
              "occurredAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "sourceRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              },
              "evidenceRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              },
              "warehouseExecution": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema930"
                }
              },
              "repairActions": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema933"
                }
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            },
            "required": ["valuationRefId", "sourceKind", "sourceId"]
          },
          "schema923": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema924": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["fifo_range"]
                  },
                  "accountingScope": {
                    "$ref": "#/components/schemas/__shared/properties/schema415"
                  },
                  "workspaceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema0"
                  },
                  "itemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema45"
                  },
                  "positionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 768
                  },
                  "start": {
                    "type": "object",
                    "properties": {
                      "pageKey": {
                        "type": "string",
                        "pattern": "^page#[0-9]{12}$"
                      },
                      "fragmentIndex": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 63
                      },
                      "fragmentOffsetQty": {
                        "$ref": "#/components/schemas/__shared/properties/schema925"
                      }
                    },
                    "required": [
                      "pageKey",
                      "fragmentIndex",
                      "fragmentOffsetQty"
                    ],
                    "additionalProperties": false
                  },
                  "quantity": {
                    "$ref": "#/components/schemas/__shared/properties/schema926"
                  },
                  "amountCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "kind",
                  "accountingScope",
                  "workspaceId",
                  "itemId",
                  "positionId",
                  "start",
                  "quantity",
                  "amountCents"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["moving_average_fragments"]
                  },
                  "accountingScope": {
                    "$ref": "#/components/schemas/__shared/properties/schema415"
                  },
                  "fragments": {
                    "minItems": 1,
                    "maxItems": 1,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema927"
                    }
                  },
                  "quantity": {
                    "$ref": "#/components/schemas/__shared/properties/schema926"
                  },
                  "amountCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "kind",
                  "accountingScope",
                  "fragments",
                  "quantity",
                  "amountCents"
                ],
                "additionalProperties": false
              }
            ]
          },
          "schema925": {
            "type": "number",
            "minimum": 0
          },
          "schema926": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema925"
              }
            ]
          },
          "schema927": {
            "type": "object",
            "properties": {
              "layerId": {
                "$ref": "#/components/schemas/__shared/properties/schema923"
              },
              "qty": {
                "$ref": "#/components/schemas/__shared/properties/schema926"
              },
              "basis": {
                "$ref": "#/components/schemas/__shared/properties/schema928"
              },
              "offsetQty": {
                "$ref": "#/components/schemas/__shared/properties/schema925"
              },
              "unitCostCents": {
                "$ref": "#/components/schemas/__shared/properties/schema929"
              },
              "acquiredAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "layerId",
              "qty",
              "basis",
              "offsetQty",
              "unitCostCents",
              "acquiredAt"
            ],
            "additionalProperties": false
          },
          "schema928": {
            "type": "object",
            "properties": {
              "qty": {
                "$ref": "#/components/schemas/__shared/properties/schema926"
              },
              "valueCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": ["qty", "valueCents"],
            "additionalProperties": false
          },
          "schema929": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema930": {
            "type": "object",
            "properties": {
              "taskId": {
                "$ref": "#/components/schemas/__shared/properties/schema923"
              },
              "source": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["inventory_link"]
                      },
                      "workItemId": {
                        "$ref": "#/components/schemas/__shared/properties/schema167"
                      },
                      "lineSeq": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "at": {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      },
                      "positionId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "kind",
                      "workItemId",
                      "lineSeq",
                      "at",
                      "positionId"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["work_material_movement"]
                      },
                      "workItemId": {
                        "$ref": "#/components/schemas/__shared/properties/schema167"
                      },
                      "materialId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "movementId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "at": {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      },
                      "positionId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "kind",
                      "workItemId",
                      "materialId",
                      "movementId",
                      "at",
                      "positionId"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "taskType": {
                "type": "string",
                "enum": [
                  "pick_wave",
                  "putaway",
                  "pick",
                  "pack",
                  "ship",
                  "sales_fulfillment",
                  "replenishment",
                  "directed_replenishment",
                  "cycle_count",
                  "transfer",
                  "fefo_pick",
                  "serial_lifecycle",
                  "uom_conversion",
                  "bin_move",
                  "tote_move",
                  "allocation",
                  "exception_work",
                  "work_status",
                  "receipt",
                  "return",
                  "return_inspection"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "queued",
                  "released",
                  "in_progress",
                  "evidence_ready",
                  "posted",
                  "blocked",
                  "completed",
                  "canceled"
                ]
              },
              "quantity": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "locationId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "waveId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "queueId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "exceptionId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "replenishmentPlanId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "uomConversionId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "salesFulfillmentId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "serialUnitId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "workItemId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema167"
                  }
                ]
              },
              "purchaseOrderId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "transferOrderId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "shipmentId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "returnId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "receiptId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "lotCode": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "vendorLotCode": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  }
                ]
              },
              "serialNumbers": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema923"
                }
              },
              "expiryDate": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema241"
                  }
                ]
              },
              "uomConversion": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema931"
                  }
                ]
              },
              "serialLifecycle": {
                "type": "object",
                "properties": {
                  "serialNumbers": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/__shared/properties/schema923"
                    }
                  },
                  "lifecycleStatus": {
                    "type": "string",
                    "enum": [
                      "received",
                      "available",
                      "allocated",
                      "picked",
                      "packed",
                      "shipped",
                      "returned",
                      "quarantined",
                      "scrapped"
                    ]
                  }
                },
                "required": ["serialNumbers", "lifecycleStatus"]
              },
              "qualityHold": {
                "type": "object",
                "properties": {
                  "quantity": {
                    "type": "number",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "status": {
                    "type": "string",
                    "enum": ["held", "released"]
                  },
                  "heldAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "heldBy": {
                    "$ref": "#/components/schemas/__shared/properties/schema923"
                  },
                  "releasedAt": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema27"
                      }
                    ]
                  },
                  "releasedBy": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema923"
                      }
                    ]
                  }
                },
                "required": ["quantity", "status", "heldAt", "heldBy"],
                "additionalProperties": false
              },
              "lastMutation": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema932"
                  }
                ]
              },
              "controlledItemIssueProof": {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema0"
                  },
                  "docId": {
                    "$ref": "#/components/schemas/__shared/properties/schema384"
                  },
                  "lineId": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "workItemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema167"
                  },
                  "workVersion": {
                    "$ref": "#/components/schemas/__shared/properties/schema40"
                  },
                  "productId": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "productVersion": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "productHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "policyHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "commercialSourceHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "scopeHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "customerHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "reviewId": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "reviewHash": {
                    "$ref": "#/components/schemas/__shared/properties/schema470"
                  },
                  "itemId": {
                    "$ref": "#/components/schemas/__shared/properties/schema469"
                  },
                  "reviewedQuantity": {
                    "type": "number",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "issuedQuantity": {
                    "type": "number",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "priorIssuedQuantity": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "required": [
                  "workspaceId",
                  "docId",
                  "lineId",
                  "workItemId",
                  "workVersion",
                  "productId",
                  "productVersion",
                  "productHash",
                  "policyHash",
                  "commercialSourceHash",
                  "scopeHash",
                  "customerHash",
                  "reviewId",
                  "reviewHash",
                  "itemId",
                  "reviewedQuantity",
                  "issuedQuantity",
                  "priorIssuedQuantity"
                ],
                "additionalProperties": false
              },
              "mutationReceipts": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema932"
                }
              },
              "sourceRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              },
              "evidenceRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              },
              "updatedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            },
            "required": ["taskId", "taskType", "status"]
          },
          "schema931": {
            "type": "object",
            "properties": {
              "sourceUnit": {
                "$ref": "#/components/schemas/__shared/properties/schema923"
              },
              "sourceQty": {
                "type": "number"
              },
              "targetUnit": {
                "$ref": "#/components/schemas/__shared/properties/schema923"
              },
              "targetQty": {
                "type": "number"
              },
              "baseUnit": {
                "$ref": "#/components/schemas/__shared/properties/schema923"
              },
              "baseQty": {
                "type": "number"
              },
              "baseUnitQuantityPerSourceUnit": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
              }
            },
            "required": [
              "sourceUnit",
              "sourceQty",
              "targetUnit",
              "targetQty",
              "baseUnit",
              "baseQty",
              "baseUnitQuantityPerSourceUnit"
            ],
            "additionalProperties": false
          },
          "schema932": {
            "type": "object",
            "properties": {
              "idempotencyKey": {
                "$ref": "#/components/schemas/__shared/properties/schema923"
              },
              "fingerprint": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "action": {
                "type": "string",
                "enum": [
                  "assign",
                  "unassign",
                  "release",
                  "start",
                  "block",
                  "acknowledge_exception",
                  "resolve_exception",
                  "inspect_return",
                  "quarantine_return",
                  "release_fulfillment_wave",
                  "complete_fulfillment_wave",
                  "reserve_pick_wave",
                  "record_pick_scan",
                  "record_delivery",
                  "plan_replenishment",
                  "complete_replenishment",
                  "confirm_serial_lifecycle",
                  "quarantine_serial",
                  "approve_uom_conversion",
                  "review_fefo",
                  "complete",
                  "cancel"
                ]
              },
              "actorId": {
                "$ref": "#/components/schemas/__shared/properties/schema923"
              },
              "appliedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            },
            "required": [
              "idempotencyKey",
              "fingerprint",
              "action",
              "actorId",
              "appliedAt"
            ],
            "additionalProperties": false
          },
          "schema933": {
            "type": "object",
            "properties": {
              "actionId": {
                "$ref": "#/components/schemas/__shared/properties/schema923"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "status": {
                "default": "open",
                "type": "string",
                "enum": ["open", "in_progress", "completed", "waived"]
              },
              "priority": {
                "default": "normal",
                "type": "string",
                "enum": ["critical", "warning", "normal"]
              },
              "ownerSurface": {
                "type": "string",
                "enum": [
                  "source_page",
                  "money_work",
                  "close_books",
                  "ledger",
                  "reports"
                ]
              },
              "nextAction": {
                "type": "string",
                "minLength": 1,
                "maxLength": 280
              },
              "sourceRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              },
              "evidenceRefs": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              },
              "createdAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "updatedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            },
            "required": ["actionId", "label"]
          },
          "schema934": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema935": {
            "type": "object",
            "properties": {
              "lineId": {
                "$ref": "#/components/schemas/__shared/properties/schema458"
              },
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema936"
              },
              "quantity": {
                "$ref": "#/components/schemas/__shared/properties/schema937"
              },
              "unitAmount": {
                "$ref": "#/components/schemas/__shared/properties/schema832"
              },
              "receivedQuantity": {
                "$ref": "#/components/schemas/__shared/properties/schema938"
              },
              "unit": {
                "$ref": "#/components/schemas/__shared/properties/schema939"
              },
              "itemId": {
                "$ref": "#/components/schemas/__shared/properties/schema940"
              },
              "externalLineId": {
                "$ref": "#/components/schemas/__shared/properties/schema941"
              },
              "wholesaleDemandSource": {
                "$ref": "#/components/schemas/__shared/properties/schema942"
              },
              "tireSupplierConfirmation": {
                "type": "object",
                "properties": {
                  "quote": {
                    "type": "object",
                    "properties": {
                      "itemId": {
                        "$ref": "#/components/schemas/__shared/properties/schema45"
                      },
                      "vendorId": {
                        "$ref": "#/components/schemas/__shared/properties/schema45"
                      },
                      "supplierSku": {
                        "$ref": "#/components/schemas/__shared/properties/schema943"
                      },
                      "supplierBranch": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema943"
                          }
                        ]
                      },
                      "shipToLocationId": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema45"
                          }
                        ]
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "phone",
                          "email",
                          "supplier_portal",
                          "written_quote"
                        ]
                      },
                      "sourceReference": {
                        "$ref": "#/components/schemas/__shared/properties/schema943"
                      },
                      "supplierReportedAt": {
                        "$ref": "#/components/schemas/__shared/properties/schema944"
                      },
                      "arrivalBy": {
                        "$ref": "#/components/schemas/__shared/properties/schema944"
                      },
                      "orderBy": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema944"
                          }
                        ]
                      },
                      "expiresAt": {
                        "$ref": "#/components/schemas/__shared/properties/schema944"
                      },
                      "confirmedTires": {
                        "$ref": "#/components/schemas/__shared/properties/schema945"
                      },
                      "supplierPackTires": {
                        "exclusiveMinimum": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema945"
                          }
                        ]
                      },
                      "unitCostCents": {
                        "$ref": "#/components/schemas/__shared/properties/schema946"
                      },
                      "currency": {
                        "$ref": "#/components/schemas/__shared/properties/schema18"
                      },
                      "freightCents": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/__shared/properties/schema946"
                          }
                        ]
                      },
                      "terms": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      },
                      "productId": {
                        "$ref": "#/components/schemas/__shared/properties/schema45"
                      },
                      "quoteId": {
                        "type": "string",
                        "pattern": "^tsq_[a-f0-9]{40}$"
                      },
                      "version": {
                        "type": "integer",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "maximum": 9007199254740991
                      },
                      "workspaceId": {
                        "$ref": "#/components/schemas/__shared/properties/schema0"
                      },
                      "productSku": {
                        "$ref": "#/components/schemas/__shared/properties/schema943"
                      },
                      "productOccVersion": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "vendorName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "shipTo": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "recordedAt": {
                        "$ref": "#/components/schemas/__shared/properties/schema944"
                      },
                      "recordedBy": {
                        "$ref": "#/components/schemas/__shared/properties/schema45"
                      },
                      "availableTires": {
                        "$ref": "#/components/schemas/__shared/properties/schema945"
                      }
                    },
                    "required": [
                      "itemId",
                      "vendorId",
                      "supplierSku",
                      "source",
                      "sourceReference",
                      "supplierReportedAt",
                      "arrivalBy",
                      "expiresAt",
                      "confirmedTires",
                      "supplierPackTires",
                      "unitCostCents",
                      "currency",
                      "productId",
                      "quoteId",
                      "version",
                      "workspaceId",
                      "productSku",
                      "productOccVersion",
                      "vendorName",
                      "recordedAt",
                      "recordedBy",
                      "availableTires"
                    ],
                    "additionalProperties": false
                  },
                  "needBy": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "orderedTires": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true,
                    "maximum": 9007199254740991
                  }
                },
                "required": ["quote", "needBy", "orderedTires"],
                "additionalProperties": false
              },
              "accountCode": {
                "$ref": "#/components/schemas/__shared/properties/schema947"
              },
              "workRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema948"
              },
              "sourceRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              },
              "evidenceRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              },
              "valuationRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema922"
                }
              },
              "warehouseExecution": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema930"
                }
              },
              "repairActions": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema933"
                }
              },
              "ledgerEntryIds": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema950"
                }
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema951"
              },
              "note": {
                "$ref": "#/components/schemas/__shared/properties/schema952"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema953"
              }
            },
            "required": [
              "lineId",
              "description",
              "quantity",
              "unitAmount",
              "receivedQuantity"
            ]
          },
          "schema936": {
            "maxLength": 512,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema937": {
            "type": "number",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema938": {
            "type": "number",
            "minimum": 0
          },
          "schema939": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema940": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema941": {
            "maxLength": 160,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema942": {
            "type": "object",
            "properties": {
              "sourceDocId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "sourceDocVersion": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "orderRevision": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true,
                "maximum": 9007199254740991
              },
              "demandLineId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "releaseId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "quantity": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
              }
            },
            "required": [
              "sourceDocId",
              "sourceDocVersion",
              "orderRevision",
              "demandLineId",
              "quantity"
            ],
            "additionalProperties": false
          },
          "schema943": {
            "type": "string",
            "minLength": 1,
            "maxLength": 180
          },
          "schema944": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema945": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "schema946": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000000
          },
          "schema947": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema948": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema949"
              }
            ]
          },
          "schema949": {
            "type": "object",
            "properties": {
              "projectId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "workItemId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema167"
                  }
                ]
              },
              "lineGroupId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "operationId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "materialId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "documentLineId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          },
          "schema950": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema951": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema533"
            }
          },
          "schema952": {
            "maxLength": 2000,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema953": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema954": {
            "type": "object",
            "properties": {
              "state": {
                "$ref": "#/components/schemas/__shared/properties/schema955"
              },
              "artifactId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "authorityRef": {
                "$ref": "#/components/schemas/__shared/properties/schema349"
              },
              "sourceRevision": {
                "$ref": "#/components/schemas/__shared/properties/schema350"
              },
              "sourceSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "programSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "slots": {
                "$ref": "#/components/schemas/__shared/properties/schema956"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema354"
              },
              "failureCode": {
                "$ref": "#/components/schemas/__shared/properties/schema958"
              },
              "operationId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              }
            },
            "required": [
              "state",
              "artifactId",
              "authorityRef",
              "sourceRevision",
              "sourceSha256",
              "programSha256",
              "slots",
              "updatedAt",
              "operationId"
            ],
            "additionalProperties": false
          },
          "schema955": {
            "type": "string",
            "enum": ["ready", "pending", "needs_attention"]
          },
          "schema956": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema957"
            }
          },
          "schema957": {
            "type": "object",
            "properties": {
              "outputContractId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "representationRole": {
                "$ref": "#/components/schemas/__shared/properties/schema344"
              },
              "mediaType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "audienceId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "audienceKind": {
                "type": "string",
                "enum": [
                  "internal",
                  "customer",
                  "vendor",
                  "employee",
                  "contractor",
                  "regulator",
                  "public",
                  "explicit_party"
                ]
              },
              "language": {
                "type": "string",
                "minLength": 2,
                "maxLength": 35
              },
              "versionId": {
                "$ref": "#/components/schemas/__shared/properties/schema340"
              },
              "editionId": {
                "$ref": "#/components/schemas/__shared/properties/schema341"
              },
              "renditionId": {
                "$ref": "#/components/schemas/__shared/properties/schema342"
              },
              "assetId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 0
              },
              "sha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              }
            },
            "required": [
              "outputContractId",
              "representationRole",
              "mediaType",
              "audienceId",
              "audienceKind",
              "language",
              "versionId",
              "editionId",
              "renditionId",
              "assetId",
              "fileName",
              "sizeBytes",
              "sha256"
            ],
            "additionalProperties": false
          },
          "schema958": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema959": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema960"
            }
          },
          "schema960": {
            "type": "object",
            "properties": {
              "description": {
                "$ref": "#/components/schemas/__shared/properties/schema936"
              },
              "quantity": {
                "$ref": "#/components/schemas/__shared/properties/schema937"
              },
              "unitAmount": {
                "$ref": "#/components/schemas/__shared/properties/schema832"
              },
              "unit": {
                "$ref": "#/components/schemas/__shared/properties/schema939"
              },
              "itemId": {
                "$ref": "#/components/schemas/__shared/properties/schema940"
              },
              "externalLineId": {
                "$ref": "#/components/schemas/__shared/properties/schema941"
              },
              "wholesaleDemandSource": {
                "$ref": "#/components/schemas/__shared/properties/schema942"
              },
              "accountCode": {
                "$ref": "#/components/schemas/__shared/properties/schema947"
              },
              "workRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema948"
              },
              "tags": {
                "$ref": "#/components/schemas/__shared/properties/schema951"
              },
              "note": {
                "$ref": "#/components/schemas/__shared/properties/schema952"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema953"
              },
              "lineId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema458"
                  }
                ]
              },
              "receivedQuantity": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema938"
                  }
                ]
              },
              "evidenceRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema961"
                }
              }
            },
            "required": ["description", "quantity", "unitAmount"],
            "additionalProperties": false
          },
          "schema961": {
            "type": "object",
            "properties": {
              "evidenceId": {
                "$ref": "#/components/schemas/__shared/properties/schema811"
              },
              "requirementId": {
                "$ref": "#/components/schemas/__shared/properties/schema812"
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema813"
              },
              "refId": {
                "$ref": "#/components/schemas/__shared/properties/schema814"
              },
              "label": {
                "$ref": "#/components/schemas/__shared/properties/schema815"
              },
              "href": {
                "$ref": "#/components/schemas/__shared/properties/schema816"
              },
              "note": {
                "$ref": "#/components/schemas/__shared/properties/schema817"
              },
              "documentReference": {
                "$ref": "#/components/schemas/__shared/properties/schema818"
              }
            },
            "required": ["evidenceId", "kind", "refId"],
            "additionalProperties": false
          },
          "schema962": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema912"
              }
            ]
          },
          "schema963": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              }
            ]
          },
          "schema964": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema913"
              }
            ]
          },
          "schema965": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema914"
              }
            ]
          },
          "schema966": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema915"
              }
            ]
          },
          "schema967": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema916"
              }
            ]
          },
          "schema968": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema917"
              }
            ]
          },
          "schema969": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema918"
              }
            ]
          },
          "schema970": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema919"
              }
            ]
          },
          "schema971": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema921"
              }
            ]
          },
          "schema972": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema959"
              }
            ]
          },
          "schema973": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "runId": {
                "$ref": "#/components/schemas/__shared/properties/schema974"
              },
              "requestedByActorId": {
                "$ref": "#/components/schemas/__shared/properties/schema975"
              },
              "customerId": {
                "$ref": "#/components/schemas/__shared/properties/schema976"
              },
              "customerDisplayName": {
                "$ref": "#/components/schemas/__shared/properties/schema977"
              },
              "asOf": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "sourceCutoffAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "includePaid": {
                "$ref": "#/components/schemas/__shared/properties/schema978"
              },
              "portalVisible": {
                "$ref": "#/components/schemas/__shared/properties/schema979"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema980"
              },
              "phase": {
                "$ref": "#/components/schemas/__shared/properties/schema981"
              },
              "sourceProjectionVersion": {
                "$ref": "#/components/schemas/__shared/properties/schema982"
              },
              "sourceExpectedDocumentCount": {
                "$ref": "#/components/schemas/__shared/properties/schema982"
              },
              "sourceScannedDocumentCount": {
                "$ref": "#/components/schemas/__shared/properties/schema982"
              },
              "includedDocumentCount": {
                "$ref": "#/components/schemas/__shared/properties/schema982"
              },
              "sourceCursor": {
                "$ref": "#/components/schemas/__shared/properties/schema983"
              },
              "sourcePageCount": {
                "$ref": "#/components/schemas/__shared/properties/schema982"
              },
              "sourceDigestChainSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema984"
              },
              "currencyTotals": {
                "$ref": "#/components/schemas/__shared/properties/schema985"
              },
              "sourceSelectionId": {
                "$ref": "#/components/schemas/__shared/properties/schema987"
              },
              "sourceSet": {
                "$ref": "#/components/schemas/__shared/properties/schema988"
              },
              "materializedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema989"
              },
              "authorityRef": {
                "$ref": "#/components/schemas/__shared/properties/schema990"
              },
              "issuanceCommandId": {
                "$ref": "#/components/schemas/__shared/properties/schema991"
              },
              "currentArtifactId": {
                "$ref": "#/components/schemas/__shared/properties/schema992"
              },
              "currentRenderOperationId": {
                "$ref": "#/components/schemas/__shared/properties/schema993"
              },
              "currentRenderState": {
                "$ref": "#/components/schemas/__shared/properties/schema994"
              },
              "currentOutputSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema995"
              },
              "documentReference": {
                "$ref": "#/components/schemas/__shared/properties/schema996"
              },
              "issuanceResultSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema997"
              },
              "failureCode": {
                "$ref": "#/components/schemas/__shared/properties/schema998"
              },
              "failureMessage": {
                "$ref": "#/components/schemas/__shared/properties/schema999"
              },
              "attemptCount": {
                "$ref": "#/components/schemas/__shared/properties/schema1000"
              },
              "nextAttemptAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "recoveryShard": {
                "$ref": "#/components/schemas/__shared/properties/schema1001"
              },
              "version": {
                "$ref": "#/components/schemas/__shared/properties/schema1002"
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "completedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema1003"
              }
            },
            "required": [
              "workspaceId",
              "runId",
              "requestedByActorId",
              "customerId",
              "customerDisplayName",
              "asOf",
              "sourceCutoffAt",
              "includePaid",
              "portalVisible",
              "status",
              "phase",
              "sourceProjectionVersion",
              "sourceExpectedDocumentCount",
              "sourceScannedDocumentCount",
              "includedDocumentCount",
              "sourcePageCount",
              "sourceDigestChainSha256",
              "currencyTotals",
              "attemptCount",
              "nextAttemptAt",
              "recoveryShard",
              "version",
              "createdAt",
              "updatedAt"
            ]
          },
          "schema974": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema975": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema976": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema977": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema978": {
            "type": "boolean"
          },
          "schema979": {
            "type": "boolean"
          },
          "schema980": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "retry_scheduled",
              "review_required",
              "completed"
            ]
          },
          "schema981": {
            "type": "string",
            "enum": ["capture", "materialize_source_set", "issue", "completed"]
          },
          "schema982": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "schema983": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "schema984": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schema985": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema986"
            }
          },
          "schema986": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "string",
                "pattern": "^[A-Z]{3}$"
              },
              "openCents": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": ["currency", "openCents"]
          },
          "schema987": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema988": {
            "type": "object",
            "properties": {
              "sourceSelectionId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "selectionSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "manifestAssetId": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "manifestSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "manifestRootSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "entryCount": {
                "type": "integer",
                "minimum": 0
              },
              "chunkCount": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true,
                "maximum": 10000
              },
              "projectionGeneration": {
                "$ref": "#/components/schemas/__shared/properties/schema339"
              },
              "cutoff": {
                "$ref": "#/components/schemas/__shared/properties/schema354"
              },
              "highWatermark": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "sourceQuerySha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "sourceSnapshotSha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "sourceSelectionProviderRef": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema358"
                  }
                ]
              },
              "providerBuildDigest": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              },
              "sourceKind": {
                "type": "string",
                "enum": ["native_authority"]
              },
              "purpose": {
                "type": "string",
                "enum": ["authority_source_set"]
              },
              "authoritySubjectRef": {
                "$ref": "#/components/schemas/__shared/properties/schema351"
              },
              "authoritySourceQuerySha256": {
                "$ref": "#/components/schemas/__shared/properties/schema348"
              }
            },
            "required": [
              "sourceSelectionId",
              "selectionSha256",
              "manifestAssetId",
              "manifestSha256",
              "manifestRootSha256",
              "entryCount",
              "chunkCount",
              "projectionGeneration",
              "cutoff",
              "highWatermark",
              "sourceQuerySha256",
              "sourceSnapshotSha256",
              "sourceSelectionProviderRef",
              "providerBuildDigest",
              "sourceKind",
              "purpose",
              "authoritySubjectRef",
              "authoritySourceQuerySha256"
            ],
            "additionalProperties": false
          },
          "schema989": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema990": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema349"
              }
            ]
          },
          "schema991": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema992": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema993": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema994": {
            "type": "string",
            "enum": ["pending", "ready", "needs_attention"]
          },
          "schema995": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema984"
              }
            ]
          },
          "schema996": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema338"
              }
            ]
          },
          "schema997": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema984"
              }
            ]
          },
          "schema998": {
            "type": "string",
            "enum": [
              "customer_missing",
              "source_changed",
              "source_incomplete",
              "source_cursor_invalid",
              "source_record_invalid",
              "source_membership_invalid",
              "issuance_rejected",
              "issuance_unavailable",
              "unexpected_failure"
            ]
          },
          "schema999": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "schema1000": {
            "type": "integer",
            "minimum": 0,
            "maximum": 20
          },
          "schema1001": {
            "type": "integer",
            "minimum": 0,
            "maximum": 7
          },
          "schema1002": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema1003": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              }
            ]
          },
          "schema1004": {
            "type": "object",
            "properties": {
              "historyId": {
                "$ref": "#/components/schemas/__shared/properties/schema1005"
              },
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "customerId": {
                "$ref": "#/components/schemas/__shared/properties/schema1006"
              },
              "assetItemIds": {
                "$ref": "#/components/schemas/__shared/properties/schema1007"
              },
              "workItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "businessDocumentIds": {
                "$ref": "#/components/schemas/__shared/properties/schema1008"
              },
              "title": {
                "$ref": "#/components/schemas/__shared/properties/schema1009"
              },
              "summary": {
                "$ref": "#/components/schemas/__shared/properties/schema1010"
              },
              "performedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "status": {
                "$ref": "#/components/schemas/__shared/properties/schema1011"
              },
              "lineage": {
                "$ref": "#/components/schemas/__shared/properties/schema1012"
              },
              "currentDocument": {
                "$ref": "#/components/schemas/__shared/properties/schema1013"
              },
              "releasedEvidence": {
                "$ref": "#/components/schemas/__shared/properties/schema1014"
              },
              "continuity": {
                "$ref": "#/components/schemas/__shared/properties/schema1016"
              }
            },
            "required": [
              "historyId",
              "workspaceId",
              "assetItemIds",
              "workItemId",
              "businessDocumentIds",
              "title",
              "performedAt",
              "status",
              "lineage",
              "releasedEvidence"
            ],
            "additionalProperties": false
          },
          "schema1005": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "schema1006": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema1"
              }
            ]
          },
          "schema1007": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema1005"
            }
          },
          "schema1008": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema384"
            }
          },
          "schema1009": {
            "type": "string",
            "minLength": 1,
            "maxLength": 280
          },
          "schema1010": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "schema1011": {
            "type": "string",
            "enum": ["completed"]
          },
          "schema1012": {
            "type": "object",
            "properties": {
              "workItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "businessDocumentIds": {
                "maxItems": 16,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema384"
                }
              },
              "lineGroupIds": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              },
              "lineIds": {
                "maxItems": 128,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              },
              "operationIds": {
                "maxItems": 128,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              },
              "materialIds": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              },
              "recommendationIds": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              },
              "authorizationIds": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              },
              "inspectionIds": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              }
            },
            "required": [
              "workItemId",
              "businessDocumentIds",
              "lineGroupIds",
              "lineIds",
              "operationIds",
              "materialIds",
              "recommendationIds",
              "authorizationIds",
              "inspectionIds"
            ],
            "additionalProperties": false
          },
          "schema1013": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema355"
              }
            ]
          },
          "schema1014": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema1015"
            }
          },
          "schema1015": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["completion_report"]
                  },
                  "evidenceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema1005"
                  },
                  "releasedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "documentRef": {
                    "type": "object",
                    "properties": {
                      "workspaceId": {
                        "$ref": "#/components/schemas/__shared/properties/schema0"
                      },
                      "artifactId": {
                        "$ref": "#/components/schemas/__shared/properties/schema339"
                      },
                      "versionId": {
                        "$ref": "#/components/schemas/__shared/properties/schema340"
                      },
                      "editionId": {
                        "$ref": "#/components/schemas/__shared/properties/schema341"
                      },
                      "renditionId": {
                        "$ref": "#/components/schemas/__shared/properties/schema342"
                      },
                      "useCaseId": {
                        "type": "string",
                        "enum": ["service.completion_report"]
                      },
                      "documentClass": {
                        "type": "string",
                        "enum": ["service_completion_report"]
                      },
                      "representationRole": {
                        "$ref": "#/components/schemas/__shared/properties/schema344"
                      },
                      "mediaType": {
                        "$ref": "#/components/schemas/__shared/properties/schema345"
                      },
                      "fileName": {
                        "$ref": "#/components/schemas/__shared/properties/schema346"
                      },
                      "sizeBytes": {
                        "$ref": "#/components/schemas/__shared/properties/schema347"
                      },
                      "sha256": {
                        "$ref": "#/components/schemas/__shared/properties/schema348"
                      }
                    },
                    "required": [
                      "workspaceId",
                      "artifactId",
                      "versionId",
                      "editionId",
                      "renditionId",
                      "useCaseId",
                      "documentClass",
                      "representationRole",
                      "mediaType",
                      "fileName",
                      "sizeBytes",
                      "sha256"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": ["kind", "evidenceId", "releasedAt", "documentRef"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": ["inspection"]
                  },
                  "evidenceId": {
                    "$ref": "#/components/schemas/__shared/properties/schema1005"
                  },
                  "inspectionId": {
                    "$ref": "#/components/schemas/__shared/properties/schema1005"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 280
                  },
                  "releasedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                },
                "required": [
                  "kind",
                  "evidenceId",
                  "inspectionId",
                  "releasedAt"
                ],
                "additionalProperties": false
              }
            ]
          },
          "schema1016": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema1017"
              },
              {
                "$ref": "#/components/schemas/__shared/properties/schema1018"
              }
            ]
          },
          "schema1017": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": ["comeback"]
              },
              "sourceWorkItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "sourceOutcomeId": {
                "$ref": "#/components/schemas/__shared/properties/schema1005"
              },
              "sourceLineage": {
                "$ref": "#/components/schemas/__shared/properties/schema1012"
              },
              "sourceCurrentDocument": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema355"
                  }
                ]
              },
              "sourceEvidenceIds": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              }
            },
            "required": [
              "kind",
              "sourceWorkItemId",
              "sourceOutcomeId",
              "sourceLineage",
              "sourceEvidenceIds"
            ],
            "additionalProperties": false
          },
          "schema1018": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": ["warranty"]
              },
              "sourceWorkItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "sourceOutcomeId": {
                "$ref": "#/components/schemas/__shared/properties/schema1005"
              },
              "coverageReference": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema1005"
                  }
                ]
              },
              "coverageProgramId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema1005"
                  }
                ]
              },
              "sourceLineage": {
                "$ref": "#/components/schemas/__shared/properties/schema1012"
              },
              "sourceCurrentDocument": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema355"
                  }
                ]
              },
              "sourceEvidenceIds": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              }
            },
            "required": [
              "kind",
              "sourceWorkItemId",
              "sourceOutcomeId",
              "sourceLineage",
              "sourceEvidenceIds"
            ],
            "additionalProperties": false
          },
          "schema1019": {
            "type": "object",
            "properties": {
              "followUpId": {
                "$ref": "#/components/schemas/__shared/properties/schema1005"
              },
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "customerId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema1"
                  }
                ]
              },
              "assetItemIds": {
                "maxItems": 16,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1005"
                }
              },
              "workItemId": {
                "$ref": "#/components/schemas/__shared/properties/schema167"
              },
              "businessDocumentIds": {
                "maxItems": 16,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema384"
                }
              },
              "source": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["line_group"]
                      },
                      "lineGroupId": {
                        "$ref": "#/components/schemas/__shared/properties/schema1005"
                      }
                    },
                    "required": ["kind", "lineGroupId"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["recommendation"]
                      },
                      "recommendationId": {
                        "$ref": "#/components/schemas/__shared/properties/schema1005"
                      }
                    },
                    "required": ["kind", "recommendationId"],
                    "additionalProperties": false
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": ["deferred", "declined"]
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 280
              },
              "summary": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "actionable": {
                "type": "boolean",
                "enum": [true]
              },
              "lineage": {
                "$ref": "#/components/schemas/__shared/properties/schema1012"
              }
            },
            "required": [
              "followUpId",
              "workspaceId",
              "assetItemIds",
              "workItemId",
              "businessDocumentIds",
              "source",
              "status",
              "title",
              "actionable",
              "lineage"
            ],
            "additionalProperties": false
          },
          "schema1020": {
            "type": "object",
            "properties": {
              "lineId": {
                "$ref": "#/components/schemas/__shared/properties/schema458"
              },
              "qty": {
                "$ref": "#/components/schemas/__shared/properties/schema1021"
              },
              "workRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema1022"
              },
              "note": {
                "$ref": "#/components/schemas/__shared/properties/schema1023"
              },
              "inventory": {
                "$ref": "#/components/schemas/__shared/properties/schema1024"
              },
              "evidenceRefs": {
                "maxItems": 49,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema961"
                }
              },
              "documentLinks": {
                "$ref": "#/components/schemas/__shared/properties/schema1027"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema1042"
              }
            },
            "required": ["lineId", "qty"],
            "additionalProperties": false
          },
          "schema1021": {
            "type": "number",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "schema1022": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema949"
              }
            ]
          },
          "schema1023": {
            "maxLength": 2000,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema1024": {
            "type": "object",
            "properties": {
              "locationId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "lotCode": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "vendorLotCode": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "serialNumbers": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1025"
                }
              },
              "expiryDate": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema241"
                  }
                ]
              },
              "costComponents": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1026"
                }
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            }
          },
          "schema1025": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema910"
              }
            ]
          },
          "schema1026": {
            "type": "object",
            "properties": {
              "code": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "amount": {
                "$ref": "#/components/schemas/__shared/properties/schema832"
              },
              "currency": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema18"
                  }
                ]
              },
              "note": {
                "type": "string",
                "maxLength": 256
              }
            },
            "required": ["code", "amount"]
          },
          "schema1027": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/__shared/properties/schema1028"
            }
          },
          "schema1028": {
            "type": "object",
            "properties": {
              "documentType": {
                "$ref": "#/components/schemas/__shared/properties/schema1029"
              },
              "subjectTypeKey": {
                "$ref": "#/components/schemas/__shared/properties/schema1030"
              },
              "documentDomain": {
                "$ref": "#/components/schemas/__shared/properties/schema1031"
              },
              "relationship": {
                "$ref": "#/components/schemas/__shared/properties/schema1032"
              },
              "documentId": {
                "$ref": "#/components/schemas/__shared/properties/schema1034"
              },
              "externalDocumentId": {
                "$ref": "#/components/schemas/__shared/properties/schema1035"
              },
              "lineId": {
                "$ref": "#/components/schemas/__shared/properties/schema1036"
              },
              "externalLineId": {
                "$ref": "#/components/schemas/__shared/properties/schema1037"
              },
              "quantity": {
                "$ref": "#/components/schemas/__shared/properties/schema1038"
              },
              "amount": {
                "$ref": "#/components/schemas/__shared/properties/schema1039"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema1040"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema1041"
              }
            },
            "required": ["documentType"]
          },
          "schema1029": {
            "type": "string",
            "enum": [
              "work_item",
              "commitment",
              "business_document",
              "shipment",
              "external",
              "other"
            ]
          },
          "schema1030": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema191"
              }
            ]
          },
          "schema1031": {
            "type": "string",
            "enum": [
              "sales",
              "purchasing",
              "payables",
              "inventory",
              "service",
              "operations",
              "other"
            ]
          },
          "schema1032": {
            "maxLength": 64,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema1033"
              }
            ]
          },
          "schema1033": {
            "type": "string",
            "minLength": 1
          },
          "schema1034": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema384"
              }
            ]
          },
          "schema1035": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema1033"
              }
            ]
          },
          "schema1036": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema458"
              }
            ]
          },
          "schema1037": {
            "maxLength": 128,
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema1033"
              }
            ]
          },
          "schema1038": {
            "type": "number",
            "minimum": 0
          },
          "schema1039": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema833"
              }
            ]
          },
          "schema1040": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              }
            ]
          },
          "schema1041": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema1042": {
            "allOf": [
              {
                "$ref": "#/components/schemas/__shared/properties/schema39"
              }
            ]
          },
          "schema1043": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "purchaseOrderId": {
                "$ref": "#/components/schemas/__shared/properties/schema909"
              },
              "receiptId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "vendorId": {
                "$ref": "#/components/schemas/__shared/properties/schema911"
              },
              "accountingScope": {
                "$ref": "#/components/schemas/__shared/properties/schema415"
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "totalAmount": {
                "$ref": "#/components/schemas/__shared/properties/schema832"
              },
              "sourceVersion": {
                "type": "number",
                "enum": [0]
              },
              "sourceHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "accountingStatus": {
                "type": "string",
                "enum": ["pending", "processing", "completed", "failed"]
              },
              "accountingCompletedAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "returnAllocationVersion": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "returnedBaseQuantities": {
                "type": "object",
                "additionalProperties": {
                  "type": "number",
                  "minimum": 0
                }
              },
              "receivedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "externalId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "lines": {
                "minItems": 1,
                "maxItems": 500,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1044"
                }
              },
              "sourceRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              },
              "evidenceRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              },
              "valuationRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema922"
                }
              },
              "warehouseExecution": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema930"
                }
              },
              "repairActions": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema933"
                }
              },
              "ledgerEntryIds": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1046"
                }
              },
              "notes": {
                "type": "string",
                "maxLength": 4000
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema39"
                  }
                ]
              }
            },
            "required": [
              "workspaceId",
              "purchaseOrderId",
              "receiptId",
              "vendorId",
              "accountingScope",
              "currency",
              "totalAmount",
              "sourceVersion",
              "accountingStatus",
              "receivedAt",
              "lines",
              "createdAt"
            ]
          },
          "schema1044": {
            "type": "object",
            "properties": {
              "lineId": {
                "$ref": "#/components/schemas/__shared/properties/schema458"
              },
              "qty": {
                "$ref": "#/components/schemas/__shared/properties/schema1021"
              },
              "workRefs": {
                "$ref": "#/components/schemas/__shared/properties/schema1022"
              },
              "note": {
                "$ref": "#/components/schemas/__shared/properties/schema1023"
              },
              "inventory": {
                "$ref": "#/components/schemas/__shared/properties/schema1024"
              },
              "documentLinks": {
                "$ref": "#/components/schemas/__shared/properties/schema1027"
              },
              "metadata": {
                "$ref": "#/components/schemas/__shared/properties/schema1042"
              },
              "sourceRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              },
              "evidenceRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              },
              "valuationRefs": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema922"
                }
              },
              "warehouseExecution": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema930"
                }
              },
              "repairActions": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema933"
                }
              },
              "ledgerEntryIds": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1045"
                }
              },
              "itemId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "unit": {
                "maxLength": 64,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "unitAmount": {
                "$ref": "#/components/schemas/__shared/properties/schema832"
              },
              "baseAllocation": {
                "type": "object",
                "properties": {
                  "receivedQuantityBefore": {
                    "type": "number",
                    "minimum": 0
                  },
                  "receivedBaseCentsBefore": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "receivedQuantityBefore",
                  "receivedBaseCentsBefore"
                ],
                "additionalProperties": false
              },
              "inventoryPlan": {
                "type": "object",
                "properties": {
                  "itemId": {
                    "maxLength": 128,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "itemUpdatedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "baseQuantity": {
                    "type": "number",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "baseUnit": {
                    "maxLength": 64,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "conversion": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema931"
                      }
                    ]
                  },
                  "costingMethod": {
                    "type": "string",
                    "enum": ["fifo", "moving_average"]
                  },
                  "baseCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "componentCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "totalCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "itemId",
                  "itemUpdatedAt",
                  "baseQuantity",
                  "costingMethod",
                  "baseCents",
                  "componentCents",
                  "totalCents"
                ]
              }
            },
            "required": ["lineId", "qty", "unitAmount"],
            "additionalProperties": false
          },
          "schema1045": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema1046": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "schema1047": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "$ref": "#/components/schemas/__shared/properties/schema0"
              },
              "returnId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "sourceVersion": {
                "type": "number",
                "enum": [1]
              },
              "kind": {
                "$ref": "#/components/schemas/__shared/properties/schema1048"
              },
              "status": {
                "type": "string",
                "enum": [
                  "return_requested",
                  "return_authorized",
                  "returned",
                  "warranty_review",
                  "warranty_approved",
                  "warranty_denied",
                  "credit_pending",
                  "credit_issued",
                  "closed"
                ]
              },
              "operationState": {
                "type": "string",
                "enum": ["ready", "retry_wait", "failed_terminal"]
              },
              "vendorId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "currency": {
                "$ref": "#/components/schemas/__shared/properties/schema18"
              },
              "source": {
                "$ref": "#/components/schemas/__shared/properties/schema1049"
              },
              "sourceRefs": {
                "minItems": 2,
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema254"
                }
              },
              "dispatch": {
                "type": "object",
                "properties": {
                  "movementId": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "receiptMovementId": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "itemId": {
                    "maxLength": 128,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "positionId": {
                    "maxLength": 2048,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "baseQuantity": {
                    "type": "number",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "occurredAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "costSnapshot": {
                    "$ref": "#/components/schemas/__shared/properties/schema924"
                  },
                  "expenseAccountId": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "accountingScope": {
                    "$ref": "#/components/schemas/__shared/properties/schema415"
                  }
                },
                "required": [
                  "movementId",
                  "receiptMovementId",
                  "itemId",
                  "positionId",
                  "baseQuantity",
                  "occurredAt",
                  "costSnapshot",
                  "expenseAccountId",
                  "accountingScope"
                ],
                "additionalProperties": false
              },
              "evidenceRefs": {
                "minItems": 1,
                "maxItems": 50,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema810"
                }
              },
              "reason": {
                "maxLength": 1000,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "quantity": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "estimatedAmountCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "creditId": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "creditAmountCents": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true,
                "maximum": 9007199254740991
              },
              "authorizations": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/__shared/properties/schema1050"
                }
              },
              "resolution": {
                "type": "object",
                "properties": {
                  "outcome": {
                    "type": "string",
                    "enum": ["credit_issued", "warranty_denied"]
                  },
                  "resolvedAt": {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  },
                  "resolvedBy": {
                    "maxLength": 128,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "creditId": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "creditAmountCents": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true,
                    "maximum": 9007199254740991
                  }
                },
                "required": ["outcome", "resolvedAt", "resolvedBy"],
                "additionalProperties": false
              },
              "attempts": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "nextAttemptAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "failureCode": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "failureMessage": {
                "maxLength": 1000,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "terminalAt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema27"
                  }
                ]
              },
              "requestHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "idempotencyKey": {
                "type": "string",
                "minLength": 8,
                "maxLength": 255
              },
              "createdAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "updatedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "workspaceId",
              "returnId",
              "sourceVersion",
              "kind",
              "status",
              "operationState",
              "vendorId",
              "currency",
              "source",
              "sourceRefs",
              "evidenceRefs",
              "reason",
              "quantity",
              "estimatedAmountCents",
              "authorizations",
              "attempts",
              "requestHash",
              "idempotencyKey",
              "createdAt",
              "updatedAt",
              "version"
            ],
            "additionalProperties": false
          },
          "schema1048": {
            "type": "string",
            "enum": ["vendor_return", "core_credit", "warranty_claim"]
          },
          "schema1049": {
            "type": "object",
            "properties": {
              "purchaseOrderId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "receiptId": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "receiptLine": {
                "type": "object",
                "properties": {
                  "purchaseOrderLineId": {
                    "maxLength": 128,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "effectLineId": {
                    "maxLength": 160,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "quantity": {
                    "type": "number",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  }
                },
                "required": ["purchaseOrderLineId", "effectLineId", "quantity"],
                "additionalProperties": false
              },
              "material": {
                "type": "object",
                "properties": {
                  "materialId": {
                    "maxLength": 128,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "workItemId": {
                    "maxLength": 128,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "itemId": {
                    "maxLength": 128,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  },
                  "inventoryLinkId": {
                    "maxLength": 128,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/__shared/properties/schema910"
                      }
                    ]
                  }
                },
                "required": ["materialId", "workItemId"],
                "additionalProperties": false
              }
            },
            "required": ["purchaseOrderId", "receiptId", "receiptLine"],
            "additionalProperties": false
          },
          "schema1050": {
            "type": "object",
            "properties": {
              "authorizationId": {
                "maxLength": 160,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "authorizedBy": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "authorizedAt": {
                "$ref": "#/components/schemas/__shared/properties/schema27"
              },
              "recordedBy": {
                "maxLength": 128,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/__shared/properties/schema910"
                  }
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "authorize",
                  "approve_warranty",
                  "deny_warranty",
                  "record_credit",
                  "close"
                ]
              }
            },
            "required": [
              "authorizationId",
              "authorizedBy",
              "authorizedAt",
              "recordedBy",
              "action"
            ],
            "additionalProperties": false
          }
        }
      }
    }
  }
}
