"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from openrouter.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict


ApplyPatchCreateFileOperationType = Literal["create_file",]


class ApplyPatchCreateFileOperationTypedDict(TypedDict):
    r"""The `create_file` variant of an `apply_patch_call.operation`. Carries a V4A diff describing the new file contents."""

    diff: str
    path: str
    type: ApplyPatchCreateFileOperationType


class ApplyPatchCreateFileOperation(BaseModel):
    r"""The `create_file` variant of an `apply_patch_call.operation`. Carries a V4A diff describing the new file contents."""

    diff: str

    path: str

    type: ApplyPatchCreateFileOperationType
