{
  "fullyEncodeReservedExpansion": true,
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/cloud-platform": {
          "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
        }
      }
    }
  },
  "basePath": "",
  "ownerName": "Google",
  "name": "jules",
  "description": "Programmatically create and access your asynchronous coding tasks.",
  "protocol": "rest",
  "id": "jules:v1alpha",
  "version_module": true,
  "kind": "discovery#restDescription",
  "rootUrl": "https://jules.googleapis.com/",
  "revision": "20261201",
  "title": "Jules API",
  "icons": {
    "x32": "http://www.google.com/images/icons/product/search-32.gif",
    "x16": "http://www.google.com/images/icons/product/search-16.gif"
  },
  "batchPath": "batch",
  "baseUrl": "https://jules.googleapis.com/",
  "resources": {
    "sources": {
      "methods": {
        "get": {
          "flatPath": "v1alpha/sources/{sourcesId}",
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "path": "v1alpha/{+name}",
          "parameters": {
            "name": {
              "location": "path",
              "type": "string",
              "required": true,
              "pattern": "^sources/.*$",
              "description": "Required. The resource name of the source to retrieve. Format: sources/{source}"
            }
          },
          "response": {
            "$ref": "Source"
          },
          "description": "Gets a single source.",
          "id": "jules.sources.get",
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "GET"
        },
        "list": {
          "path": "v1alpha/sources",
          "parameters": {
            "pageSize": {
              "type": "integer",
              "format": "int32",
              "description": "Optional. The number of sources to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. If set to greater than 100, it will be coerced to 100.",
              "location": "query"
            },
            "filter": {
              "location": "query",
              "description": "Optional. The filter expression for listing sources, based on AIP-160. If not set, all sources will be returned. Currently only supports filtering by name, which can be used to filter by a single source or multiple sources separated by OR. Example filters: - 'name=sources/source1 OR name=sources/source2'",
              "type": "string"
            },
            "pageToken": {
              "description": "Optional. A page token, received from a previous `ListSources` call.",
              "location": "query",
              "type": "string"
            }
          },
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "id": "jules.sources.list",
          "description": "Lists sources.",
          "flatPath": "v1alpha/sources",
          "httpMethod": "GET",
          "response": {
            "$ref": "ListSourcesResponse"
          },
          "parameterOrder": []
        }
      }
    },
    "sessions": {
      "resources": {
        "activities": {
          "methods": {
            "list": {
              "flatPath": "v1alpha/sessions/{sessionsId}/activities",
              "parameters": {
                "pageToken": {
                  "type": "string",
                  "description": "Optional. A page token, received from a previous `ListActivities` call.",
                  "location": "query"
                },
                "parent": {
                  "pattern": "^sessions/[^/]+$",
                  "description": "Required. The parent session, which owns this collection of activities. Format: sessions/{session}",
                  "type": "string",
                  "required": true,
                  "location": "path"
                },
                "filter": {
                  "description": "Optional. The filter expression for listing activities. If not set, all activities will be returned. Currently only supports filtering by create_time. Invalid filter strings will result in an INVALID_ARGUMENT error. The OR operator has higher precedence than AND. The expression a AND b OR c evaluates to a AND (b OR c). Prefer to use explicit parentheses in complex expressions. Example filters: - 'create_time:*' (matches all activities with create_time set) - 'create_time \u003e \"2024-09-04T10:00:00Z\"' - 'create_time \u003e \"2024-09-04T10:00:00Z\" AND create_time \u003c \"2024-09-05T10:00:00Z\"' - 'create_time \u003c \"2024-09-04T10:00:00Z\" OR create_time \u003e \"2024-09-05T10:00:00Z\"'",
                  "type": "string",
                  "location": "query"
                },
                "pageSize": {
                  "location": "query",
                  "type": "integer",
                  "description": "Optional. The number of activities to return. Must be between 1 and 100, inclusive. If unset, defaults to 50. If set to greater than 100, it will be coerced to 100.",
                  "format": "int32"
                }
              },
              "response": {
                "$ref": "ListActivitiesResponse"
              },
              "description": "Lists activities for a session.",
              "httpMethod": "GET",
              "parameterOrder": [
                "parent"
              ],
              "id": "jules.sessions.activities.list",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "path": "v1alpha/{+parent}/activities"
            },
            "get": {
              "httpMethod": "GET",
              "flatPath": "v1alpha/sessions/{sessionsId}/activities/{activitiesId}",
              "response": {
                "$ref": "Activity"
              },
              "parameters": {
                "name": {
                  "required": true,
                  "type": "string",
                  "description": "Required. The resource name of the activity to retrieve. Format: sessions/{session}/activities/{activity}",
                  "location": "path",
                  "pattern": "^sessions/[^/]+/activities/[^/]+$"
                }
              },
              "path": "v1alpha/{+name}",
              "id": "jules.sessions.activities.get",
              "description": "Gets a single activity.",
              "parameterOrder": [
                "name"
              ],
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ]
            }
          }
        }
      },
      "methods": {
        "unarchive": {
          "flatPath": "v1alpha/sessions/{sessionsId}:unarchive",
          "description": "Unarchives a session.",
          "path": "v1alpha/{+name}:unarchive",
          "parameters": {
            "name": {
              "type": "string",
              "required": true,
              "description": "Required. The resource name of the session to unarchive. Format: sessions/{session}",
              "pattern": "^sessions/[^/]+$",
              "location": "path"
            }
          },
          "id": "jules.sessions.unarchive",
          "response": {
            "$ref": "Session"
          },
          "request": {
            "$ref": "UnarchiveSessionRequest"
          },
          "httpMethod": "POST",
          "parameterOrder": [
            "name"
          ],
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ]
        },
        "list": {
          "parameterOrder": [],
          "response": {
            "$ref": "ListSessionsResponse"
          },
          "id": "jules.sessions.list",
          "parameters": {
            "pageToken": {
              "description": "Optional. A page token, received from a previous `ListSessions` call.",
              "location": "query",
              "type": "string"
            },
            "filter": {
              "location": "query",
              "type": "string",
              "description": "Optional. The filter expression for listing sessions based on AIP-160. If not set, only non-archived sessions will be returned. Currently supports filtering by archived. Example filters: - 'archived = false' (default, returns only non-archived sessions) - 'archived = true' (returns only archived sessions) - 'archived = true OR archived = false' (returns all sessions)"
            },
            "pageSize": {
              "type": "integer",
              "location": "query",
              "format": "int32",
              "description": "Optional. The number of sessions to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. If set to greater than 100, it will be coerced to 100."
            }
          },
          "flatPath": "v1alpha/sessions",
          "path": "v1alpha/sessions",
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "httpMethod": "GET",
          "description": "Lists all sessions."
        },
        "archive": {
          "path": "v1alpha/{+name}:archive",
          "description": "Archives a session.",
          "httpMethod": "POST",
          "flatPath": "v1alpha/sessions/{sessionsId}:archive",
          "id": "jules.sessions.archive",
          "response": {
            "$ref": "Session"
          },
          "request": {
            "$ref": "ArchiveSessionRequest"
          },
          "parameters": {
            "name": {
              "pattern": "^sessions/[^/]+$",
              "type": "string",
              "location": "path",
              "description": "Required. The resource name of the session to archive. Format: sessions/{session}",
              "required": true
            }
          },
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "parameterOrder": [
            "name"
          ]
        },
        "create": {
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "id": "jules.sessions.create",
          "parameterOrder": [],
          "parameters": {},
          "description": "Creates a new session.",
          "response": {
            "$ref": "Session"
          },
          "httpMethod": "POST",
          "request": {
            "$ref": "Session"
          },
          "flatPath": "v1alpha/sessions",
          "path": "v1alpha/sessions"
        },
        "delete": {
          "description": "Deletes a session.",
          "httpMethod": "DELETE",
          "parameterOrder": [
            "name"
          ],
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "id": "jules.sessions.delete",
          "parameters": {
            "name": {
              "required": true,
              "type": "string",
              "location": "path",
              "pattern": "^sessions/[^/]+$",
              "description": "Required. The resource name of the session to delete. Format: sessions/{session}"
            }
          },
          "flatPath": "v1alpha/sessions/{sessionsId}",
          "path": "v1alpha/{+name}",
          "response": {
            "$ref": "Empty"
          }
        },
        "get": {
          "response": {
            "$ref": "Session"
          },
          "description": "Gets a single session.",
          "id": "jules.sessions.get",
          "httpMethod": "GET",
          "flatPath": "v1alpha/sessions/{sessionsId}",
          "parameters": {
            "name": {
              "pattern": "^sessions/[^/]+$",
              "type": "string",
              "location": "path",
              "description": "Required. The resource name of the session to retrieve. Format: sessions/{session}",
              "required": true
            }
          },
          "path": "v1alpha/{+name}",
          "parameterOrder": [
            "name"
          ],
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ]
        },
        "sendMessage": {
          "request": {
            "$ref": "SendMessageRequest"
          },
          "parameters": {
            "session": {
              "description": "Required. The resource name of the session to post the message to. Format: sessions/{session}",
              "required": true,
              "type": "string",
              "location": "path",
              "pattern": "^sessions/[^/]+$"
            }
          },
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "description": "Sends a message from the user to a session.",
          "path": "v1alpha/{+session}:sendMessage",
          "httpMethod": "POST",
          "flatPath": "v1alpha/sessions/{sessionsId}:sendMessage",
          "parameterOrder": [
            "session"
          ],
          "id": "jules.sessions.sendMessage",
          "response": {
            "$ref": "SendMessageResponse"
          }
        },
        "approvePlan": {
          "httpMethod": "POST",
          "flatPath": "v1alpha/sessions/{sessionsId}:approvePlan",
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "response": {
            "$ref": "ApprovePlanResponse"
          },
          "parameterOrder": [
            "session"
          ],
          "description": "Approves a plan in a session.",
          "parameters": {
            "session": {
              "description": "Required. The resource name of the session to approve the plan in. Format: sessions/{session}",
              "pattern": "^sessions/[^/]+$",
              "required": true,
              "type": "string",
              "location": "path"
            }
          },
          "id": "jules.sessions.approvePlan",
          "path": "v1alpha/{+session}:approvePlan",
          "request": {
            "$ref": "ApprovePlanRequest"
          }
        }
      }
    }
  },
  "documentationLink": "https://jules.google.com",
  "discoveryVersion": "v1",
  "canonicalName": "Jules",
  "schemas": {
    "SourceContext": {
      "type": "object",
      "id": "SourceContext",
      "description": "Context for how to use a source in a session.",
      "properties": {
        "githubRepoContext": {
          "$ref": "GitHubRepoContext",
          "description": "Context to use a GitHubRepo in a session."
        },
        "source": {
          "description": "Required. The name of the source this context is for. To get the list of sources, use the ListSources API. Format: sources/{source}",
          "type": "string"
        },
        "workingBranch": {
          "description": "Optional. The branch to push to for the session. Only used if the session is set to automatically create a branch through automation mode. If not provided, a branch name will be generated when needed.",
          "type": "string"
        },
        "environmentVariablesEnabled": {
          "type": "boolean",
          "description": "Optional. Enables environment variables in the session. If true, the session will use environment variables configured for this source."
        }
      }
    },
    "ArchiveSessionRequest": {
      "type": "object",
      "properties": {},
      "id": "ArchiveSessionRequest",
      "description": "Request message for ArchiveSession."
    },
    "BashOutput": {
      "id": "BashOutput",
      "type": "object",
      "description": "A bash output.",
      "properties": {
        "command": {
          "type": "string",
          "description": "The bash command."
        },
        "output": {
          "description": "The bash output. Includes both stdout and stderr.",
          "type": "string"
        },
        "exitCode": {
          "format": "int32",
          "type": "integer",
          "description": "The bash exit code."
        }
      }
    },
    "ListSessionsResponse": {
      "properties": {
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
          "type": "string"
        },
        "sessions": {
          "items": {
            "$ref": "Session"
          },
          "description": "The sessions from the specified request.",
          "type": "array"
        }
      },
      "type": "object",
      "description": "Response message for ListSessions.",
      "id": "ListSessionsResponse"
    },
    "UnarchiveSessionRequest": {
      "id": "UnarchiveSessionRequest",
      "type": "object",
      "description": "Request message for UnarchiveSession.",
      "properties": {}
    },
    "SessionFailed": {
      "type": "object",
      "id": "SessionFailed",
      "properties": {
        "reason": {
          "description": "The reason the session failed.",
          "type": "string"
        }
      },
      "description": "The session failed."
    },
    "Session": {
      "type": "object",
      "properties": {
        "sourceContext": {
          "description": "Optional. The source to use in this session, with additional context. If not provided, Jules will start from scratch.",
          "$ref": "SourceContext"
        },
        "automationMode": {
          "description": "Optional. Input only. The automation mode of the session. If not set, the default automation mode will be used.",
          "type": "string",
          "enumDescriptions": [
            "The automation mode is unspecified. Default to no automation.",
            "Whenever a final code patch is generated in the session, automatically create a branch and a pull request for it, if applicable."
          ],
          "enum": [
            "AUTOMATION_MODE_UNSPECIFIED",
            "AUTO_CREATE_PR"
          ]
        },
        "requirePlanApproval": {
          "description": "Optional. Input only. If true, plans the agent generates will require explicit plan approval before the agent starts working. If not set, plans will be auto-approved.",
          "type": "boolean"
        },
        "createTime": {
          "format": "google-datetime",
          "type": "string",
          "readOnly": true,
          "description": "Output only. The time the session was created."
        },
        "archived": {
          "readOnly": true,
          "type": "boolean",
          "description": "Output only. Whether the session is archived."
        },
        "name": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. Identifier. The full resource name (e.g., \"sessions/{session}\")."
        },
        "outputs": {
          "type": "array",
          "description": "Output only. The outputs of the session, if any.",
          "readOnly": true,
          "items": {
            "$ref": "SessionOutput"
          }
        },
        "title": {
          "description": "Optional. If not provided, the system will generate one.",
          "type": "string"
        },
        "url": {
          "readOnly": true,
          "description": "Output only. The URL of the session to view the session in the Jules web app.",
          "type": "string"
        },
        "state": {
          "type": "string",
          "enumDescriptions": [
            "The state is unspecified.",
            "The session is queued.",
            "Deprecated: This state is no longer used. The agent is planning.",
            "The agent is waiting for plan approval.",
            "The agent is waiting for user feedback.",
            "The session is in progress.",
            "The session is paused.",
            "The session has failed.",
            "The session has completed."
          ],
          "enumDeprecated": [
            false,
            false,
            true,
            false,
            false,
            false,
            false,
            false,
            false
          ],
          "enum": [
            "STATE_UNSPECIFIED",
            "QUEUED",
            "PLANNING",
            "AWAITING_PLAN_APPROVAL",
            "AWAITING_USER_FEEDBACK",
            "IN_PROGRESS",
            "PAUSED",
            "FAILED",
            "COMPLETED"
          ],
          "description": "Output only. The state of the session.",
          "readOnly": true
        },
        "updateTime": {
          "readOnly": true,
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. The time the session was last updated."
        },
        "prompt": {
          "type": "string",
          "description": "Required. The prompt to start the session with."
        },
        "id": {
          "readOnly": true,
          "description": "Output only. The id of the session. This is the same as the \"{session}\" part of the resource name (e.g., \"sessions/{session}\").",
          "type": "string"
        }
      },
      "description": "next_id: 19 A session is a contiguous amount of work within the same context.",
      "id": "Session"
    },
    "Activity": {
      "type": "object",
      "description": "An activity is a single unit of work within a session.",
      "properties": {
        "originator": {
          "description": "The entity that this activity originated from (e.g. \"user\", \"agent\", \"system\").",
          "type": "string"
        },
        "progressUpdated": {
          "$ref": "ProgressUpdated",
          "description": "There was a progress update."
        },
        "description": {
          "type": "string",
          "description": "Output only. A description of this activity.",
          "readOnly": true
        },
        "planApproved": {
          "description": "A plan was approved.",
          "$ref": "PlanApproved"
        },
        "sessionFailed": {
          "description": "The session failed.",
          "$ref": "SessionFailed"
        },
        "name": {
          "description": "Identifier. The full resource name (e.g., \"sessions/{session}/activities/{activity}\").",
          "type": "string"
        },
        "sessionCompleted": {
          "$ref": "SessionCompleted",
          "description": "The session was completed."
        },
        "createTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. The time at which this activity was created.",
          "readOnly": true
        },
        "userMessaged": {
          "$ref": "UserMessaged",
          "description": "The user posted a message."
        },
        "artifacts": {
          "description": "Output only. The artifacts produced by this activity.",
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "Artifact"
          }
        },
        "agentMessaged": {
          "description": "The agent posted a message.",
          "$ref": "AgentMessaged"
        },
        "planGenerated": {
          "description": "A plan was generated.",
          "$ref": "PlanGenerated"
        },
        "id": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The id of the activity. This is the same as the \"{activity}\" part of the resource name (e.g., \"sessions/{session}/activities/{activity}\")."
        }
      },
      "id": "Activity"
    },
    "PlanGenerated": {
      "id": "PlanGenerated",
      "type": "object",
      "properties": {
        "plan": {
          "description": "The plan that was generated.",
          "$ref": "Plan"
        }
      },
      "description": "A plan was generated."
    },
    "GitPatch": {
      "description": "A patch in Git format.",
      "id": "GitPatch",
      "type": "object",
      "properties": {
        "baseCommitId": {
          "description": "The base commit id of the patch. This is the id of the commit that the patch should be applied to.",
          "type": "string"
        },
        "unidiffPatch": {
          "type": "string",
          "description": "The patch in unidiff format."
        },
        "suggestedCommitMessage": {
          "description": "A suggested commit message for the patch, if one is generated.",
          "type": "string"
        }
      }
    },
    "SendMessageResponse": {
      "id": "SendMessageResponse",
      "properties": {},
      "type": "object",
      "description": "Response message for the SendMessage RPC."
    },
    "PlanStep": {
      "type": "object",
      "description": "A step in a plan.",
      "properties": {
        "description": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The description of the step."
        },
        "id": {
          "type": "string",
          "description": "Output only. ID for this step; unique within a plan.",
          "readOnly": true
        },
        "title": {
          "description": "Output only. The title of the step.",
          "readOnly": true,
          "type": "string"
        },
        "index": {
          "description": "Output only. 0-based index into the plan.steps.",
          "type": "integer",
          "format": "int32",
          "readOnly": true
        }
      },
      "id": "PlanStep"
    },
    "GitHubBranch": {
      "type": "object",
      "id": "GitHubBranch",
      "description": "A GitHub branch.",
      "properties": {
        "displayName": {
          "description": "The name of the GitHub branch.",
          "type": "string"
        }
      }
    },
    "ApprovePlanResponse": {
      "description": "Response message for the ApprovePlan RPC.",
      "properties": {},
      "type": "object",
      "id": "ApprovePlanResponse"
    },
    "SendMessageRequest": {
      "type": "object",
      "properties": {
        "prompt": {
          "description": "Required. The user prompt to send to the session.",
          "type": "string"
        }
      },
      "id": "SendMessageRequest",
      "description": "Request message for the SendMessage RPC."
    },
    "SessionCompleted": {
      "description": "The session was completed.",
      "properties": {},
      "id": "SessionCompleted",
      "type": "object"
    },
    "Media": {
      "id": "Media",
      "properties": {
        "mimeType": {
          "description": "The media mime type.",
          "type": "string"
        },
        "data": {
          "type": "string",
          "description": "The media data.",
          "format": "byte"
        }
      },
      "type": "object",
      "description": "A media output."
    },
    "AgentMessaged": {
      "type": "object",
      "description": "The agent posted a message.",
      "id": "AgentMessaged",
      "properties": {
        "agentMessage": {
          "description": "The message the agent posted.",
          "type": "string"
        }
      }
    },
    "ApprovePlanRequest": {
      "properties": {},
      "type": "object",
      "description": "Request message for the ApprovePlan RPC.",
      "id": "ApprovePlanRequest"
    },
    "UserMessaged": {
      "description": "The user posted a message.",
      "properties": {
        "userMessage": {
          "description": "The message the user posted.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "UserMessaged"
    },
    "PlanApproved": {
      "id": "PlanApproved",
      "properties": {
        "planId": {
          "description": "The ID of the plan that was approved.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "A plan was approved."
    },
    "GitHubRepoContext": {
      "properties": {
        "startingBranch": {
          "description": "Required. The name of the branch to start the session from.",
          "type": "string"
        }
      },
      "description": "Context to use a GitHubRepo in a session.",
      "id": "GitHubRepoContext",
      "type": "object"
    },
    "Empty": {
      "properties": {},
      "id": "Empty",
      "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
      "type": "object"
    },
    "SessionOutput": {
      "type": "object",
      "id": "SessionOutput",
      "description": "An output of a session.",
      "properties": {
        "pullRequest": {
          "description": "A pull request created by the session, if applicable.",
          "$ref": "PullRequest"
        },
        "changeSet": {
          "description": "A change set created by the session, if applicable.",
          "$ref": "ChangeSet"
        }
      }
    },
    "ListActivitiesResponse": {
      "id": "ListActivitiesResponse",
      "type": "object",
      "description": "Response message for the ListActivities RPC.",
      "properties": {
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."
        },
        "activities": {
          "items": {
            "$ref": "Activity"
          },
          "type": "array",
          "description": "The activities from the specified session."
        }
      }
    },
    "Source": {
      "description": "An input source of data for a session.",
      "properties": {
        "githubRepo": {
          "description": "A GitHub repo.",
          "$ref": "GitHubRepo"
        },
        "id": {
          "description": "Output only. The id of the source. This is the same as the \"{source}\" part of the resource name (e.g., \"sources/{source}\").",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "Identifier. The full resource name (e.g., \"sources/{source}\").",
          "type": "string"
        }
      },
      "type": "object",
      "id": "Source"
    },
    "ListSourcesResponse": {
      "id": "ListSourcesResponse",
      "type": "object",
      "properties": {
        "sources": {
          "description": "The sources from the specified request.",
          "items": {
            "$ref": "Source"
          },
          "type": "array"
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."
        }
      },
      "description": "Response message for the ListSources RPC."
    },
    "Artifact": {
      "type": "object",
      "description": "An artifact is a single unit of data produced by an activity step.",
      "properties": {
        "media": {
          "description": "A media file was produced (e.g. image, video).",
          "$ref": "Media"
        },
        "bashOutput": {
          "$ref": "BashOutput",
          "description": "A bash output was produced."
        },
        "changeSet": {
          "description": "A change set was produced (e.g. code changes).",
          "$ref": "ChangeSet"
        }
      },
      "id": "Artifact"
    },
    "GitHubRepo": {
      "id": "GitHubRepo",
      "properties": {
        "repo": {
          "type": "string",
          "description": "The name of the repo; the `` in `https://github.com//`."
        },
        "owner": {
          "type": "string",
          "description": "The owner of the repo; the `` in `https://github.com//`."
        },
        "branches": {
          "description": "The list of active branches for this repo.",
          "type": "array",
          "items": {
            "$ref": "GitHubBranch"
          }
        },
        "defaultBranch": {
          "description": "The default branch for this repo.",
          "$ref": "GitHubBranch"
        },
        "isPrivate": {
          "description": "Whether this repo is private.",
          "type": "boolean"
        }
      },
      "type": "object",
      "description": "A GitHub repo."
    },
    "Plan": {
      "id": "Plan",
      "properties": {
        "steps": {
          "type": "array",
          "items": {
            "$ref": "PlanStep"
          },
          "readOnly": true,
          "description": "Output only. The steps in the plan."
        },
        "createTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. Time when the plan was created.",
          "readOnly": true
        },
        "id": {
          "readOnly": true,
          "description": "Output only. ID for this plan; unique within a session.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "A plan is a sequence of steps that the agent will take to complete the task."
    },
    "ChangeSet": {
      "description": "A set of changes to be applied to a source.",
      "id": "ChangeSet",
      "properties": {
        "gitPatch": {
          "$ref": "GitPatch",
          "description": "A patch in Git format."
        },
        "source": {
          "type": "string",
          "description": "The name of the source this change set applies to. Format: sources/{source}"
        }
      },
      "type": "object"
    },
    "ProgressUpdated": {
      "id": "ProgressUpdated",
      "description": "There was a progress update.",
      "properties": {
        "title": {
          "type": "string",
          "description": "The title of the progress update."
        },
        "description": {
          "description": "The description of the progress update.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PullRequest": {
      "description": "A pull request.",
      "type": "object",
      "properties": {
        "headRef": {
          "type": "string",
          "description": "The head branch name of the pull request (e.g., \"feature-x\")."
        },
        "url": {
          "type": "string",
          "description": "The URL of the pull request."
        },
        "title": {
          "type": "string",
          "description": "The title of the pull request."
        },
        "baseRef": {
          "description": "The base branch name of the pull request (e.g., \"main\").",
          "type": "string"
        },
        "description": {
          "description": "The description of the pull request.",
          "type": "string"
        }
      },
      "id": "PullRequest"
    }
  },
  "servicePath": "",
  "version": "v1alpha",
  "mtlsRootUrl": "https://jules.mtls.googleapis.com/",
  "ownerDomain": "google.com",
  "parameters": {
    "$.xgafv": {
      "enum": [
        "1",
        "2"
      ],
      "type": "string",
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "description": "V1 error format.",
      "location": "query"
    },
    "upload_protocol": {
      "location": "query",
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
    },
    "oauth_token": {
      "type": "string",
      "location": "query",
      "description": "OAuth 2.0 token for the current user."
    },
    "alt": {
      "type": "string",
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "default": "json",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "location": "query",
      "description": "Data format for response."
    },
    "fields": {
      "type": "string",
      "location": "query",
      "description": "Selector specifying which fields to include in a partial response."
    },
    "callback": {
      "type": "string",
      "location": "query",
      "description": "JSONP"
    },
    "uploadType": {
      "type": "string",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "location": "query"
    },
    "quotaUser": {
      "location": "query",
      "type": "string",
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters."
    },
    "prettyPrint": {
      "location": "query",
      "default": "true",
      "type": "boolean",
      "description": "Returns response with indentations and line breaks."
    },
    "key": {
      "type": "string",
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "location": "query"
    },
    "access_token": {
      "type": "string",
      "location": "query",
      "description": "OAuth access token."
    }
  }
}
